pokeemerald/data/scripts/trainer_hill.inc

86 lines
2.5 KiB
PHP
Raw Normal View History

2019-09-27 18:22:58 +02:00
TrainerHill_1F_MapScript1_2C8336: @ 82C8336
TrainerHill_2F_MapScript1_2C8336: @ 82C8336
TrainerHill_3F_MapScript1_2C8336: @ 82C8336
TrainerHill_4F_MapScript1_2C8336: @ 82C8336
TrainerHill_Roof_MapScript1_2C8336: @ 82C8336
2019-10-05 16:52:48 +02:00
setvar VAR_TEMP_2, 0
setvar VAR_0x8004, TRAINER_HILL_FUNC_RESUME_TIMER
special CallTrainerHillFunction
setvar VAR_0x8004, 1
setvar VAR_0x8005, 5
special CallFrontierUtilFunc
compare VAR_RESULT, B_OUTCOME_LOST
2019-10-07 02:04:30 +02:00
goto_if_eq TrainerHill_1F_EventScript_Lost
2019-10-05 16:52:48 +02:00
compare VAR_RESULT, B_OUTCOME_DREW
2019-10-07 02:04:30 +02:00
goto_if_eq TrainerHill_1F_EventScript_Lost
2019-10-05 16:52:48 +02:00
compare VAR_RESULT, B_OUTCOME_FORFEITED
2019-10-07 02:04:30 +02:00
goto_if_eq TrainerHill_1F_EventScript_Lost
2019-10-05 16:52:48 +02:00
end
2019-09-27 18:22:58 +02:00
TrainerHill_1F_MapScript2_2C8372: @ 82C8372
TrainerHill_2F_MapScript2_2C8372: @ 82C8372
2019-10-05 16:52:48 +02:00
map_script_2 VAR_TEMP_3, 0, TrainerHill_1F_EventScript_2C837C
.2byte 0
2019-09-27 18:22:58 +02:00
TrainerHill_1F_EventScript_2C837C:: @ 82C837C
2019-10-05 16:52:48 +02:00
setvar VAR_TEMP_3, 1
2019-09-27 18:22:58 +02:00
@ forced stop
TrainerHill_1F_MapScript2_2C8381: @ 82C8381
TrainerHill_2F_MapScript2_2C8381: @ 82C8381
TrainerHill_3F_MapScript2_2C8381: @ 82C8381
TrainerHill_4F_MapScript2_2C8381: @ 82C8381
TrainerHill_Roof_MapScript2_2C8381: @ 82C8381
2019-10-05 16:52:48 +02:00
map_script_2 VAR_TEMP_2, 0, TrainerHill_1F_EventScript_2C83A6
map_script_2 VAR_TEMP_1, 1, TrainerHill_1F_EventScript_2C83DF
.2byte 0
2019-09-27 18:22:58 +02:00
EventScript_TrainerHillTimer:: @ 82C8393
2019-10-05 16:52:48 +02:00
lockall
setvar VAR_0x8004, TRAINER_HILL_FUNC_7
special CallTrainerHillFunction
msgbox TrainerHill_Entrance_Text_268D47, MSGBOX_DEFAULT
releaseall
end
2019-09-27 18:22:58 +02:00
TrainerHill_1F_EventScript_2C83A6:: @ 82C83A6
2019-10-05 16:52:48 +02:00
setvar VAR_TEMP_2, 1
setvar VAR_0x8004, TRAINER_HILL_FUNC_9
special CallTrainerHillFunction
compare VAR_RESULT, 1
goto_if_eq TrainerHill_1F_EventScript_2C83BF
end
2019-09-27 18:22:58 +02:00
TrainerHill_1F_EventScript_2C83BF:: @ 82C83BF
2019-10-05 16:52:48 +02:00
warpsilent MAP_TRAINER_HILL_ENTRANCE, 255, 9, 6
waitstate
end
2019-09-27 18:22:58 +02:00
2019-10-07 02:04:30 +02:00
TrainerHill_1F_EventScript_Lost:: @ 82C83C9
2019-10-05 16:52:48 +02:00
setvar VAR_0x8004, TRAINER_HILL_FUNC_12
special CallTrainerHillFunction
setvar VAR_0x8004, TRAINER_HILL_FUNC_SET_LOST
special CallTrainerHillFunction
setvar VAR_TEMP_1, 1
end
2019-09-27 18:22:58 +02:00
TrainerHill_1F_EventScript_2C83DF:: @ 82C83DF
TrainerHill_Entrance_EventScript_2C83DF:: @ 82C83DF
2019-10-05 16:52:48 +02:00
setvar VAR_TEMP_1, 0
warp MAP_TRAINER_HILL_ENTRANCE, 255, 9, 6
waitstate
end
2019-09-27 18:22:58 +02:00
TrainerHill_1F_Movement_2C83EE:: @ 82C83EE
2019-10-05 16:52:48 +02:00
set_invisible
step_end
2019-09-27 18:22:58 +02:00
EventScript_2C83F0:: @ 82C83F0
2019-10-05 16:52:48 +02:00
trainerbattle TRAINER_BATTLE_12, TRAINER_PHILLIP, 0, BattleFacility_TrainerBattle_PlaceholderText, BattleFacility_TrainerBattle_PlaceholderText
setvar VAR_0x8004, TRAINER_HILL_FUNC_11
special CallTrainerHillFunction
waitmessage
waitbuttonpress
closemessage
end