improve goto_if macros
This commit is contained in:
@@ -10,14 +10,14 @@ SootopolisCity_LotadAndSeedotHouse_EventScript_22722B:: @ 822722B
|
||||
waitstate
|
||||
copyvar VAR_RESULT, VAR_0x8004
|
||||
compare VAR_RESULT, 255
|
||||
goto_eq SootopolisCity_LotadAndSeedotHouse_EventScript_227272
|
||||
goto_if_eq SootopolisCity_LotadAndSeedotHouse_EventScript_227272
|
||||
special CompareSeedotSize
|
||||
compare VAR_RESULT, 1
|
||||
goto_eq SootopolisCity_LotadAndSeedotHouse_EventScript_22727C
|
||||
goto_if_eq SootopolisCity_LotadAndSeedotHouse_EventScript_22727C
|
||||
compare VAR_RESULT, 2
|
||||
goto_eq SootopolisCity_LotadAndSeedotHouse_EventScript_227286
|
||||
goto_if_eq SootopolisCity_LotadAndSeedotHouse_EventScript_227286
|
||||
compare VAR_RESULT, 3
|
||||
goto_eq SootopolisCity_LotadAndSeedotHouse_EventScript_227290
|
||||
goto_if_eq SootopolisCity_LotadAndSeedotHouse_EventScript_227290
|
||||
release
|
||||
end
|
||||
|
||||
@@ -40,7 +40,7 @@ SootopolisCity_LotadAndSeedotHouse_EventScript_227290:: @ 8227290
|
||||
msgbox SootopolisCity_LotadAndSeedotHouse_Text_227480, MSGBOX_DEFAULT
|
||||
giveitem_std ITEM_ELIXIR
|
||||
compare VAR_RESULT, 0
|
||||
goto_eq SootopolisCity_LotadAndSeedotHouse_EventScript_2272B2
|
||||
goto_if_eq SootopolisCity_LotadAndSeedotHouse_EventScript_2272B2
|
||||
closemessage
|
||||
release
|
||||
end
|
||||
@@ -59,14 +59,14 @@ SootopolisCity_LotadAndSeedotHouse_EventScript_2272BC:: @ 82272BC
|
||||
waitstate
|
||||
copyvar VAR_RESULT, VAR_0x8004
|
||||
compare VAR_RESULT, 255
|
||||
goto_eq SootopolisCity_LotadAndSeedotHouse_EventScript_227303
|
||||
goto_if_eq SootopolisCity_LotadAndSeedotHouse_EventScript_227303
|
||||
special CompareLotadSize
|
||||
compare VAR_RESULT, 1
|
||||
goto_eq SootopolisCity_LotadAndSeedotHouse_EventScript_22730D
|
||||
goto_if_eq SootopolisCity_LotadAndSeedotHouse_EventScript_22730D
|
||||
compare VAR_RESULT, 2
|
||||
goto_eq SootopolisCity_LotadAndSeedotHouse_EventScript_227317
|
||||
goto_if_eq SootopolisCity_LotadAndSeedotHouse_EventScript_227317
|
||||
compare VAR_RESULT, 3
|
||||
goto_eq SootopolisCity_LotadAndSeedotHouse_EventScript_227321
|
||||
goto_if_eq SootopolisCity_LotadAndSeedotHouse_EventScript_227321
|
||||
release
|
||||
end
|
||||
|
||||
@@ -89,7 +89,7 @@ SootopolisCity_LotadAndSeedotHouse_EventScript_227321:: @ 8227321
|
||||
msgbox SootopolisCity_LotadAndSeedotHouse_Text_22776C, MSGBOX_DEFAULT
|
||||
giveitem_std ITEM_ELIXIR
|
||||
compare VAR_RESULT, 0
|
||||
goto_eq SootopolisCity_LotadAndSeedotHouse_EventScript_227343
|
||||
goto_if_eq SootopolisCity_LotadAndSeedotHouse_EventScript_227343
|
||||
closemessage
|
||||
release
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user