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
@@ -13,12 +13,11 @@ Route111_WinstrateFamilysHouse_EventScript_22A4A2:: @ 822A4A2
lock
faceplayer
setvar VAR_0x8008, 3
checkflag FLAG_0x115
goto_eq Route111_WinstrateFamilysHouse_EventScript_22A4DA
goto_if_set FLAG_0x115, Route111_WinstrateFamilysHouse_EventScript_22A4DA
msgbox Route111_WinstrateFamilysHouse_Text_22A5F4, MSGBOX_DEFAULT
giveitem_std ITEM_MACHO_BRACE
compare VAR_RESULT, 0
goto_eq Route111_WinstrateFamilysHouse_EventScript_272054
goto_if_eq Route111_WinstrateFamilysHouse_EventScript_272054
setflag FLAG_0x115
goto Route111_WinstrateFamilysHouse_EventScript_22A52C
end
@@ -40,8 +39,7 @@ Route111_WinstrateFamilysHouse_EventScript_22A4FD:: @ 822A4FD
lock
faceplayer
setvar VAR_0x8008, 4
checkflag FLAG_TEMP_4
goto_eq Route111_WinstrateFamilysHouse_EventScript_22A51E
goto_if_set FLAG_TEMP_4, Route111_WinstrateFamilysHouse_EventScript_22A51E
msgbox Route111_WinstrateFamilysHouse_Text_22A780, MSGBOX_DEFAULT
setflag FLAG_TEMP_4
goto Route111_WinstrateFamilysHouse_EventScript_22A52C