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

View File

@@ -11,7 +11,7 @@ SouthernIsland_Interior_MapScript1_242A50: @ 8242A50
SouthernIsland_Interior_EventScript_242A5A:: @ 8242A5A
specialvar VAR_RESULT, GetBattleOutcome
compare VAR_RESULT, 7
goto_if 5, SouthernIsland_Interior_EventScript_27374E
goto_if_ne SouthernIsland_Interior_EventScript_27374E
removeobject 2
return
@@ -36,9 +36,9 @@ SouthernIsland_Interior_EventScript_242A95:: @ 8242A95
SouthernIsland_Interior_EventScript_242AA0:: @ 8242AA0
checkplayergender
compare VAR_RESULT, 0
goto_eq SouthernIsland_Interior_EventScript_242AB8
goto_if_eq SouthernIsland_Interior_EventScript_242AB8
compare VAR_RESULT, 1
goto_eq SouthernIsland_Interior_EventScript_242ABE
goto_if_eq SouthernIsland_Interior_EventScript_242ABE
end
SouthernIsland_Interior_EventScript_242AB8:: @ 8242AB8
@@ -56,14 +56,10 @@ SouthernIsland_Interior_EventScript_242AC4:: @ 8242AC4
end
SouthernIsland_Interior_EventScript_242AD0:: @ 8242AD0
checkflag FLAG_TEMP_2
goto_eq SouthernIsland_Interior_EventScript_242B9A
checkflag FLAG_0x1C8
goto_eq SouthernIsland_Interior_EventScript_242B9A
checkflag FLAG_0x1C9
goto_eq SouthernIsland_Interior_EventScript_242B9A
checkflag FLAG_SYS_HAS_EON_TICKET
goto_if 0, SouthernIsland_Interior_EventScript_242B9A
goto_if_set FLAG_TEMP_2, SouthernIsland_Interior_EventScript_242B9A
goto_if_set FLAG_0x1C8, SouthernIsland_Interior_EventScript_242B9A
goto_if_set FLAG_0x1C9, SouthernIsland_Interior_EventScript_242B9A
goto_if_unset FLAG_SYS_HAS_EON_TICKET, SouthernIsland_Interior_EventScript_242B9A
setflag FLAG_0x0CE
setflag FLAG_TEMP_2
special SpawnCameraObject
@@ -92,11 +88,11 @@ SouthernIsland_Interior_EventScript_242AD0:: @ 8242AD0
clearflag FLAG_SYS_CTRL_OBJ_DELETE
specialvar VAR_RESULT, GetBattleOutcome
compare VAR_RESULT, 1
goto_eq SouthernIsland_Interior_EventScript_242B81
goto_if_eq SouthernIsland_Interior_EventScript_242B81
compare VAR_RESULT, 4
goto_eq SouthernIsland_Interior_EventScript_242B8F
goto_if_eq SouthernIsland_Interior_EventScript_242B8F
compare VAR_RESULT, 5
goto_eq SouthernIsland_Interior_EventScript_242B8F
goto_if_eq SouthernIsland_Interior_EventScript_242B8F
setflag FLAG_0x1C9
releaseall
end