pokefirered/data/maps/VermilionCity_PokemonFanClub/scripts.inc
2022-06-24 21:10:48 -04:00

125 lines
3.6 KiB
PHP

.set LOCALID_WOMAN, 5
.set LOCALID_FAT_MAN, 6
.set SPOKE_TO_WOMAN_LAST, FLAG_TEMP_2
.set SPOKE_TO_FAT_MAN_LAST, FLAG_TEMP_3
VermilionCity_PokemonFanClub_MapScripts::
.byte 0
VermilionCity_PokemonFanClub_EventScript_Chairman::
lock
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
msgbox VermilionCity_PokemonFanClub_Text_ComeBackToHearStory
release
end
VermilionCity_PokemonFanClub_EventScript_AlreadyHeardStory::
msgbox VermilionCity_PokemonFanClub_Text_DidntComeToSeeAboutMonsAgain
release
end
VermilionCity_PokemonFanClub_EventScript_ChairmanStory::
msgbox VermilionCity_PokemonFanClub_Text_ChairmansStory
checkitemspace ITEM_BIKE_VOUCHER, 1
compare VAR_RESULT, FALSE
goto_if_eq 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
release
end
VermilionCity_PokemonFanClub_EventScript_NoRoomForBikeVoucher::
msgbox VermilionCity_PokemonFanClub_Text_MakeRoomForThis
release
end
VermilionCity_PokemonFanClub_EventScript_WorkerF::
lock
faceplayer
goto_if_set FLAG_SYS_GAME_CLEAR, VermilionCity_PokemonFanClub_EventScript_WorkerFGameClear
msgbox VermilionCity_PokemonFanClub_Text_ChairmanVeryVocalAboutPokemon
release
end
VermilionCity_PokemonFanClub_EventScript_WorkerFGameClear::
famechecker FAMECHECKER_DAISY, 1
msgbox VermilionCity_PokemonFanClub_Text_ChairmanReallyAdoresHisMons
release
end
VermilionCity_PokemonFanClub_EventScript_Woman::
lock
faceplayer
goto_if_set SPOKE_TO_FAT_MAN_LAST, VermilionCity_PokemonFanClub_EventScript_WomanSpokeToFatMan
msgbox VermilionCity_PokemonFanClub_Text_AdoreMySeel
closemessage
applymovement LOCALID_WOMAN, Movement_FaceOriginalDirection
waitmovement 0
setflag SPOKE_TO_WOMAN_LAST
release
end
VermilionCity_PokemonFanClub_EventScript_WomanSpokeToFatMan::
msgbox VermilionCity_PokemonFanClub_Text_SeelFarMoreAttractive
closemessage
applymovement LOCALID_WOMAN, Movement_FaceOriginalDirection
waitmovement 0
clearflag SPOKE_TO_FAT_MAN_LAST
release
end
VermilionCity_PokemonFanClub_EventScript_FatMan::
lock
faceplayer
goto_if_set SPOKE_TO_WOMAN_LAST, VermilionCity_PokemonFanClub_EventScript_FatManSpokeToWoman
msgbox VermilionCity_PokemonFanClub_Text_AdmirePikachusTail
closemessage
applymovement LOCALID_FAT_MAN, Movement_FaceOriginalDirection
waitmovement 0
setflag SPOKE_TO_FAT_MAN_LAST
release
end
VermilionCity_PokemonFanClub_EventScript_FatManSpokeToWoman::
msgbox VermilionCity_PokemonFanClub_Text_PikachuTwiceAsCute
closemessage
applymovement LOCALID_FAT_MAN, Movement_FaceOriginalDirection
waitmovement 0
clearflag SPOKE_TO_WOMAN_LAST
release
end
VermilionCity_PokemonFanClub_EventScript_Pikachu::
lock
faceplayer
waitse
playmoncry SPECIES_PIKACHU, 0
msgbox VermilionCity_PokemonFanClub_Text_Pikachu
waitmoncry
release
end
VermilionCity_PokemonFanClub_EventScript_Seel::
lock
faceplayer
waitse
playmoncry SPECIES_SEEL, 0
msgbox VermilionCity_PokemonFanClub_Text_Seel
waitmoncry
release
end
VermilionCity_PokemonFanClub_EventScript_RulesSign1::
msgbox VermilionCity_PokemonFanClub_Text_ListenPolitelyToOtherTrainers, MSGBOX_SIGN
end
VermilionCity_PokemonFanClub_EventScript_RulesSign2::
msgbox VermilionCity_PokemonFanClub_Text_SomeoneBragsBragBack, MSGBOX_SIGN
end