pokeemerald/data/maps/scripts/Route105.inc

89 lines
2.5 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
Route105_MapScripts:: @ 81EE1DB
map_script 1, Route105_MapScript1_1EE1EB
map_script 3, Route105_MapScript1_1EE21E
map_script 2, Route105_MapScript2_1EE240
.byte 0
Route105_MapScript1_1EE1EB: @ 81EE1EB
checkflag FLAG_0x0E4
call_if 0, Route105_EventScript_1EE20B
compare_var_to_value VAR_0x4037, 9
call_if 1, Route105_EventScript_2739AB
compare_var_to_value VAR_0x4037, 10
call_if 1, Route105_EventScript_273A18
end
Route105_EventScript_1EE20B:: @ 81EE20B
setmetatile 9, 19, 124, 1
setmetatile 9, 20, 145, 1
return
Route105_MapScript1_1EE21E: @ 81EE21E
compare_var_to_value VAR_0x4039, 1
call_if 1, Route105_EventScript_273D13
compare_var_to_value VAR_0x4037, 9
call_if 1, Route105_EventScript_273D17
compare_var_to_value VAR_0x4037, 10
call_if 1, Route105_EventScript_273D17
end
Route105_MapScript2_1EE240: @ 81EE240
map_script_2 VAR_0x4039, 1, gUnknown_08273D1F
.2byte 0
Route105_EventScript_1EE24A:: @ 81EE24A
trainerbattle 0, TRAINER_FOSTER, 0, Route105_Text_295D0F, Route105_Text_295D62
msgbox Route105_Text_295DAB, 6
end
Route105_EventScript_1EE261:: @ 81EE261
trainerbattle 0, TRAINER_LUIS, 0, Route105_Text_295DF5, Route105_Text_295E66
msgbox Route105_Text_295E72, 6
end
Route105_EventScript_1EE278:: @ 81EE278
trainerbattle 0, TRAINER_DOMINIK, 0, Route105_Text_295EB7, Route105_Text_295EEA
msgbox Route105_Text_295F08, 6
end
Route105_EventScript_1EE28F:: @ 81EE28F
trainerbattle 0, TRAINER_BEVERLY, 0, Route105_Text_295F5C, Route105_Text_295FA0
msgbox Route105_Text_295FAE, 6
end
Route105_EventScript_1EE2A6:: @ 81EE2A6
trainerbattle 0, TRAINER_IMANI, 0, Route105_Text_296025, Route105_Text_296059
msgbox Route105_Text_296076, 6
end
Route105_EventScript_1EE2BD:: @ 81EE2BD
trainerbattle 0, TRAINER_JOSUE, 0, Route105_Text_29626F, Route105_Text_2962CB
msgbox Route105_Text_2962EC, 6
end
Route105_EventScript_1EE2D4:: @ 81EE2D4
trainerbattle 2, TRAINER_ANDRES_1, 0, Route105_Text_2960A9, Route105_Text_2960DB, Route105_EventScript_1EE300
specialvar VAR_RESULT, sub_80B226C
compare_var_to_value VAR_RESULT, 1
goto_eq Route105_EventScript_1EE31F
msgbox Route105_Text_2960FA, 4
release
end
Route105_EventScript_1EE300:: @ 81EE300
special sub_80B4808
waitmovement 0
msgbox Route105_Text_296159, 4
setvar VAR_0x8004, 737
special sub_81D1C20
setorcopyvar VAR_0x8000, 737
callstd 8
release
end
Route105_EventScript_1EE31F:: @ 81EE31F
trainerbattle 5, TRAINER_ANDRES_1, 0, Route105_Text_29619E, Route105_Text_2961DD
msgbox Route105_Text_2961FE, 6
end