How to create a World Map Scene Event

Trying to create a World Map scene on my own in FE7 but hitting a roadblock that doesn’t seem to be documented anywhere. From my understanding, there is a specific code I have to use when creating world event scenes shown here:
//beginning
WorldMapData:
_0x87
_ASMWORLDMAP 0xB5631
LOADWM Map [X,Y] LoadWay
STAL 16
_0x89

//ending
_0xCA
MUEN 4
_0xAD
_0xAE
STAL 60
CODE 0x0 0x0 0x0 0x0

my problem is the [CODE 0x0 0x0 0x0 0x0] part because EA gives me an error that CODE is not defined and simply using the 4 0x0 without code gives me the error it never reached the end. My question is am I doing it the old/wrong way or did I simply got something wrong?

Instead of CODE, use BYTE.

Or put #include EAstdlib.event at the top of your file.
Then you can just use StartWorldMap(Map,X,Y,LoadWay) and EndWorldMap.

1 Like

Thanks, seems to have worked. Didn’t know the macros were included with EAstdlib but it’s nice to know the more raw version.