mirror of
https://github.com/pret/pokefirered.git
synced 2026-05-07 14:46:29 -05:00
67 lines
1.4 KiB
PHP
67 lines
1.4 KiB
PHP
MtEmber_Summit_MapScripts:: @ 8163AFC
|
|
map_script 3, MtEmber_Summit_MapScript1_163B25
|
|
map_script 5, MtEmber_Summit_MapScript2_163B07
|
|
.byte 0
|
|
|
|
MtEmber_Summit_MapScript2_163B07:: @ 8163B07
|
|
checkflag FLAG_0x807
|
|
call_if 1, EventScript_163B11
|
|
end
|
|
|
|
EventScript_163B11:: @ 8163B11
|
|
specialvar VAR_RESULT, sub_80CA74C
|
|
compare_var_to_value VAR_RESULT, 7
|
|
goto_if 5, EventScript_1A77A9
|
|
removeobject VAR_LAST_TALKED
|
|
return
|
|
|
|
MtEmber_Summit_MapScript1_163B25:: @ 8163B25
|
|
checkflag FLAG_0x2BD
|
|
call_if 0, EventScript_163B2F
|
|
end
|
|
|
|
EventScript_163B2F:: @ 8163B2F
|
|
clearflag FLAG_0x052
|
|
return
|
|
|
|
MtEmber_Summit_EventScript_163B33:: @ 8163B33
|
|
special sub_8110AB4
|
|
compare_var_to_value VAR_RESULT, 2
|
|
goto_if_eq EventScript_1A7AE0
|
|
special sub_8112364
|
|
lock
|
|
faceplayer
|
|
setwildbattle SPECIES_MOLTRES, 50, ITEM_NONE
|
|
waitse
|
|
playmoncry SPECIES_MOLTRES, 2
|
|
message Text_1A6448
|
|
waitmessage
|
|
waitmoncry
|
|
delay 10
|
|
playbgm BGM_FRLG_LEADER_EYE, 0
|
|
waitbuttonpress
|
|
setflag FLAG_0x807
|
|
special sub_807F9D8
|
|
waitstate
|
|
clearflag FLAG_0x807
|
|
specialvar VAR_RESULT, sub_80CA74C
|
|
compare_var_to_value VAR_RESULT, 1
|
|
goto_if_eq EventScript_163B96
|
|
compare_var_to_value VAR_RESULT, 4
|
|
goto_if_eq EventScript_163B9F
|
|
compare_var_to_value VAR_RESULT, 5
|
|
goto_if_eq EventScript_163B9F
|
|
setflag FLAG_0x2BD
|
|
release
|
|
end
|
|
|
|
EventScript_163B96:: @ 8163B96
|
|
setflag FLAG_0x2BD
|
|
goto EventScript_1A922D
|
|
end
|
|
|
|
EventScript_163B9F:: @ 8163B9F
|
|
setvar VAR_0x8004, SPECIES_MOLTRES
|
|
goto EventScript_1A9236
|
|
end
|