Use 'goto_if_eq VAR, value, Script' syntax

This commit is contained in:
GriffinR committed 2022-08-09 20:41:54 -04:00
1 parent 60fc8c5e22
commit f113da30ad
171 files changed
+1992 -3453

No files matched your search

+3 -6
View File
@@ -8,14 +8,11 @@ VermilionCity_House2_EventScript_Elyssa::
call EventScript_GetInGameTradeSpeciesInfo
goto_if_set FLAG_DID_CH_DING_TRADE, VermilionCity_House2_EventScript_AlreadyTraded
msgbox VermilionCity_House2_Text_DoYouHaveMonWantToTradeForMyMon, MSGBOX_YESNO
compare VAR_RESULT, NO
goto_if_eq VermilionCity_House2_EventScript_DeclineTrade
goto_if_eq VAR_RESULT, NO, VermilionCity_House2_EventScript_DeclineTrade
call EventScript_ChooseMonForInGameTrade
compare VAR_0x8004, PARTY_SIZE
goto_if_ge VermilionCity_House2_EventScript_DeclineTrade
goto_if_ge VAR_0x8004, PARTY_SIZE, VermilionCity_House2_EventScript_DeclineTrade
call EventScript_GetInGameTradeSpecies
compare VAR_RESULT, VAR_0x8009
goto_if_ne VermilionCity_House2_EventScript_NotRequestedMon
goto_if_ne VAR_RESULT, VAR_0x8009, VermilionCity_House2_EventScript_NotRequestedMon
call EventScript_DoInGameTrade
msgbox VermilionCity_House2_Text_ThankYou
setflag FLAG_DID_CH_DING_TRADE