31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
|
void main()
|
||
|
{
|
||
|
object oPC = GetClickingObject();
|
||
|
|
||
|
if(GetLocalInt(GetObjectByTag("room11counter"), "exitcounter") == 0)
|
||
|
{
|
||
|
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_a4_to_r11n"))));
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
if(GetLocalInt(GetObjectByTag("room11counter"), "exitcounter") == 1)
|
||
|
{
|
||
|
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_a4_to_r11w"))));
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
if(GetLocalInt(GetObjectByTag("room11counter"), "exitcounter") == 2)
|
||
|
{
|
||
|
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_r2_to_r11"))));
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
if(GetLocalInt(GetObjectByTag("room11counter"), "exitcounter") == 3)
|
||
|
{
|
||
|
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetWaypointByTag("wp_a4_to_r11e"))));
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|