summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/bugs_and_glitches.md6
-rw-r--r--docs/map_event_scripts.md31
2 files changed, 34 insertions, 3 deletions
diff --git a/docs/bugs_and_glitches.md b/docs/bugs_and_glitches.md
index 4fd24f7eb..25c68182b 100644
--- a/docs/bugs_and_glitches.md
+++ b/docs/bugs_and_glitches.md
@@ -1281,9 +1281,9 @@ CopyPokemonName_Buffer1_Buffer3:
```diff
HappinessData_DaisysGrooming:
-- db $ff, 2, HAPPINESS_GROOMING ; 99.6% chance
-+ db $80, 2, HAPPINESS_GROOMING ; 50% chance
-+ db $ff, 2, HAPPINESS_GROOMING ; 50% chance
+- db 100 percent, 2, HAPPINESS_GROOMING ; 99.6% chance
++ db 50 percent + 1, 2, HAPPINESS_GROOMING ; 50% chance
++ db 100 percent, 2, HAPPINESS_GROOMING ; 50% chance
```
diff --git a/docs/map_event_scripts.md b/docs/map_event_scripts.md
index dce205a1f..7050416fd 100644
--- a/docs/map_event_scripts.md
+++ b/docs/map_event_scripts.md
@@ -19,6 +19,7 @@
- [Object events](#object-events)
- [Movement types](#movement-types)
- [Object types](#object-types)
+- [Template](#template)
## Object constants
@@ -203,3 +204,33 @@
<pre>
trainer <i>group_id</i>, <i>trainer_id</i>, <i>event_flag</i>, <i>seen_text</i>, <i>beaten_text</i>, <i>loss_text</i>, <i>script</i>
</pre>
+
+
+## Template
+
+<pre>
+ object_const_def
+; const <i>MAPNAME</i>_<i>OBJECTNAME</i>
+
+<i>MapName</i>_MapScripts:
+ def_scene_scripts
+; scene_script <i>script</i>
+
+ def_callbacks
+; callback <i>type</i>, <i>script</i>
+
+<i>MapName</i>_MapEvents:
+ db 0, 0 ; filler
+
+ def_warp_events
+; warp_event <i>x</i>, <i>y</i>, <i>map</i>, <i>warp_id</i>
+
+ def_coord_events
+; coord_event <i>x</i>, <i>y</i>, <i>scene_id</i>, <i>script</i>
+
+ def_bg_events
+; bg_event <i>x</i>, <i>y</i>, <i>type</i>, <i>script</i>
+
+ def_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>
+</pre>