Repository navigation
Zenkai Opcode LoadMapWithEntities
Johnathon edited this page Sep 16, 2026
·
1 revision
Loads a new map (world/area/variant) and spawns the player and all map entities at the given position.
LoadMapWithEntities(world, area, variant, spawnX, spawnY)world
Integer
World id.
area
Integer
Area id.
variant
Integer
Map variant id.
spawnX
Integer
Player spawn X.
spawnY
Integer
Player spawn Y.
Loads a new map (world/area/variant) and spawns the player and all map entities at the given position. Real ROM usage: the Intro Sequence script loads world 1 area 3 variant 1 at (120, 104) — see the worked example below and the fuller walkthrough in Zenkai-Example-Scripts.md.
From Intro Sequence Script #1:
ROM Address: 0x083B827B
0x1D, 5, 2, 6, 2, 0x81, 0x70, 0x81, 0x50, 2 // PushMultiVarint(5) -> [1, 3, 1, 120, 104] (world, area, variant, spawnX, spawnY)
0x02, 0x23 // Step -> LoadMapWithEntities| Game | Notes |
|---|---|
| Legacy of Goku 2 | Supported |