pokeemerald/data/scripts/cave_hole.inc

34 lines
589 B
PHP
Raw Normal View History

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