Battledale_PRC8/_module/nss/ty_a2_northexit.nss

31 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

void main()
{
object oPC = GetClickingObject();
if(GetLocalInt(GetObjectByTag("room13counter"), "exitcounter") == 0)
{
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_a2_to_r13s"))));
}
else
{
if(GetLocalInt(GetObjectByTag("room13counter"), "exitcounter") == 1)
{
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_a2_to_r13e"))));
}
else
{
if(GetLocalInt(GetObjectByTag("room13counter"), "exitcounter") == 2)
{
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r4_to_r13"))));
}
else
{
if(GetLocalInt(GetObjectByTag("room13counter"), "exitcounter") == 3)
{
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_a2_to_r13w"))));
}
}
}
}
}