2021-07-05 13:54:43 -04:00
|
|
|
@ Note: LOCALID_UNION_ROOM_PLAYER_# are local ids for this map used elsewhere. They're defined in event_objects.h
|
2020-06-21 01:56:57 -04:00
|
|
|
|
2021-07-20 15:18:31 -04:00
|
|
|
UnionRoom_MapScripts::
|
2019-11-12 12:55:46 -05:00
|
|
|
map_script MAP_SCRIPT_ON_RESUME, UnionRoom_OnResume
|
2019-04-22 16:31:51 -04:00
|
|
|
map_script MAP_SCRIPT_ON_TRANSITION, UnionRoom_OnTransition
|
2017-11-09 19:21:31 -06:00
|
|
|
.byte 0
|
|
|
|
|
2021-07-20 15:18:31 -04:00
|
|
|
UnionRoom_OnResume:
|
2018-10-18 21:32:21 -04:00
|
|
|
setflag FLAG_HIDE_UNION_ROOM_PLAYER_1
|
|
|
|
setflag FLAG_HIDE_UNION_ROOM_PLAYER_2
|
|
|
|
setflag FLAG_HIDE_UNION_ROOM_PLAYER_3
|
|
|
|
setflag FLAG_HIDE_UNION_ROOM_PLAYER_4
|
|
|
|
setflag FLAG_HIDE_UNION_ROOM_PLAYER_5
|
|
|
|
setflag FLAG_HIDE_UNION_ROOM_PLAYER_6
|
|
|
|
setflag FLAG_HIDE_UNION_ROOM_PLAYER_7
|
|
|
|
setflag FLAG_HIDE_UNION_ROOM_PLAYER_8
|
2021-07-05 13:54:43 -04:00
|
|
|
removeobject LOCALID_UNION_ROOM_PLAYER_1
|
|
|
|
removeobject LOCALID_UNION_ROOM_PLAYER_2
|
|
|
|
removeobject LOCALID_UNION_ROOM_PLAYER_3
|
|
|
|
removeobject LOCALID_UNION_ROOM_PLAYER_4
|
|
|
|
removeobject LOCALID_UNION_ROOM_PLAYER_5
|
|
|
|
removeobject LOCALID_UNION_ROOM_PLAYER_6
|
|
|
|
removeobject LOCALID_UNION_ROOM_PLAYER_7
|
|
|
|
removeobject LOCALID_UNION_ROOM_PLAYER_8
|
2020-06-08 18:16:57 -04:00
|
|
|
special RunUnionRoom
|
2017-11-09 19:21:31 -06:00
|
|
|
end
|
|
|
|
|
2021-07-20 15:18:31 -04:00
|
|
|
UnionRoom_OnTransition:
|
2017-11-09 19:21:31 -06:00
|
|
|
end
|
|
|
|
|
2021-07-20 15:18:31 -04:00
|
|
|
UnionRoom_EventScript_Player1::
|
2017-11-09 19:21:31 -06:00
|
|
|
lock
|
|
|
|
faceplayer
|
2020-06-08 18:16:57 -04:00
|
|
|
setvar VAR_RESULT, UR_INTERACT_PLAYER_1
|
2017-11-09 19:21:31 -06:00
|
|
|
waitstate
|
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 15:18:31 -04:00
|
|
|
UnionRoom_EventScript_Player2::
|
2017-11-09 19:21:31 -06:00
|
|
|
lock
|
|
|
|
faceplayer
|
2020-06-08 18:16:57 -04:00
|
|
|
setvar VAR_RESULT, UR_INTERACT_PLAYER_2
|
2017-11-09 19:21:31 -06:00
|
|
|
waitstate
|
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 15:18:31 -04:00
|
|
|
UnionRoom_EventScript_Player3::
|
2017-11-09 19:21:31 -06:00
|
|
|
lock
|
|
|
|
faceplayer
|
2020-06-08 18:16:57 -04:00
|
|
|
setvar VAR_RESULT, UR_INTERACT_PLAYER_3
|
2017-11-09 19:21:31 -06:00
|
|
|
waitstate
|
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 15:18:31 -04:00
|
|
|
UnionRoom_EventScript_Player4::
|
2017-11-09 19:21:31 -06:00
|
|
|
lock
|
|
|
|
faceplayer
|
2020-06-08 18:16:57 -04:00
|
|
|
setvar VAR_RESULT, UR_INTERACT_PLAYER_4
|
2017-11-09 19:21:31 -06:00
|
|
|
waitstate
|
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 15:18:31 -04:00
|
|
|
UnionRoom_EventScript_Player5::
|
2017-11-09 19:21:31 -06:00
|
|
|
lock
|
|
|
|
faceplayer
|
2020-06-08 18:16:57 -04:00
|
|
|
setvar VAR_RESULT, UR_INTERACT_PLAYER_5
|
2017-11-09 19:21:31 -06:00
|
|
|
waitstate
|
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 15:18:31 -04:00
|
|
|
UnionRoom_EventScript_Player6::
|
2017-11-09 19:21:31 -06:00
|
|
|
lock
|
|
|
|
faceplayer
|
2020-06-08 18:16:57 -04:00
|
|
|
setvar VAR_RESULT, UR_INTERACT_PLAYER_6
|
2017-11-09 19:21:31 -06:00
|
|
|
waitstate
|
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 15:18:31 -04:00
|
|
|
UnionRoom_EventScript_Player7::
|
2017-11-09 19:21:31 -06:00
|
|
|
lock
|
|
|
|
faceplayer
|
2020-06-08 18:16:57 -04:00
|
|
|
setvar VAR_RESULT, UR_INTERACT_PLAYER_7
|
2017-11-09 19:21:31 -06:00
|
|
|
waitstate
|
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 15:18:31 -04:00
|
|
|
UnionRoom_EventScript_Player8::
|
2017-11-09 19:21:31 -06:00
|
|
|
lock
|
|
|
|
faceplayer
|
2020-06-08 18:16:57 -04:00
|
|
|
setvar VAR_RESULT, UR_INTERACT_PLAYER_8
|
2017-11-09 19:21:31 -06:00
|
|
|
waitstate
|
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 15:18:31 -04:00
|
|
|
UnionRoom_EventScript_Attendant::
|
2017-11-09 19:21:31 -06:00
|
|
|
lock
|
|
|
|
faceplayer
|
2020-06-08 18:16:57 -04:00
|
|
|
setvar VAR_RESULT, UR_INTERACT_ATTENDANT
|
2017-11-09 19:21:31 -06:00
|
|
|
waitstate
|
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2021-07-20 15:18:31 -04:00
|
|
|
UnionRoom_EventScript_Unused::
|
2017-11-10 01:36:41 -06:00
|
|
|
lockall
|
2020-06-08 18:16:57 -04:00
|
|
|
setvar VAR_RESULT, UR_INTERACT_UNUSED
|
2017-11-10 01:36:41 -06:00
|
|
|
waitstate
|
|
|
|
releaseall
|
|
|
|
end
|
2017-11-09 19:21:31 -06:00
|
|
|
|