Amon_PRC8/_module/nss/meng1trig1.nss

36 lines
960 B
Plaintext
Raw Normal View History

2025-04-03 19:00:46 -04:00
void main()
{
object oTarget = GetEnteringObject();
if (GetIsPC(oTarget))
{
SetLocalInt(GetModule(), GetTag(OBJECT_SELF), 1);
int iMeng1Trig1 = GetLocalInt(GetModule(), "Meng1Trig1");
int iMeng1Trig2 = GetLocalInt(GetModule(), "Meng1Trig2");
int iMeng1Trig3 = GetLocalInt(GetModule(), "Meng1Trig3");
int iMeng1Trig4 = GetLocalInt(GetModule(), "Meng1Trig4");
if(iMeng1Trig1 == 1)
{
if(iMeng1Trig2 == 1)
{
if(iMeng1Trig3 == 1)
{
if(iMeng1Trig4 == 1)
{
SetLocalInt(GetModule(), "Meng1Ready", 1);
location llocation = GetLocation(GetWaypointByTag("MengariCapLgt4a"));
CreateObject(OBJECT_TYPE_PLACEABLE, "MengLight1", llocation);
AssignCommand(GetEnteringObject(), PlaySound("al_mg_pillrlght1"));
SetLocalInt(GetModule(), "Meng1Trig1", 0);
SetLocalInt(GetModule(), "Meng1Trig2", 0);
SetLocalInt(GetModule(), "Meng1Trig3", 0);
SetLocalInt(GetModule(), "Meng1Trig4", 0);
}
}
}
}
}
}