Aschbourne_PRC8/_module/nss/_uoa_tchest_chk1.nss

16 lines
363 B
Plaintext
Raw Permalink Normal View History

2024-06-14 10:48:20 -04:00
int StartingConditional()
{
object oPC = GetPCSpeaker();
object oSelf = OBJECT_SELF;
int iChestLvl = GetLocalInt(oSelf,"iChestLevel");
int iMinPickSkill = 2+(iChestLvl*3);
int iPCSkill = GetSkillRank(SKILL_DISABLE_TRAP,oPC);
if (GetLocalInt(oSelf,"iAmTrapped")!=0)
{
if (iPCSkill>=iMinPickSkill) return TRUE;
}
return FALSE;
}