diff options
author | Chikorita Lover <cjgardels@gmail.com> | 2021-09-09 21:06:54 -0500 |
---|---|---|
committer | Chikorita Lover <cjgardels@gmail.com> | 2021-09-09 21:06:54 -0500 |
commit | 346a94952fae0f4052f10981a32690386fffda85 (patch) | |
tree | 7c9b63b93ddd90570c39a8c830442c1450ee57de | |
parent | f376b39d6afbe4154daf86cde0623cdd8777b305 (diff) |
Greatly revamp wording, provide more details, and format file mentions (could use more details, ofc)
-rw-r--r-- | Add-a-new-spawn-point.md | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Add-a-new-spawn-point.md b/Add-a-new-spawn-point.md index 81ea632..d0baba4 100644 --- a/Add-a-new-spawn-point.md +++ b/Add-a-new-spawn-point.md @@ -1,8 +1,6 @@ -This tutorial is for how to add a new spawn point for fly. +This tutorial is for how to add a new spawn point for Fly, Teleport, whiting out, etc. We will continue off of the Global Terminal map we created in the [map and landmark tutorial](https://github.com/pret/pokecrystal/wiki/Add-a-new-map-and-landmark). -After successfully achieved the "[Add a new map and landmark](https://github.com/pret/pokecrystal/wiki/Add-a-new-map-and-landmark)" tutorial, - -Simply edit [constants/map_data_constants.asm]: +First, define a new constant in [constants/map_data_constants.asm](../blob/master/constants/map_data_constants.asm): ```diff ; johto @@ -12,7 +10,7 @@ Simply edit [constants/map_data_constants.asm]: + const SPAWN_GLOBALTERMINAL ``` -Then edit [data/maps/spawn_points.asm]: +Then, edit [data/maps/spawn_points.asm](../blob/master/data/maps/spawn_points.asm): ```diff SpawnPoints: @@ -22,7 +20,9 @@ SpawnPoints: + spawn GLOBAL_TERMINAL_OUTSIDE, 8, 10 ``` -Then edit [data/maps/flypoints.asm] +The first value is the map to spawn at, and the latter two values are the coordinates of the spawn point. This is similar to map objects, warps, etc. + +Next, edit [data/maps/flypoints.asm](../blob/master/data/maps/flypoints.asm): ```diff Flypoints: @@ -34,7 +34,7 @@ Flypoints: + flypoint GLOBALTERMINAL, GLOBAL_TERMINAL ``` -Then edit [constants/engine_flags.asm] +Then, modify [constants/engine_flags.asm](../blob/master/constants/engine_flags.asm): ```diff ... @@ -43,7 +43,7 @@ Then edit [constants/engine_flags.asm] + const ENGINE_FLYPOINT_GLOBALTERMINAL ``` -Then edit [data/engine_flags.asm] +Next, modify [data/engine_flags.asm](../blob/master/data/engine_flags.asm): ```diff EngineFlags: @@ -54,7 +54,7 @@ EngineFlags: + engine_flag wVisitedSpawns, SPAWN_GLOBALTERMINAL ``` -Then edit [maps/GlobalTerminalOutSide.asm] +Finally, edit **maps/GlobalTerminalOutside.asm**: ```diff ... @@ -66,4 +66,4 @@ Then edit [maps/GlobalTerminalOutSide.asm] + return ``` -Then compile your project and you're done +These last three changes allow the player to fly to the Global Terminal after they reach it on foot.
\ No newline at end of file |