From 7233c19f57a452da2496f3eba5ed8d0a4293616e Mon Sep 17 00:00:00 2001 From: Rangi Date: Thu, 13 Aug 2020 14:46:35 -0400 Subject: [PATCH] Add a template for maps/*.asm --- docs/map_event_scripts.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) 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 @@
 	trainer group_id, trainer_id, event_flag, seen_text, beaten_text, loss_text, script
 
+ + +## Template + +
+	object_const_def
+;	const MAPNAME_OBJECTNAME
+
+MapName_MapScripts:
+	def_scene_scripts
+;	scene_script script
+
+	def_callbacks
+;	callback type, script
+
+MapName_MapEvents:
+	db 0, 0 ; filler
+
+	def_warp_events
+;	warp_event x, y, map, warp_id
+
+	def_coord_events
+;	coord_event x, y, scene_id, script
+
+	def_bg_events
+;	bg_event x, y, type, script
+
+	def_object_events
+;	object_event x, y, sprite, movement, rx, ry, h1, h2, palette, type, range, script, event_flag
+