Use 'goto_if_eq VAR, value, Script' syntax

This commit is contained in:
GriffinR
2022-08-09 20:40:03 -04:00
parent 60fc8c5e22
commit f113da30ad
171 changed files with 1992 additions and 3453 deletions
@@ -12,8 +12,7 @@ VermilionCity_PokemonFanClub_EventScript_Chairman::
faceplayer
goto_if_set FLAG_GOT_BIKE_VOUCHER, VermilionCity_PokemonFanClub_EventScript_AlreadyHeardStory
msgbox VermilionCity_PokemonFanClub_Text_DidYouComeToHearAboutMyMons, MSGBOX_YESNO
compare VAR_RESULT, YES
goto_if_eq VermilionCity_PokemonFanClub_EventScript_ChairmanStory
goto_if_eq VAR_RESULT, YES, VermilionCity_PokemonFanClub_EventScript_ChairmanStory
msgbox VermilionCity_PokemonFanClub_Text_ComeBackToHearStory
release
end
@@ -26,8 +25,7 @@ VermilionCity_PokemonFanClub_EventScript_AlreadyHeardStory::
VermilionCity_PokemonFanClub_EventScript_ChairmanStory::
msgbox VermilionCity_PokemonFanClub_Text_ChairmansStory
checkitemspace ITEM_BIKE_VOUCHER
compare VAR_RESULT, FALSE
goto_if_eq VermilionCity_PokemonFanClub_EventScript_NoRoomForBikeVoucher
goto_if_eq VAR_RESULT, FALSE, VermilionCity_PokemonFanClub_EventScript_NoRoomForBikeVoucher
setflag FLAG_GOT_BIKE_VOUCHER
giveitem_msg VermilionCity_PokemonFanClub_Text_ReceivedBikeVoucherFromChairman, ITEM_BIKE_VOUCHER, 1, MUS_OBTAIN_KEY_ITEM
msgbox VermilionCity_PokemonFanClub_Text_ExplainBikeVoucher