pokeemerald/data/scripts/kecleon.inc

117 lines
2.2 KiB
PHP
Raw Normal View History

2019-10-06 22:06:34 +02:00
Route120_EventScript_Kecleon1:: @ 82722DB
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-10-06 22:06:34 +02:00
Route120_EventScript_Kecleon2:: @ 82722E8
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-10-06 22:06:34 +02:00
Route120_EventScript_Kecleon3:: @ 82722F5
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-10-06 22:06:34 +02:00
Route120_EventScript_Kecleon4:: @ 8272302
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-10-06 22:06:34 +02:00
Route120_EventScript_Kecleon5:: @ 827230F
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-10-06 22:06:34 +02:00
Route119_EventScript_Kecleon1:: @ 827231C
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-10-06 22:06:34 +02:00
Route119_EventScript_Kecleon2:: @ 8272329
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-10-06 22:06:34 +02:00
EventScript_Kecleon:: @ 8272336
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
2019-10-06 22:06:34 +02:00
EventScript_AskUseDevonScope:: @ 8272350
msgbox Kecleon_Text_WantToUseDevonScope, MSGBOX_YESNO
2019-10-05 16:52:48 +02:00
compare VAR_RESULT, 1
2019-10-06 22:06:34 +02:00
goto_if_eq EventScript_BattleKecleon
2019-10-05 16:52:48 +02:00
release
end
2019-10-06 22:06:34 +02:00
EventScript_BattleKecleon:: @ 8272365
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
EventScript_RemoveKecleon:: @ 82723C1
2019-10-05 16:52:48 +02:00
goto Common_EventScript_RemoveStaticPokemon
end
2019-10-06 22:06:34 +02:00
Movement_KecleonAppears: @ 82723C7
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