pokeemerald/data/maps/TrainerHill_Roof/scripts.inc

63 lines
2.1 KiB
PHP
Raw Normal View History

2021-07-20 21:18:31 +02:00
TrainerHill_Roof_MapScripts::
2019-11-13 22:10:05 +01:00
map_script MAP_SCRIPT_ON_RESUME, TrainerHill_OnResume
map_script MAP_SCRIPT_ON_FRAME_TABLE, TrainerHill_OnFrame
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
TrainerHill_Roof_EventScript_Owner::
2019-11-23 22:08:50 +01:00
trainerhill_settrainerflags
2017-11-10 02:21:31 +01:00
lock
faceplayer
2019-11-23 22:08:50 +01:00
trainerhill_getownerstate
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
2019-11-13 22:10:05 +01:00
case 0, TrainerHill_Roof_EventScript_Arrived
case 1, TrainerHill_Roof_EventScript_GivePrize
case 2, TrainerHill_Roof_EventScript_AlreadyReceivedPrize
2021-07-20 21:18:31 +02:00
TrainerHill_Roof_EventScript_Arrived::
2019-11-13 22:10:05 +01:00
msgbox TrainerHill_Roof_Text_YouFinallyCameBravo, MSGBOX_DEFAULT
2021-07-20 21:18:31 +02:00
TrainerHill_Roof_EventScript_GivePrize::
2019-11-23 22:08:50 +01:00
trainerhill_giveprize
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
2019-11-13 22:10:05 +01:00
case 0, TrainerHill_Roof_EventScript_ReceivePrize
case 1, TrainerHill_Roof_EventScript_NoRoomForPrize
case 2, TrainerHill_Roof_EventScript_CheckFinalTime
2021-07-20 21:18:31 +02:00
TrainerHill_Roof_EventScript_ReceivePrize::
2019-11-13 22:10:05 +01:00
msgbox TrainerHill_Roof_Text_HaveTheMostMarvelousGift, MSGBOX_DEFAULT
2020-08-21 00:02:00 +02:00
playfanfare MUS_LEVEL_UP
2019-08-15 05:38:42 +02:00
message gText_ObtainedTheItem
2017-11-10 02:21:31 +01:00
waitfanfare
waitmessage
2019-11-13 22:10:05 +01:00
goto TrainerHill_Roof_EventScript_CheckFinalTime
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
TrainerHill_Roof_EventScript_NoRoomForPrize::
2019-11-13 22:10:05 +01:00
msgbox TrainerHill_Roof_Text_HaveTheMostMarvelousGift, MSGBOX_DEFAULT
2019-08-15 05:38:42 +02:00
msgbox gText_TheBagIsFull, MSGBOX_DEFAULT
2019-11-13 22:10:05 +01:00
msgbox TrainerHill_Roof_Text_FullUpBeBackLaterForThis, MSGBOX_DEFAULT
goto TrainerHill_Roof_EventScript_CheckFinalTime
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
TrainerHill_Roof_EventScript_CheckFinalTime::
2019-11-23 22:08:50 +01:00
trainerhill_finaltime
2017-11-10 02:21:31 +01:00
switch VAR_RESULT
2019-11-13 22:10:05 +01:00
case 0, TrainerHill_Roof_EventScript_NewRecord
case 1, TrainerHill_Roof_EventScript_NoNewRecord
case 2, TrainerHill_Roof_EventScript_EndSpeakToOwner
2021-07-20 21:18:31 +02:00
TrainerHill_Roof_EventScript_NewRecord::
2019-11-13 22:10:05 +01:00
msgbox TrainerHill_Roof_Text_GotHereMarvelouslyQuickly, MSGBOX_DEFAULT
goto TrainerHill_Roof_EventScript_EndSpeakToOwner
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
TrainerHill_Roof_EventScript_NoNewRecord::
2019-11-13 22:10:05 +01:00
msgbox TrainerHill_Roof_Text_YouWerentVeryQuick, MSGBOX_DEFAULT
goto TrainerHill_Roof_EventScript_EndSpeakToOwner
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
TrainerHill_Roof_EventScript_EndSpeakToOwner::
2019-11-13 22:10:05 +01:00
msgbox TrainerHill_Roof_Text_ArriveZippierNextTime, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
TrainerHill_Roof_EventScript_AlreadyReceivedPrize::
2019-11-13 22:10:05 +01:00
msgbox TrainerHill_Roof_Text_ArriveZippierNextTime, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end