Module commit
Module commit.
This commit is contained in:
15
_module/nss/_uoa_tchest_chk1.nss
Normal file
15
_module/nss/_uoa_tchest_chk1.nss
Normal file
@@ -0,0 +1,15 @@
|
||||
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;
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user