Better headings

This commit is contained in:
Rangi 2018-01-30 22:38:00 -05:00
parent 006d9f6441
commit ecf10c83a7

View File

@ -1,26 +1,33 @@
# Map Scripts # Map Scripts
## <code>const_value set 2</code> ## Person constants
<pre> <pre>
const_value set 2
const <i>MAPNAME</i>_<i>OBJECTNAME</i> const <i>MAPNAME</i>_<i>OBJECTNAME</i>
</pre> </pre>
## <code>MapName_MapScripts:</code> ## Map scripts
### <code>db <i>N</i> ; scene scripts</code>
<pre> <pre>
<i>MapName</i>_MapScripts:
</pre>
### Scene scripts
<pre>
db <i>N</i> ; scene scripts
scene_script <i>script</i> scene_script <i>script</i>
</pre> </pre>
### <code>db <i>N</i> ; callbacks</code> ### Callbacks
<pre> <pre>
db <i>N</i> ; callbacks
callback <i>type</i>, <i>script</i> callback <i>type</i>, <i>script</i>
</pre> </pre>
@ -67,30 +74,34 @@ Callback types:
[Movement commands](movement_commands.md) [Movement commands](movement_commands.md)
## <code>MapName_MapEvents:</code> ## Map events
```asm
db 0, 0 ; filler
```
### <code>db <i>N</i> ; warp events</code>
<pre> <pre>
<i>MapName</i>_MapEvents:
db 0, 0 ; filler
</pre>
### Warp events
<pre>
db <i>N</i> ; warp events
warp_event <i>x</i>, <i>y</i>, <i>warp_id</i>, <i>map</i> warp_event <i>x</i>, <i>y</i>, <i>warp_id</i>, <i>map</i>
</pre> </pre>
### <code>db <i>N</i> ; coord events</code> ### Coord events
<pre> <pre>
db <i>N</i> ; coord events
coord_event <i>x</i>, <i>y</i>, <i>scene_id</i>, <i>script</i> coord_event <i>x</i>, <i>y</i>, <i>scene_id</i>, <i>script</i>
</pre> </pre>
### <code>db <i>N</i> ; bg events</code> ### BG events
<pre> <pre>
db <i>N</i> ; bg events
bg_event <i>x</i>, <i>y</i>, <i>type</i>, <i>script</i> bg_event <i>x</i>, <i>y</i>, <i>type</i>, <i>script</i>
</pre> </pre>
@ -114,9 +125,10 @@ BG event types:
- `BGEVENT_COPY` - `BGEVENT_COPY`
### <code>db <i>N</i> ; object events</code> ### Object events
<pre> <pre>
db <i>N</i> ; object events
object_event <i>x</i>, <i>y</i>, <i>sprite</i>, <i>movement</i>, <i>rx</i>, <i>ry</i>, <i>h1</i>, <i>h2</i>, <i>palette</i>, <i>type</i>, <i>range</i>, <i>script</i>, <i>event_flag</i> object_event <i>x</i>, <i>y</i>, <i>sprite</i>, <i>movement</i>, <i>rx</i>, <i>ry</i>, <i>h1</i>, <i>h2</i>, <i>palette</i>, <i>type</i>, <i>range</i>, <i>script</i>, <i>event_flag</i>
</pre> </pre>