improve goto_if macros

This commit is contained in:
Melody
2018-12-21 20:28:24 -05:00
parent 87fd6b8dc2
commit ac2e4adf2d
273 changed files with 2555 additions and 3036 deletions
@@ -10,7 +10,7 @@ SlateportCity_BattleTentCorridor_MapScript2_208E31: @ 8208E31
SlateportCity_BattleTentCorridor_EventScript_208E3B:: @ 8208E3B
setvar VAR_TEMP_1, 1
compare VAR_0x8006, 1
goto_if 5, SlateportCity_BattleTentCorridor_EventScript_208E56
goto_if_ne SlateportCity_BattleTentCorridor_EventScript_208E56
setobjectxy 1, 2, 2
turnobject 1, 1
@@ -24,13 +24,13 @@ SlateportCity_BattleTentCorridor_MapScript2_208E5B: @ 8208E5B
SlateportCity_BattleTentCorridor_EventScript_208E65:: @ 8208E65
compare VAR_0x8006, 1
goto_eq SlateportCity_BattleTentCorridor_EventScript_208EEE
goto_if_eq SlateportCity_BattleTentCorridor_EventScript_208EEE
setvar VAR_TEMP_0, 1
applymovement 1, SlateportCity_BattleTentCorridor_Movement_209062
applymovement EVENT_OBJ_ID_PLAYER, SlateportCity_BattleTentCorridor_Movement_209059
waitmovement 0
compare VAR_0x8006, 2
goto_eq SlateportCity_BattleTentCorridor_EventScript_209044
goto_if_eq SlateportCity_BattleTentCorridor_EventScript_209044
setvar VAR_0x8004, 9
special sub_81B9D08
setvar VAR_0x8004, 8
@@ -112,7 +112,7 @@ SlateportCity_BattleTentCorridor_EventScript_208FF1:: @ 8208FF1
special sub_81B9D08
waitstate
compare VAR_RESULT, 1
goto_eq SlateportCity_BattleTentCorridor_EventScript_208EB4
goto_if_eq SlateportCity_BattleTentCorridor_EventScript_208EB4
msgbox SlateportCity_BattleTentCorridor_Text_25AB6C, MSGBOX_DEFAULT
goto SlateportCity_BattleTentCorridor_EventScript_208EB4