void main() { object oExiting = GetExitingObject(); if (GetTag(oExiting) == "Pent1") { SetLocalInt(GetModule(), "PentTrapped", GetLocalInt(GetModule(),"PentTrapped")-1); } if (GetTag(oExiting) == "Pent2") { SetLocalInt(GetModule(), "PentTrapped", GetLocalInt(GetModule(),"PentTrapped")-1); } if (GetTag(oExiting) == "Pent3") { SetLocalInt(GetModule(), "PentTrapped", GetLocalInt(GetModule(),"PentTrapped")-1); } if (GetTag(oExiting) == "Pent4") { SetLocalInt(GetModule(), "PentTrapped", GetLocalInt(GetModule(),"PentTrapped")-1); } if (GetTag(oExiting) == "Pent5") { SetLocalInt(GetModule(), "PentTrapped", GetLocalInt(GetModule(),"PentTrapped")-1); } }