Files
Anphillia_PRC8/_module/nss/hc_csc_ttc_easy.nss
Jaysyn904 28cdb617b3 Initial commit
Adding all of the current content for Anphillia Unlimited.
2024-01-04 07:49:38 -05:00

14 lines
338 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 > 10) return TRUE;
return FALSE;
}