pokeplatinum/res/field/scripts/scripts_distortion_world_b3f.s
Kuruyia 9d1c33cc1b Document distortion world map object events
This continues documentation of the distortion world overlay by
documenting the map object event system.

In distortion world maps, all map object events are hard-coded (with the
notable exception of the portal in 1F). This documents all static data
that defines the objects present on each map. The standard object event
structure is used and augmented to allow for conditional spawning of
objects (using flag conditions), and object sprite rotation (only used
for that one Cynthia trying out a 90deg platform).

This also documents functions related to map object management.

Signed-off-by: Kuruyia <github@kuruyia.net>
2026-03-17 12:27:54 +01:00

46 lines
771 B
ArmAsm

#include "macros/scrcmd.inc"
#include "res/text/bank/distortion_world_b3f.h"
ScriptEntry _000A
ScriptEntry _000E
ScriptEntryEnd
_000A:
InitPersistedMapFeaturesForDistortionWorld
End
_000E:
LockAll
AddDistortionWorldMapObject 128
ApplyMovement 128, _0060
WaitMovement
Message 0
ShowYesNoMenu VAR_RESULT
GoToIfEq VAR_RESULT, MENU_NO, _003B
Message 1
GoTo _003E
_003B:
Message 2
_003E:
Message 3
Message 4
CloseMessage
ApplyMovement 128, _0068
WaitMovement
DeleteDistortionWorldMapObject 128
SetVar VAR_DISTORTION_WORLD_PROGRESS, 6
ReleaseAll
End
.balign 4, 0
_0060:
WalkNormalNorth 7
EndMovement
.balign 4, 0
_0068:
WalkNormalSouth 7
EndMovement