From c5675927feefc60a286de1725515d1475a30ca2c Mon Sep 17 00:00:00 2001 From: Remy Oukaour Date: Tue, 12 Dec 2017 12:18:11 -0500 Subject: Identify more sprite-related constants --- docs/map_scripts.md | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'docs/map_scripts.md') diff --git a/docs/map_scripts.md b/docs/map_scripts.md index edd3657ec..e259638dd 100644 --- a/docs/map_scripts.md +++ b/docs/map_scripts.md @@ -3,7 +3,7 @@ ## `const_value set 2` -### `const` *`MAPNAME_PERSONNAME`* +- **`const` *`MAPNAME_PERSONNAME`*** ## `MapName_MapScriptHeader:` @@ -11,16 +11,18 @@ ## `.MapTriggers: db` *N* -### `maptrigger` *script* +- **`maptrigger` *script*** ## `.MapCallbacks: db` *N* -### `dbw` *type*, *script* +- **`dbw` *type*, *script*** ## Scripts +[Scripting commands](docs/scripting_commands.md) + ## Text @@ -39,19 +41,19 @@ ## `.Warps: db` *N* -### `warp_def` *y*, *x*, *warp_id*, *map* +- **`warp_def` *y*, *x*, *warp_id*, *map*** ## `.XYTriggers: db` *N* -### `xy_trigger` *id*, *y*, *x*, `$0`, *script*, `$0`, `$0` +- **`xy_trigger` *id*, *y*, *x*, `$0`, *script*, `$0`, `$0`** ## `.Signposts: db` *N* -### `signpost` *y*, *x*, *type*, *script* +- `signpost` *y*, *x*, *type*, *script*** -#### Signpost types: +Signpost types: - **`SIGNPOST_READ`** @@ -69,9 +71,9 @@ ## `.PersonEvents: db` *N* -### `person_event` *sprite*, *y*, *x*, *movement*, *ry*, *rx*, *hour*, *daytime*, *palette*, *type*, *range*, *script*, *event_flag* +- **`person_event` *sprite*, *y*, *x*, *movement*, *ry*, *rx*, *hour*, *daytime*, *palette*, *type*, *range*, *script*, *event_flag*** -#### Movement types: +Movement types: - **`SPRITEMOVEDATA_ITEM_TREE`** @@ -105,7 +107,7 @@ - **`SPRITEMOVEDATA_LAPRAS`** -#### Person types: +Person types: - **`PERSONTYPE_SCRIPT`** -- cgit v1.2.3 From 0b34c997d6b24ff3b229396c2b8351f08a132410 Mon Sep 17 00:00:00 2001 From: Remy Oukaour Date: Tue, 12 Dec 2017 13:51:07 -0500 Subject: Add basic documentation for text commands. --- docs/map_scripts.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'docs/map_scripts.md') diff --git a/docs/map_scripts.md b/docs/map_scripts.md index e259638dd..e7138c4c8 100644 --- a/docs/map_scripts.md +++ b/docs/map_scripts.md @@ -19,18 +19,19 @@ - **`dbw` *type*, *script*** -## Scripts +## Event scripts -[Scripting commands](docs/scripting_commands.md) +[Event commands](docs/event_commands.md) ## Text -- **`text`** -- **`line`** -- **`cont`** -- **`para`** -- **`done`** +[Text commands](docs/text_commands.md) + + +## Movement data + +[Movement commands](docs/movement_commands.md) ## `MapName_MapEventHeader:` -- cgit v1.2.3 From 906d356e09fd8bf59d97d151aec0ffc3e25ca7f5 Mon Sep 17 00:00:00 2001 From: Remy Oukaour Date: Tue, 12 Dec 2017 13:51:58 -0500 Subject: Fix relative links --- docs/map_scripts.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/map_scripts.md') diff --git a/docs/map_scripts.md b/docs/map_scripts.md index e7138c4c8..47c6f4f67 100644 --- a/docs/map_scripts.md +++ b/docs/map_scripts.md @@ -21,17 +21,17 @@ ## Event scripts -[Event commands](docs/event_commands.md) +[Event commands](event_commands.md) ## Text -[Text commands](docs/text_commands.md) +[Text commands](text_commands.md) ## Movement data -[Movement commands](docs/movement_commands.md) +[Movement commands](movement_commands.md) ## `MapName_MapEventHeader:` -- cgit v1.2.3 From 33eb3c6af263773674d18fcc18457a71ee976ffc Mon Sep 17 00:00:00 2001 From: Remy Oukaour Date: Tue, 12 Dec 2017 13:56:17 -0500 Subject: Start documentation for map callbacks. --- docs/map_scripts.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'docs/map_scripts.md') diff --git a/docs/map_scripts.md b/docs/map_scripts.md index 47c6f4f67..7546a5ad7 100644 --- a/docs/map_scripts.md +++ b/docs/map_scripts.md @@ -18,6 +18,24 @@ - **`dbw` *type*, *script*** +Callback types: + +- **`MAPCALLBACK_NEWMAP`** + +- **`MAPCALLBACK_TILES`** + +- **`MAPCALLBACK_OBJECTS`** + +- **`MAPCALLBACK_SPRITES`** + +- **`MAPCALLBACK_CMDQUEUE`** + + **`dbw CMDQUEUE_STONETABLE,` *table_pointer*** + + **`stonetable` *warp_id*, *person*, *script*** + + **`db -1 ; end`** + ## Event scripts -- cgit v1.2.3 From 8b501c19a6a70f8911159b510760eb3dbcb5a3a6 Mon Sep 17 00:00:00 2001 From: Remy Oukaour Date: Tue, 12 Dec 2017 13:57:14 -0500 Subject: Fix Markdown syntax --- docs/map_scripts.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/map_scripts.md') diff --git a/docs/map_scripts.md b/docs/map_scripts.md index 7546a5ad7..f26de1949 100644 --- a/docs/map_scripts.md +++ b/docs/map_scripts.md @@ -70,7 +70,7 @@ Callback types: ## `.Signposts: db` *N* -- `signpost` *y*, *x*, *type*, *script*** +- **`signpost` *y*, *x*, *type*, *script*** Signpost types: -- cgit v1.2.3