2017-11-10 02:21:31 +01:00
|
|
|
TrainerHill_Roof_MapScripts:: @ 8268FA7
|
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
|
|
|
|
|
2019-11-13 22:10:05 +01:00
|
|
|
TrainerHill_Roof_EventScript_Owner:: @ 8268FB2
|
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
|
|
|
|
TrainerHill_Roof_EventScript_Arrived:: @ 8268FEA
|
|
|
|
msgbox TrainerHill_Roof_Text_YouFinallyCameBravo, MSGBOX_DEFAULT
|
|
|
|
TrainerHill_Roof_EventScript_GivePrize:: @ 8268FF2
|
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
|
|
|
|
TrainerHill_Roof_EventScript_ReceivePrize:: @ 8269020
|
|
|
|
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
|
|
|
|
2019-11-13 22:10:05 +01:00
|
|
|
TrainerHill_Roof_EventScript_NoRoomForPrize:: @ 8269037
|
|
|
|
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
|
|
|
|
2019-11-13 22:10:05 +01:00
|
|
|
TrainerHill_Roof_EventScript_CheckFinalTime:: @ 8269054
|
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
|
|
|
|
TrainerHill_Roof_EventScript_NewRecord:: @ 8269082
|
|
|
|
msgbox TrainerHill_Roof_Text_GotHereMarvelouslyQuickly, MSGBOX_DEFAULT
|
|
|
|
goto TrainerHill_Roof_EventScript_EndSpeakToOwner
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-13 22:10:05 +01:00
|
|
|
TrainerHill_Roof_EventScript_NoNewRecord:: @ 8269090
|
|
|
|
msgbox TrainerHill_Roof_Text_YouWerentVeryQuick, MSGBOX_DEFAULT
|
|
|
|
goto TrainerHill_Roof_EventScript_EndSpeakToOwner
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-11-13 22:10:05 +01:00
|
|
|
TrainerHill_Roof_EventScript_EndSpeakToOwner:: @ 826909E
|
|
|
|
msgbox TrainerHill_Roof_Text_ArriveZippierNextTime, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
2019-11-13 22:10:05 +01:00
|
|
|
TrainerHill_Roof_EventScript_AlreadyReceivedPrize:: @ 82690A8
|
|
|
|
msgbox TrainerHill_Roof_Text_ArriveZippierNextTime, MSGBOX_DEFAULT
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|