Initial commit
Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
13
_module/nss/hc_csc_ttc_risky.nss
Normal file
13
_module/nss/hc_csc_ttc_risky.nss
Normal file
@@ -0,0 +1,13 @@
|
||||
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 > 0) && (nDisarmDiff <= 5)) return TRUE;
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
Reference in New Issue
Block a user