2021-07-20 21:18:31 +02:00
|
|
|
Route120_EventScript_Kecleon1::
|
2019-10-05 16:52:48 +02:00
|
|
|
lock
|
|
|
|
faceplayer
|
|
|
|
setvar VAR_0x8009, 1
|
2019-10-06 22:06:34 +02:00
|
|
|
goto EventScript_Kecleon
|
2019-10-05 16:52:48 +02:00
|
|
|
end
|
2019-09-28 08:37:01 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route120_EventScript_Kecleon2::
|
2019-10-05 16:52:48 +02:00
|
|
|
lock
|
|
|
|
faceplayer
|
|
|
|
setvar VAR_0x8009, 2
|
2019-10-06 22:06:34 +02:00
|
|
|
goto EventScript_Kecleon
|
2019-10-05 16:52:48 +02:00
|
|
|
end
|
2019-09-28 08:37:01 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route120_EventScript_Kecleon3::
|
2019-10-05 16:52:48 +02:00
|
|
|
lock
|
|
|
|
faceplayer
|
|
|
|
setvar VAR_0x8009, 3
|
2019-10-06 22:06:34 +02:00
|
|
|
goto EventScript_Kecleon
|
2019-10-05 16:52:48 +02:00
|
|
|
end
|
2019-09-28 08:37:01 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route120_EventScript_Kecleon4::
|
2019-10-05 16:52:48 +02:00
|
|
|
lock
|
|
|
|
faceplayer
|
|
|
|
setvar VAR_0x8009, 4
|
2019-10-06 22:06:34 +02:00
|
|
|
goto EventScript_Kecleon
|
2019-10-05 16:52:48 +02:00
|
|
|
end
|
2019-09-28 08:37:01 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route120_EventScript_Kecleon5::
|
2019-10-05 16:52:48 +02:00
|
|
|
lock
|
|
|
|
faceplayer
|
|
|
|
setvar VAR_0x8009, 5
|
2019-10-06 22:06:34 +02:00
|
|
|
goto EventScript_Kecleon
|
2019-10-05 16:52:48 +02:00
|
|
|
end
|
2019-09-28 08:37:01 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route119_EventScript_Kecleon1::
|
2019-10-05 16:52:48 +02:00
|
|
|
lock
|
|
|
|
faceplayer
|
|
|
|
setvar VAR_0x8009, 6
|
2019-10-06 22:06:34 +02:00
|
|
|
goto EventScript_Kecleon
|
2019-10-05 16:52:48 +02:00
|
|
|
end
|
2019-09-28 08:37:01 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route119_EventScript_Kecleon2::
|
2019-10-05 16:52:48 +02:00
|
|
|
lock
|
|
|
|
faceplayer
|
|
|
|
setvar VAR_0x8009, 7
|
2019-10-06 22:06:34 +02:00
|
|
|
goto EventScript_Kecleon
|
2019-10-05 16:52:48 +02:00
|
|
|
end
|
2019-09-28 08:37:01 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EventScript_Kecleon::
|
2021-08-05 18:46:11 +02:00
|
|
|
checkitem ITEM_DEVON_SCOPE
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_RESULT, TRUE, EventScript_AskUseDevonScope
|
2019-10-06 22:06:34 +02:00
|
|
|
msgbox Kecleon_Text_SomethingUnseeable, MSGBOX_DEFAULT
|
2019-10-05 16:52:48 +02:00
|
|
|
release
|
|
|
|
end
|
2019-09-28 08:37:01 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EventScript_AskUseDevonScope::
|
2019-10-06 22:06:34 +02:00
|
|
|
msgbox Kecleon_Text_WantToUseDevonScope, MSGBOX_YESNO
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_RESULT, YES, EventScript_BattleKecleon
|
2019-10-05 16:52:48 +02:00
|
|
|
release
|
|
|
|
end
|
2019-09-28 08:37:01 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EventScript_BattleKecleon::
|
2019-10-06 22:06:34 +02:00
|
|
|
msgbox Kecleon_Text_UseDevonScopeMonAttacked, MSGBOX_DEFAULT
|
2019-10-05 16:52:48 +02:00
|
|
|
closemessage
|
|
|
|
applymovement VAR_LAST_TALKED, Common_Movement_FacePlayer
|
|
|
|
waitmovement 0
|
2019-10-06 22:06:34 +02:00
|
|
|
applymovement VAR_LAST_TALKED, Movement_KecleonAppears
|
2019-10-05 16:52:48 +02:00
|
|
|
waitmovement 0
|
|
|
|
waitse
|
2021-11-07 18:58:11 +01:00
|
|
|
playmoncry SPECIES_KECLEON, CRY_MODE_ENCOUNTER
|
2019-10-05 16:52:48 +02:00
|
|
|
delay 40
|
|
|
|
waitmoncry
|
2022-04-02 23:09:51 +02:00
|
|
|
setwildbattle SPECIES_KECLEON, 30
|
2019-10-05 16:52:48 +02:00
|
|
|
setflag FLAG_SYS_CTRL_OBJ_DELETE
|
|
|
|
dowildbattle
|
|
|
|
clearflag FLAG_SYS_CTRL_OBJ_DELETE
|
|
|
|
specialvar VAR_RESULT, GetBattleOutcome
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_RESULT, B_OUTCOME_WON, EventScript_RemoveKecleon
|
|
|
|
goto_if_eq VAR_RESULT, B_OUTCOME_RAN, EventScript_RemoveKecleon
|
|
|
|
goto_if_eq VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED, EventScript_RemoveKecleon
|
2019-10-05 16:52:48 +02:00
|
|
|
release
|
|
|
|
end
|
2019-09-28 08:37:01 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
EventScript_RemoveKecleon::
|
2019-10-05 16:52:48 +02:00
|
|
|
goto Common_EventScript_RemoveStaticPokemon
|
|
|
|
end
|
2019-09-28 08:37:01 +02:00
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Movement_KecleonAppears:
|
2019-10-05 16:52:48 +02:00
|
|
|
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
|