ref: 9e368eee1f2f14e0d7e13f0d41dc89292051ec56
parent: 50a78c0876bbccad8269a626ca5bc6b5d8f679e0
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Wed Jan 31 06:11:09 EST 2018
Add TOC
--- a/docs/map_event_scripts.md
+++ b/docs/map_event_scripts.md
@@ -1,6 +1,26 @@
# Map Event Scripts
+## Contents
+
+- [Object constants](#object-constants)
+- [Map scripts](#map-scripts)
+ - [Scene scripts](#scene-scripts)
+ - [Callbacks](#callbacks)
+ - [Callback types](#callback-types)
+- [Event scripts](#event-scripts)
+- [Text](#text)
+- [Movement data](#movement-data)
+- [Map events](#map-events)
+ - [Warp events](#warp-events)
+ - [Coord events](#coord-events)
+ - [BG events](#bg-events)
+ - [BG event types](#bg-event-types)
+ - [Object events](#object-events)
+ - [Movement types](#movement-types)
+ - [Object types](#object-types)
+
+
## Object constants
<pre>
@@ -31,7 +51,7 @@
callback <i>type</i>, <i>script</i>
</pre>
-Callback types:
+#### Callback types
- `MAPCALLBACK_NEWMAP`
@@ -105,7 +125,7 @@
bg_event <i>x</i>, <i>y</i>, <i>type</i>, <i>script</i>
</pre>
-BG event types:
+#### BG event types
- `BGEVENT_READ`
@@ -132,7 +152,7 @@
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>
-Movement types:
+#### Movement types
- `SPRITEMOVEDATA_STILL`
@@ -168,7 +188,7 @@
- `SPRITEMOVEDATA_SWIM_WANDER`
-Object types:
+#### Object types
- `OBJECTTYPE_SCRIPT`