mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 19:47:35 +01:00
120 lines
2.6 KiB
C++
120 lines
2.6 KiB
C++
Route120_EventScript_2722DB:: @ 82722DB
|
|
lock
|
|
faceplayer
|
|
setvar VAR_0x8009, 1
|
|
goto Route120_EventScript_272336
|
|
end
|
|
|
|
Route120_EventScript_2722E8:: @ 82722E8
|
|
lock
|
|
faceplayer
|
|
setvar VAR_0x8009, 2
|
|
goto Route120_EventScript_272336
|
|
end
|
|
|
|
Route120_EventScript_2722F5:: @ 82722F5
|
|
lock
|
|
faceplayer
|
|
setvar VAR_0x8009, 3
|
|
goto Route120_EventScript_272336
|
|
end
|
|
|
|
Route120_EventScript_272302:: @ 8272302
|
|
lock
|
|
faceplayer
|
|
setvar VAR_0x8009, 4
|
|
goto Route120_EventScript_272336
|
|
end
|
|
|
|
Route120_EventScript_27230F:: @ 827230F
|
|
lock
|
|
faceplayer
|
|
setvar VAR_0x8009, 5
|
|
goto Route120_EventScript_272336
|
|
end
|
|
|
|
Route119_EventScript_27231C:: @ 827231C
|
|
lock
|
|
faceplayer
|
|
setvar VAR_0x8009, 6
|
|
goto Route119_EventScript_272336
|
|
end
|
|
|
|
Route119_EventScript_272329:: @ 8272329
|
|
lock
|
|
faceplayer
|
|
setvar VAR_0x8009, 7
|
|
goto Route119_EventScript_272336
|
|
end
|
|
|
|
Route119_EventScript_272336:: @ 8272336
|
|
Route120_EventScript_272336:: @ 8272336
|
|
checkitem ITEM_DEVON_SCOPE, 1
|
|
compare VAR_RESULT, 1
|
|
goto_if_eq Route119_EventScript_272350
|
|
msgbox Route119_Text_1F5D00, MSGBOX_DEFAULT
|
|
release
|
|
end
|
|
|
|
Route119_EventScript_272350:: @ 8272350
|
|
msgbox Route119_Text_1F5D23, MSGBOX_YESNO
|
|
compare VAR_RESULT, 1
|
|
goto_if_eq Route119_EventScript_272365
|
|
release
|
|
end
|
|
|
|
Route119_EventScript_272365:: @ 8272365
|
|
msgbox Route119_Text_1F5D63, MSGBOX_DEFAULT
|
|
closemessage
|
|
applymovement VAR_LAST_TALKED, Common_Movement_FacePlayer
|
|
waitmovement 0
|
|
applymovement VAR_LAST_TALKED, Route119_Movement_2723C7
|
|
waitmovement 0
|
|
waitse
|
|
playmoncry SPECIES_KECLEON, 2
|
|
delay 40
|
|
waitmoncry
|
|
setwildbattle SPECIES_KECLEON, 30, ITEM_NONE
|
|
setflag FLAG_SYS_CTRL_OBJ_DELETE
|
|
dowildbattle
|
|
clearflag FLAG_SYS_CTRL_OBJ_DELETE
|
|
specialvar VAR_RESULT, GetBattleOutcome
|
|
compare VAR_RESULT, 1
|
|
goto_if_eq EventScript_RemoveKecleon
|
|
compare VAR_RESULT, 4
|
|
goto_if_eq EventScript_RemoveKecleon
|
|
compare VAR_RESULT, 5
|
|
goto_if_eq EventScript_RemoveKecleon
|
|
release
|
|
end
|
|
|
|
EventScript_RemoveKecleon:: @ 82723C1
|
|
goto Common_EventScript_RemoveStaticPokemon
|
|
end
|
|
|
|
FortreeCity_Movement_2723C7: @ 82723C7
|
|
Route119_Movement_2723C7: @ 82723C7
|
|
Route120_Movement_2723C7: @ 82723C7
|
|
set_visible
|
|
delay_4
|
|
set_invisible
|
|
delay_4
|
|
set_visible
|
|
delay_4
|
|
set_invisible
|
|
delay_4
|
|
set_visible
|
|
delay_8
|
|
set_invisible
|
|
delay_8
|
|
set_visible
|
|
delay_8
|
|
set_invisible
|
|
delay_8
|
|
set_visible
|
|
delay_16
|
|
set_invisible
|
|
delay_16
|
|
set_visible
|
|
step_end
|