Opcode
|
Argument length (byte)
|
Function
|
0x00
|
9
|
Spawn object
Offset
|
Length (Byte)
|
Name
|
0
|
1
|
X
|
1
|
1
|
Y
|
2
|
1
|
Flags (With Magirocks this is used as an ID)
|
3
|
3
|
Script offset
|
6
|
3
|
Sprite data offset
|
|
0x01
|
9
|
Spawn position
Offset
|
Length (Byte)
|
Name
|
0
|
1
|
X
|
1
|
1
|
Y
|
2
|
1
|
Flag
If flag is 0xFF or 0xC0 there are six extra bytes.
|
3
|
3
|
Script offset
|
6
|
3
|
Sprite data offset
If this is zero the last set sprite data offset is reused.
This is to prevent loading the same tile set multiple times.
|
|
0x80
|
6
|
Spawn object
Offset
|
Length (Byte)
|
Name
|
0
|
3
|
Script offset
|
3
|
3
|
Sprite data offset
|
|
0xF0
|
6
|
Unknown
Offset
|
Length (Byte)
|
Name
|
0
|
6
|
Unknown
|
|
0xFA
|
5 or 7
|
Call code on event flag
Offset
|
Length (Byte)
|
Name
|
0
|
2
|
Eventflag
0x1000 is set
|
0x1000 not set
|
Offset
|
Length
|
Name
|
2
|
2
|
Event flag B
|
5
|
3
|
Offset
|
|
Offset
|
Length
|
Name
|
2
|
3
|
Offset
|
|
|
|
0xFB
|
4
|
Run script
Offset
|
Length (Byte)
|
Name
|
0
|
1
|
Unknown
|
1
|
3
|
Offset
|
|
0xFD
|
6
|
Spawn player
Offset
|
Length (Byte)
|
Name
|
0
|
1
|
X
|
1
|
1
|
Y
|
2
|
1
|
Flag
|
3
|
3
|
Offset
|
|
0xFE
|
4
|
Script offset
Offset
|
Length (Byte)
|
Name
|
0
|
1
|
Unknown
|
1
|
3
|
Offset
|
|
0xFF
|
1-x
|
Script end
Offset
|
Length (Byte)
|
Name
|
0
|
x
|
Optional map name, ends with 0xD4
|
|