diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2018-05-18 21:53:26 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2018-05-18 21:53:26 -0400 |
commit | fadd619390ce6a97282122196b1de8481a2d6587 (patch) | |
tree | 7c409f2f0f0d79a287ce758adf6fac8b078623b8 | |
parent | ba1b02324c4dfc1d3811f4a7749f9b91388901c9 (diff) |
Cross-connection NPCs
-rw-r--r-- | Add-a-new-map.md | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Add-a-new-map.md b/Add-a-new-map.md index 0636cf0..920ab78 100644 --- a/Add-a-new-map.md +++ b/Add-a-new-map.md @@ -345,7 +345,8 @@ Create **maps/GlobalTerminalOutside.asm**: + + db 0 ; bg events + -+ db 0 ; object events ++ db 1 ; object events ++ object_event 24, 16, SPRITE_ROCKET, SPRITEMOVEDATA_STANDING_UP, 0, 0, -1, -1, 0, OBJECTTYPE_SCRIPT, 0, GoldenrodCityRocketScoutScript, EVENT_GOLDENROD_CITY_ROCKET_SCOUT ``` And create **maps/GlobalTerminal1F.asm**: @@ -374,9 +375,11 @@ And create **maps/GlobalTerminal1F.asm**: The only events defined so far are warps, so you can use the doors into and out of the Global Terminal building. (Their coordinates can be found with Polished Map's "Event Cursor" tool.) +(There's also one `object_event` in GlobalTerminalOutside.asm: a Team Rocket scout copied from GoldenrodCity.asm with only the coordinates changed. That NPC is close enough to the west edge of Goldenrod that it can be seen while you're standing in the Global Terminal map. But NPCs on connected maps aren't visible, so a copy had to be made.) + Writing event scripts is beyond the scope of this tutorial, but you can refer to [docs/map_event_scripts.md](../blob/master/docs/map_event_scripts.md) and [docs/event_commands.md](../blob/master/docs/event_commands.md) for help, and of course use existing map scripts for reference. -You'll probably want a variety of NPCs in the Global Terminal, some from regions beyond Johto and Kanto, maybe with unique items and Pokémon to trade. It's a tall building, with room for more floors than just the one in this example. +You'll probably want a variety of NPCs in the Global Terminal, some from regions beyond Johto and Kanto, maybe with unique items and Pokémon to trade. It's a tall building, with room for more floors than just the one in this example. Or, of course, design your own map. :P ## 8. Include the block and script data |