Amon_PRC8/_module/nss/pentexiting.nss

26 lines
655 B
Plaintext
Raw Normal View History

2025-04-03 19:00:46 -04:00
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);
}
}