pokefirered/data/maps/VermilionCity_PokemonFanClub/scripts.inc
2021-02-10 20:20:15 -05:00

125 lines
3.7 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:: @ 816B47E
.byte 0
VermilionCity_PokemonFanClub_EventScript_Chairman:: @ 816B47F
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:: @ 816B4A7
msgbox VermilionCity_PokemonFanClub_Text_DidntComeToSeeAboutMonsAgain
release
end
VermilionCity_PokemonFanClub_EventScript_ChairmanStory:: @ 816B4B1
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:: @ 816B4F2
msgbox VermilionCity_PokemonFanClub_Text_MakeRoomForThis
release
end
VermilionCity_PokemonFanClub_EventScript_WorkerF:: @ 816B4FC
lock
faceplayer
goto_if_set FLAG_SYS_GAME_CLEAR, VermilionCity_PokemonFanClub_EventScript_WorkerFGameClear
msgbox VermilionCity_PokemonFanClub_Text_ChairmanVeryVocalAboutPokemon
release
end
VermilionCity_PokemonFanClub_EventScript_WorkerFGameClear:: @ 816B511
famechecker FAMECHECKER_DAISY, 1
msgbox VermilionCity_PokemonFanClub_Text_ChairmanReallyAdoresHisMons
release
end
VermilionCity_PokemonFanClub_EventScript_Woman:: @ 816B528
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:: @ 816B54B
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:: @ 816B563
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:: @ 816B586
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:: @ 816B59E
lock
faceplayer
waitse
playmoncry SPECIES_PIKACHU, 0
msgbox VermilionCity_PokemonFanClub_Text_Pikachu
waitmoncry
release
end
VermilionCity_PokemonFanClub_EventScript_Seel:: @ 816B5B1
lock
faceplayer
waitse
playmoncry SPECIES_SEEL, 0
msgbox VermilionCity_PokemonFanClub_Text_Seel
waitmoncry
release
end
VermilionCity_PokemonFanClub_EventScript_RulesSign1:: @ 816B5C4
msgbox VermilionCity_PokemonFanClub_Text_ListenPolitelyToOtherTrainers, MSGBOX_SIGN
end
VermilionCity_PokemonFanClub_EventScript_RulesSign2:: @ 816B5CD
msgbox VermilionCity_PokemonFanClub_Text_SomeoneBragsBragBack, MSGBOX_SIGN
end