14 lines
362 B
Plaintext
14 lines
362 B
Plaintext
int StartingConditional()
|
|
{
|
|
object oPC = GetPCSpeaker();
|
|
object oTarget = GetLocalObject(oPC, "oToolTarget");
|
|
if (oTarget == OBJECT_INVALID) return FALSE;
|
|
|
|
int nDisarmDiff = 10 + GetSkillRank(SKILL_DISABLE_TRAP, oPC) -
|
|
(GetTrapDisarmDC(oTarget) - 100);
|
|
|
|
if ((nDisarmDiff > -5) && (nDisarmDiff <= 0)) return TRUE;
|
|
|
|
return FALSE;
|
|
}
|