pokeemerald/data/scripts/kecleon.inc

117 lines
2.1 KiB
PHP
Raw Normal View History

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
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
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
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
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
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
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
2021-07-20 21:18:31 +02:00
EventScript_Kecleon::
2019-10-05 16:52:48 +02:00
checkitem ITEM_DEVON_SCOPE, 1
compare VAR_RESULT, 1
2019-10-06 22:06:34 +02:00
goto_if_eq EventScript_AskUseDevonScope
msgbox Kecleon_Text_SomethingUnseeable, MSGBOX_DEFAULT
2019-10-05 16:52:48 +02:00
release
end
2021-07-20 21:18:31 +02:00
EventScript_AskUseDevonScope::
2019-10-06 22:06:34 +02:00
msgbox Kecleon_Text_WantToUseDevonScope, MSGBOX_YESNO
2019-11-02 17:34:53 +01:00
compare VAR_RESULT, YES
2019-10-06 22:06:34 +02:00
goto_if_eq EventScript_BattleKecleon
2019-10-05 16:52:48 +02:00
release
end
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
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
2019-10-06 22:06:34 +02:00
compare VAR_RESULT, B_OUTCOME_WON
2019-10-05 16:52:48 +02:00
goto_if_eq EventScript_RemoveKecleon
2019-10-06 22:06:34 +02:00
compare VAR_RESULT, B_OUTCOME_RAN
2019-10-05 16:52:48 +02:00
goto_if_eq EventScript_RemoveKecleon
2019-10-06 22:06:34 +02:00
compare VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED
2019-10-05 16:52:48 +02:00
goto_if_eq EventScript_RemoveKecleon
release
end
2021-07-20 21:18:31 +02:00
EventScript_RemoveKecleon::
2019-10-05 16:52:48 +02:00
goto Common_EventScript_RemoveStaticPokemon
end
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