2017-12-11 18:40:21 -08:00
|
|
|
# Map Scripts
|
|
|
|
|
2017-12-11 19:02:20 -08:00
|
|
|
|
2017-12-11 18:40:21 -08:00
|
|
|
## `const_value set 2`
|
|
|
|
|
2017-12-12 09:18:11 -08:00
|
|
|
- **`const` *`MAPNAME_PERSONNAME`***
|
2017-12-11 19:02:20 -08:00
|
|
|
|
|
|
|
|
|
|
|
## `MapName_MapScriptHeader:`
|
|
|
|
|
|
|
|
|
2017-12-11 20:11:58 -08:00
|
|
|
## `.MapTriggers: db` *N*
|
2017-12-11 19:02:20 -08:00
|
|
|
|
2017-12-12 09:18:11 -08:00
|
|
|
- **`maptrigger` *script***
|
2017-12-11 19:02:20 -08:00
|
|
|
|
|
|
|
|
2017-12-11 20:11:58 -08:00
|
|
|
## `.MapCallbacks: db` *N*
|
2017-12-11 19:02:20 -08:00
|
|
|
|
2017-12-12 09:18:11 -08:00
|
|
|
- **`dbw` *type*, *script***
|
2017-12-11 19:02:20 -08:00
|
|
|
|
|
|
|
|
2017-12-12 10:51:07 -08:00
|
|
|
## Event scripts
|
2017-12-11 19:02:20 -08:00
|
|
|
|
2017-12-12 10:51:58 -08:00
|
|
|
[Event commands](event_commands.md)
|
2017-12-12 09:18:11 -08:00
|
|
|
|
2017-12-11 19:02:20 -08:00
|
|
|
|
|
|
|
## Text
|
|
|
|
|
2017-12-12 10:51:58 -08:00
|
|
|
[Text commands](text_commands.md)
|
2017-12-12 10:51:07 -08:00
|
|
|
|
|
|
|
|
|
|
|
## Movement data
|
|
|
|
|
2017-12-12 10:51:58 -08:00
|
|
|
[Movement commands](movement_commands.md)
|
2017-12-11 19:02:20 -08:00
|
|
|
|
|
|
|
|
|
|
|
## `MapName_MapEventHeader:`
|
|
|
|
|
|
|
|
; filler
|
|
|
|
db 0, 0
|
|
|
|
|
|
|
|
|
2017-12-11 20:11:58 -08:00
|
|
|
## `.Warps: db` *N*
|
2017-12-11 19:02:20 -08:00
|
|
|
|
2017-12-12 09:18:11 -08:00
|
|
|
- **`warp_def` *y*, *x*, *warp_id*, *map***
|
2017-12-11 19:02:20 -08:00
|
|
|
|
|
|
|
|
2017-12-11 20:11:58 -08:00
|
|
|
## `.XYTriggers: db` *N*
|
2017-12-11 19:02:20 -08:00
|
|
|
|
2017-12-12 09:18:11 -08:00
|
|
|
- **`xy_trigger` *id*, *y*, *x*, `$0`, *script*, `$0`, `$0`**
|
2017-12-11 19:02:20 -08:00
|
|
|
|
|
|
|
|
2017-12-11 20:11:58 -08:00
|
|
|
## `.Signposts: db` *N*
|
2017-12-11 19:02:20 -08:00
|
|
|
|
2017-12-12 09:18:11 -08:00
|
|
|
- `signpost` *y*, *x*, *type*, *script***
|
2017-12-11 19:02:20 -08:00
|
|
|
|
2017-12-12 09:18:11 -08:00
|
|
|
Signpost types:
|
2017-12-11 19:02:20 -08:00
|
|
|
|
|
|
|
- **`SIGNPOST_READ`**
|
|
|
|
|
|
|
|
- **`SIGNPOST_UP/DOWN/LEFT/RIGHT`**
|
|
|
|
|
|
|
|
- **`SIGNPOST_IFSET/IFNOTSET`**
|
|
|
|
|
2017-12-11 20:11:58 -08:00
|
|
|
**`dw` *event_flag*, *script***
|
2017-12-11 19:02:20 -08:00
|
|
|
|
|
|
|
- **`SIGNPOST_ITEM`**
|
|
|
|
|
2017-12-11 20:11:58 -08:00
|
|
|
**`dwb` *event_flag*, *item_id***
|
2017-12-11 19:02:20 -08:00
|
|
|
|
|
|
|
- **`SIGNPOST_COPY`**
|
|
|
|
|
2017-12-11 20:11:58 -08:00
|
|
|
## `.PersonEvents: db` *N*
|
2017-12-11 19:02:20 -08:00
|
|
|
|
2017-12-12 09:18:11 -08:00
|
|
|
- **`person_event` *sprite*, *y*, *x*, *movement*, *ry*, *rx*, *hour*, *daytime*, *palette*, *type*, *range*, *script*, *event_flag***
|
2017-12-11 19:02:20 -08:00
|
|
|
|
2017-12-12 09:18:11 -08:00
|
|
|
Movement types:
|
2017-12-11 19:02:20 -08:00
|
|
|
|
|
|
|
- **`SPRITEMOVEDATA_ITEM_TREE`**
|
|
|
|
|
|
|
|
- **`SPRITEMOVEDATA_WANDER`**
|
|
|
|
|
|
|
|
- **`SPRITEMOVEDATA_SPINRANDOM_SLOW`**
|
|
|
|
|
|
|
|
- **`SPRITEMOVEDATA_WALK_UP_DOWN`**
|
|
|
|
|
|
|
|
- **`SPRITEMOVEDATA_WALK_LEFT_RIGHT`**
|
|
|
|
|
|
|
|
- **`SPRITEMOVEDATA_STANDING_UP/DOWN/LEFT/RIGHT`**
|
|
|
|
|
|
|
|
- **`SPRITEMOVEDATA_SPINRANDOM_FAST`**
|
|
|
|
|
|
|
|
- **`SPRITEMOVEDATA_SNORLAX`**
|
|
|
|
|
|
|
|
- **`SPRITEMOVEDATA_POKEMON`**
|
2017-12-11 18:40:21 -08:00
|
|
|
|
2017-12-11 19:02:20 -08:00
|
|
|
- **`SPRITEMOVEDATA_SUDOWOODO`**
|
2017-12-11 18:40:21 -08:00
|
|
|
|
2017-12-11 19:02:20 -08:00
|
|
|
- **`SPRITEMOVEDATA_SMASHABLE_ROCK`**
|
2017-12-11 18:40:21 -08:00
|
|
|
|
2017-12-11 19:02:20 -08:00
|
|
|
- **`SPRITEMOVEDATA_STRENGTH_BOULDER`**
|
2017-12-11 18:40:21 -08:00
|
|
|
|
2017-12-11 19:02:20 -08:00
|
|
|
- **`SPRITEMOVEDATA_SPINCOUNTERCLOCKWISE`**
|
2017-12-11 18:40:21 -08:00
|
|
|
|
2017-12-11 19:02:20 -08:00
|
|
|
- **`SPRITEMOVEDATA_SPINCLOCKWISE`**
|
2017-12-11 18:40:21 -08:00
|
|
|
|
2017-12-11 19:02:20 -08:00
|
|
|
- **`SPRITEMOVEDATA_BIGDOLL`**
|
2017-12-11 18:40:21 -08:00
|
|
|
|
2017-12-11 19:02:20 -08:00
|
|
|
- **`SPRITEMOVEDATA_LAPRAS`**
|
2017-12-11 18:40:21 -08:00
|
|
|
|
2017-12-12 09:18:11 -08:00
|
|
|
Person types:
|
2017-12-11 18:40:21 -08:00
|
|
|
|
2017-12-11 19:02:20 -08:00
|
|
|
- **`PERSONTYPE_SCRIPT`**
|
2017-12-11 18:40:21 -08:00
|
|
|
|
2017-12-11 19:02:20 -08:00
|
|
|
- **`PERSONTYPE_ITEMBALL`**
|
2017-12-11 18:40:21 -08:00
|
|
|
|
2017-12-11 20:11:58 -08:00
|
|
|
**`itemball` *item_id***
|
2017-12-11 18:40:21 -08:00
|
|
|
|
2017-12-11 19:02:20 -08:00
|
|
|
- **`PERSONTYPE_TRAINER`**
|
2017-12-11 18:40:21 -08:00
|
|
|
|
2017-12-11 20:11:58 -08:00
|
|
|
**`trainer` *event_flag*, *group_id*, *trainer_id*, *seen_text*, *beaten_text*, *loss_text*, *script***
|