script switch/case; name script conditionals

This commit is contained in:
PikalaxALT
2019-10-20 20:38:23 -04:00
parent 2aeefdc5de
commit 6b503e306d
132 changed files with 1559 additions and 1789 deletions
@@ -9,7 +9,7 @@ FiveIsland_RocketWarehouse_MapScript2_163F39:: @ 8163F39
FiveIsland_RocketWarehouse_MapScript1_163F3D:: @ 8163F3D
checktrainerflag TRAINER_TEAM_ROCKET_ADMIN
call_if 1, EventScript_163F47
call_if eq, EventScript_163F47
end
EventScript_163F47:: @ 8163F47
@@ -79,7 +79,7 @@ FiveIsland_RocketWarehouse_EventScript_164014:: @ 8164014
EventScript_16402F:: @ 816402F
getplayerxy VAR_0x8004, VAR_0x8005
compare_var_to_value VAR_0x8004, 24
call_if 3, EventScript_164065
call_if le, EventScript_164065
msgbox gUnknown_817BA64
closemessage
fadescreen 1
@@ -113,29 +113,29 @@ EventScript_1640A2:: @ 81640A2
getplayerxy VAR_0x8004, VAR_0x8005
specialvar VAR_RESULT, GetPlayerFacingDirection
compare_var_to_value VAR_RESULT, 2
call_if 1, EventScript_16412E
call_if eq, EventScript_16412E
msgbox gUnknown_817B7AE
closemessage
compare_var_to_value VAR_0x8004, 24
call_if 3, EventScript_164144
call_if le, EventScript_164144
compare_var_to_value VAR_0x8004, 25
call_if 1, EventScript_16414F
call_if eq, EventScript_16414F
compare_var_to_value VAR_0x8004, 26
call_if 1, EventScript_16415A
call_if eq, EventScript_16415A
compare_var_to_value VAR_0x8004, 27
call_if 1, EventScript_16415A
call_if eq, EventScript_16415A
playse SE_PIN
call EventScript_163F47
special DrawWholeMapView
waitse
compare_var_to_value VAR_0x8004, 24
call_if 3, EventScript_164165
call_if le, EventScript_164165
compare_var_to_value VAR_0x8004, 25
call_if 1, EventScript_164165
call_if eq, EventScript_164165
compare_var_to_value VAR_0x8004, 26
call_if 1, EventScript_164165
call_if eq, EventScript_164165
compare_var_to_value VAR_0x8004, 27
call_if 1, EventScript_164170
call_if eq, EventScript_164170
msgbox gUnknown_817B7FA
release
end