int StartingConditional() { object oPC = GetPCSpeaker(); object oSelf = OBJECT_SELF; int iChestLvl = GetLocalInt(oSelf,"iChestLevel"); int iMinPickSkill = 2+(iChestLvl*3); int iPCSkill = GetSkillRank(SKILL_OPEN_LOCK,oPC); if (GetLocalInt(oSelf,"iAmLocked")!=0) { if (iPCSkill>=iMinPickSkill) return TRUE; } return FALSE; }