mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-27 20:24:18 +01:00
c557ac61ae
* adds some constants for standard script names and messagebox types * replaces some callstd calls with msgbox calls where equivalent * replaces msgbox and callstd calls using raw digits with versions that use the constants
71 lines
2.0 KiB
PHP
71 lines
2.0 KiB
PHP
TrainerHill_Roof_MapScripts:: @ 8268FA7
|
|
map_script 5, TrainerHill_Roof_MapScript1_2C8336
|
|
map_script 2, TrainerHill_Roof_MapScript2_2C8381
|
|
.byte 0
|
|
|
|
TrainerHill_Roof_EventScript_268FB2:: @ 8268FB2
|
|
setvar VAR_0x8004, 12
|
|
special sp194_trainer_tower
|
|
lock
|
|
faceplayer
|
|
setvar VAR_0x8004, 1
|
|
special sp194_trainer_tower
|
|
switch VAR_RESULT
|
|
case 0, TrainerHill_Roof_EventScript_268FEA
|
|
case 1, TrainerHill_Roof_EventScript_268FF2
|
|
case 2, TrainerHill_Roof_EventScript_2690A8
|
|
|
|
TrainerHill_Roof_EventScript_268FEA:: @ 8268FEA
|
|
msgbox TrainerHill_Roof_Text_268986, MSGBOX_DEFAULT
|
|
|
|
TrainerHill_Roof_EventScript_268FF2:: @ 8268FF2
|
|
setvar VAR_0x8004, 2
|
|
special sp194_trainer_tower
|
|
switch VAR_RESULT
|
|
case 0, TrainerHill_Roof_EventScript_269020
|
|
case 1, TrainerHill_Roof_EventScript_269037
|
|
case 2, TrainerHill_Roof_EventScript_269054
|
|
|
|
TrainerHill_Roof_EventScript_269020:: @ 8269020
|
|
msgbox TrainerHill_Roof_Text_268AC5, MSGBOX_DEFAULT
|
|
playfanfare MUS_FANFA1
|
|
message gUnknown_08272A78
|
|
waitfanfare
|
|
waitmessage
|
|
goto TrainerHill_Roof_EventScript_269054
|
|
|
|
TrainerHill_Roof_EventScript_269037:: @ 8269037
|
|
msgbox TrainerHill_Roof_Text_268AC5, MSGBOX_DEFAULT
|
|
msgbox gUnknown_08272A89, MSGBOX_DEFAULT
|
|
msgbox TrainerHill_Roof_Text_268B07, MSGBOX_DEFAULT
|
|
goto TrainerHill_Roof_EventScript_269054
|
|
|
|
TrainerHill_Roof_EventScript_269054:: @ 8269054
|
|
setvar VAR_0x8004, 3
|
|
special sp194_trainer_tower
|
|
switch VAR_RESULT
|
|
case 0, TrainerHill_Roof_EventScript_269082
|
|
case 1, TrainerHill_Roof_EventScript_269090
|
|
case 2, TrainerHill_Roof_EventScript_26909E
|
|
|
|
TrainerHill_Roof_EventScript_269082:: @ 8269082
|
|
msgbox TrainerHill_Roof_Text_268B43, MSGBOX_DEFAULT
|
|
goto TrainerHill_Roof_EventScript_26909E
|
|
end
|
|
|
|
TrainerHill_Roof_EventScript_269090:: @ 8269090
|
|
msgbox TrainerHill_Roof_Text_268C03, MSGBOX_DEFAULT
|
|
goto TrainerHill_Roof_EventScript_26909E
|
|
end
|
|
|
|
TrainerHill_Roof_EventScript_26909E:: @ 826909E
|
|
msgbox TrainerHill_Roof_Text_268C31, MSGBOX_DEFAULT
|
|
release
|
|
end
|
|
|
|
TrainerHill_Roof_EventScript_2690A8:: @ 82690A8
|
|
msgbox TrainerHill_Roof_Text_268C31, MSGBOX_DEFAULT
|
|
release
|
|
end
|
|
|