diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2019-10-21 16:46:58 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2019-10-21 16:46:58 -0400 |
commit | 7e0956f459779c1d756e56f8c0839e5a21d875be (patch) | |
tree | 171a0162f10bc519fbc850f538577704b4509695 | |
parent | ab1ece13ccef6f8404cc7f6a838eb192550ec27d (diff) |
SEAGALLOP constants in event scripts
-rw-r--r-- | data/event_scripts.s | 30 | ||||
-rw-r--r-- | data/maps/BirthIsland_Harbor/scripts.inc | 18 | ||||
-rw-r--r-- | data/maps/CinnabarIsland/scripts.inc | 4 | ||||
-rw-r--r-- | data/maps/FiveIsland_Harbor/scripts.inc | 2 | ||||
-rw-r--r-- | data/maps/FourIsland_Harbor/scripts.inc | 2 | ||||
-rw-r--r-- | data/maps/NavelRock_Harbor/scripts.inc | 17 | ||||
-rw-r--r-- | data/maps/OneIsland_Harbor/scripts.inc | 2 | ||||
-rw-r--r-- | data/maps/SevenIsland_Harbor/scripts.inc | 2 | ||||
-rw-r--r-- | data/maps/SixIsland_Harbor/scripts.inc | 2 | ||||
-rw-r--r-- | data/maps/ThreeIsland_Harbor/scripts.inc | 2 | ||||
-rw-r--r-- | data/maps/TwoIsland_Harbor/scripts.inc | 2 | ||||
-rw-r--r-- | data/maps/VermilionCity/scripts.inc | 16 | ||||
-rw-r--r-- | include/constants/seagallop.h | 16 | ||||
-rw-r--r-- | include/seagallop.h | 15 |
14 files changed, 67 insertions, 63 deletions
diff --git a/data/event_scripts.s b/data/event_scripts.s index 985a13475..152742a16 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -14,6 +14,7 @@ #include "constants/trainers.h" #include "constants/map_objects.h" #include "constants/fame_checker.h" +#include "constants/seagallop.h" .include "asm/macros.inc" .include "asm/macros/event.inc" .set FALSE, 0 @@ -250,6 +251,7 @@ gStdScriptsEnd:: .include "data/maps/BirthIsland_Exterior/scripts.inc" .include "data/maps/OneIsland_KindleRoad_EmberSpa/scripts.inc" .include "data/maps/BirthIsland_Harbor/scripts.inc" + .include "data/maps/NavelRock_Harbor/scripts.inc" .include "data/maps/PalletTown/scripts.inc" .include "data/maps/ViridianCity/scripts.inc" .include "data/maps/PewterCity/scripts.inc" @@ -4198,22 +4200,22 @@ EventScript_1A8FA1:: @ 81A8FA1 end EventScript_1A8FE3:: @ 81A8FE3 - setvar VAR_0x8006, 0 + setvar VAR_0x8006, SEAGALLOP_VERMILION_CITY goto EventScript_1A909E end EventScript_1A8FEE:: @ 81A8FEE - setvar VAR_0x8006, 1 + setvar VAR_0x8006, SEAGALLOP_ONE_ISLAND goto EventScript_1A909E end EventScript_1A8FF9:: @ 81A8FF9 - setvar VAR_0x8006, 2 + setvar VAR_0x8006, SEAGALLOP_TWO_ISLAND goto EventScript_1A909E end EventScript_1A9004:: @ 81A9004 - setvar VAR_0x8006, 3 + setvar VAR_0x8006, SEAGALLOP_THREE_ISLAND goto EventScript_1A909E end @@ -4243,9 +4245,9 @@ EventScript_1A905C:: @ 81A905C EventScript_1A909E:: @ 81A909E specialvar VAR_RESULT, sub_8147500 getnumberstring 0, VAR_RESULT - compare_var_to_value VAR_0x8004, 0 + compare_var_to_value VAR_0x8004, SEAGALLOP_VERMILION_CITY goto_if eq, EventScript_1A90BE - compare_var_to_value VAR_0x8004, 0 + compare_var_to_value VAR_0x8004, SEAGALLOP_VERMILION_CITY goto_if ne, EventScript_1A90CC end @@ -4320,42 +4322,42 @@ EventScript_1A917F:: @ 81A917F end EventScript_1A91D5:: @ 81A91D5 - setvar VAR_0x8006, 0 + setvar VAR_0x8006, SEAGALLOP_VERMILION_CITY goto EventScript_1A909E end EventScript_1A91E0:: @ 81A91E0 - setvar VAR_0x8006, 1 + setvar VAR_0x8006, SEAGALLOP_ONE_ISLAND goto EventScript_1A909E end EventScript_1A91EB:: @ 81A91EB - setvar VAR_0x8006, 2 + setvar VAR_0x8006, SEAGALLOP_TWO_ISLAND goto EventScript_1A909E end EventScript_1A91F6:: @ 81A91F6 - setvar VAR_0x8006, 3 + setvar VAR_0x8006, SEAGALLOP_THREE_ISLAND goto EventScript_1A909E end EventScript_1A9201:: @ 81A9201 - setvar VAR_0x8006, 4 + setvar VAR_0x8006, SEAGALLOP_FOUR_ISLAND goto EventScript_1A909E end EventScript_1A920C:: @ 81A920C - setvar VAR_0x8006, 5 + setvar VAR_0x8006, SEAGALLOP_FIVE_ISLAND goto EventScript_1A909E end EventScript_1A9217:: @ 81A9217 - setvar VAR_0x8006, 6 + setvar VAR_0x8006, SEAGALLOP_SIX_ISLAND goto EventScript_1A909E end EventScript_1A9222:: @ 81A9222 - setvar VAR_0x8006, 7 + setvar VAR_0x8006, SEAGALLOP_SEVEN_ISLAND goto EventScript_1A909E end diff --git a/data/maps/BirthIsland_Harbor/scripts.inc b/data/maps/BirthIsland_Harbor/scripts.inc index 487cae2f1..ea213a771 100644 --- a/data/maps/BirthIsland_Harbor/scripts.inc +++ b/data/maps/BirthIsland_Harbor/scripts.inc @@ -6,23 +6,7 @@ BirthIsland_Harbor_EventScript_1653E7:: @ 81653E7 faceplayer message Text_181726 waitmessage - setvar VAR_0x8004, 10 - multichoice 20, 8, 61, 0 - switch VAR_RESULT - case 0, EventScript_1A91D5 - case 1, EventScript_1A90F6 - case 127, EventScript_1A90F6 - end - -NavelRock_Harbor_MapScripts:: @ 8165420 - .byte 0 - -NavelRock_Harbor_EventScript_165421:: @ 8165421 - lock - faceplayer - message Text_181726 - waitmessage - setvar VAR_0x8004, 9 + setvar VAR_0x8004, SEAGALLOP_BIRTH_ISLAND multichoice 20, 8, 61, 0 switch VAR_RESULT case 0, EventScript_1A91D5 diff --git a/data/maps/CinnabarIsland/scripts.inc b/data/maps/CinnabarIsland/scripts.inc index 504b79cae..2ebce51b7 100644 --- a/data/maps/CinnabarIsland/scripts.inc +++ b/data/maps/CinnabarIsland/scripts.inc @@ -219,8 +219,8 @@ EventScript_1670E6:: @ 81670E6 delay 40 setflag FLAG_HIDE_CINNABAR_SEAGALLOP setvar VAR_MAP_SCENE_ONE_ISLAND_HARBOR, 1 - setvar VAR_0x8004, 8 - setvar VAR_0x8006, 1 + setvar VAR_0x8004, SEAGALLOP_CINNABAR_ISLAND + setvar VAR_0x8006, SEAGALLOP_ONE_ISLAND goto EventScript_1A90DA end diff --git a/data/maps/FiveIsland_Harbor/scripts.inc b/data/maps/FiveIsland_Harbor/scripts.inc index f5d12f8a4..9ab26aa3a 100644 --- a/data/maps/FiveIsland_Harbor/scripts.inc +++ b/data/maps/FiveIsland_Harbor/scripts.inc @@ -6,6 +6,6 @@ FiveIsland_Harbor_EventScript_171D43:: @ 8171D43 faceplayer message Text_181726 waitmessage - setvar VAR_0x8004, 5 + setvar VAR_0x8004, SEAGALLOP_FIVE_ISLAND goto EventScript_1A900F end diff --git a/data/maps/FourIsland_Harbor/scripts.inc b/data/maps/FourIsland_Harbor/scripts.inc index 2c7fce02f..b9c632972 100644 --- a/data/maps/FourIsland_Harbor/scripts.inc +++ b/data/maps/FourIsland_Harbor/scripts.inc @@ -6,6 +6,6 @@ FourIsland_Harbor_EventScript_171C99:: @ 8171C99 faceplayer message Text_181726 waitmessage - setvar VAR_0x8004, 4 + setvar VAR_0x8004, SEAGALLOP_FOUR_ISLAND goto EventScript_1A900F end diff --git a/data/maps/NavelRock_Harbor/scripts.inc b/data/maps/NavelRock_Harbor/scripts.inc index 6e630ca01..8cb8dd796 100644 --- a/data/maps/NavelRock_Harbor/scripts.inc +++ b/data/maps/NavelRock_Harbor/scripts.inc @@ -1 +1,16 @@ -@ .include "data/maps/NavelRock_Harbor/scripts.inc" + +NavelRock_Harbor_MapScripts:: @ 8165420 + .byte 0 + +NavelRock_Harbor_EventScript_165421:: @ 8165421 + lock + faceplayer + message Text_181726 + waitmessage + setvar VAR_0x8004, SEAGALLOP_NAVEL_ROCK + multichoice 20, 8, 61, 0 + switch VAR_RESULT + case 0, EventScript_1A91D5 + case 1, EventScript_1A90F6 + case 127, EventScript_1A90F6 + end diff --git a/data/maps/OneIsland_Harbor/scripts.inc b/data/maps/OneIsland_Harbor/scripts.inc index 44c18ff60..75e74dad7 100644 --- a/data/maps/OneIsland_Harbor/scripts.inc +++ b/data/maps/OneIsland_Harbor/scripts.inc @@ -37,6 +37,6 @@ OneIsland_Harbor_EventScript_1713BD:: @ 81713BD faceplayer message Text_181726 waitmessage - setvar VAR_0x8004, 1 + setvar VAR_0x8004, SEAGALLOP_ONE_ISLAND goto EventScript_1A8EC5 end diff --git a/data/maps/SevenIsland_Harbor/scripts.inc b/data/maps/SevenIsland_Harbor/scripts.inc index c4777e1ac..8fa30cfa5 100644 --- a/data/maps/SevenIsland_Harbor/scripts.inc +++ b/data/maps/SevenIsland_Harbor/scripts.inc @@ -6,6 +6,6 @@ SevenIsland_Harbor_EventScript_170BE5:: @ 8170BE5 faceplayer message Text_181726 waitmessage - setvar VAR_0x8004, 7 + setvar VAR_0x8004, SEAGALLOP_SEVEN_ISLAND goto EventScript_1A900F end diff --git a/data/maps/SixIsland_Harbor/scripts.inc b/data/maps/SixIsland_Harbor/scripts.inc index 1e4e34a16..0730e3b72 100644 --- a/data/maps/SixIsland_Harbor/scripts.inc +++ b/data/maps/SixIsland_Harbor/scripts.inc @@ -6,6 +6,6 @@ SixIsland_Harbor_EventScript_171E48:: @ 8171E48 faceplayer message Text_181726 waitmessage - setvar VAR_0x8004, 6 + setvar VAR_0x8004, SEAGALLOP_SIX_ISLAND goto EventScript_1A900F end diff --git a/data/maps/ThreeIsland_Harbor/scripts.inc b/data/maps/ThreeIsland_Harbor/scripts.inc index 3678385c0..9fd44c116 100644 --- a/data/maps/ThreeIsland_Harbor/scripts.inc +++ b/data/maps/ThreeIsland_Harbor/scripts.inc @@ -6,6 +6,6 @@ ThreeIsland_Harbor_EventScript_171EAA:: @ 8171EAA faceplayer message Text_181726 waitmessage - setvar VAR_0x8004, 3 + setvar VAR_0x8004, SEAGALLOP_THREE_ISLAND goto EventScript_1A900F end diff --git a/data/maps/TwoIsland_Harbor/scripts.inc b/data/maps/TwoIsland_Harbor/scripts.inc index 0fd4e9789..919239a0b 100644 --- a/data/maps/TwoIsland_Harbor/scripts.inc +++ b/data/maps/TwoIsland_Harbor/scripts.inc @@ -6,6 +6,6 @@ TwoIsland_Harbor_EventScript_171806:: @ 8171806 faceplayer message Text_181726 waitmessage - setvar VAR_0x8004, 2 + setvar VAR_0x8004, SEAGALLOP_TWO_ISLAND goto EventScript_1A8F54 end diff --git a/data/maps/VermilionCity/scripts.inc b/data/maps/VermilionCity/scripts.inc index 23631777c..d1d312add 100644 --- a/data/maps/VermilionCity/scripts.inc +++ b/data/maps/VermilionCity/scripts.inc @@ -76,7 +76,7 @@ EventScript_166977:: @ 8166977 end EventScript_166996:: @ 8166996 - setvar VAR_0x8004, 0 + setvar VAR_0x8004, SEAGALLOP_VERMILION_CITY compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 5 goto_if ge, EventScript_1669BB compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 1 @@ -96,7 +96,7 @@ EventScript_1669BB:: @ 81669BB call EventScript_166977 compare_var_to_value VAR_RESULT, 1 goto_if eq, EventScript_166A5F - setvar VAR_0x8004, 0 + setvar VAR_0x8004, SEAGALLOP_VERMILION_CITY message Text_17FBB8 waitmessage goto EventScript_1A911E @@ -159,22 +159,22 @@ EventScript_166AB1:: @ 8166AB1 EventScript_166B0B:: @ 8166B0B msgbox gUnknown_817FCEC - setvar VAR_0x8004, 0 - setvar VAR_0x8006, 9 + setvar VAR_0x8004, SEAGALLOP_VERMILION_CITY + setvar VAR_0x8006, SEAGALLOP_NAVEL_ROCK goto EventScript_1A90DA end EventScript_166B23:: @ 8166B23 msgbox gUnknown_817FD5F - setvar VAR_0x8004, 0 - setvar VAR_0x8006, 10 + setvar VAR_0x8004, SEAGALLOP_VERMILION_CITY + setvar VAR_0x8006, SEAGALLOP_BIRTH_ISLAND goto EventScript_1A90DA end EventScript_166B3B:: @ 8166B3B message Text_17FB23 waitmessage - setvar VAR_0x8004, 0 + setvar VAR_0x8004, SEAGALLOP_VERMILION_CITY multichoice 19, 5, 57, 0 switch VAR_RESULT case 0, EventScript_1A8FEE @@ -226,7 +226,7 @@ EventScript_166BDE:: @ 8166BDE end EventScript_166BED:: @ 8166BED - setvar VAR_0x8004, 0 + setvar VAR_0x8004, SEAGALLOP_VERMILION_CITY compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 5 goto_if ge, EventScript_1669BB compare_var_to_value VAR_MAP_SCENE_ONE_ISLAND_POKEMON_CENTER_1F, 1 diff --git a/include/constants/seagallop.h b/include/constants/seagallop.h new file mode 100644 index 000000000..eff4eb7a5 --- /dev/null +++ b/include/constants/seagallop.h @@ -0,0 +1,16 @@ +#ifndef GUARD_CONSTANTS_SEAGALLOP_H +#define GUARD_CONSTANTS_SEAGALLOP_H + +#define SEAGALLOP_VERMILION_CITY 0 +#define SEAGALLOP_ONE_ISLAND 1 +#define SEAGALLOP_TWO_ISLAND 2 +#define SEAGALLOP_THREE_ISLAND 3 +#define SEAGALLOP_FOUR_ISLAND 4 +#define SEAGALLOP_FIVE_ISLAND 5 +#define SEAGALLOP_SIX_ISLAND 6 +#define SEAGALLOP_SEVEN_ISLAND 7 +#define SEAGALLOP_CINNABAR_ISLAND 8 +#define SEAGALLOP_NAVEL_ROCK 9 +#define SEAGALLOP_BIRTH_ISLAND 10 + +#endif //GUARD_CONSTANTS_SEAGALLOP_H diff --git a/include/seagallop.h b/include/seagallop.h index cce6da8ff..a8eaa6c88 100644 --- a/include/seagallop.h +++ b/include/seagallop.h @@ -1,20 +1,7 @@ #ifndef GUARD_SEAGALLOP_H #define GUARD_SEAGALLOP_H -enum SeaGallopDestinations -{ - SEAGALLOP_VERMILION_CITY, - SEAGALLOP_ONE_ISLAND, - SEAGALLOP_TWO_ISLAND, - SEAGALLOP_THREE_ISLAND, - SEAGALLOP_FOUR_ISLAND, - SEAGALLOP_FIVE_ISLAND, - SEAGALLOP_SIX_ISLAND, - SEAGALLOP_SEVEN_ISLAND, - SEAGALLOP_CINNABAR_ISLAND, - SEAGALLOP_NAVEL_ROCK, - SEAGALLOP_BIRTH_ISLAND -}; +#include "constants/seagallop.h" void ScrSpecial_SeaGallopFerry(void); |