diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2019-11-27 16:19:50 -0500 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2019-11-27 16:19:50 -0500 |
commit | e59dc970a60b95f58ee97bae2e30a8c20c01d315 (patch) | |
tree | 38873079693384e5f30a31280fa3f059b1fe380a /Add-a-new-spawn-point.md | |
parent | f3b96ff76fef5c58b45220789d89572f1fedbae2 (diff) |
Cleanup
Diffstat (limited to 'Add-a-new-spawn-point.md')
-rw-r--r-- | Add-a-new-spawn-point.md | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/Add-a-new-spawn-point.md b/Add-a-new-spawn-point.md new file mode 100644 index 0000000..4f088a3 --- /dev/null +++ b/Add-a-new-spawn-point.md @@ -0,0 +1,60 @@ +This tutorial is for how to add a new spawn point for fly. + +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]: + +```diff +; johto + const SPAWN_NEW_BARK + ... + const SPAWN_GOLDENROD ++ const SPAWN_GLOBALTERMINAL` +``` + +Then edit [data/maps/spawn_points.asm]: + +```diff +SpawnPoints: + + ... + spawn GOLDENROD_CITY, 15, 28 ++ spawn GLOBAL_TERMINAL_OUTSIDE, 8, 10 +``` + +Then edit [data/maps/flypoints.asm] + +```diff +Flypoints: + +... +; Johto + ... + flypoint GOLDENROD, GOLDENROD_CITY ++ flypoint GLOBALTERMINAL, GLOBAL_TERMINAL` +``` + +Then edit [constants/engine_flags.asm] + +```diff +... +; wVisitedSpawns + const ENGINE_FLYPOINT_GOLDENROD ++ const ENGINE_FLYPOINT_GLOBALTERMINAL` +``` + +Then edit [maps/GlobalTerminalOutSide.asm] + +```diff +... +GlobalTerminalOutside_MapScripts: + db 0 ; scene scripts ++ db 1 ; callbacks ++ callback MAPCALLBACK_NEWMAP, .Flypoint + ++ .Flypoint: ++ setflag ENGINE_FLYPOINT_GLOBALTERMINAL ++ return` +``` + +Then compile your project and you're done
\ No newline at end of file |