pokeemerald/data/scripts/cave_hole.inc

34 lines
589 B
PHP
Raw Normal View History

2021-07-20 19:18:31 +00:00
CaveHole_CheckFallDownHole:
2019-10-05 14:52:48 +00:00
map_script_2 VAR_ICE_STEP_COUNT, 0, EventScript_FallDownHole
.2byte 0
2021-07-20 19:18:31 +00:00
CaveHole_FixCrackedGround:
2019-10-06 18:16:37 +00:00
copyvar VAR_ICE_STEP_COUNT, 1
2019-10-05 14:52:48 +00:00
end
2021-07-20 19:18:31 +00:00
EventScript_FallDownHole::
2019-10-05 14:52:48 +00:00
lockall
delay 20
applymovement OBJ_EVENT_ID_PLAYER, Movement_SetInvisible
2019-10-05 14:52:48 +00:00
waitmovement 0
2020-08-20 22:02:00 +00:00
playse SE_FALL
2019-10-05 14:52:48 +00:00
delay 60
warphole MAP_UNDEFINED
waitstate
end
2021-07-20 19:18:31 +00:00
EventScript_FallDownHoleMtPyre::
2019-10-05 14:52:48 +00:00
lockall
delay 20
applymovement OBJ_EVENT_ID_PLAYER, Movement_SetInvisible
2019-10-05 14:52:48 +00:00
waitmovement 0
2020-08-20 22:02:00 +00:00
playse SE_FALL
2019-10-05 14:52:48 +00:00
delay 60
special DoFallWarp
waitstate
end
2021-07-20 19:18:31 +00:00
Movement_SetInvisible:
2019-10-05 14:52:48 +00:00
set_invisible
step_end