summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--asm/macros/event.inc14
-rw-r--r--data-de/event_scripts.s544
-rw-r--r--data-de/field_move_scripts.inc56
-rw-r--r--data/event_scripts.s426
-rw-r--r--data/field_move_scripts.inc36
-rw-r--r--data/scripts/berry_tree.inc24
-rw-r--r--data/scripts/cable_club.inc106
-rw-r--r--data/scripts/contest_hall.inc216
-rw-r--r--data/scripts/day_care.inc56
-rw-r--r--data/scripts/gabby_and_ty.inc22
-rw-r--r--data/scripts/magma_chimney.inc12
-rw-r--r--data/scripts/maps/AbandonedShip_CaptainsOffice.inc6
-rw-r--r--data/scripts/maps/AbandonedShip_Corridors_B1F.inc8
-rw-r--r--data/scripts/maps/AbandonedShip_HiddenFloorCorridors.inc32
-rw-r--r--data/scripts/maps/AbandonedShip_HiddenFloorRooms.inc16
-rw-r--r--data/scripts/maps/AbandonedShip_Rooms2_1F.inc4
-rw-r--r--data/scripts/maps/AncientTomb.inc6
-rw-r--r--data/scripts/maps/AquaHideout_1F.inc4
-rw-r--r--data/scripts/maps/AquaHideout_B1F.inc2
-rw-r--r--data/scripts/maps/BattleTower_Corridor.inc4
-rw-r--r--data/scripts/maps/BattleTower_Lobby.inc38
-rw-r--r--data/scripts/maps/BattleTower_Outside.inc6
-rw-r--r--data/scripts/maps/CaveOfOrigin_1F.inc2
-rw-r--r--data/scripts/maps/CaveOfOrigin_B1F.inc2
-rw-r--r--data/scripts/maps/CaveOfOrigin_B2F.inc2
-rw-r--r--data/scripts/maps/CaveOfOrigin_B3F.inc2
-rw-r--r--data/scripts/maps/CaveOfOrigin_B4F.inc6
-rw-r--r--data/scripts/maps/DesertRuins.inc6
-rw-r--r--data/scripts/maps/DewfordTown.inc28
-rw-r--r--data/scripts/maps/DewfordTown_Gym.inc34
-rw-r--r--data/scripts/maps/DewfordTown_Hall.inc26
-rw-r--r--data/scripts/maps/DewfordTown_House2.inc4
-rw-r--r--data/scripts/maps/EverGrandeCity.inc2
-rw-r--r--data/scripts/maps/EverGrandeCity_ChampionsRoom.inc12
-rw-r--r--data/scripts/maps/EverGrandeCity_DrakesRoom.inc6
-rw-r--r--data/scripts/maps/EverGrandeCity_GlaciasRoom.inc6
-rw-r--r--data/scripts/maps/EverGrandeCity_HallOfFame.inc4
-rw-r--r--data/scripts/maps/EverGrandeCity_PhoebesRoom.inc6
-rw-r--r--data/scripts/maps/EverGrandeCity_PokemonLeague.inc10
-rw-r--r--data/scripts/maps/EverGrandeCity_SidneysRoom.inc6
-rw-r--r--data/scripts/maps/FallarborTown.inc2
-rw-r--r--data/scripts/maps/FallarborTown_ContestLobby.inc2
-rw-r--r--data/scripts/maps/FallarborTown_House1.inc16
-rw-r--r--data/scripts/maps/FallarborTown_House2.inc12
-rw-r--r--data/scripts/maps/FortreeCity.inc6
-rw-r--r--data/scripts/maps/FortreeCity_Gym.inc10
-rw-r--r--data/scripts/maps/FortreeCity_House1.inc8
-rw-r--r--data/scripts/maps/FortreeCity_House2.inc6
-rw-r--r--data/scripts/maps/FortreeCity_House4.inc8
-rw-r--r--data/scripts/maps/GraniteCave_1F.inc2
-rw-r--r--data/scripts/maps/GraniteCave_StevensRoom.inc10
-rw-r--r--data/scripts/maps/InsideOfTruck.inc4
-rw-r--r--data/scripts/maps/IslandCave.inc8
-rw-r--r--data/scripts/maps/JaggedPass.inc6
-rw-r--r--data/scripts/maps/LavaridgeTown.inc56
-rw-r--r--data/scripts/maps/LavaridgeTown_Gym_1F.inc32
-rw-r--r--data/scripts/maps/LavaridgeTown_HerbShop.inc4
-rw-r--r--data/scripts/maps/LilycoveCity.inc56
-rw-r--r--data/scripts/maps/LilycoveCity_ContestLobby.inc52
-rw-r--r--data/scripts/maps/LilycoveCity_CoveLilyMotel_1F.inc4
-rw-r--r--data/scripts/maps/LilycoveCity_CoveLilyMotel_2F.inc6
-rw-r--r--data/scripts/maps/LilycoveCity_DepartmentStoreElevator.inc12
-rw-r--r--data/scripts/maps/LilycoveCity_DepartmentStoreRooftop.inc30
-rw-r--r--data/scripts/maps/LilycoveCity_DepartmentStore_1F.inc24
-rw-r--r--data/scripts/maps/LilycoveCity_Harbor.inc26
-rw-r--r--data/scripts/maps/LilycoveCity_House2.inc4
-rw-r--r--data/scripts/maps/LilycoveCity_House3.inc2
-rw-r--r--data/scripts/maps/LilycoveCity_LilycoveMuseum_1F.inc8
-rw-r--r--data/scripts/maps/LilycoveCity_LilycoveMuseum_2F.inc24
-rw-r--r--data/scripts/maps/LilycoveCity_MoveDeletersHouse.inc8
-rw-r--r--data/scripts/maps/LilycoveCity_PokemonCenter_1F.inc2
-rw-r--r--data/scripts/maps/LilycoveCity_PokemonTrainerFanClub.inc76
-rw-r--r--data/scripts/maps/LittlerootTown.inc102
-rw-r--r--data/scripts/maps/LittlerootTown_BrendansHouse_1F.inc12
-rw-r--r--data/scripts/maps/LittlerootTown_BrendansHouse_2F.inc14
-rw-r--r--data/scripts/maps/LittlerootTown_MaysHouse_1F.inc22
-rw-r--r--data/scripts/maps/LittlerootTown_MaysHouse_2F.inc36
-rw-r--r--data/scripts/maps/LittlerootTown_ProfessorBirchsLab.inc32
-rw-r--r--data/scripts/maps/MagmaHideout_B1F.inc2
-rw-r--r--data/scripts/maps/MauvilleCity.inc20
-rw-r--r--data/scripts/maps/MauvilleCity_BikeShop.inc20
-rw-r--r--data/scripts/maps/MauvilleCity_GameCorner.inc90
-rw-r--r--data/scripts/maps/MauvilleCity_Gym.inc34
-rw-r--r--data/scripts/maps/MauvilleCity_House1.inc2
-rw-r--r--data/scripts/maps/MauvilleCity_House2.inc8
-rw-r--r--data/scripts/maps/MeteorFalls_1F_1R.inc2
-rw-r--r--data/scripts/maps/MeteorFalls_1F_2R.inc6
-rw-r--r--data/scripts/maps/MossdeepCity.inc8
-rw-r--r--data/scripts/maps/MossdeepCity_GameCorner_1F.inc28
-rw-r--r--data/scripts/maps/MossdeepCity_GameCorner_B1F.inc6
-rw-r--r--data/scripts/maps/MossdeepCity_Gym.inc26
-rw-r--r--data/scripts/maps/MossdeepCity_House1.inc2
-rw-r--r--data/scripts/maps/MossdeepCity_House2.inc4
-rw-r--r--data/scripts/maps/MossdeepCity_House3.inc4
-rw-r--r--data/scripts/maps/MossdeepCity_House4.inc4
-rw-r--r--data/scripts/maps/MossdeepCity_SpaceCenter_1F.inc8
-rw-r--r--data/scripts/maps/MossdeepCity_StevensHouse.inc12
-rw-r--r--data/scripts/maps/MtChimney.inc16
-rw-r--r--data/scripts/maps/MtChimney_CableCarStation.inc6
-rw-r--r--data/scripts/maps/MtPyre_1F.inc4
-rw-r--r--data/scripts/maps/MtPyre_6F.inc2
-rw-r--r--data/scripts/maps/MtPyre_Exterior.inc2
-rw-r--r--data/scripts/maps/MtPyre_Summit.inc42
-rw-r--r--data/scripts/maps/NewMauville_Entrance.inc6
-rw-r--r--data/scripts/maps/NewMauville_Inside.inc10
-rw-r--r--data/scripts/maps/OldaleTown.inc18
-rw-r--r--data/scripts/maps/OldaleTown_Mart.inc4
-rw-r--r--data/scripts/maps/OldaleTown_PokemonCenter_1F.inc2
-rw-r--r--data/scripts/maps/PacifidlogTown_House2.inc18
-rw-r--r--data/scripts/maps/PacifidlogTown_House3.inc8
-rw-r--r--data/scripts/maps/PacifidlogTown_House4.inc4
-rw-r--r--data/scripts/maps/PacifidlogTown_House5.inc2
-rw-r--r--data/scripts/maps/PetalburgCity.inc20
-rw-r--r--data/scripts/maps/PetalburgCity_Gym.inc230
-rw-r--r--data/scripts/maps/PetalburgCity_Mart.inc2
-rw-r--r--data/scripts/maps/PetalburgCity_PokemonCenter_1F.inc8
-rw-r--r--data/scripts/maps/PetalburgCity_WallysHouse.inc14
-rw-r--r--data/scripts/maps/PetalburgWoods.inc8
-rw-r--r--data/scripts/maps/Route102.inc2
-rw-r--r--data/scripts/maps/Route103.inc10
-rw-r--r--data/scripts/maps/Route104.inc26
-rw-r--r--data/scripts/maps/Route104_MrBrineysHouse.inc16
-rw-r--r--data/scripts/maps/Route104_PrettyPetalFlowerShop.inc22
-rw-r--r--data/scripts/maps/Route104_Prototype.inc28
-rw-r--r--data/scripts/maps/Route105.inc2
-rw-r--r--data/scripts/maps/Route106.inc2
-rw-r--r--data/scripts/maps/Route107.inc2
-rw-r--r--data/scripts/maps/Route109.inc12
-rw-r--r--data/scripts/maps/Route109_SeashoreHouse.inc20
-rw-r--r--data/scripts/maps/Route110.inc42
-rw-r--r--data/scripts/maps/Route110_SeasideCyclingRoadNorthEntrance.inc8
-rw-r--r--data/scripts/maps/Route110_SeasideCyclingRoadSouthEntrance.inc2
-rw-r--r--data/scripts/maps/Route110_TrickHouseEnd.inc26
-rw-r--r--data/scripts/maps/Route110_TrickHouseEntrance.inc134
-rw-r--r--data/scripts/maps/Route110_TrickHousePuzzle1.inc4
-rw-r--r--data/scripts/maps/Route110_TrickHousePuzzle2.inc10
-rw-r--r--data/scripts/maps/Route110_TrickHousePuzzle3.inc42
-rw-r--r--data/scripts/maps/Route110_TrickHousePuzzle4.inc2
-rw-r--r--data/scripts/maps/Route110_TrickHousePuzzle5.inc102
-rw-r--r--data/scripts/maps/Route110_TrickHousePuzzle6.inc2
-rw-r--r--data/scripts/maps/Route110_TrickHousePuzzle7.inc56
-rw-r--r--data/scripts/maps/Route110_TrickHousePuzzle8.inc2
-rw-r--r--data/scripts/maps/Route111.inc40
-rw-r--r--data/scripts/maps/Route111_OldLadysRestStop.inc8
-rw-r--r--data/scripts/maps/Route111_WinstrateFamilysHouse.inc6
-rw-r--r--data/scripts/maps/Route112.inc2
-rw-r--r--data/scripts/maps/Route112_CableCarStation.inc6
-rw-r--r--data/scripts/maps/Route113.inc8
-rw-r--r--data/scripts/maps/Route113_GlassWorkshop.inc52
-rw-r--r--data/scripts/maps/Route114.inc12
-rw-r--r--data/scripts/maps/Route114_FossilManiacsHouse.inc4
-rw-r--r--data/scripts/maps/Route114_FossilManiacsTunnel.inc6
-rw-r--r--data/scripts/maps/Route114_LanettesHouse.inc8
-rw-r--r--data/scripts/maps/Route115.inc6
-rw-r--r--data/scripts/maps/Route116.inc36
-rw-r--r--data/scripts/maps/Route116_TunnelersRestHouse.inc2
-rw-r--r--data/scripts/maps/Route117.inc14
-rw-r--r--data/scripts/maps/Route118.inc16
-rw-r--r--data/scripts/maps/Route119.inc36
-rw-r--r--data/scripts/maps/Route119_WeatherInstitute_1F.inc4
-rw-r--r--data/scripts/maps/Route119_WeatherInstitute_2F.inc8
-rw-r--r--data/scripts/maps/Route120.inc52
-rw-r--r--data/scripts/maps/Route121.inc4
-rw-r--r--data/scripts/maps/Route121_SafariZoneEntrance.inc12
-rw-r--r--data/scripts/maps/Route123.inc10
-rw-r--r--data/scripts/maps/Route123_BerryMastersHouse.inc46
-rw-r--r--data/scripts/maps/Route124.inc8
-rw-r--r--data/scripts/maps/Route124_DivingTreasureHuntersHouse.inc22
-rw-r--r--data/scripts/maps/Route125.inc4
-rw-r--r--data/scripts/maps/Route126.inc2
-rw-r--r--data/scripts/maps/Route127.inc2
-rw-r--r--data/scripts/maps/Route128.inc6
-rw-r--r--data/scripts/maps/Route130.inc2
-rw-r--r--data/scripts/maps/Route131.inc2
-rw-r--r--data/scripts/maps/RustboroCity.inc38
-rw-r--r--data/scripts/maps/RustboroCity_CuttersHouse.inc2
-rw-r--r--data/scripts/maps/RustboroCity_DevonCorp_1F.inc18
-rw-r--r--data/scripts/maps/RustboroCity_DevonCorp_2F.inc38
-rw-r--r--data/scripts/maps/RustboroCity_DevonCorp_3F.inc10
-rw-r--r--data/scripts/maps/RustboroCity_Flat2_2F.inc4
-rw-r--r--data/scripts/maps/RustboroCity_Gym.inc12
-rw-r--r--data/scripts/maps/RustboroCity_House1.inc8
-rw-r--r--data/scripts/maps/RustboroCity_Mart.inc4
-rw-r--r--data/scripts/maps/RustboroCity_PokemonSchool.inc8
-rw-r--r--data/scripts/maps/RusturfTunnel.inc26
-rw-r--r--data/scripts/maps/SSTidalCorridor.inc34
-rw-r--r--data/scripts/maps/SSTidalRooms.inc4
-rw-r--r--data/scripts/maps/SafariZone_Southeast.inc6
-rw-r--r--data/scripts/maps/SealedChamber_InnerRoom.inc4
-rw-r--r--data/scripts/maps/SealedChamber_OuterRoom.inc4
-rw-r--r--data/scripts/maps/ShoalCave_LowTideEntranceRoom.inc24
-rw-r--r--data/scripts/maps/ShoalCave_LowTideInnerRoom.inc42
-rw-r--r--data/scripts/maps/ShoalCave_LowTideLowerRoom.inc10
-rw-r--r--data/scripts/maps/ShoalCave_LowTideStairsRoom.inc6
-rw-r--r--data/scripts/maps/SkyPillar_Top.inc2
-rw-r--r--data/scripts/maps/SlateportCity.inc38
-rw-r--r--data/scripts/maps/SlateportCity_ContestHall.inc4
-rw-r--r--data/scripts/maps/SlateportCity_ContestLobby.inc2
-rw-r--r--data/scripts/maps/SlateportCity_Harbor.inc46
-rw-r--r--data/scripts/maps/SlateportCity_House1.inc20
-rw-r--r--data/scripts/maps/SlateportCity_House2.inc2
-rw-r--r--data/scripts/maps/SlateportCity_OceanicMuseum_1F.inc12
-rw-r--r--data/scripts/maps/SlateportCity_OceanicMuseum_2F.inc10
-rw-r--r--data/scripts/maps/SlateportCity_PokemonFanClub.inc50
-rw-r--r--data/scripts/maps/SlateportCity_SternsShipyard_1F.inc8
-rw-r--r--data/scripts/maps/SootopolisCity.inc38
-rw-r--r--data/scripts/maps/SootopolisCity_Gym_1F.inc18
-rw-r--r--data/scripts/maps/SootopolisCity_House1.inc2
-rw-r--r--data/scripts/maps/SootopolisCity_House2.inc4
-rw-r--r--data/scripts/maps/SootopolisCity_House3.inc2
-rw-r--r--data/scripts/maps/SootopolisCity_House6.inc6
-rw-r--r--data/scripts/maps/SootopolisCity_House8.inc20
-rw-r--r--data/scripts/maps/SootopolisCity_Mart.inc8
-rw-r--r--data/scripts/maps/SootopolisCity_PokemonCenter_1F.inc8
-rw-r--r--data/scripts/maps/SouthernIsland_Exterior.inc2
-rw-r--r--data/scripts/maps/SouthernIsland_Interior.inc10
-rw-r--r--data/scripts/maps/Underwater_SeafloorCavern.inc4
-rw-r--r--data/scripts/maps/Underwater_SealedChamber.inc4
-rw-r--r--data/scripts/maps/UnknownMap_25_34.inc18
-rw-r--r--data/scripts/maps/VerdanturfTown.inc4
-rw-r--r--data/scripts/maps/VerdanturfTown_ContestLobby.inc4
-rw-r--r--data/scripts/maps/VerdanturfTown_WandasHouse.inc16
-rw-r--r--data/scripts/maps/VictoryRoad_1F.inc4
-rw-r--r--data/scripts/mauville_man.inc74
-rw-r--r--data/scripts/mystery_event_club.inc18
-rw-r--r--data/scripts/players_house.inc46
-rw-r--r--data/scripts/pokeblocks.inc48
-rw-r--r--data/scripts/safari_zone.inc8
-rw-r--r--data/scripts/secret_power_tm.inc10
-rw-r--r--data/scripts/tv.inc22
230 files changed, 2586 insertions, 2586 deletions
diff --git a/asm/macros/event.inc b/asm/macros/event.inc
index 31103747b..8aff02c04 100644
--- a/asm/macros/event.inc
+++ b/asm/macros/event.inc
@@ -31,21 +31,21 @@
.endm
@ If the result of the last comparison matches condition (see Comparison operators), jumps to destination and continues script execution from there.
- .macro jumpif condition, destination
+ .macro goto_if condition, destination
.byte 0x06
.byte \condition
.4byte \destination
.endm
@ If the result of the last comparison matches condition (see Comparison operators), calls destination.
- .macro callif condition, destination
+ .macro call_if condition, destination
.byte 0x07
.byte \condition
.4byte \destination
.endm
@ Jumps to the standard function at index function.
- .macro jumpstd function
+ .macro gotostd function
.byte 0x08
.byte \function
.endm
@@ -57,7 +57,7 @@
.endm
@ If the result of the last comparison matches condition (see Comparison operators), jumps to the standard function at index function.
- .macro jumpstdif condition, function
+ .macro gotostd_if condition, function
.byte 0x0a
.byte \condition
.byte \function
@@ -1475,8 +1475,8 @@
@ Supplementary
- .macro jumpeq dest
- jumpif 1, \dest
+ .macro goto_if_eq dest
+ goto_if 1, \dest
.endm
.macro switch var
@@ -1485,7 +1485,7 @@
.macro case condition, dest
compare 0x8000, \condition
- jumpeq \dest
+ goto_if_eq \dest
.endm
.macro msgbox text, type=4
diff --git a/data-de/event_scripts.s b/data-de/event_scripts.s
index 114bc4d97..a06371e58 100644
--- a/data-de/event_scripts.s
+++ b/data-de/event_scripts.s
@@ -393,20 +393,20 @@ gUnknown_0815F36C:: @ 815F36C
waittext
waitbutton
playsfx 5
- jump EventScript_15F384
+ goto EventScript_15F384
end
EventScript_15F384:
message UnknownString_81A3A87
waittext
checkflag 268
- jumpeq EventScript_15F3A0
- jump EventScript_15F3E2
+ goto_if_eq EventScript_15F3A0
+ goto EventScript_15F3E2
end
gUnknown_0815F399:: @ 815F399
lockall
- jump EventScript_15F384
+ goto EventScript_15F384
end
EventScript_15F3A0:
@@ -431,7 +431,7 @@ EventScript_15F3E2:
EventScript_15F419:
msgbox UnknownString_81A38FB, 5
compare RESULT, 0
- jumpeq EventScript_15F384
+ goto_if_eq EventScript_15F384
closebutton
special SecretBasePC_PackUp
releaseall
@@ -454,7 +454,7 @@ gUnknown_0815F43A:: @ 815F43A
waittext
waitbutton
playsfx 5
- jump EventScript_15F452
+ goto EventScript_15F452
end
EventScript_15F452:
@@ -471,19 +471,19 @@ EventScript_15F452:
gUnknown_0815F49A:: @ 815F49A
lockall
- jump EventScript_15F452
+ goto EventScript_15F452
end
EventScript_15F4A1:
special sub_80BC56C
compare RESULT, 1
- jumpeq EventScript_15F4E0
+ goto_if_eq EventScript_15F4E0
compare RESULT, 2
- jumpeq EventScript_15F503
+ goto_if_eq EventScript_15F503
special sub_80BC224
msgbox UnknownString_81A3958, 5
compare RESULT, 0
- jumpeq EventScript_15F452
+ goto_if_eq EventScript_15F452
msgbox UnknownString_81A3A22, 3
special sub_80BC5BC
special sub_80C683C
@@ -493,7 +493,7 @@ EventScript_15F4A1:
EventScript_15F4E0:
msgbox UnknownString_81A3982, 5
compare RESULT, 0
- jumpeq EventScript_15F452
+ goto_if_eq EventScript_15F452
msgbox UnknownString_81A3A3A, 3
special sub_80BC5BC
special sub_80C683C
@@ -510,7 +510,7 @@ EventScript_15F503:
EventScript_15F511:
message UnknownString_81A3AA2
waittext
- jump EventScript_15F452
+ goto EventScript_15F452
end
EventScript_15F51D:
@@ -527,13 +527,13 @@ gUnknown_0815F523:: @ 815F523
gUnknown_0815F528:: @ 815F528
special GetShieldToyTVDecorationInfo
compare RESULT, 0
- jumpeq EventScript_15F558
+ goto_if_eq EventScript_15F558
compare RESULT, 1
- jumpeq EventScript_15F561
+ goto_if_eq EventScript_15F561
compare RESULT, 2
- jumpeq EventScript_15F56A
+ goto_if_eq EventScript_15F56A
compare RESULT, 3
- jumpeq EventScript_15F573
+ goto_if_eq EventScript_15F573
end
EventScript_15F558:
@@ -934,7 +934,7 @@ gUnknown_0819F80B:: @ 819F80B
special PlayTrainerEncounterMusic
special ScrSpecial_EndTrainerApproach
waitstate
- jump EventScript_19F8F2
+ goto EventScript_19F8F2
gUnknown_0819F818:: @ 819F818
lock
@@ -943,10 +943,10 @@ gUnknown_0819F818:: @ 819F818
waitmove 0
specialval RESULT, ScrSpecial_HasTrainerBeenFought
compare RESULT, 0
- jumpif 5, EventScript_19F83F
+ goto_if 5, EventScript_19F83F
special PlayTrainerEncounterMusic
special sub_8082524
- jump EventScript_19F8F2
+ goto EventScript_19F8F2
EventScript_19F83F:
endtrainerbattle
@@ -957,13 +957,13 @@ gUnknown_0819F840:: @ 819F840
call EventScript_19F8E5
specialval RESULT, ScrSpecial_HasTrainerBeenFought
compare RESULT, 0
- jumpif 5, EventScript_19F877
+ goto_if 5, EventScript_19F877
special CheckForAlivePartyMons
compare RESULT, 0
- jumpif 5, EventScript_19F870
+ goto_if 5, EventScript_19F870
special PlayTrainerEncounterMusic
special sub_8082524
- jump EventScript_19F8F2
+ goto EventScript_19F8F2
EventScript_19F870:
special ScrSpecial_ShowTrainerNonBattlingSpeech
@@ -986,7 +986,7 @@ gUnknown_0819F887:: @ 819F887
call EventScript_19F8E5
specialval RESULT, ScrSpecial_GetTrainerEyeRematchFlag
compare RESULT, 0
- jumpeq EventScript_19F8AD
+ goto_if_eq EventScript_19F8AD
special PlayTrainerEncounterMusic
special sub_8082524
special ScrSpecial_ShowTrainerIntroSpeech
@@ -1003,10 +1003,10 @@ EventScript_19F8AD:
gUnknown_0819F8AE:: @ 819F8AE
specialval RESULT, ScrSpecial_GetTrainerEyeRematchFlag
compare RESULT, 0
- jumpeq EventScript_19F8DD
+ goto_if_eq EventScript_19F8DD
special CheckForAlivePartyMons
compare RESULT, 0
- jumpif 5, EventScript_19F8DE
+ goto_if 5, EventScript_19F8DE
special PlayTrainerEncounterMusic
special sub_8082524
special ScrSpecial_ShowTrainerIntroSpeech
@@ -1043,15 +1043,15 @@ EventScript_19F8F2:
reptrainerbattle
specialval RESULT, ScrSpecial_GetTrainerBattleMode
compare RESULT, 0
- jumpeq EventScript_19F934
+ goto_if_eq EventScript_19F934
compare RESULT, 2
- jumpeq EventScript_19F936
+ goto_if_eq EventScript_19F936
compare RESULT, 1
- jumpeq EventScript_19F936
+ goto_if_eq EventScript_19F936
compare RESULT, 6
- jumpeq EventScript_19F936
+ goto_if_eq EventScript_19F936
compare RESULT, 8
- jumpeq EventScript_19F936
+ goto_if_eq EventScript_19F936
EventScript_19F934:
releaseall
@@ -1298,13 +1298,13 @@ EverGrandeCity_HallOfFame_EventScript_19FC13:: @ 819FC13
clearflag 861
special sub_810FAA0
checkflag 291
- callif 0, EverGrandeCity_HallOfFame_EventScript_19FC62
+ call_if 0, EverGrandeCity_HallOfFame_EventScript_19FC62
checkflag 255
- callif 0, EverGrandeCity_HallOfFame_EventScript_19FC70
+ call_if 0, EverGrandeCity_HallOfFame_EventScript_19FC70
checkflag 298
- callif 0, EverGrandeCity_HallOfFame_EventScript_19FC5A
+ call_if 0, EverGrandeCity_HallOfFame_EventScript_19FC5A
checkflag 123
- callif 0, EverGrandeCity_HallOfFame_EventScript_19FC5E
+ call_if 0, EverGrandeCity_HallOfFame_EventScript_19FC5E
return
EverGrandeCity_HallOfFame_EventScript_19FC5A:: @ 819FC5A
@@ -1328,25 +1328,25 @@ EverGrandeCity_HallOfFame_EventScript_19FC70:: @ 819FC70
S_WhiteOut:: @ 819FC74
call EverGrandeCity_HallOfFame_EventScript_19FD09
call EventScript_19FC84
- jump gUnknown_0819FC9F
+ goto gUnknown_0819FC9F
end
EventScript_19FC84:
checkflag 221
- jumpeq Route101_EventScript_1A14DC
+ goto_if_eq Route101_EventScript_1A14DC
checkflag 1213
- jumpif 0, Route101_EventScript_1A14DC
+ goto_if 0, Route101_EventScript_1A14DC
clearflag 929
setvar 0x4053, 2
return
gUnknown_0819FC9F:: @ 819FC9F
compare 0x4096, 1
- jumpeq EventScript_19FCC1
+ goto_if_eq EventScript_19FCC1
compare 0x4096, 2
- jumpeq EventScript_19FCD7
+ goto_if_eq EventScript_19FCD7
compare 0x4096, 3
- jumpeq EventScript_19FCF0
+ goto_if_eq EventScript_19FCF0
end
EventScript_19FCC1:
@@ -1399,15 +1399,15 @@ RustboroCity_PokemonCenter_1F_EventScript_19FD1B:: @ 819FD1B
SlateportCity_PokemonCenter_1F_EventScript_19FD1B:: @ 819FD1B
VerdanturfTown_PokemonCenter_1F_EventScript_19FD1B:: @ 819FD1B
checkflag 188
- jumpif 0, OldaleTown_PokemonCenter_1F_EventScript_1A14DC
+ goto_if 0, OldaleTown_PokemonCenter_1F_EventScript_1A14DC
checkflag 1217
- jumpeq OldaleTown_PokemonCenter_1F_EventScript_1A14DC
+ goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_1A14DC
checkflag 742
- jumpif 0, OldaleTown_PokemonCenter_1F_EventScript_19FD49
+ goto_if 0, OldaleTown_PokemonCenter_1F_EventScript_19FD49
checkflag 740
- jumpif 0, OldaleTown_PokemonCenter_1F_EventScript_19FD4F
+ goto_if 0, OldaleTown_PokemonCenter_1F_EventScript_19FD4F
checkflag 741
- jumpif 0, OldaleTown_PokemonCenter_1F_EventScript_19FD55
+ goto_if 0, OldaleTown_PokemonCenter_1F_EventScript_19FD55
return
OldaleTown_PokemonCenter_1F_EventScript_19FD49:: @ 819FD49
@@ -1440,9 +1440,9 @@ VerdanturfTown_PokemonCenter_1F_EventScript_19FD5B:: @ 819FD5B
faceplayer
msgbox gText_NurseJoy_Welcome, 5
compare RESULT, 1
- jumpeq OldaleTown_PokemonCenter_1F_EventScript_19FD7C
+ goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_19FD7C
compare RESULT, 0
- jumpeq OldaleTown_PokemonCenter_1F_EventScript_19FDC7
+ goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_19FDC7
end
OldaleTown_PokemonCenter_1F_EventScript_19FD7C:: @ 819FD7C
@@ -1457,8 +1457,8 @@ OldaleTown_PokemonCenter_1F_EventScript_19FD7C:: @ 819FD7C
waitmove 0
special ScrSpecial_HealPlayerParty
checkflag 273
- jumpif 0, OldaleTown_PokemonCenter_1F_EventScript_19FDCE
- jump OldaleTown_PokemonCenter_1F_EventScript_19FDB0
+ goto_if 0, OldaleTown_PokemonCenter_1F_EventScript_19FDCE
+ goto OldaleTown_PokemonCenter_1F_EventScript_19FDB0
end
OldaleTown_PokemonCenter_1F_EventScript_19FDB0:: @ 819FDB0
@@ -1478,9 +1478,9 @@ OldaleTown_PokemonCenter_1F_EventScript_19FDC7:: @ 819FDC7
OldaleTown_PokemonCenter_1F_EventScript_19FDCE:: @ 819FDCE
specialval RESULT, IsPokerusInParty
compare RESULT, 1
- jumpeq OldaleTown_PokemonCenter_1F_EventScript_19FDEA
+ goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_19FDEA
compare RESULT, 0
- jumpeq OldaleTown_PokemonCenter_1F_EventScript_19FDB0
+ goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_19FDB0
end
OldaleTown_PokemonCenter_1F_EventScript_19FDEA:: @ 819FDEA
@@ -1505,9 +1505,9 @@ Std_ObtainItem_: @ 819FE07
checkitemtype 0x8000
call GetItem_HandlePocket
compare 0x8007, 0x1
- callif 1, Std_ObtainItem_Success
+ call_if 1, Std_ObtainItem_Success
compare 0x8007, 0x0
- callif 1, Std_ObtainItem_Fail
+ call_if 1, Std_ObtainItem_Fail
return
GetItem_HandlePocket:
@@ -1522,31 +1522,31 @@ GetItem_HandlePocket:
GetItem_HandlePocket_Items:
bufferstd 2, 0xE
compare 0x8007, 1
- callif 1, PlayGetItemFanfare
+ call_if 1, PlayGetItemFanfare
return
GetItem_HandlePocket_KeyItems:
bufferstd 2, 0xF
compare 0x8007, 1
- callif 1, PlayGetItemFanfare
+ call_if 1, PlayGetItemFanfare
return
GetItem_HandlePocket_PokeBalls:
bufferstd 2, 0x10
compare 0x8007, 1
- callif 1, PlayGetItemFanfare
+ call_if 1, PlayGetItemFanfare
return
GetItem_HandlePocket_TMsHMs:
bufferstd 2, 0x11
compare 0x8007, 1
- callif 1, PlayGetTMHMFanfare
+ call_if 1, PlayGetTMHMFanfare
return
GetItem_HandlePocket_Berries:
bufferstd 2, 0x12
compare 0x8007, 1
- callif 1, PlayGetItemFanfare
+ call_if 1, PlayGetItemFanfare
return
Std_ObtainItem_Success: @ 819FEB7
@@ -1578,9 +1578,9 @@ Std_ObtainDecoration: @ 819FEDA
Std_ObtainDecoration_: @ 819FEE8
bufferdecor 1, 0x8000
compare 0x8007, 1
- callif 1, Std_ObtainDecoration_Success
+ call_if 1, Std_ObtainDecoration_Success
compare 0x8007, 0
- callif 1, Std_ObtainDecoration_Fail
+ call_if 1, Std_ObtainDecoration_Fail
return
Std_ObtainDecoration_Success: @ 819FF03
@@ -1606,9 +1606,9 @@ Std_FindItem: @ 819FF21
checkitemtype 0x8000
call GetItem_HandlePocket
compare 0x8007, 1
- callif 1, Std_FindItem_Success
+ call_if 1, Std_FindItem_Success
compare 0x8007, 0
- callif 1, Std_FindItem_Fail
+ call_if 1, Std_FindItem_Fail
release
return
@@ -1635,9 +1635,9 @@ HiddenItemScript:: @ 819FF7B
checkitemtype 0x8005
call GetItem_HandlePocket
compare 0x8007, 1
- jumpeq HiddenItemScript_Success
+ goto_if_eq HiddenItemScript_Success
compare 0x8007, 0
- jumpeq HiddenItemScript_Fail
+ goto_if_eq HiddenItemScript_Fail
end
HiddenItemScript_Success:
@@ -1661,10 +1661,10 @@ UnusedMixRecordsScript: @ 819FFD5
faceplayer
msgbox UnusedMixRecordsPromptText, 5
compare RESULT, 1
- jumpeq UnusedMixRecordsScript_Yes
+ goto_if_eq UnusedMixRecordsScript_Yes
compare RESULT, 0
- jumpeq UnusedMixRecordsScript_Done
- jump UnusedMixRecordsScript_Done
+ goto_if_eq UnusedMixRecordsScript_Done
+ goto UnusedMixRecordsScript_Done
UnusedMixRecordsScript_Yes: @ 819FFFA
special sub_80B929C
waitstate
@@ -1683,7 +1683,7 @@ gUnknown_081A0009:: @ 81A0009
special DoPCTurnOnEffect
playsfx 4
msgbox UnknownString_81A09EC, 4
- jump EventScript_1A0023
+ goto EventScript_1A0023
end
EventScript_1A0023:
@@ -1691,7 +1691,7 @@ EventScript_1A0023:
waittext
special ScrSpecial_CreatePCMenu
waitstate
- jump EventScript_1A0033
+ goto EventScript_1A0033
end
EventScript_1A0033:
@@ -1708,19 +1708,19 @@ EventScript_1A0070:
msgbox UnknownString_81A0A54, 4
special PlayerPC
waitstate
- jump EventScript_1A0023
+ goto EventScript_1A0023
end
EventScript_1A0085:
playsfx 2
checkflag 2123
- callif 0, EventScript_1A00AC
+ call_if 0, EventScript_1A00AC
checkflag 2123
- callif 1, EventScript_1A00B5
+ call_if 1, EventScript_1A00B5
msgbox UnknownString_81A0A35, 4
special ShowPokemonStorageSystem
waitstate
- jump EventScript_1A0023
+ goto EventScript_1A0023
end
EventScript_1A00AC:
@@ -1740,11 +1740,11 @@ EventScript_1A00BE:
EventScript_1A00CB:
checkflag 2052
- jumpif 0, EventScript_1A00BE
+ goto_if 0, EventScript_1A00BE
playsfx 2
special AccessHallOfFamePC
waitstate
- jump EventScript_1A0033
+ goto EventScript_1A0033
end
FallarborTown_EventScript_1A00E1:: @ 81A00E1
@@ -1818,13 +1818,13 @@ Route109_EventScript_1A010C:: @ 81A010C
UseSurfScript:: @ 81A0117
checkattack MOVE_SURF
compare RESULT, 6
- jumpeq UseSurfScript_NoMon
+ goto_if_eq UseSurfScript_NoMon
bufferpartypoke 0, RESULT
setanimation 0, RESULT
lockall
msgbox UseSurfPromptText, 5
compare RESULT, 0
- jumpeq UseSurfScript_No
+ goto_if_eq UseSurfScript_No
msgbox UsedSurfText, 4
doanimation 9
UseSurfScript_No: @ 81A014C
@@ -1843,9 +1843,9 @@ Route119_EventScript_1A014E:: @ 81A014E
RustboroCity_EventScript_1A014E:: @ 81A014E
checkgender
compare RESULT, 0
- jumpeq RustboroCity_EventScript_1A0166
+ goto_if_eq RustboroCity_EventScript_1A0166
compare RESULT, 1
- jumpeq RustboroCity_EventScript_1A016C
+ goto_if_eq RustboroCity_EventScript_1A016C
end
RustboroCity_EventScript_1A0166:: @ 81A0166
@@ -1861,9 +1861,9 @@ Route110_EventScript_1A0172:: @ 81A0172
Route119_EventScript_1A0172:: @ 81A0172
checkgender
compare RESULT, 0
- jumpeq LavaridgeTown_EventScript_1A018A
+ goto_if_eq LavaridgeTown_EventScript_1A018A
compare RESULT, 1
- jumpeq LavaridgeTown_EventScript_1A0190
+ goto_if_eq LavaridgeTown_EventScript_1A0190
end
LavaridgeTown_EventScript_1A018A:: @ 81A018A
@@ -2143,23 +2143,23 @@ LittlerootTown_ProfessorBirchsLab_EventScript_1A02F4:: @ 81A02F4
Route101_EventScript_1A02F4:: @ 81A02F4
Route103_EventScript_1A02F4:: @ 81A02F4
compare 0x4085, 0
- jumpeq Route101_EventScript_1A14DC
+ goto_if_eq Route101_EventScript_1A14DC
compare 0x4049, 0
- callif 1, Route101_EventScript_1A0358
+ call_if 1, Route101_EventScript_1A0358
compare 0x4049, 1
- callif 1, Route101_EventScript_1A0358
+ call_if 1, Route101_EventScript_1A0358
compare 0x4049, 2
- callif 1, Route101_EventScript_1A0365
+ call_if 1, Route101_EventScript_1A0365
compare 0x4049, 3
- callif 1, Route101_EventScript_1A0365
+ call_if 1, Route101_EventScript_1A0365
compare 0x4049, 4
- callif 1, Route101_EventScript_1A0372
+ call_if 1, Route101_EventScript_1A0372
compare 0x4049, 5
- callif 1, Route101_EventScript_1A0372
+ call_if 1, Route101_EventScript_1A0372
compare 0x4049, 6
- callif 1, Route101_EventScript_1A0358
+ call_if 1, Route101_EventScript_1A0358
compare 0x4049, 7
- callif 1, Route101_EventScript_1A0358
+ call_if 1, Route101_EventScript_1A0358
return
Route101_EventScript_1A0358:: @ 81A0358
@@ -2190,7 +2190,7 @@ Route103_EventScript_1A037F:: @ 81A037F
faceplayer
msgbox Route101_Text_1C4449, 5
compare RESULT, 0
- jumpeq Route101_EventScript_1A039B
+ goto_if_eq Route101_EventScript_1A039B
call Route101_EventScript_1A03B0
release
end
@@ -2219,7 +2219,7 @@ Route101_EventScript_1A03B0:: @ 81A03B0
msgbox Route101_Text_1C44DC, 4
call Route101_EventScript_1A03A5
compare 0x800a, 0
- jumpeq Route101_EventScript_1A14DC
+ goto_if_eq Route101_EventScript_1A14DC
setvar 0x8004, 1
specialval RESULT, ScriptGetPokedexInfo
copyvar 0x8008, 0x8005
@@ -2286,9 +2286,9 @@ Movement_1A047A:
BattleTower_Outside_EventScript_1A047C:: @ 81A047C
SouthernIsland_Exterior_EventScript_1A047C:: @ 81A047C
compare FACING, 1
- callif 1, BattleTower_Outside_EventScript_160B2F
+ call_if 1, BattleTower_Outside_EventScript_160B2F
compare FACING, 3
- callif 1, BattleTower_Outside_EventScript_160B3A
+ call_if 1, BattleTower_Outside_EventScript_160B3A
pause 30
spriteinvisible 255, 0, 0
call BattleTower_Outside_EventScript_1A040E
@@ -2309,20 +2309,20 @@ CaveOfOrigin_B2F_EventScript_1A04AF:: @ 81A04AF
CaveOfOrigin_B3F_EventScript_1A04AF:: @ 81A04AF
lockall
setvar 0x4001, 1
- jump CaveOfOrigin_1F_EventScript_1A04D3
+ goto CaveOfOrigin_1F_EventScript_1A04D3
end
CaveOfOrigin_B2F_EventScript_1A04BB:: @ 81A04BB
CaveOfOrigin_B3F_EventScript_1A04BB:: @ 81A04BB
lockall
setvar 0x4002, 1
- jump CaveOfOrigin_B2F_EventScript_1A04D3
+ goto CaveOfOrigin_B2F_EventScript_1A04D3
end
@ 81A04C7
lockall
setvar 0x4003, 1
- jump CaveOfOrigin_B2F_EventScript_1A04D3
+ goto CaveOfOrigin_B2F_EventScript_1A04D3
end
CaveOfOrigin_1F_EventScript_1A04D3:: @ 81A04D3
@@ -2382,56 +2382,56 @@ Route120_EventScript_1A0539:: @ 81A0539
lock
faceplayer
setvar 0x8004, 1
- jump Route120_EventScript_1A0594
+ goto Route120_EventScript_1A0594
end
Route120_EventScript_1A0546:: @ 81A0546
lock
faceplayer
setvar 0x8004, 2
- jump Route120_EventScript_1A0594
+ goto Route120_EventScript_1A0594
end
Route120_EventScript_1A0553:: @ 81A0553
lock
faceplayer
setvar 0x8004, 3
- jump Route120_EventScript_1A0594
+ goto Route120_EventScript_1A0594
end
Route120_EventScript_1A0560:: @ 81A0560
lock
faceplayer
setvar 0x8004, 4
- jump Route120_EventScript_1A0594
+ goto Route120_EventScript_1A0594
end
Route120_EventScript_1A056D:: @ 81A056D
lock
faceplayer
setvar 0x8004, 5
- jump Route120_EventScript_1A0594
+ goto Route120_EventScript_1A0594
end
Route119_EventScript_1A057A:: @ 81A057A
lock
faceplayer
setvar 0x8004, 6
- jump Route119_EventScript_1A0594
+ goto Route119_EventScript_1A0594
end
Route119_EventScript_1A0587:: @ 81A0587
lock
faceplayer
setvar 0x8004, 7
- jump Route119_EventScript_1A0594
+ goto Route119_EventScript_1A0594
end
Route119_EventScript_1A0594:: @ 81A0594
Route120_EventScript_1A0594:: @ 81A0594
checkitem ITEM_DEVON_SCOPE, 1
compare RESULT, 1
- jumpeq Route119_EventScript_1A05AE
+ goto_if_eq Route119_EventScript_1A05AE
msgbox Route119_Text_171B93, 4
release
end
@@ -2439,7 +2439,7 @@ Route120_EventScript_1A0594:: @ 81A0594
Route119_EventScript_1A05AE:: @ 81A05AE
msgbox Route119_Text_171BB6, 5
compare RESULT, 1
- jumpeq Route119_EventScript_1A05C3
+ goto_if_eq Route119_EventScript_1A05C3
release
end
@@ -2456,19 +2456,19 @@ Route119_EventScript_1A05C3:: @ 81A05C3
waitpokecry
setwildbattle SPECIES_KECLEON, 30, ITEM_NONE
compare 0x8004, 1
- callif 1, Route119_EventScript_1A0646
+ call_if 1, Route119_EventScript_1A0646
compare 0x8004, 2
- callif 1, Route119_EventScript_1A064A
+ call_if 1, Route119_EventScript_1A064A
compare 0x8004, 3
- callif 1, Route119_EventScript_1A064E
+ call_if 1, Route119_EventScript_1A064E
compare 0x8004, 4
- callif 1, Route119_EventScript_1A0652
+ call_if 1, Route119_EventScript_1A0652
compare 0x8004, 5
- callif 1, Route119_EventScript_1A0656
+ call_if 1, Route119_EventScript_1A0656
compare 0x8004, 6
- callif 1, Route119_EventScript_1A065A
+ call_if 1, Route119_EventScript_1A065A
compare 0x8004, 7
- callif 1, Route119_EventScript_1A065E
+ call_if 1, Route119_EventScript_1A065E
setflag 2145
dowildbattle
clearflag 2145
@@ -3264,7 +3264,7 @@ gUnknown_081A14B8:: @ 81A14B8
special ExecuteWhiteOut
waitstate
compare RESULT, 1
- jumpeq EventScript_1A14CA
+ goto_if_eq EventScript_1A14CA
releaseall
end
@@ -3619,44 +3619,44 @@ gUnknown_081A2C51:: @ 81A2C51
special sub_80BB70C
special sub_80BB63C
compare RESULT, 1
- jumpeq EventScript_1A2E45
+ goto_if_eq EventScript_1A2E45
checkattack MOVE_SECRET_POWER
setanimation 0, RESULT
bufferattack 1, MOVE_SECRET_POWER
compare 0x8007, 1
- jumpeq EventScript_1A2CB0
+ goto_if_eq EventScript_1A2CB0
compare 0x8007, 2
- jumpeq EventScript_1A2CB0
+ goto_if_eq EventScript_1A2CB0
compare 0x8007, 3
- jumpeq EventScript_1A2CB0
+ goto_if_eq EventScript_1A2CB0
compare 0x8007, 4
- jumpeq EventScript_1A2CB0
+ goto_if_eq EventScript_1A2CB0
compare 0x8007, 5
- jumpeq EventScript_1A2D08
+ goto_if_eq EventScript_1A2D08
compare 0x8007, 6
- jumpeq EventScript_1A2D60
+ goto_if_eq EventScript_1A2D60
end
EventScript_1A2CB0:
lockall
compare RESULT, 6
- jumpeq EventScript_1A2CF1
+ goto_if_eq EventScript_1A2CF1
bufferpartypoke 0, RESULT
msgbox UnknownString_8198F34, 5
compare RESULT, 0
- jumpeq EventScript_1A2F3A
+ goto_if_eq EventScript_1A2F3A
msgbox UsedCutRockSmashText, 4
closebutton
doanimation 11
waitstate
- jump EventScript_1A2CFA
+ goto EventScript_1A2CFA
end
gUnknown_081A2CE6:: @ 81A2CE6
lockall
doanimation 11
waitstate
- jump EventScript_1A2CFA
+ goto EventScript_1A2CFA
end
EventScript_1A2CF1:
@@ -3665,29 +3665,29 @@ EventScript_1A2CF1:
EventScript_1A2CFA:
msgbox UnknownString_8198F6E, 4
- jump EventScript_1A2DB8
+ goto EventScript_1A2DB8
end
EventScript_1A2D08:
lockall
compare RESULT, 6
- jumpeq EventScript_1A2D49
+ goto_if_eq EventScript_1A2D49
bufferpartypoke 0, RESULT
msgbox UnknownString_81A197B, 5
compare RESULT, 0
- jumpeq EventScript_1A2F3A
+ goto_if_eq EventScript_1A2F3A
msgbox UsedCutRockSmashText, 4
closebutton
doanimation 26
waitstate
- jump EventScript_1A2D52
+ goto EventScript_1A2D52
end
gUnknown_081A2D3E:: @ 81A2D3E
lockall
doanimation 26
waitstate
- jump EventScript_1A2D52
+ goto EventScript_1A2D52
end
EventScript_1A2D49:
@@ -3696,29 +3696,29 @@ EventScript_1A2D49:
EventScript_1A2D52:
msgbox UnknownString_81A19C4, 4
- jump EventScript_1A2DB8
+ goto EventScript_1A2DB8
end
EventScript_1A2D60:
lockall
compare RESULT, 6
- jumpeq EventScript_1A2DA1
+ goto_if_eq EventScript_1A2DA1
bufferpartypoke 0, RESULT
msgbox UnknownString_81A1A4B, 5
compare RESULT, 0
- jumpeq EventScript_1A2F3A
+ goto_if_eq EventScript_1A2F3A
msgbox UsedCutRockSmashText, 4
closebutton
doanimation 27
waitstate
- jump EventScript_1A2DAA
+ goto EventScript_1A2DAA
end
gUnknown_081A2D96:: @ 81A2D96
lockall
doanimation 27
waitstate
- jump EventScript_1A2DAA
+ goto EventScript_1A2DAA
end
EventScript_1A2DA1:
@@ -3727,7 +3727,7 @@ EventScript_1A2DA1:
EventScript_1A2DAA:
msgbox UnknownString_81A1AA9, 4
- jump EventScript_1A2DB8
+ goto EventScript_1A2DB8
end
EventScript_1A2DB8:
@@ -3750,7 +3750,7 @@ SecretBase_RedCave1_EventScript_1A2DDE:: @ 81A2DDE
setvar 0x4097, 1
msgbox SecretBase_RedCave1_Text_198F89, 5
compare RESULT, 1
- jumpeq SecretBase_RedCave1_EventScript_1A2E08
+ goto_if_eq SecretBase_RedCave1_EventScript_1A2E08
closebutton
playsfx 9
special sub_80BC440
@@ -3774,7 +3774,7 @@ gUnknown_081A2E14:: @ 81A2E14
playsfx 9
special sub_80BC114
compare RESULT, 0
- jumpeq EventScript_1A2E38
+ goto_if_eq EventScript_1A2E38
clearflag 173
special sub_80BBAF0
setvar 0x4089, 0
@@ -3791,57 +3791,57 @@ EventScript_1A2E38:
EventScript_1A2E45:
checkattack MOVE_SECRET_POWER
compare RESULT, 6
- jumpeq EventScript_1A2EF7
+ goto_if_eq EventScript_1A2EF7
setanimation 0, RESULT
setorcopyvar 0x8004, RESULT
lockall
special GetSecretBaseNearbyMapName
msgbox UnknownString_81A3C71, 5
compare RESULT, 0
- jumpeq EventScript_1A2F3A
+ goto_if_eq EventScript_1A2F3A
msgbox UnknownString_81A38FB, 5
compare RESULT, 0
- jumpeq EventScript_1A2F3A
+ goto_if_eq EventScript_1A2F3A
fadescreen 1
special sub_80BC50C
closebutton
fadescreen 0
msgbox UnknownString_81A3CC9, 5
compare RESULT, 0
- jumpeq EventScript_1A2F3A
+ goto_if_eq EventScript_1A2F3A
bufferpartypoke 0, 0x8004
bufferattack 1, MOVE_SECRET_POWER
msgbox UsedCutRockSmashText, 4
closebutton
closebutton
compare 0x8007, 1
- jumpeq gUnknown_081A2CE6
+ goto_if_eq gUnknown_081A2CE6
compare 0x8007, 2
- jumpeq gUnknown_081A2CE6
+ goto_if_eq gUnknown_081A2CE6
compare 0x8007, 3
- jumpeq gUnknown_081A2CE6
+ goto_if_eq gUnknown_081A2CE6
compare 0x8007, 4
- jumpeq gUnknown_081A2CE6
+ goto_if_eq gUnknown_081A2CE6
compare 0x8007, 5
- jumpeq gUnknown_081A2D3E
+ goto_if_eq gUnknown_081A2D3E
compare 0x8007, 6
- jumpeq gUnknown_081A2D96
+ goto_if_eq gUnknown_081A2D96
releaseall
end
EventScript_1A2EF7::
compare 0x8007, 1
- jumpeq EventScript_1A2CF1
+ goto_if_eq EventScript_1A2CF1
compare 0x8007, 2
- jumpeq EventScript_1A2CF1
+ goto_if_eq EventScript_1A2CF1
compare 0x8007, 3
- jumpeq EventScript_1A2CF1
+ goto_if_eq EventScript_1A2CF1
compare 0x8007, 4
- jumpeq EventScript_1A2CF1
+ goto_if_eq EventScript_1A2CF1
compare 0x8007, 5
- jumpeq EventScript_1A2D49
+ goto_if_eq EventScript_1A2D49
compare 0x8007, 6
- jumpeq EventScript_1A2DA1
+ goto_if_eq EventScript_1A2DA1
end
EventScript_1A2F3A::
@@ -3879,7 +3879,7 @@ SecretBase_RedCave1_EventScript_1A2F68:: @ 81A2F68
gUnknown_081A2F7B:: @ 81A2F7B
setvar 0x8005, 0
- jump EventScript_1A2F86
+ goto EventScript_1A2F86
end
EventScript_1A2F86:
@@ -3888,19 +3888,19 @@ EventScript_1A2F86:
gUnknown_081A2F8A:: @ 81A2F8A
setvar 0x8004, 0
- jump EventScript_1A2F95
+ goto EventScript_1A2F95
end
EventScript_1A2F95:
special sub_8100A7C
compare RESULT, 1
- jumpeq EventScript_1A2FBF
+ goto_if_eq EventScript_1A2FBF
addvar 0x8004, 1
compare 0x8005, 0
- jumpeq EventScript_1A2F95
+ goto_if_eq EventScript_1A2F95
disappear 0x8006
setflag 0x8005
- jump EventScript_1A2F95
+ goto EventScript_1A2F95
end
EventScript_1A2FBF:
@@ -3932,45 +3932,45 @@ SecretBase_YellowCave3_EventScript_1A2FC0:: @ 81A2FC0
SecretBase_YellowCave4_EventScript_1A2FC0:: @ 81A2FC0
special sub_80BCE90
compare 0x8004, 0
- jumpeq SecretBase_RedCave1_EventScript_1A3032
+ goto_if_eq SecretBase_RedCave1_EventScript_1A3032
compare 0x8004, 1
- jumpeq SecretBase_RedCave1_EventScript_1A30AE
+ goto_if_eq SecretBase_RedCave1_EventScript_1A30AE
compare 0x8004, 2
- jumpeq SecretBase_RedCave1_EventScript_1A312A
+ goto_if_eq SecretBase_RedCave1_EventScript_1A312A
compare 0x8004, 3
- jumpeq SecretBase_RedCave1_EventScript_1A31A6
+ goto_if_eq SecretBase_RedCave1_EventScript_1A31A6
compare 0x8004, 4
- jumpeq SecretBase_RedCave1_EventScript_1A3222
+ goto_if_eq SecretBase_RedCave1_EventScript_1A3222
compare 0x8004, 5
- jumpeq SecretBase_RedCave1_EventScript_1A329E
+ goto_if_eq SecretBase_RedCave1_EventScript_1A329E
compare 0x8004, 6
- jumpeq SecretBase_RedCave1_EventScript_1A331A
+ goto_if_eq SecretBase_RedCave1_EventScript_1A331A
compare 0x8004, 7
- jumpeq SecretBase_RedCave1_EventScript_1A3396
+ goto_if_eq SecretBase_RedCave1_EventScript_1A3396
compare 0x8004, 8
- jumpeq SecretBase_RedCave1_EventScript_1A3412
+ goto_if_eq SecretBase_RedCave1_EventScript_1A3412
compare 0x8004, 9
- jumpeq SecretBase_RedCave1_EventScript_1A348E
+ goto_if_eq SecretBase_RedCave1_EventScript_1A348E
end
SecretBase_RedCave1_EventScript_1A3032:: @ 81A3032
checkflag 2052
- jumpif 0, SecretBase_RedCave1_EventScript_1A3086
+ goto_if 0, SecretBase_RedCave1_EventScript_1A3086
compare RESULT, 1
- jumpeq SecretBase_RedCave1_EventScript_1A30A5
+ goto_if_eq SecretBase_RedCave1_EventScript_1A30A5
lock
faceplayer
msgbox SecretBase_RedCave1_Text_1A1AEA, 5
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A308F
+ goto_if_eq SecretBase_RedCave1_EventScript_1A308F
setvar RESULT, 1
special sub_80BCE4C
call S_DoSaveDialog
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A308F
+ goto_if_eq SecretBase_RedCave1_EventScript_1A308F
hidebox 0, 0, 15, 10
msgbox SecretBase_RedCave1_Text_1A1B83, 4
- jump SecretBase_RedCave1_EventScript_1A350A
+ goto SecretBase_RedCave1_EventScript_1A350A
end
SecretBase_RedCave1_EventScript_1A3086:: @ 81A3086
@@ -3990,22 +3990,22 @@ SecretBase_RedCave1_EventScript_1A30A5:: @ 81A30A5
SecretBase_RedCave1_EventScript_1A30AE:: @ 81A30AE
checkflag 2052
- jumpif 0, SecretBase_RedCave1_EventScript_1A3102
+ goto_if 0, SecretBase_RedCave1_EventScript_1A3102
compare RESULT, 1
- jumpeq SecretBase_RedCave1_EventScript_1A3121
+ goto_if_eq SecretBase_RedCave1_EventScript_1A3121
lock
faceplayer
msgbox SecretBase_RedCave1_Text_1A1E67, 5
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A310B
+ goto_if_eq SecretBase_RedCave1_EventScript_1A310B
setvar RESULT, 1
special sub_80BCE4C
call S_DoSaveDialog
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A310B
+ goto_if_eq SecretBase_RedCave1_EventScript_1A310B
hidebox 0, 0, 15, 10
msgbox SecretBase_RedCave1_Text_1A1F04, 4
- jump SecretBase_RedCave1_EventScript_1A350A
+ goto SecretBase_RedCave1_EventScript_1A350A
end
SecretBase_RedCave1_EventScript_1A3102:: @ 81A3102
@@ -4025,22 +4025,22 @@ SecretBase_RedCave1_EventScript_1A3121:: @ 81A3121
SecretBase_RedCave1_EventScript_1A312A:: @ 81A312A
checkflag 2052
- jumpif 0, SecretBase_RedCave1_EventScript_1A317E
+ goto_if 0, SecretBase_RedCave1_EventScript_1A317E
compare RESULT, 1
- jumpeq SecretBase_RedCave1_EventScript_1A319D
+ goto_if_eq SecretBase_RedCave1_EventScript_1A319D
lock
faceplayer
msgbox SecretBase_RedCave1_Text_1A218F, 5
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A3187
+ goto_if_eq SecretBase_RedCave1_EventScript_1A3187
setvar RESULT, 1
special sub_80BCE4C
call S_DoSaveDialog
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A3187
+ goto_if_eq SecretBase_RedCave1_EventScript_1A3187
hidebox 0, 0, 15, 10
msgbox SecretBase_RedCave1_Text_1A2220, 4
- jump SecretBase_RedCave1_EventScript_1A350A
+ goto SecretBase_RedCave1_EventScript_1A350A
end
SecretBase_RedCave1_EventScript_1A317E:: @ 81A317E
@@ -4060,22 +4060,22 @@ SecretBase_RedCave1_EventScript_1A319D:: @ 81A319D
SecretBase_RedCave1_EventScript_1A31A6:: @ 81A31A6
checkflag 2052
- jumpif 0, SecretBase_RedCave1_EventScript_1A31FA
+ goto_if 0, SecretBase_RedCave1_EventScript_1A31FA
compare RESULT, 1
- jumpeq SecretBase_RedCave1_EventScript_1A3219
+ goto_if_eq SecretBase_RedCave1_EventScript_1A3219
lock
faceplayer
msgbox SecretBase_RedCave1_Text_1A24E1, 5
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A3203
+ goto_if_eq SecretBase_RedCave1_EventScript_1A3203
setvar RESULT, 1
special sub_80BCE4C
call S_DoSaveDialog
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A3203
+ goto_if_eq SecretBase_RedCave1_EventScript_1A3203
hidebox 0, 0, 15, 10
msgbox SecretBase_RedCave1_Text_1A256F, 4
- jump SecretBase_RedCave1_EventScript_1A350A
+ goto SecretBase_RedCave1_EventScript_1A350A
end
SecretBase_RedCave1_EventScript_1A31FA:: @ 81A31FA
@@ -4095,22 +4095,22 @@ SecretBase_RedCave1_EventScript_1A3219:: @ 81A3219
SecretBase_RedCave1_EventScript_1A3222:: @ 81A3222
checkflag 2052
- jumpif 0, SecretBase_RedCave1_EventScript_1A3276
+ goto_if 0, SecretBase_RedCave1_EventScript_1A3276
compare RESULT, 1
- jumpeq SecretBase_RedCave1_EventScript_1A3295
+ goto_if_eq SecretBase_RedCave1_EventScript_1A3295
lock
faceplayer
msgbox SecretBase_RedCave1_Text_1A2830, 5
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A327F
+ goto_if_eq SecretBase_RedCave1_EventScript_1A327F
setvar RESULT, 1
special sub_80BCE4C
call S_DoSaveDialog
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A327F
+ goto_if_eq SecretBase_RedCave1_EventScript_1A327F
hidebox 0, 0, 15, 10
msgbox SecretBase_RedCave1_Text_1A28D7, 4
- jump SecretBase_RedCave1_EventScript_1A350A
+ goto SecretBase_RedCave1_EventScript_1A350A
end
SecretBase_RedCave1_EventScript_1A3276:: @ 81A3276
@@ -4130,22 +4130,22 @@ SecretBase_RedCave1_EventScript_1A3295:: @ 81A3295
SecretBase_RedCave1_EventScript_1A329E:: @ 81A329E
checkflag 2052
- jumpif 0, SecretBase_RedCave1_EventScript_1A32F2
+ goto_if 0, SecretBase_RedCave1_EventScript_1A32F2
compare RESULT, 1
- jumpeq SecretBase_RedCave1_EventScript_1A3311
+ goto_if_eq SecretBase_RedCave1_EventScript_1A3311
lock
faceplayer
msgbox SecretBase_RedCave1_Text_1A1CB2, 5
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A32FB
+ goto_if_eq SecretBase_RedCave1_EventScript_1A32FB
setvar RESULT, 1
special sub_80BCE4C
call S_DoSaveDialog
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A32FB
+ goto_if_eq SecretBase_RedCave1_EventScript_1A32FB
hidebox 0, 0, 15, 10
msgbox SecretBase_RedCave1_Text_1A1D48, 4
- jump SecretBase_RedCave1_EventScript_1A350A
+ goto SecretBase_RedCave1_EventScript_1A350A
end
SecretBase_RedCave1_EventScript_1A32F2:: @ 81A32F2
@@ -4165,22 +4165,22 @@ SecretBase_RedCave1_EventScript_1A3311:: @ 81A3311
SecretBase_RedCave1_EventScript_1A331A:: @ 81A331A
checkflag 2052
- jumpif 0, SecretBase_RedCave1_EventScript_1A336E
+ goto_if 0, SecretBase_RedCave1_EventScript_1A336E
compare RESULT, 1
- jumpeq SecretBase_RedCave1_EventScript_1A338D
+ goto_if_eq SecretBase_RedCave1_EventScript_1A338D
lock
faceplayer
msgbox SecretBase_RedCave1_Text_1A2026, 5
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A3377
+ goto_if_eq SecretBase_RedCave1_EventScript_1A3377
setvar RESULT, 1
special sub_80BCE4C
call S_DoSaveDialog
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A3377
+ goto_if_eq SecretBase_RedCave1_EventScript_1A3377
hidebox 0, 0, 15, 10
msgbox SecretBase_RedCave1_Text_1A2095, 4
- jump SecretBase_RedCave1_EventScript_1A350A
+ goto SecretBase_RedCave1_EventScript_1A350A
end
SecretBase_RedCave1_EventScript_1A336E:: @ 81A336E
@@ -4200,22 +4200,22 @@ SecretBase_RedCave1_EventScript_1A338D:: @ 81A338D
SecretBase_RedCave1_EventScript_1A3396:: @ 81A3396
checkflag 2052
- jumpif 0, SecretBase_RedCave1_EventScript_1A33EA
+ goto_if 0, SecretBase_RedCave1_EventScript_1A33EA
compare RESULT, 1
- jumpeq SecretBase_RedCave1_EventScript_1A3409
+ goto_if_eq SecretBase_RedCave1_EventScript_1A3409
lock
faceplayer
msgbox SecretBase_RedCave1_Text_1A236A, 5
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A33F3
+ goto_if_eq SecretBase_RedCave1_EventScript_1A33F3
setvar RESULT, 1
special sub_80BCE4C
call S_DoSaveDialog
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A33F3
+ goto_if_eq SecretBase_RedCave1_EventScript_1A33F3
hidebox 0, 0, 15, 10
msgbox SecretBase_RedCave1_Text_1A2405, 4
- jump SecretBase_RedCave1_EventScript_1A350A
+ goto SecretBase_RedCave1_EventScript_1A350A
end
SecretBase_RedCave1_EventScript_1A33EA:: @ 81A33EA
@@ -4235,22 +4235,22 @@ SecretBase_RedCave1_EventScript_1A3409:: @ 81A3409
SecretBase_RedCave1_EventScript_1A3412:: @ 81A3412
checkflag 2052
- jumpif 0, SecretBase_RedCave1_EventScript_1A3466
+ goto_if 0, SecretBase_RedCave1_EventScript_1A3466
compare RESULT, 1
- jumpeq SecretBase_RedCave1_EventScript_1A3485
+ goto_if_eq SecretBase_RedCave1_EventScript_1A3485
lock
faceplayer
msgbox SecretBase_RedCave1_Text_1A2663, 5
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A346F
+ goto_if_eq SecretBase_RedCave1_EventScript_1A346F
setvar RESULT, 1
special sub_80BCE4C
call S_DoSaveDialog
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A346F
+ goto_if_eq SecretBase_RedCave1_EventScript_1A346F
hidebox 0, 0, 15, 10
msgbox SecretBase_RedCave1_Text_1A2710, 4
- jump SecretBase_RedCave1_EventScript_1A350A
+ goto SecretBase_RedCave1_EventScript_1A350A
end
SecretBase_RedCave1_EventScript_1A3466:: @ 81A3466
@@ -4270,22 +4270,22 @@ SecretBase_RedCave1_EventScript_1A3485:: @ 81A3485
SecretBase_RedCave1_EventScript_1A348E:: @ 81A348E
checkflag 2052
- jumpif 0, SecretBase_RedCave1_EventScript_1A34E2
+ goto_if 0, SecretBase_RedCave1_EventScript_1A34E2
compare RESULT, 1
- jumpeq SecretBase_RedCave1_EventScript_1A3501
+ goto_if_eq SecretBase_RedCave1_EventScript_1A3501
lock
faceplayer
msgbox SecretBase_RedCave1_Text_1A2A13, 5
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A34EB
+ goto_if_eq SecretBase_RedCave1_EventScript_1A34EB
setvar RESULT, 1
special sub_80BCE4C
call S_DoSaveDialog
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A34EB
+ goto_if_eq SecretBase_RedCave1_EventScript_1A34EB
hidebox 0, 0, 15, 10
msgbox SecretBase_RedCave1_Text_1A2AE2, 4
- jump SecretBase_RedCave1_EventScript_1A350A
+ goto SecretBase_RedCave1_EventScript_1A350A
end
SecretBase_RedCave1_EventScript_1A34E2:: @ 81A34E2
@@ -4414,13 +4414,13 @@ SlateportCity_PokemonFanClub_EventScript_1ADE4D:: @ 81ADE4D
setvar 0x8005, 1
special sub_80BF2C4
compare RESULT, 1
- jumpeq SlateportCity_PokemonFanClub_EventScript_1ADED6
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADED6
copyvar 0x8009, 0x8006
msgbox SlateportCity_PokemonFanClub_Text_1A8704, 5
compare RESULT, 1
- jumpeq SlateportCity_PokemonFanClub_EventScript_1ADE84
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADE84
compare RESULT, 0
- jumpeq SlateportCity_PokemonFanClub_EventScript_1ADEB9
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADEB9
end
SlateportCity_PokemonFanClub_EventScript_1ADE84:: @ 81ADE84
@@ -4432,9 +4432,9 @@ SlateportCity_PokemonFanClub_EventScript_1ADE84:: @ 81ADE84
lock
faceplayer
compare RESULT, 1
- jumpeq SlateportCity_PokemonFanClub_EventScript_1ADEC3
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADEC3
compare RESULT, 0
- jumpeq SlateportCity_PokemonFanClub_EventScript_1ADEB9
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADEB9
end
SlateportCity_PokemonFanClub_EventScript_1ADEB9:: @ 81ADEB9
@@ -4445,7 +4445,7 @@ SlateportCity_PokemonFanClub_EventScript_1ADEB9:: @ 81ADEB9
SlateportCity_PokemonFanClub_EventScript_1ADEC3:: @ 81ADEC3
msgbox SlateportCity_PokemonFanClub_Text_1A8818, 4
setvar 0x8005, 1
- jump SlateportCity_PokemonFanClub_EventScript_1ADE46
+ goto SlateportCity_PokemonFanClub_EventScript_1ADE46
end
SlateportCity_PokemonFanClub_EventScript_1ADED6:: @ 81ADED6
@@ -4459,24 +4459,24 @@ SlateportCity_OceanicMuseum_1F_EventScript_1ADEE0:: @ 81ADEE0
setvar 0x8005, 2
special sub_80BF2C4
compare RESULT, 1
- jumpeq SlateportCity_OceanicMuseum_1F_EventScript_1ADF96
+ goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF96
copyvar 0x8009, 0x8006
checkflag 105
- jumpeq SlateportCity_OceanicMuseum_1F_EventScript_1ADF25
+ goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF25
setflag 105
msgbox SlateportCity_OceanicMuseum_1F_Text_1A927F, 5
compare RESULT, 1
- jumpeq SlateportCity_OceanicMuseum_1F_EventScript_1ADF44
+ goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF44
compare RESULT, 0
- jumpeq SlateportCity_OceanicMuseum_1F_EventScript_1ADF79
+ goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF79
end
SlateportCity_OceanicMuseum_1F_EventScript_1ADF25:: @ 81ADF25
msgbox SlateportCity_OceanicMuseum_1F_Text_1A934C, 5
compare RESULT, 1
- jumpeq SlateportCity_OceanicMuseum_1F_EventScript_1ADF44
+ goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF44
compare RESULT, 0
- jumpeq SlateportCity_OceanicMuseum_1F_EventScript_1ADF79
+ goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF79
end
SlateportCity_OceanicMuseum_1F_EventScript_1ADF44:: @ 81ADF44
@@ -4488,9 +4488,9 @@ SlateportCity_OceanicMuseum_1F_EventScript_1ADF44:: @ 81ADF44
lock
faceplayer
compare RESULT, 1
- jumpeq SlateportCity_OceanicMuseum_1F_EventScript_1ADF83
+ goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF83
compare RESULT, 0
- jumpeq SlateportCity_OceanicMuseum_1F_EventScript_1ADF79
+ goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF79
end
SlateportCity_OceanicMuseum_1F_EventScript_1ADF79:: @ 81ADF79
@@ -4501,7 +4501,7 @@ SlateportCity_OceanicMuseum_1F_EventScript_1ADF79:: @ 81ADF79
SlateportCity_OceanicMuseum_1F_EventScript_1ADF83:: @ 81ADF83
msgbox SlateportCity_OceanicMuseum_1F_Text_1A949A, 4
setvar 0x8005, 2
- jump SlateportCity_OceanicMuseum_1F_EventScript_1ADE46
+ goto SlateportCity_OceanicMuseum_1F_EventScript_1ADE46
end
SlateportCity_OceanicMuseum_1F_EventScript_1ADF96:: @ 81ADF96
@@ -4514,17 +4514,17 @@ SlateportCity_PokemonFanClub_EventScript_1ADFA0:: @ 81ADFA0
faceplayer
specialval RESULT, sub_80BF544
compare RESULT, 0
- jumpeq SlateportCity_PokemonFanClub_EventScript_1ADE4D
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADE4D
setvar 0x8005, 3
special sub_80BF2C4
compare RESULT, 1
- jumpeq SlateportCity_PokemonFanClub_EventScript_1AE0AC
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_1AE0AC
copyvar 0x8009, 0x8006
msgbox SlateportCity_PokemonFanClub_Text_1A82F1, 5
compare RESULT, 1
- jumpeq SlateportCity_PokemonFanClub_EventScript_1ADFE9
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADFE9
compare RESULT, 0
- jumpeq SlateportCity_PokemonFanClub_EventScript_1AE0A2
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_1AE0A2
end
SlateportCity_PokemonFanClub_EventScript_1ADFE9:: @ 81ADFE9
@@ -4539,17 +4539,17 @@ SlateportCity_PokemonFanClub_EventScript_1ADFE9:: @ 81ADFE9
SlateportCity_PokemonFanClub_EventScript_1AE020:: @ 81AE020
msgbox SlateportCity_PokemonFanClub_Text_1A8414, 4
- jump SlateportCity_PokemonFanClub_EventScript_1AE04A
+ goto SlateportCity_PokemonFanClub_EventScript_1AE04A
end
SlateportCity_PokemonFanClub_EventScript_1AE02E:: @ 81AE02E
msgbox SlateportCity_PokemonFanClub_Text_1A8470, 4
- jump SlateportCity_PokemonFanClub_EventScript_1AE04A
+ goto SlateportCity_PokemonFanClub_EventScript_1AE04A
end
SlateportCity_PokemonFanClub_EventScript_1AE03C:: @ 81AE03C
msgbox SlateportCity_PokemonFanClub_Text_1A84D5, 4
- jump SlateportCity_PokemonFanClub_EventScript_1AE04A
+ goto SlateportCity_PokemonFanClub_EventScript_1AE04A
end
SlateportCity_PokemonFanClub_EventScript_1AE04A:: @ 81AE04A
@@ -4560,18 +4560,18 @@ SlateportCity_PokemonFanClub_EventScript_1AE04A:: @ 81AE04A
lock
faceplayer
compare RESULT, 0
- jumpeq SlateportCity_PokemonFanClub_EventScript_1AE0A2
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_1AE0A2
msgbox SlateportCity_PokemonFanClub_Text_1A852D, 4
setvar 0x8006, 1
call SlateportCity_PokemonFanClub_EventScript_1A00F3
lock
faceplayer
compare RESULT, 0
- jumpeq SlateportCity_PokemonFanClub_EventScript_1AE0A2
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_1AE0A2
msgbox SlateportCity_PokemonFanClub_Text_1A85A6, 4
copyvar 0x8007, 0x800a
setvar 0x8005, 3
- jump SlateportCity_PokemonFanClub_EventScript_1ADE46
+ goto SlateportCity_PokemonFanClub_EventScript_1ADE46
end
SlateportCity_PokemonFanClub_EventScript_1AE0A2:: @ 81AE0A2
@@ -4591,17 +4591,17 @@ VerdanturfTown_ContestLobby_EventScript_1AE0B6:: @ 81AE0B6
lock
faceplayer
checkflag 2
- jumpeq FallarborTown_ContestLobby_EventScript_1AE17E
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1AE17E
setvar 0x8005, 6
special sub_80BF2C4
compare RESULT, 1
- jumpeq FallarborTown_ContestLobby_EventScript_1AE17E
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1AE17E
copyvar 0x8009, 0x8006
msgbox FallarborTown_ContestLobby_Text_1A6F7C, 5
compare RESULT, 1
- jumpeq FallarborTown_ContestLobby_EventScript_1AE0F8
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1AE0F8
compare RESULT, 0
- jumpeq FallarborTown_ContestLobby_EventScript_1AE12D
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1AE12D
end
FallarborTown_ContestLobby_EventScript_1AE0F8:: @ 81AE0F8
@@ -4613,9 +4613,9 @@ FallarborTown_ContestLobby_EventScript_1AE0F8:: @ 81AE0F8
lock
faceplayer
compare RESULT, 1
- jumpeq FallarborTown_ContestLobby_EventScript_1AE137
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1AE137
compare RESULT, 0
- jumpeq FallarborTown_ContestLobby_EventScript_1AE12D
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1AE12D
end
FallarborTown_ContestLobby_EventScript_1AE12D:: @ 81AE12D
@@ -4634,11 +4634,11 @@ FallarborTown_ContestLobby_EventScript_1AE137:: @ 81AE137
lock
faceplayer
compare RESULT, 0
- jumpeq FallarborTown_ContestLobby_EventScript_1AE12D
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1AE12D
msgbox FallarborTown_ContestLobby_Text_1A7153, 4
setflag 2
setvar 0x8005, 6
- jump FallarborTown_ContestLobby_EventScript_1ADE46
+ goto FallarborTown_ContestLobby_EventScript_1ADE46
end
FallarborTown_ContestLobby_EventScript_1AE17E:: @ 81AE17E
@@ -4651,11 +4651,11 @@ LilycoveCity_ContestLobby_EventScript_1AE188:: @ 81AE188
SlateportCity_ContestLobby_EventScript_1AE188:: @ 81AE188
VerdanturfTown_ContestLobby_EventScript_1AE188:: @ 81AE188
compare 0x4086, 2
- jumpif 5, FallarborTown_ContestLobby_EventScript_1AE1FE
+ goto_if 5, FallarborTown_ContestLobby_EventScript_1AE1FE
setvar 0x8005, 6
special sub_80BF2C4
compare RESULT, 1
- jumpeq FallarborTown_ContestLobby_EventScript_1AE1FE
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1AE1FE
switch 0x4088
case 0, FallarborTown_ContestLobby_EventScript_1AE1FE
case 2, FallarborTown_ContestLobby_EventScript_1AE1EE
@@ -4688,17 +4688,17 @@ BattleTower_Lobby_EventScript_1AE1FF:: @ 81AE1FF
lock
faceplayer
checkflag 2
- jumpeq BattleTower_Lobby_EventScript_1AE2E3
+ goto_if_eq BattleTower_Lobby_EventScript_1AE2E3
setvar 0x8005, 7
special sub_80BF2C4
compare RESULT, 1
- jumpeq BattleTower_Lobby_EventScript_1AE2E3
+ goto_if_eq BattleTower_Lobby_EventScript_1AE2E3
copyvar 0x8009, 0x8006
msgbox BattleTower_Lobby_Text_1A776D, 5
compare RESULT, 1
- jumpeq BattleTower_Lobby_EventScript_1AE241
+ goto_if_eq BattleTower_Lobby_EventScript_1AE241
compare RESULT, 0
- jumpeq BattleTower_Lobby_EventScript_1AE297
+ goto_if_eq BattleTower_Lobby_EventScript_1AE297
end
BattleTower_Lobby_EventScript_1AE241:: @ 81AE241
@@ -4707,9 +4707,9 @@ BattleTower_Lobby_EventScript_1AE241:: @ 81AE241
multichoice 19, 8, 45, 1
copyvar 0x8008, RESULT
compare RESULT, 0
- callif 1, BattleTower_Lobby_EventScript_1AE2A1
+ call_if 1, BattleTower_Lobby_EventScript_1AE2A1
compare RESULT, 1
- callif 1, BattleTower_Lobby_EventScript_1AE2AA
+ call_if 1, BattleTower_Lobby_EventScript_1AE2AA
msgbox BattleTower_Lobby_Text_1A79EB, 4
setvar 0x8004, 12
copyvar 0x8005, 0x8009
@@ -4717,9 +4717,9 @@ BattleTower_Lobby_EventScript_1AE241:: @ 81AE241
lock
faceplayer
compare RESULT, 1
- jumpeq BattleTower_Lobby_EventScript_1AE2B3
+ goto_if_eq BattleTower_Lobby_EventScript_1AE2B3
compare RESULT, 0
- jumpeq BattleTower_Lobby_EventScript_1AE2D9
+ goto_if_eq BattleTower_Lobby_EventScript_1AE2D9
end
BattleTower_Lobby_EventScript_1AE297:: @ 81AE297
@@ -4737,12 +4737,12 @@ BattleTower_Lobby_EventScript_1AE2AA:: @ 81AE2AA
BattleTower_Lobby_EventScript_1AE2B3:: @ 81AE2B3
compare RESULT, 0
- jumpeq BattleTower_Lobby_EventScript_1AE2D9
+ goto_if_eq BattleTower_Lobby_EventScript_1AE2D9
msgbox BattleTower_Lobby_Text_1A7A6E, 4
setflag 2
copyvar 0x8004, 0x8008
setvar 0x8005, 7
- jump BattleTower_Lobby_EventScript_1ADE46
+ goto BattleTower_Lobby_EventScript_1ADE46
end
BattleTower_Lobby_EventScript_1AE2D9:: @ 81AE2D9
@@ -4757,11 +4757,11 @@ BattleTower_Lobby_EventScript_1AE2E3:: @ 81AE2E3
BattleTower_Lobby_EventScript_1AE2ED:: @ 81AE2ED
compare 0x40bc, 0
- jumpeq BattleTower_Lobby_EventScript_1AE30F
+ goto_if_eq BattleTower_Lobby_EventScript_1AE30F
setvar 0x8005, 7
special sub_80BF2C4
compare RESULT, 1
- jumpeq BattleTower_Lobby_EventScript_1AE30F
+ goto_if_eq BattleTower_Lobby_EventScript_1AE30F
clearflag 918
return
@@ -4823,25 +4823,25 @@ Text_RepelWoreOff: @ 81C33EF
MauvilleCity_GameCorner_EventScript_1C407E:: @ 81C407E
checkitem ITEM_COIN_CASE, 1
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_1572B5
+ goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
setvar 0x8004, 0
event_96 2
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_1C40DA
+ goto_if_eq MauvilleCity_GameCorner_EventScript_1C40DA
addvar 0x8004, 128
- jump MauvilleCity_GameCorner_EventScript_1C40DA
+ goto MauvilleCity_GameCorner_EventScript_1C40DA
end
MauvilleCity_GameCorner_EventScript_1C40AC:: @ 81C40AC
checkitem ITEM_COIN_CASE, 1
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_1572B5
+ goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
setvar 0x8004, 1
event_96 2
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_1C40DA
+ goto_if_eq MauvilleCity_GameCorner_EventScript_1C40DA
addvar 0x8004, 128
- jump MauvilleCity_GameCorner_EventScript_1C40DA
+ goto MauvilleCity_GameCorner_EventScript_1C40DA
end
MauvilleCity_GameCorner_EventScript_1C40DA:: @ 81C40DA
diff --git a/data-de/field_move_scripts.inc b/data-de/field_move_scripts.inc
index 017198c2d..8b005bf22 100644
--- a/data-de/field_move_scripts.inc
+++ b/data-de/field_move_scripts.inc
@@ -1,28 +1,28 @@
S_CuttableTree:: @ 81B0DCC
lockall
checkflag 2055
- jumpif 0, CannotUseCut
+ goto_if 0, CannotUseCut
checkattack MOVE_CUT
compare RESULT, 6
- jumpeq CannotUseCut
+ goto_if_eq CannotUseCut
setanimation 0, RESULT
bufferpartypoke 0, RESULT
bufferattack 1, MOVE_CUT
msgbox UseCutPromptText, 5
compare RESULT, 0
- jumpeq Cut_ChoseNo
+ goto_if_eq Cut_ChoseNo
msgbox UsedCutRockSmashText, 4
closebutton
doanimation 2
waitstate
- jump DoTreeCutMovement
+ goto DoTreeCutMovement
end
S_UseCut:: @ 81B0E16
lockall
doanimation 2
waitstate
- jump DoTreeCutMovement
+ goto DoTreeCutMovement
end
DoTreeCutMovement: @ 81B0E21
@@ -62,28 +62,28 @@ CannotUseCutText: @ 81B0E8E
S_BreakableRock:: @ 81B0EB7
lockall
checkflag 2057
- jumpif 0, CannotUseRockSmash
+ goto_if 0, CannotUseRockSmash
checkattack MOVE_ROCK_SMASH
compare RESULT, 6
- jumpeq CannotUseRockSmash
+ goto_if_eq CannotUseRockSmash
setanimation 0, RESULT
bufferpartypoke 0, RESULT
bufferattack 1, MOVE_ROCK_SMASH
msgbox UseRockSmashPromptText, 5
compare RESULT, 0
- jumpeq RockSmash_ChoseNo
+ goto_if_eq RockSmash_ChoseNo
msgbox UsedCutRockSmashText, 4
closebutton
doanimation 37
waitstate
- jump DoRockSmashMovement
+ goto DoRockSmashMovement
end
S_UseRockSmash:: @ 81B0F01
lockall
doanimation 37
waitstate
- jump DoRockSmashMovement
+ goto DoRockSmashMovement
end
DoRockSmashMovement: @ 81B0F0C
@@ -92,10 +92,10 @@ DoRockSmashMovement: @ 81B0F0C
disappear LAST_TALKED
specialval RESULT, sub_810F5BC
compare RESULT, 1
- jumpeq DoRockSmashMovement_Done
+ goto_if_eq DoRockSmashMovement_Done
special ScrSpecial_RockSmashWildEncounter
compare RESULT, 0
- jumpeq DoRockSmashMovement_Done
+ goto_if_eq DoRockSmashMovement_Done
waitstate
releaseall
end
@@ -129,27 +129,27 @@ CannotUseRockSmashText: @ 81B0F90
S_PushableBoulder:: @ 81B0FCB
lockall
checkflag 2058
- jumpif 0, CannotUseStrength
+ goto_if 0, CannotUseStrength
checkflag 2089
- jumpeq AlreadyUsedStrength
+ goto_if_eq AlreadyUsedStrength
checkattack 70
compare RESULT, 6
- jumpeq CannotUseStrength
+ goto_if_eq CannotUseStrength
setanimation 0, RESULT
msgbox UseStrengthPromptText, 5
compare RESULT, 0
- jumpeq Strength_ChoseNo
+ goto_if_eq Strength_ChoseNo
closebutton
doanimation 40
waitstate
- jump UsedStrength
+ goto UsedStrength
end
S_UseStrength:: @ 81B100E
lockall
doanimation 40
waitstate
- jump UsedStrength
+ goto UsedStrength
end
UsedStrength: @ 81B1019
@@ -195,15 +195,15 @@ S_UseWaterfall:: @ 81B115A
lockall
checkattack MOVE_WATERFALL
compare RESULT, 6
- jumpeq Waterfall_NoMonKnows
+ goto_if_eq Waterfall_NoMonKnows
bufferpartypoke 0, RESULT
setanimation 0, RESULT
msgbox UseWaterfallPromptText, 5
compare RESULT, 0
- jumpeq Waterfall_Done
+ goto_if_eq Waterfall_Done
msgbox UsedWaterfallText, 4
doanimation 43
- jump Waterfall_Done
+ goto Waterfall_Done
S_CannotUseWaterfall:: @ 81B1194
lockall
@@ -228,16 +228,16 @@ UseDiveScript:: @ 81B1220
lockall
checkattack MOVE_DIVE
compare RESULT, 6
- jumpeq CannotUseDive
+ goto_if_eq CannotUseDive
bufferpartypoke 0, RESULT
setanimation 0, RESULT
setanimation 1, 1
msgbox UseDivePromptText, 5
compare RESULT, 0
- jumpeq Dive_Done
+ goto_if_eq Dive_Done
msgbox UsedDiveText, 4
doanimation 44
- jump Dive_Done
+ goto Dive_Done
lockall
CannotUseDive: @ 81B125F
@@ -251,21 +251,21 @@ S_UseDiveUnderwater:: @ 81B1269
lockall
checkattack MOVE_DIVE
compare RESULT, 6
- jumpeq UnderwaterCannotUseDive
+ goto_if_eq UnderwaterCannotUseDive
bufferpartypoke 0, RESULT
setanimation 0, RESULT
setanimation 1, 1
msgbox UnderwaterUseDivePromptText, 5
compare RESULT, 0
- jumpeq UnderwaterDive_Done
+ goto_if_eq UnderwaterDive_Done
msgbox UsedDiveText, 4
doanimation 44
- jump UnderwaterDive_Done
+ goto UnderwaterDive_Done
UnderwaterCannotUseDive: @ 81B12A7
lockall
msgbox UnderwaterCannotUseDiveText, 4
- jump UnderwaterDive_Done
+ goto UnderwaterDive_Done
@ not used
SurfacingBlocked: @ 81B12B5
diff --git a/data/event_scripts.s b/data/event_scripts.s
index 0fc33c9ba..037e8a1b0 100644
--- a/data/event_scripts.s
+++ b/data/event_scripts.s
@@ -400,7 +400,7 @@ EventScript_15F384:
message UnknownString_81A3A87
waittext
checkflag 268
- jumpeq EventScript_15F3A0
+ goto_if_eq EventScript_15F3A0
goto EventScript_15F3E2
end
@@ -431,7 +431,7 @@ EventScript_15F3E2:
EventScript_15F419:
msgbox UnknownString_81A38FB, 5
compare RESULT, 0
- jumpeq EventScript_15F384
+ goto_if_eq EventScript_15F384
closebutton
special SecretBasePC_PackUp
releaseall
@@ -477,13 +477,13 @@ gUnknown_0815F49A:: @ 815F49A
EventScript_15F4A1:
special sub_80BC56C
compare RESULT, 1
- jumpeq EventScript_15F4E0
+ goto_if_eq EventScript_15F4E0
compare RESULT, 2
- jumpeq EventScript_15F503
+ goto_if_eq EventScript_15F503
special sub_80BC224
msgbox UnknownString_81A3958, 5
compare RESULT, 0
- jumpeq EventScript_15F452
+ goto_if_eq EventScript_15F452
msgbox UnknownString_81A3A22, 3
special sub_80BC5BC
special sub_80C683C
@@ -493,7 +493,7 @@ EventScript_15F4A1:
EventScript_15F4E0:
msgbox UnknownString_81A3982, 5
compare RESULT, 0
- jumpeq EventScript_15F452
+ goto_if_eq EventScript_15F452
msgbox UnknownString_81A3A3A, 3
special sub_80BC5BC
special sub_80C683C
@@ -527,13 +527,13 @@ gUnknown_0815F523:: @ 815F523
gUnknown_0815F528:: @ 815F528
special GetShieldToyTVDecorationInfo
compare RESULT, 0
- jumpeq EventScript_15F558
+ goto_if_eq EventScript_15F558
compare RESULT, 1
- jumpeq EventScript_15F561
+ goto_if_eq EventScript_15F561
compare RESULT, 2
- jumpeq EventScript_15F56A
+ goto_if_eq EventScript_15F56A
compare RESULT, 3
- jumpeq EventScript_15F573
+ goto_if_eq EventScript_15F573
end
EventScript_15F558:
@@ -937,7 +937,7 @@ gUnknown_0819F818:: @ 819F818
waitmove 0
specialval RESULT, ScrSpecial_HasTrainerBeenFought
compare RESULT, 0
- jumpif 5, EventScript_19F83F
+ goto_if 5, EventScript_19F83F
special PlayTrainerEncounterMusic
special sub_8082524
goto EventScript_19F8F2
@@ -951,10 +951,10 @@ gUnknown_0819F840:: @ 819F840
call EventScript_19F8E5
specialval RESULT, ScrSpecial_HasTrainerBeenFought
compare RESULT, 0
- jumpif 5, EventScript_19F877
+ goto_if 5, EventScript_19F877
special CheckForAlivePartyMons
compare RESULT, 0
- jumpif 5, EventScript_19F870
+ goto_if 5, EventScript_19F870
special PlayTrainerEncounterMusic
special sub_8082524
goto EventScript_19F8F2
@@ -980,7 +980,7 @@ gUnknown_0819F887:: @ 819F887
call EventScript_19F8E5
specialval RESULT, ScrSpecial_GetTrainerEyeRematchFlag
compare RESULT, 0
- jumpeq EventScript_19F8AD
+ goto_if_eq EventScript_19F8AD
special PlayTrainerEncounterMusic
special sub_8082524
special ScrSpecial_ShowTrainerIntroSpeech
@@ -997,10 +997,10 @@ EventScript_19F8AD:
gUnknown_0819F8AE:: @ 819F8AE
specialval RESULT, ScrSpecial_GetTrainerEyeRematchFlag
compare RESULT, 0
- jumpeq EventScript_19F8DD
+ goto_if_eq EventScript_19F8DD
special CheckForAlivePartyMons
compare RESULT, 0
- jumpif 5, EventScript_19F8DE
+ goto_if 5, EventScript_19F8DE
special PlayTrainerEncounterMusic
special sub_8082524
special ScrSpecial_ShowTrainerIntroSpeech
@@ -1037,15 +1037,15 @@ EventScript_19F8F2:
reptrainerbattle
specialval RESULT, ScrSpecial_GetTrainerBattleMode
compare RESULT, 0
- jumpeq EventScript_19F934
+ goto_if_eq EventScript_19F934
compare RESULT, 2
- jumpeq EventScript_19F936
+ goto_if_eq EventScript_19F936
compare RESULT, 1
- jumpeq EventScript_19F936
+ goto_if_eq EventScript_19F936
compare RESULT, 6
- jumpeq EventScript_19F936
+ goto_if_eq EventScript_19F936
compare RESULT, 8
- jumpeq EventScript_19F936
+ goto_if_eq EventScript_19F936
EventScript_19F934:
releaseall
@@ -1292,13 +1292,13 @@ EverGrandeCity_HallOfFame_EventScript_19FC13:: @ 819FC13
clearflag 861
special sub_810FAA0
checkflag 291
- callif 0, EverGrandeCity_HallOfFame_EventScript_19FC62
+ call_if 0, EverGrandeCity_HallOfFame_EventScript_19FC62
checkflag 255
- callif 0, EverGrandeCity_HallOfFame_EventScript_19FC70
+ call_if 0, EverGrandeCity_HallOfFame_EventScript_19FC70
checkflag 298
- callif 0, EverGrandeCity_HallOfFame_EventScript_19FC5A
+ call_if 0, EverGrandeCity_HallOfFame_EventScript_19FC5A
checkflag 123
- callif 0, EverGrandeCity_HallOfFame_EventScript_19FC5E
+ call_if 0, EverGrandeCity_HallOfFame_EventScript_19FC5E
return
EverGrandeCity_HallOfFame_EventScript_19FC5A:: @ 819FC5A
@@ -1327,20 +1327,20 @@ S_WhiteOut:: @ 819FC74
EventScript_19FC84:
checkflag 221
- jumpeq Route101_EventScript_1A14DC
+ goto_if_eq Route101_EventScript_1A14DC
checkflag 1213
- jumpif 0, Route101_EventScript_1A14DC
+ goto_if 0, Route101_EventScript_1A14DC
clearflag 929
setvar 0x4053, 2
return
gUnknown_0819FC9F:: @ 819FC9F
compare 0x4096, 1
- jumpeq EventScript_19FCC1
+ goto_if_eq EventScript_19FCC1
compare 0x4096, 2
- jumpeq EventScript_19FCD7
+ goto_if_eq EventScript_19FCD7
compare 0x4096, 3
- jumpeq EventScript_19FCF0
+ goto_if_eq EventScript_19FCF0
end
EventScript_19FCC1:
@@ -1393,15 +1393,15 @@ RustboroCity_PokemonCenter_1F_EventScript_19FD1B:: @ 819FD1B
SlateportCity_PokemonCenter_1F_EventScript_19FD1B:: @ 819FD1B
VerdanturfTown_PokemonCenter_1F_EventScript_19FD1B:: @ 819FD1B
checkflag 188
- jumpif 0, OldaleTown_PokemonCenter_1F_EventScript_1A14DC
+ goto_if 0, OldaleTown_PokemonCenter_1F_EventScript_1A14DC
checkflag 1217
- jumpeq OldaleTown_PokemonCenter_1F_EventScript_1A14DC
+ goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_1A14DC
checkflag 742
- jumpif 0, OldaleTown_PokemonCenter_1F_EventScript_19FD49
+ goto_if 0, OldaleTown_PokemonCenter_1F_EventScript_19FD49
checkflag 740
- jumpif 0, OldaleTown_PokemonCenter_1F_EventScript_19FD4F
+ goto_if 0, OldaleTown_PokemonCenter_1F_EventScript_19FD4F
checkflag 741
- jumpif 0, OldaleTown_PokemonCenter_1F_EventScript_19FD55
+ goto_if 0, OldaleTown_PokemonCenter_1F_EventScript_19FD55
return
OldaleTown_PokemonCenter_1F_EventScript_19FD49:: @ 819FD49
@@ -1434,9 +1434,9 @@ VerdanturfTown_PokemonCenter_1F_EventScript_19FD5B:: @ 819FD5B
faceplayer
msgbox gText_NurseJoy_Welcome, MSGBOX_YESNO
compare RESULT, 1
- jumpeq do_heal_party
+ goto_if_eq do_heal_party
compare RESULT, 0
- jumpeq dont_heal_party
+ goto_if_eq dont_heal_party
end
do_heal_party:: @ 819FD7C
@@ -1451,7 +1451,7 @@ do_heal_party:: @ 819FD7C
waitmove 0
special ScrSpecial_HealPlayerParty
checkflag 273
- jumpif 0, OldaleTown_PokemonCenter_1F_EventScript_19FDCE
+ goto_if 0, OldaleTown_PokemonCenter_1F_EventScript_19FDCE
goto OldaleTown_PokemonCenter_1F_EventScript_19FDB0
end
@@ -1472,9 +1472,9 @@ dont_heal_party:: @ 819FDC7
OldaleTown_PokemonCenter_1F_EventScript_19FDCE:: @ 819FDCE
specialval RESULT, IsPokerusInParty
compare RESULT, 1
- jumpeq OldaleTown_PokemonCenter_1F_EventScript_19FDEA
+ goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_19FDEA
compare RESULT, 0
- jumpeq OldaleTown_PokemonCenter_1F_EventScript_19FDB0
+ goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_19FDB0
end
OldaleTown_PokemonCenter_1F_EventScript_19FDEA:: @ 819FDEA
@@ -1499,9 +1499,9 @@ Std_ObtainItem_: @ 819FE07
checkitemtype 0x8000
call GetItem_HandlePocket
compare 0x8007, 0x1
- callif 1, Std_ObtainItem_Success
+ call_if 1, Std_ObtainItem_Success
compare 0x8007, 0x0
- callif 1, Std_ObtainItem_Fail
+ call_if 1, Std_ObtainItem_Fail
return
GetItem_HandlePocket:
@@ -1516,31 +1516,31 @@ GetItem_HandlePocket:
GetItem_HandlePocket_Items:
bufferstd 2, 0xE
compare 0x8007, 1
- callif 1, PlayGetItemFanfare
+ call_if 1, PlayGetItemFanfare
return
GetItem_HandlePocket_KeyItems:
bufferstd 2, 0xF
compare 0x8007, 1
- callif 1, PlayGetItemFanfare
+ call_if 1, PlayGetItemFanfare
return
GetItem_HandlePocket_PokeBalls:
bufferstd 2, 0x10
compare 0x8007, 1
- callif 1, PlayGetItemFanfare
+ call_if 1, PlayGetItemFanfare
return
GetItem_HandlePocket_TMsHMs:
bufferstd 2, 0x11
compare 0x8007, 1
- callif 1, PlayGetTMHMFanfare
+ call_if 1, PlayGetTMHMFanfare
return
GetItem_HandlePocket_Berries:
bufferstd 2, 0x12
compare 0x8007, 1
- callif 1, PlayGetItemFanfare
+ call_if 1, PlayGetItemFanfare
return
Std_ObtainItem_Success: @ 819FEB7
@@ -1572,9 +1572,9 @@ Std_ObtainDecoration: @ 819FEDA
Std_ObtainDecoration_: @ 819FEE8
bufferdecor 1, 0x8000
compare 0x8007, 1
- callif 1, Std_ObtainDecoration_Success
+ call_if 1, Std_ObtainDecoration_Success
compare 0x8007, 0
- callif 1, Std_ObtainDecoration_Fail
+ call_if 1, Std_ObtainDecoration_Fail
return
Std_ObtainDecoration_Success: @ 819FF03
@@ -1600,9 +1600,9 @@ Std_FindItem: @ 819FF21
checkitemtype 0x8000
call GetItem_HandlePocket
compare 0x8007, 1
- callif 1, Std_FindItem_Success
+ call_if 1, Std_FindItem_Success
compare 0x8007, 0
- callif 1, Std_FindItem_Fail
+ call_if 1, Std_FindItem_Fail
release
return
@@ -1629,9 +1629,9 @@ HiddenItemScript:: @ 819FF7B
checkitemtype 0x8005
call GetItem_HandlePocket
compare 0x8007, 1
- jumpeq HiddenItemScript_Success
+ goto_if_eq HiddenItemScript_Success
compare 0x8007, 0
- jumpeq HiddenItemScript_Fail
+ goto_if_eq HiddenItemScript_Fail
end
HiddenItemScript_Success:
@@ -1655,9 +1655,9 @@ UnusedMixRecordsScript: @ 819FFD5
faceplayer
msgbox UnusedMixRecordsPromptText, 5
compare RESULT, 1
- jumpeq UnusedMixRecordsScript_Yes
+ goto_if_eq UnusedMixRecordsScript_Yes
compare RESULT, 0
- jumpeq UnusedMixRecordsScript_Done
+ goto_if_eq UnusedMixRecordsScript_Done
goto UnusedMixRecordsScript_Done
UnusedMixRecordsScript_Yes: @ 819FFFA
special sub_80B929C
@@ -1708,9 +1708,9 @@ EventScript_1A0070:
EventScript_1A0085:
playsfx 2
checkflag 2123
- callif 0, EventScript_1A00AC
+ call_if 0, EventScript_1A00AC
checkflag 2123
- callif 1, EventScript_1A00B5
+ call_if 1, EventScript_1A00B5
msgbox UnknownString_81A0A35, 4
special ShowPokemonStorageSystem
waitstate
@@ -1734,7 +1734,7 @@ EventScript_1A00BE:
EventScript_1A00CB:
checkflag 2052
- jumpif 0, EventScript_1A00BE
+ goto_if 0, EventScript_1A00BE
playsfx 2
special AccessHallOfFamePC
waitstate
@@ -1812,13 +1812,13 @@ Route109_EventScript_1A010C:: @ 81A010C
UseSurfScript:: @ 81A0117
checkattack MOVE_SURF
compare RESULT, 6
- jumpeq UseSurfScript_NoMon
+ goto_if_eq UseSurfScript_NoMon
bufferpartypoke 0, RESULT
setanimation 0, RESULT
lockall
msgbox UseSurfPromptText, 5
compare RESULT, 0
- jumpeq UseSurfScript_No
+ goto_if_eq UseSurfScript_No
msgbox UsedSurfText, 4
doanimation 9
UseSurfScript_No: @ 81A014C
@@ -1837,9 +1837,9 @@ Route119_EventScript_1A014E:: @ 81A014E
RustboroCity_EventScript_1A014E:: @ 81A014E
checkgender
compare RESULT, 0
- jumpeq RustboroCity_EventScript_1A0166
+ goto_if_eq RustboroCity_EventScript_1A0166
compare RESULT, 1
- jumpeq RustboroCity_EventScript_1A016C
+ goto_if_eq RustboroCity_EventScript_1A016C
end
RustboroCity_EventScript_1A0166:: @ 81A0166
@@ -1855,9 +1855,9 @@ Route110_EventScript_1A0172:: @ 81A0172
Route119_EventScript_1A0172:: @ 81A0172
checkgender
compare RESULT, 0
- jumpeq LavaridgeTown_EventScript_1A018A
+ goto_if_eq LavaridgeTown_EventScript_1A018A
compare RESULT, 1
- jumpeq LavaridgeTown_EventScript_1A0190
+ goto_if_eq LavaridgeTown_EventScript_1A0190
end
LavaridgeTown_EventScript_1A018A:: @ 81A018A
@@ -2137,23 +2137,23 @@ LittlerootTown_ProfessorBirchsLab_EventScript_1A02F4:: @ 81A02F4
Route101_EventScript_1A02F4:: @ 81A02F4
Route103_EventScript_1A02F4:: @ 81A02F4
compare 0x4085, 0
- jumpeq Route101_EventScript_1A14DC
+ goto_if_eq Route101_EventScript_1A14DC
compare 0x4049, 0
- callif 1, Route101_EventScript_1A0358
+ call_if 1, Route101_EventScript_1A0358
compare 0x4049, 1
- callif 1, Route101_EventScript_1A0358
+ call_if 1, Route101_EventScript_1A0358
compare 0x4049, 2
- callif 1, Route101_EventScript_1A0365
+ call_if 1, Route101_EventScript_1A0365
compare 0x4049, 3
- callif 1, Route101_EventScript_1A0365
+ call_if 1, Route101_EventScript_1A0365
compare 0x4049, 4
- callif 1, Route101_EventScript_1A0372
+ call_if 1, Route101_EventScript_1A0372
compare 0x4049, 5
- callif 1, Route101_EventScript_1A0372
+ call_if 1, Route101_EventScript_1A0372
compare 0x4049, 6
- callif 1, Route101_EventScript_1A0358
+ call_if 1, Route101_EventScript_1A0358
compare 0x4049, 7
- callif 1, Route101_EventScript_1A0358
+ call_if 1, Route101_EventScript_1A0358
return
Route101_EventScript_1A0358:: @ 81A0358
@@ -2184,7 +2184,7 @@ Route103_EventScript_1A037F:: @ 81A037F
faceplayer
msgbox Route101_Text_1C4449, 5
compare RESULT, 0
- jumpeq Route101_EventScript_1A039B
+ goto_if_eq Route101_EventScript_1A039B
call Route101_EventScript_1A03B0
release
end
@@ -2213,7 +2213,7 @@ Route101_EventScript_1A03B0:: @ 81A03B0
msgbox Route101_Text_1C44DC, 4
call Route101_EventScript_1A03A5
compare 0x800a, 0
- jumpeq Route101_EventScript_1A14DC
+ goto_if_eq Route101_EventScript_1A14DC
setvar 0x8004, 1
specialval RESULT, ScriptGetPokedexInfo
copyvar 0x8008, 0x8005
@@ -2280,9 +2280,9 @@ Movement_1A047A:
BattleTower_Outside_EventScript_1A047C:: @ 81A047C
SouthernIsland_Exterior_EventScript_1A047C:: @ 81A047C
compare FACING, 1
- callif 1, BattleTower_Outside_EventScript_160B2F
+ call_if 1, BattleTower_Outside_EventScript_160B2F
compare FACING, 3
- callif 1, BattleTower_Outside_EventScript_160B3A
+ call_if 1, BattleTower_Outside_EventScript_160B3A
pause 30
spriteinvisible 255, 0, 0
call BattleTower_Outside_EventScript_1A040E
@@ -2425,7 +2425,7 @@ Route119_EventScript_1A0594:: @ 81A0594
Route120_EventScript_1A0594:: @ 81A0594
checkitem ITEM_DEVON_SCOPE, 1
compare RESULT, 1
- jumpeq Route119_EventScript_1A05AE
+ goto_if_eq Route119_EventScript_1A05AE
msgbox Route119_Text_171B93, 4
release
end
@@ -2433,7 +2433,7 @@ Route120_EventScript_1A0594:: @ 81A0594
Route119_EventScript_1A05AE:: @ 81A05AE
msgbox Route119_Text_171BB6, 5
compare RESULT, 1
- jumpeq Route119_EventScript_1A05C3
+ goto_if_eq Route119_EventScript_1A05C3
release
end
@@ -2450,19 +2450,19 @@ Route119_EventScript_1A05C3:: @ 81A05C3
waitpokecry
setwildbattle SPECIES_KECLEON, 30, ITEM_NONE
compare 0x8004, 1
- callif 1, Route119_EventScript_1A0646
+ call_if 1, Route119_EventScript_1A0646
compare 0x8004, 2
- callif 1, Route119_EventScript_1A064A
+ call_if 1, Route119_EventScript_1A064A
compare 0x8004, 3
- callif 1, Route119_EventScript_1A064E
+ call_if 1, Route119_EventScript_1A064E
compare 0x8004, 4
- callif 1, Route119_EventScript_1A0652
+ call_if 1, Route119_EventScript_1A0652
compare 0x8004, 5
- callif 1, Route119_EventScript_1A0656
+ call_if 1, Route119_EventScript_1A0656
compare 0x8004, 6
- callif 1, Route119_EventScript_1A065A
+ call_if 1, Route119_EventScript_1A065A
compare 0x8004, 7
- callif 1, Route119_EventScript_1A065E
+ call_if 1, Route119_EventScript_1A065E
setflag 2145
dowildbattle
clearflag 2145
@@ -3254,7 +3254,7 @@ gUnknown_081A14B8:: @ 81A14B8
special ExecuteWhiteOut
waitstate
compare RESULT, 1
- jumpeq EventScript_1A14CA
+ goto_if_eq EventScript_1A14CA
releaseall
end
@@ -3598,32 +3598,32 @@ gUnknown_081A2C51:: @ 81A2C51
special sub_80BB70C
special sub_80BB63C
compare RESULT, 1
- jumpeq EventScript_1A2E45
+ goto_if_eq EventScript_1A2E45
checkattack MOVE_SECRET_POWER
setanimation 0, RESULT
bufferattack 1, MOVE_SECRET_POWER
compare 0x8007, 1
- jumpeq EventScript_1A2CB0
+ goto_if_eq EventScript_1A2CB0
compare 0x8007, 2
- jumpeq EventScript_1A2CB0
+ goto_if_eq EventScript_1A2CB0
compare 0x8007, 3
- jumpeq EventScript_1A2CB0
+ goto_if_eq EventScript_1A2CB0
compare 0x8007, 4
- jumpeq EventScript_1A2CB0
+ goto_if_eq EventScript_1A2CB0
compare 0x8007, 5
- jumpeq EventScript_1A2D08
+ goto_if_eq EventScript_1A2D08
compare 0x8007, 6
- jumpeq EventScript_1A2D60
+ goto_if_eq EventScript_1A2D60
end
EventScript_1A2CB0:
lockall
compare RESULT, 6
- jumpeq EventScript_1A2CF1
+ goto_if_eq EventScript_1A2CF1
bufferpartypoke 0, RESULT
msgbox UnknownString_8198F34, 5
compare RESULT, 0
- jumpeq EventScript_1A2F3A
+ goto_if_eq EventScript_1A2F3A
msgbox UsedCutRockSmashText, 4
closebutton
doanimation 11
@@ -3650,11 +3650,11 @@ EventScript_1A2CFA:
EventScript_1A2D08:
lockall
compare RESULT, 6
- jumpeq EventScript_1A2D49
+ goto_if_eq EventScript_1A2D49
bufferpartypoke 0, RESULT
msgbox UnknownString_81A197B, 5
compare RESULT, 0
- jumpeq EventScript_1A2F3A
+ goto_if_eq EventScript_1A2F3A
msgbox UsedCutRockSmashText, 4
closebutton
doanimation 26
@@ -3681,11 +3681,11 @@ EventScript_1A2D52:
EventScript_1A2D60:
lockall
compare RESULT, 6
- jumpeq EventScript_1A2DA1
+ goto_if_eq EventScript_1A2DA1
bufferpartypoke 0, RESULT
msgbox UnknownString_81A1A4B, 5
compare RESULT, 0
- jumpeq EventScript_1A2F3A
+ goto_if_eq EventScript_1A2F3A
msgbox UsedCutRockSmashText, 4
closebutton
doanimation 27
@@ -3729,7 +3729,7 @@ SecretBase_RedCave1_EventScript_1A2DDE:: @ 81A2DDE
setvar 0x4097, 1
msgbox SecretBase_RedCave1_Text_198F89, 5
compare RESULT, 1
- jumpeq SecretBase_RedCave1_EventScript_1A2E08
+ goto_if_eq SecretBase_RedCave1_EventScript_1A2E08
closebutton
playsfx 9
special sub_80BC440
@@ -3753,7 +3753,7 @@ gUnknown_081A2E14:: @ 81A2E14
playsfx 9
special sub_80BC114
compare RESULT, 0
- jumpeq EventScript_1A2E38
+ goto_if_eq EventScript_1A2E38
clearflag 173
special sub_80BBAF0
setvar 0x4089, 0
@@ -3770,57 +3770,57 @@ EventScript_1A2E38:
EventScript_1A2E45:
checkattack MOVE_SECRET_POWER
compare RESULT, 6
- jumpeq EventScript_1A2EF7
+ goto_if_eq EventScript_1A2EF7
setanimation 0, RESULT
setorcopyvar 0x8004, RESULT
lockall
special GetSecretBaseNearbyMapName
msgbox UnknownString_81A3C71, 5
compare RESULT, 0
- jumpeq EventScript_1A2F3A
+ goto_if_eq EventScript_1A2F3A
msgbox UnknownString_81A38FB, 5
compare RESULT, 0
- jumpeq EventScript_1A2F3A
+ goto_if_eq EventScript_1A2F3A
fadescreen 1
special sub_80BC50C
closebutton
fadescreen 0
msgbox UnknownString_81A3CC9, 5
compare RESULT, 0
- jumpeq EventScript_1A2F3A
+ goto_if_eq EventScript_1A2F3A
bufferpartypoke 0, 0x8004
bufferattack 1, MOVE_SECRET_POWER
msgbox UsedCutRockSmashText, 4
closebutton
closebutton
compare 0x8007, 1
- jumpeq gUnknown_081A2CE6
+ goto_if_eq gUnknown_081A2CE6
compare 0x8007, 2
- jumpeq gUnknown_081A2CE6
+ goto_if_eq gUnknown_081A2CE6
compare 0x8007, 3
- jumpeq gUnknown_081A2CE6
+ goto_if_eq gUnknown_081A2CE6
compare 0x8007, 4
- jumpeq gUnknown_081A2CE6
+ goto_if_eq gUnknown_081A2CE6
compare 0x8007, 5
- jumpeq gUnknown_081A2D3E
+ goto_if_eq gUnknown_081A2D3E
compare 0x8007, 6
- jumpeq gUnknown_081A2D96
+ goto_if_eq gUnknown_081A2D96
releaseall
end
EventScript_1A2EF7::
compare 0x8007, 1
- jumpeq EventScript_1A2CF1
+ goto_if_eq EventScript_1A2CF1
compare 0x8007, 2
- jumpeq EventScript_1A2CF1
+ goto_if_eq EventScript_1A2CF1
compare 0x8007, 3
- jumpeq EventScript_1A2CF1
+ goto_if_eq EventScript_1A2CF1
compare 0x8007, 4
- jumpeq EventScript_1A2CF1
+ goto_if_eq EventScript_1A2CF1
compare 0x8007, 5
- jumpeq EventScript_1A2D49
+ goto_if_eq EventScript_1A2D49
compare 0x8007, 6
- jumpeq EventScript_1A2DA1
+ goto_if_eq EventScript_1A2DA1
end
EventScript_1A2F3A::
@@ -3873,10 +3873,10 @@ gUnknown_081A2F8A:: @ 81A2F8A
EventScript_1A2F95:
special sub_8100A7C
compare RESULT, 1
- jumpeq EventScript_1A2FBF
+ goto_if_eq EventScript_1A2FBF
addvar 0x8004, 1
compare 0x8005, 0
- jumpeq EventScript_1A2F95
+ goto_if_eq EventScript_1A2F95
disappear 0x8006
setflag 0x8005
goto EventScript_1A2F95
@@ -3911,42 +3911,42 @@ SecretBase_YellowCave3_EventScript_1A2FC0:: @ 81A2FC0
SecretBase_YellowCave4_EventScript_1A2FC0:: @ 81A2FC0
special sub_80BCE90
compare 0x8004, 0
- jumpeq SecretBase_RedCave1_EventScript_1A3032
+ goto_if_eq SecretBase_RedCave1_EventScript_1A3032
compare 0x8004, 1
- jumpeq SecretBase_RedCave1_EventScript_1A30AE
+ goto_if_eq SecretBase_RedCave1_EventScript_1A30AE
compare 0x8004, 2
- jumpeq SecretBase_RedCave1_EventScript_1A312A
+ goto_if_eq SecretBase_RedCave1_EventScript_1A312A
compare 0x8004, 3
- jumpeq SecretBase_RedCave1_EventScript_1A31A6
+ goto_if_eq SecretBase_RedCave1_EventScript_1A31A6
compare 0x8004, 4
- jumpeq SecretBase_RedCave1_EventScript_1A3222
+ goto_if_eq SecretBase_RedCave1_EventScript_1A3222
compare 0x8004, 5
- jumpeq SecretBase_RedCave1_EventScript_1A329E
+ goto_if_eq SecretBase_RedCave1_EventScript_1A329E
compare 0x8004, 6
- jumpeq SecretBase_RedCave1_EventScript_1A331A
+ goto_if_eq SecretBase_RedCave1_EventScript_1A331A
compare 0x8004, 7
- jumpeq SecretBase_RedCave1_EventScript_1A3396
+ goto_if_eq SecretBase_RedCave1_EventScript_1A3396
compare 0x8004, 8
- jumpeq SecretBase_RedCave1_EventScript_1A3412
+ goto_if_eq SecretBase_RedCave1_EventScript_1A3412
compare 0x8004, 9
- jumpeq SecretBase_RedCave1_EventScript_1A348E
+ goto_if_eq SecretBase_RedCave1_EventScript_1A348E
end
SecretBase_RedCave1_EventScript_1A3032:: @ 81A3032
checkflag 2052
- jumpif 0, SecretBase_RedCave1_EventScript_1A3086
+ goto_if 0, SecretBase_RedCave1_EventScript_1A3086
compare RESULT, 1
- jumpeq SecretBase_RedCave1_EventScript_1A30A5
+ goto_if_eq SecretBase_RedCave1_EventScript_1A30A5
lock
faceplayer
msgbox SecretBase_RedCave1_Text_1A1AEA, 5
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A308F
+ goto_if_eq SecretBase_RedCave1_EventScript_1A308F
setvar RESULT, 1
special sub_80BCE4C
call S_DoSaveDialog
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A308F
+ goto_if_eq SecretBase_RedCave1_EventScript_1A308F
hidebox 0, 0, 15, 10
msgbox SecretBase_RedCave1_Text_1A1B83, 4
goto SecretBase_RedCave1_EventScript_1A350A
@@ -3969,19 +3969,19 @@ SecretBase_RedCave1_EventScript_1A30A5:: @ 81A30A5
SecretBase_RedCave1_EventScript_1A30AE:: @ 81A30AE
checkflag 2052
- jumpif 0, SecretBase_RedCave1_EventScript_1A3102
+ goto_if 0, SecretBase_RedCave1_EventScript_1A3102
compare RESULT, 1
- jumpeq SecretBase_RedCave1_EventScript_1A3121
+ goto_if_eq SecretBase_RedCave1_EventScript_1A3121
lock
faceplayer
msgbox SecretBase_RedCave1_Text_1A1E67, 5
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A310B
+ goto_if_eq SecretBase_RedCave1_EventScript_1A310B
setvar RESULT, 1
special sub_80BCE4C
call S_DoSaveDialog
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A310B
+ goto_if_eq SecretBase_RedCave1_EventScript_1A310B
hidebox 0, 0, 15, 10
msgbox SecretBase_RedCave1_Text_1A1F04, 4
goto SecretBase_RedCave1_EventScript_1A350A
@@ -4004,19 +4004,19 @@ SecretBase_RedCave1_EventScript_1A3121:: @ 81A3121
SecretBase_RedCave1_EventScript_1A312A:: @ 81A312A
checkflag 2052
- jumpif 0, SecretBase_RedCave1_EventScript_1A317E
+ goto_if 0, SecretBase_RedCave1_EventScript_1A317E
compare RESULT, 1
- jumpeq SecretBase_RedCave1_EventScript_1A319D
+ goto_if_eq SecretBase_RedCave1_EventScript_1A319D
lock
faceplayer
msgbox SecretBase_RedCave1_Text_1A218F, 5
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A3187
+ goto_if_eq SecretBase_RedCave1_EventScript_1A3187
setvar RESULT, 1
special sub_80BCE4C
call S_DoSaveDialog
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A3187
+ goto_if_eq SecretBase_RedCave1_EventScript_1A3187
hidebox 0, 0, 15, 10
msgbox SecretBase_RedCave1_Text_1A2220, 4
goto SecretBase_RedCave1_EventScript_1A350A
@@ -4039,19 +4039,19 @@ SecretBase_RedCave1_EventScript_1A319D:: @ 81A319D
SecretBase_RedCave1_EventScript_1A31A6:: @ 81A31A6
checkflag 2052
- jumpif 0, SecretBase_RedCave1_EventScript_1A31FA
+ goto_if 0, SecretBase_RedCave1_EventScript_1A31FA
compare RESULT, 1
- jumpeq SecretBase_RedCave1_EventScript_1A3219
+ goto_if_eq SecretBase_RedCave1_EventScript_1A3219
lock
faceplayer
msgbox SecretBase_RedCave1_Text_1A24E1, 5
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A3203
+ goto_if_eq SecretBase_RedCave1_EventScript_1A3203
setvar RESULT, 1
special sub_80BCE4C
call S_DoSaveDialog
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A3203
+ goto_if_eq SecretBase_RedCave1_EventScript_1A3203
hidebox 0, 0, 15, 10
msgbox SecretBase_RedCave1_Text_1A256F, 4
goto SecretBase_RedCave1_EventScript_1A350A
@@ -4074,19 +4074,19 @@ SecretBase_RedCave1_EventScript_1A3219:: @ 81A3219
SecretBase_RedCave1_EventScript_1A3222:: @ 81A3222
checkflag 2052
- jumpif 0, SecretBase_RedCave1_EventScript_1A3276
+ goto_if 0, SecretBase_RedCave1_EventScript_1A3276
compare RESULT, 1
- jumpeq SecretBase_RedCave1_EventScript_1A3295
+ goto_if_eq SecretBase_RedCave1_EventScript_1A3295
lock
faceplayer
msgbox SecretBase_RedCave1_Text_1A2830, 5
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A327F
+ goto_if_eq SecretBase_RedCave1_EventScript_1A327F
setvar RESULT, 1
special sub_80BCE4C
call S_DoSaveDialog
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A327F
+ goto_if_eq SecretBase_RedCave1_EventScript_1A327F
hidebox 0, 0, 15, 10
msgbox SecretBase_RedCave1_Text_1A28D7, 4
goto SecretBase_RedCave1_EventScript_1A350A
@@ -4109,19 +4109,19 @@ SecretBase_RedCave1_EventScript_1A3295:: @ 81A3295
SecretBase_RedCave1_EventScript_1A329E:: @ 81A329E
checkflag 2052
- jumpif 0, SecretBase_RedCave1_EventScript_1A32F2
+ goto_if 0, SecretBase_RedCave1_EventScript_1A32F2
compare RESULT, 1
- jumpeq SecretBase_RedCave1_EventScript_1A3311
+ goto_if_eq SecretBase_RedCave1_EventScript_1A3311
lock
faceplayer
msgbox SecretBase_RedCave1_Text_1A1CB2, 5
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A32FB
+ goto_if_eq SecretBase_RedCave1_EventScript_1A32FB
setvar RESULT, 1
special sub_80BCE4C
call S_DoSaveDialog
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A32FB
+ goto_if_eq SecretBase_RedCave1_EventScript_1A32FB
hidebox 0, 0, 15, 10
msgbox SecretBase_RedCave1_Text_1A1D48, 4
goto SecretBase_RedCave1_EventScript_1A350A
@@ -4144,19 +4144,19 @@ SecretBase_RedCave1_EventScript_1A3311:: @ 81A3311
SecretBase_RedCave1_EventScript_1A331A:: @ 81A331A
checkflag 2052
- jumpif 0, SecretBase_RedCave1_EventScript_1A336E
+ goto_if 0, SecretBase_RedCave1_EventScript_1A336E
compare RESULT, 1
- jumpeq SecretBase_RedCave1_EventScript_1A338D
+ goto_if_eq SecretBase_RedCave1_EventScript_1A338D
lock
faceplayer
msgbox SecretBase_RedCave1_Text_1A2026, 5
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A3377
+ goto_if_eq SecretBase_RedCave1_EventScript_1A3377
setvar RESULT, 1
special sub_80BCE4C
call S_DoSaveDialog
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A3377
+ goto_if_eq SecretBase_RedCave1_EventScript_1A3377
hidebox 0, 0, 15, 10
msgbox SecretBase_RedCave1_Text_1A2095, 4
goto SecretBase_RedCave1_EventScript_1A350A
@@ -4179,19 +4179,19 @@ SecretBase_RedCave1_EventScript_1A338D:: @ 81A338D
SecretBase_RedCave1_EventScript_1A3396:: @ 81A3396
checkflag 2052
- jumpif 0, SecretBase_RedCave1_EventScript_1A33EA
+ goto_if 0, SecretBase_RedCave1_EventScript_1A33EA
compare RESULT, 1
- jumpeq SecretBase_RedCave1_EventScript_1A3409
+ goto_if_eq SecretBase_RedCave1_EventScript_1A3409
lock
faceplayer
msgbox SecretBase_RedCave1_Text_1A236A, 5
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A33F3
+ goto_if_eq SecretBase_RedCave1_EventScript_1A33F3
setvar RESULT, 1
special sub_80BCE4C
call S_DoSaveDialog
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A33F3
+ goto_if_eq SecretBase_RedCave1_EventScript_1A33F3
hidebox 0, 0, 15, 10
msgbox SecretBase_RedCave1_Text_1A2405, 4
goto SecretBase_RedCave1_EventScript_1A350A
@@ -4214,19 +4214,19 @@ SecretBase_RedCave1_EventScript_1A3409:: @ 81A3409
SecretBase_RedCave1_EventScript_1A3412:: @ 81A3412
checkflag 2052
- jumpif 0, SecretBase_RedCave1_EventScript_1A3466
+ goto_if 0, SecretBase_RedCave1_EventScript_1A3466
compare RESULT, 1
- jumpeq SecretBase_RedCave1_EventScript_1A3485
+ goto_if_eq SecretBase_RedCave1_EventScript_1A3485
lock
faceplayer
msgbox SecretBase_RedCave1_Text_1A2663, 5
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A346F
+ goto_if_eq SecretBase_RedCave1_EventScript_1A346F
setvar RESULT, 1
special sub_80BCE4C
call S_DoSaveDialog
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A346F
+ goto_if_eq SecretBase_RedCave1_EventScript_1A346F
hidebox 0, 0, 15, 10
msgbox SecretBase_RedCave1_Text_1A2710, 4
goto SecretBase_RedCave1_EventScript_1A350A
@@ -4249,19 +4249,19 @@ SecretBase_RedCave1_EventScript_1A3485:: @ 81A3485
SecretBase_RedCave1_EventScript_1A348E:: @ 81A348E
checkflag 2052
- jumpif 0, SecretBase_RedCave1_EventScript_1A34E2
+ goto_if 0, SecretBase_RedCave1_EventScript_1A34E2
compare RESULT, 1
- jumpeq SecretBase_RedCave1_EventScript_1A3501
+ goto_if_eq SecretBase_RedCave1_EventScript_1A3501
lock
faceplayer
msgbox SecretBase_RedCave1_Text_1A2A13, 5
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A34EB
+ goto_if_eq SecretBase_RedCave1_EventScript_1A34EB
setvar RESULT, 1
special sub_80BCE4C
call S_DoSaveDialog
compare RESULT, 0
- jumpeq SecretBase_RedCave1_EventScript_1A34EB
+ goto_if_eq SecretBase_RedCave1_EventScript_1A34EB
hidebox 0, 0, 15, 10
msgbox SecretBase_RedCave1_Text_1A2AE2, 4
goto SecretBase_RedCave1_EventScript_1A350A
@@ -4382,13 +4382,13 @@ SlateportCity_PokemonFanClub_EventScript_1ADE4D:: @ 81ADE4D
setvar 0x8005, 1
special sub_80BF2C4
compare RESULT, 1
- jumpeq SlateportCity_PokemonFanClub_EventScript_1ADED6
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADED6
copyvar 0x8009, 0x8006
msgbox SlateportCity_PokemonFanClub_Text_1A8704, 5
compare RESULT, 1
- jumpeq SlateportCity_PokemonFanClub_EventScript_1ADE84
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADE84
compare RESULT, 0
- jumpeq SlateportCity_PokemonFanClub_EventScript_1ADEB9
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADEB9
end
SlateportCity_PokemonFanClub_EventScript_1ADE84:: @ 81ADE84
@@ -4400,9 +4400,9 @@ SlateportCity_PokemonFanClub_EventScript_1ADE84:: @ 81ADE84
lock
faceplayer
compare RESULT, 1
- jumpeq SlateportCity_PokemonFanClub_EventScript_1ADEC3
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADEC3
compare RESULT, 0
- jumpeq SlateportCity_PokemonFanClub_EventScript_1ADEB9
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADEB9
end
SlateportCity_PokemonFanClub_EventScript_1ADEB9:: @ 81ADEB9
@@ -4427,24 +4427,24 @@ SlateportCity_OceanicMuseum_1F_EventScript_1ADEE0:: @ 81ADEE0
setvar 0x8005, 2
special sub_80BF2C4
compare RESULT, 1
- jumpeq SlateportCity_OceanicMuseum_1F_EventScript_1ADF96
+ goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF96
copyvar 0x8009, 0x8006
checkflag 105
- jumpeq SlateportCity_OceanicMuseum_1F_EventScript_1ADF25
+ goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF25
setflag 105
msgbox SlateportCity_OceanicMuseum_1F_Text_1A927F, 5
compare RESULT, 1
- jumpeq SlateportCity_OceanicMuseum_1F_EventScript_1ADF44
+ goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF44
compare RESULT, 0
- jumpeq SlateportCity_OceanicMuseum_1F_EventScript_1ADF79
+ goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF79
end
SlateportCity_OceanicMuseum_1F_EventScript_1ADF25:: @ 81ADF25
msgbox SlateportCity_OceanicMuseum_1F_Text_1A934C, 5
compare RESULT, 1
- jumpeq SlateportCity_OceanicMuseum_1F_EventScript_1ADF44
+ goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF44
compare RESULT, 0
- jumpeq SlateportCity_OceanicMuseum_1F_EventScript_1ADF79
+ goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF79
end
SlateportCity_OceanicMuseum_1F_EventScript_1ADF44:: @ 81ADF44
@@ -4456,9 +4456,9 @@ SlateportCity_OceanicMuseum_1F_EventScript_1ADF44:: @ 81ADF44
lock
faceplayer
compare RESULT, 1
- jumpeq SlateportCity_OceanicMuseum_1F_EventScript_1ADF83
+ goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF83
compare RESULT, 0
- jumpeq SlateportCity_OceanicMuseum_1F_EventScript_1ADF79
+ goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF79
end
SlateportCity_OceanicMuseum_1F_EventScript_1ADF79:: @ 81ADF79
@@ -4482,17 +4482,17 @@ SlateportCity_PokemonFanClub_EventScript_1ADFA0:: @ 81ADFA0
faceplayer
specialval RESULT, sub_80BF544
compare RESULT, 0
- jumpeq SlateportCity_PokemonFanClub_EventScript_1ADE4D
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADE4D
setvar 0x8005, 3
special sub_80BF2C4
compare RESULT, 1
- jumpeq SlateportCity_PokemonFanClub_EventScript_1AE0AC
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_1AE0AC
copyvar 0x8009, 0x8006
msgbox SlateportCity_PokemonFanClub_Text_1A82F1, 5
compare RESULT, 1
- jumpeq SlateportCity_PokemonFanClub_EventScript_1ADFE9
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADFE9
compare RESULT, 0
- jumpeq SlateportCity_PokemonFanClub_EventScript_1AE0A2
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_1AE0A2
end
SlateportCity_PokemonFanClub_EventScript_1ADFE9:: @ 81ADFE9
@@ -4528,14 +4528,14 @@ SlateportCity_PokemonFanClub_EventScript_1AE04A:: @ 81AE04A
lock
faceplayer
compare RESULT, 0
- jumpeq SlateportCity_PokemonFanClub_EventScript_1AE0A2
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_1AE0A2
msgbox SlateportCity_PokemonFanClub_Text_1A852D, 4
setvar 0x8006, 1
call SlateportCity_PokemonFanClub_EventScript_1A00F3
lock
faceplayer
compare RESULT, 0
- jumpeq SlateportCity_PokemonFanClub_EventScript_1AE0A2
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_1AE0A2
msgbox SlateportCity_PokemonFanClub_Text_1A85A6, 4
copyvar 0x8007, 0x800a
setvar 0x8005, 3
@@ -4559,17 +4559,17 @@ VerdanturfTown_ContestLobby_EventScript_1AE0B6:: @ 81AE0B6
lock
faceplayer
checkflag 2
- jumpeq FallarborTown_ContestLobby_EventScript_1AE17E
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1AE17E
setvar 0x8005, 6
special sub_80BF2C4
compare RESULT, 1
- jumpeq FallarborTown_ContestLobby_EventScript_1AE17E
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1AE17E
copyvar 0x8009, 0x8006
msgbox FallarborTown_ContestLobby_Text_1A6F7C, 5
compare RESULT, 1
- jumpeq FallarborTown_ContestLobby_EventScript_1AE0F8
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1AE0F8
compare RESULT, 0
- jumpeq FallarborTown_ContestLobby_EventScript_1AE12D
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1AE12D
end
FallarborTown_ContestLobby_EventScript_1AE0F8:: @ 81AE0F8
@@ -4581,9 +4581,9 @@ FallarborTown_ContestLobby_EventScript_1AE0F8:: @ 81AE0F8
lock
faceplayer
compare RESULT, 1
- jumpeq FallarborTown_ContestLobby_EventScript_1AE137
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1AE137
compare RESULT, 0
- jumpeq FallarborTown_ContestLobby_EventScript_1AE12D
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1AE12D
end
FallarborTown_ContestLobby_EventScript_1AE12D:: @ 81AE12D
@@ -4602,7 +4602,7 @@ FallarborTown_ContestLobby_EventScript_1AE137:: @ 81AE137
lock
faceplayer
compare RESULT, 0
- jumpeq FallarborTown_ContestLobby_EventScript_1AE12D
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1AE12D
msgbox FallarborTown_ContestLobby_Text_1A7153, 4
setflag 2
setvar 0x8005, 6
@@ -4619,11 +4619,11 @@ LilycoveCity_ContestLobby_EventScript_1AE188:: @ 81AE188
SlateportCity_ContestLobby_EventScript_1AE188:: @ 81AE188
VerdanturfTown_ContestLobby_EventScript_1AE188:: @ 81AE188
compare 0x4086, 2
- jumpif 5, FallarborTown_ContestLobby_EventScript_1AE1FE
+ goto_if 5, FallarborTown_ContestLobby_EventScript_1AE1FE
setvar 0x8005, 6
special sub_80BF2C4
compare RESULT, 1
- jumpeq FallarborTown_ContestLobby_EventScript_1AE1FE
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1AE1FE
switch 0x4088
case 0, FallarborTown_ContestLobby_EventScript_1AE1FE
case 2, FallarborTown_ContestLobby_EventScript_1AE1EE
@@ -4656,17 +4656,17 @@ BattleTower_Lobby_EventScript_1AE1FF:: @ 81AE1FF
lock
faceplayer
checkflag 2
- jumpeq BattleTower_Lobby_EventScript_1AE2E3
+ goto_if_eq BattleTower_Lobby_EventScript_1AE2E3
setvar 0x8005, 7
special sub_80BF2C4
compare RESULT, 1
- jumpeq BattleTower_Lobby_EventScript_1AE2E3
+ goto_if_eq BattleTower_Lobby_EventScript_1AE2E3
copyvar 0x8009, 0x8006
msgbox BattleTower_Lobby_Text_1A776D, 5
compare RESULT, 1
- jumpeq BattleTower_Lobby_EventScript_1AE241
+ goto_if_eq BattleTower_Lobby_EventScript_1AE241
compare RESULT, 0
- jumpeq BattleTower_Lobby_EventScript_1AE297
+ goto_if_eq BattleTower_Lobby_EventScript_1AE297
end
BattleTower_Lobby_EventScript_1AE241:: @ 81AE241
@@ -4675,9 +4675,9 @@ BattleTower_Lobby_EventScript_1AE241:: @ 81AE241
multichoice 19, 8, 45, 1
copyvar 0x8008, RESULT
compare RESULT, 0
- callif 1, BattleTower_Lobby_EventScript_1AE2A1
+ call_if 1, BattleTower_Lobby_EventScript_1AE2A1
compare RESULT, 1
- callif 1, BattleTower_Lobby_EventScript_1AE2AA
+ call_if 1, BattleTower_Lobby_EventScript_1AE2AA
msgbox BattleTower_Lobby_Text_1A79EB, 4
setvar 0x8004, 12
copyvar 0x8005, 0x8009
@@ -4685,9 +4685,9 @@ BattleTower_Lobby_EventScript_1AE241:: @ 81AE241
lock
faceplayer
compare RESULT, 1
- jumpeq BattleTower_Lobby_EventScript_1AE2B3
+ goto_if_eq BattleTower_Lobby_EventScript_1AE2B3
compare RESULT, 0
- jumpeq BattleTower_Lobby_EventScript_1AE2D9
+ goto_if_eq BattleTower_Lobby_EventScript_1AE2D9
end
BattleTower_Lobby_EventScript_1AE297:: @ 81AE297
@@ -4705,7 +4705,7 @@ BattleTower_Lobby_EventScript_1AE2AA:: @ 81AE2AA
BattleTower_Lobby_EventScript_1AE2B3:: @ 81AE2B3
compare RESULT, 0
- jumpeq BattleTower_Lobby_EventScript_1AE2D9
+ goto_if_eq BattleTower_Lobby_EventScript_1AE2D9
msgbox BattleTower_Lobby_Text_1A7A6E, 4
setflag 2
copyvar 0x8004, 0x8008
@@ -4725,11 +4725,11 @@ BattleTower_Lobby_EventScript_1AE2E3:: @ 81AE2E3
BattleTower_Lobby_EventScript_1AE2ED:: @ 81AE2ED
compare 0x40bc, 0
- jumpeq BattleTower_Lobby_EventScript_1AE30F
+ goto_if_eq BattleTower_Lobby_EventScript_1AE30F
setvar 0x8005, 7
special sub_80BF2C4
compare RESULT, 1
- jumpeq BattleTower_Lobby_EventScript_1AE30F
+ goto_if_eq BattleTower_Lobby_EventScript_1AE30F
clearflag 918
return
@@ -4791,11 +4791,11 @@ Text_RepelWoreOff: @ 81C33EF
MauvilleCity_GameCorner_EventScript_1C407E:: @ 81C407E
checkitem ITEM_COIN_CASE, 1
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_1572B5
+ goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
setvar 0x8004, 0
event_96 2
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_1C40DA
+ goto_if_eq MauvilleCity_GameCorner_EventScript_1C40DA
addvar 0x8004, 128
goto MauvilleCity_GameCorner_EventScript_1C40DA
end
@@ -4803,11 +4803,11 @@ MauvilleCity_GameCorner_EventScript_1C407E:: @ 81C407E
MauvilleCity_GameCorner_EventScript_1C40AC:: @ 81C40AC
checkitem ITEM_COIN_CASE, 1
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_1572B5
+ goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
setvar 0x8004, 1
event_96 2
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_1C40DA
+ goto_if_eq MauvilleCity_GameCorner_EventScript_1C40DA
addvar 0x8004, 128
goto MauvilleCity_GameCorner_EventScript_1C40DA
end
diff --git a/data/field_move_scripts.inc b/data/field_move_scripts.inc
index cdda2edcc..c3aeeab7a 100644
--- a/data/field_move_scripts.inc
+++ b/data/field_move_scripts.inc
@@ -1,16 +1,16 @@
S_CuttableTree:: @ 81B0DCC
lockall
checkflag 2055
- jumpif 0, CannotUseCut
+ goto_if 0, CannotUseCut
checkattack MOVE_CUT
compare RESULT, 6
- jumpeq CannotUseCut
+ goto_if_eq CannotUseCut
setanimation 0, RESULT
bufferpartypoke 0, RESULT
bufferattack 1, MOVE_CUT
msgbox UseCutPromptText, 5
compare RESULT, 0
- jumpeq Cut_ChoseNo
+ goto_if_eq Cut_ChoseNo
msgbox UsedCutRockSmashText, 4
closebutton
doanimation 2
@@ -59,16 +59,16 @@ CannotUseCutText: @ 81B0E8E
S_BreakableRock:: @ 81B0EB7
lockall
checkflag 2057
- jumpif 0, CannotUseRockSmash
+ goto_if 0, CannotUseRockSmash
checkattack MOVE_ROCK_SMASH
compare RESULT, 6
- jumpeq CannotUseRockSmash
+ goto_if_eq CannotUseRockSmash
setanimation 0, RESULT
bufferpartypoke 0, RESULT
bufferattack 1, MOVE_ROCK_SMASH
msgbox UseRockSmashPromptText, 5
compare RESULT, 0
- jumpeq RockSmash_ChoseNo
+ goto_if_eq RockSmash_ChoseNo
msgbox UsedCutRockSmashText, 4
closebutton
doanimation 37
@@ -89,10 +89,10 @@ DoRockSmashMovement: @ 81B0F0C
disappear LAST_TALKED
specialval RESULT, sub_810F5BC
compare RESULT, 1
- jumpeq DoRockSmashMovement_Done
+ goto_if_eq DoRockSmashMovement_Done
special ScrSpecial_RockSmashWildEncounter
compare RESULT, 0
- jumpeq DoRockSmashMovement_Done
+ goto_if_eq DoRockSmashMovement_Done
waitstate
releaseall
end
@@ -126,16 +126,16 @@ CannotUseRockSmashText: @ 81B0F90
S_PushableBoulder:: @ 81B0FCB
lockall
checkflag 2058
- jumpif 0, CannotUseStrength
+ goto_if 0, CannotUseStrength
checkflag 2089
- jumpeq AlreadyUsedStrength
+ goto_if_eq AlreadyUsedStrength
checkattack 70
compare RESULT, 6
- jumpeq CannotUseStrength
+ goto_if_eq CannotUseStrength
setanimation 0, RESULT
msgbox UseStrengthPromptText, 5
compare RESULT, 0
- jumpeq Strength_ChoseNo
+ goto_if_eq Strength_ChoseNo
closebutton
doanimation 40
waitstate
@@ -192,12 +192,12 @@ S_UseWaterfall:: @ 81B115A
lockall
checkattack MOVE_WATERFALL
compare RESULT, 6
- jumpeq Waterfall_NoMonKnows
+ goto_if_eq Waterfall_NoMonKnows
bufferpartypoke 0, RESULT
setanimation 0, RESULT
msgbox UseWaterfallPromptText, 5
compare RESULT, 0
- jumpeq Waterfall_Done
+ goto_if_eq Waterfall_Done
msgbox UsedWaterfallText, 4
doanimation 43
goto Waterfall_Done
@@ -225,13 +225,13 @@ UseDiveScript:: @ 81B1220
lockall
checkattack MOVE_DIVE
compare RESULT, 6
- jumpeq CannotUseDive
+ goto_if_eq CannotUseDive
bufferpartypoke 0, RESULT
setanimation 0, RESULT
setanimation 1, 1
msgbox UseDivePromptText, 5
compare RESULT, 0
- jumpeq Dive_Done
+ goto_if_eq Dive_Done
msgbox UsedDiveText, 4
doanimation 44
goto Dive_Done
@@ -248,13 +248,13 @@ S_UseDiveUnderwater:: @ 81B1269
lockall
checkattack MOVE_DIVE
compare RESULT, 6
- jumpeq UnderwaterCannotUseDive
+ goto_if_eq UnderwaterCannotUseDive
bufferpartypoke 0, RESULT
setanimation 0, RESULT
setanimation 1, 1
msgbox UnderwaterUseDivePromptText, 5
compare RESULT, 0
- jumpeq UnderwaterDive_Done
+ goto_if_eq UnderwaterDive_Done
msgbox UsedDiveText, 4
doanimation 44
goto UnderwaterDive_Done
diff --git a/data/scripts/berry_tree.inc b/data/scripts/berry_tree.inc
index 6c74fcca4..64d5f9b79 100644
--- a/data/scripts/berry_tree.inc
+++ b/data/scripts/berry_tree.inc
@@ -23,7 +23,7 @@ Route102_EventScript_1A153D:: @ 81A153D
faceplayer
specialval RESULT, PlayerHasBerries
compare RESULT, 1
- jumpeq Route102_EventScript_1A1558
+ goto_if_eq Route102_EventScript_1A1558
message Route102_Text_1A16B6
waittext
waitbutton
@@ -33,9 +33,9 @@ Route102_EventScript_1A153D:: @ 81A153D
Route102_EventScript_1A1558:: @ 81A1558
msgbox Route102_Text_1A16CD, 5
compare RESULT, 1
- jumpeq Route102_EventScript_1A1577
+ goto_if_eq Route102_EventScript_1A1577
compare RESULT, 0
- jumpeq Route102_EventScript_1A1593
+ goto_if_eq Route102_EventScript_1A1593
end
Route102_EventScript_1A1577:: @ 81A1577
@@ -44,7 +44,7 @@ Route102_EventScript_1A1577:: @ 81A1577
special sub_80B4EE4
waitstate
compare ITEM_ID, 0
- jumpeq Route102_EventScript_1A1593
+ goto_if_eq Route102_EventScript_1A1593
removeitem ITEM_ID, 1
call Route102_EventScript_1A16A9
@@ -83,9 +83,9 @@ Route102_EventScript_1A15BC:: @ 81A15BC
Route102_EventScript_1A15CE:: @ 81A15CE
compare 0x8005, 0
- jumpeq Route102_EventScript_1A15F2
+ goto_if_eq Route102_EventScript_1A15F2
compare 0x8005, 4
- jumpeq Route102_EventScript_1A15EB
+ goto_if_eq Route102_EventScript_1A15EB
buffertext 1, Route102_Text_1A17B7
return
@@ -103,14 +103,14 @@ Route102_EventScript_1A15F9:: @ 81A15F9
faceplayer
msgbox Route102_Text_1A17C0, 5
compare RESULT, 1
- jumpeq Route102_EventScript_1A161D
+ goto_if_eq Route102_EventScript_1A161D
compare RESULT, 0
- jumpeq Route102_EventScript_1A164B
+ goto_if_eq Route102_EventScript_1A164B
Route102_EventScript_1A161D:: @ 81A161D
special FieldObjectInteractionPickBerryTree
compare 0x8004, 0
- jumpeq Route102_EventScript_1A1642
+ goto_if_eq Route102_EventScript_1A1642
special FieldObjectInteractionRemoveBerryTree
message Route102_Text_1A17FD
fanfare 387
@@ -147,12 +147,12 @@ gUnknown_081A1654:: @ 81A1654
Route102_EventScript_1A165F:: @ 81A165F
checkitem ITEM_WAILMER_PAIL, 1
compare RESULT, 0
- jumpeq Route102_EventScript_1A168D
+ goto_if_eq Route102_EventScript_1A168D
msgbox Route102_Text_1A18E6, 5
compare RESULT, 1
- jumpeq Route102_EventScript_1A1693
+ goto_if_eq Route102_EventScript_1A1693
compare RESULT, 0
- jumpeq Route102_EventScript_1A168D
+ goto_if_eq Route102_EventScript_1A168D
Route102_EventScript_1A168D:: @ 81A168D
releaseall
diff --git a/data/scripts/cable_club.inc b/data/scripts/cable_club.inc
index 372ac5eb8..da3277ee3 100644
--- a/data/scripts/cable_club.inc
+++ b/data/scripts/cable_club.inc
@@ -40,15 +40,15 @@ SlateportCity_PokemonCenter_2F_MapScript1_1A3D32:: @ 81A3D32
SootopolisCity_PokemonCenter_2F_MapScript1_1A3D32:: @ 81A3D32
VerdanturfTown_PokemonCenter_2F_MapScript1_1A3D32:: @ 81A3D32
compare 0x4087, 1
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A3D6A
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A3D6A
compare 0x4087, 2
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A3D6A
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A3D6A
compare 0x4087, 5
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A3D6A
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A3D6A
compare 0x4087, 3
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A3D74
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A3D74
compare 0x4087, 4
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A3D7E
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A3D7E
end
OldaleTown_PokemonCenter_2F_EventScript_1A3D6A:: @ 81A3D6A
@@ -91,7 +91,7 @@ OldaleTown_PokemonCenter_2F_EventScript_1A3DB2:: @ 81A3DB2
move 255, OldaleTown_PokemonCenter_2F_Movement_1A4358
waitmove 0
compare 0x8007, 0
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A3DD9
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A3DD9
move 0x8007, OldaleTown_PokemonCenter_2F_Movement_1A4354
waitmove 0
@@ -102,7 +102,7 @@ OldaleTown_PokemonCenter_2F_EventScript_1A3DDA:: @ 81A3DDA
special CloseLink
setvar 0x4087, 0
compare 0x8007, 0
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A3E0C
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A3E0C
move 0x8007, OldaleTown_PokemonCenter_2F_Movement_1A4356
waitmove 0
move 255, OldaleTown_PokemonCenter_2F_Movement_1A4358
@@ -129,7 +129,7 @@ OldaleTown_PokemonCenter_2F_EventScript_1A3E30:: @ 81A3E30
special CloseLink
setvar 0x4087, 0
compare 0x8007, 0
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A3E0C
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A3E0C
move 255, OldaleTown_PokemonCenter_2F_Movement_1A4361
waitmove 0
move 0x8007, OldaleTown_PokemonCenter_2F_Movement_1A4356
@@ -175,7 +175,7 @@ SlateportCity_PokemonCenter_2F_EventScript_1A3EA6:: @ 81A3EA6
SootopolisCity_PokemonCenter_2F_EventScript_1A3EA6:: @ 81A3EA6
VerdanturfTown_PokemonCenter_2F_EventScript_1A3EA6:: @ 81A3EA6
checkflag 2049
- jumpif 0, OldaleTown_PokemonCenter_2F_EventScript_1A4342
+ goto_if 0, OldaleTown_PokemonCenter_2F_EventScript_1A4342
copyvar 0x8007, LAST_TALKED
lock
faceplayer
@@ -193,26 +193,26 @@ OldaleTown_PokemonCenter_2F_EventScript_1A3EBC:: @ 81A3EBC
OldaleTown_PokemonCenter_2F_EventScript_1A3EF2:: @ 81A3EF2
call S_DoSaveDialog
compare RESULT, 0
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A4319
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A4319
call OldaleTown_PokemonCenter_2F_EventScript_1A3FEF
compare 0x8004, 0
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A4319
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A4319
message OldaleTown_PokemonCenter_2F_Text_1A490C
waittext
special sub_808347C
waitstate
compare RESULT, 1
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A3F5E
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A3F5E
compare RESULT, 2
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A4301
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A4301
compare RESULT, 3
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A430D
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A430D
compare RESULT, 4
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A4068
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A4068
compare RESULT, 5
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A4319
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A4319
compare RESULT, 6
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A42F5
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A42F5
OldaleTown_PokemonCenter_2F_EventScript_1A3F5E:: @ 81A3F5E
special ScrSpecial_HealPlayerParty
@@ -238,7 +238,7 @@ OldaleTown_PokemonCenter_2F_EventScript_1A3F5E:: @ 81A3F5E
doorchange
release
compare 0x8004, 5
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A3FCD
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A3FCD
special SetCableClubWarp
warp SingleBattleColosseum, 255, 6, 8
special DoCableClubWarp
@@ -282,7 +282,7 @@ OldaleTown_PokemonCenter_2F_EventScript_1A403C:: @ 81A403C
OldaleTown_PokemonCenter_2F_EventScript_1A4042:: @ 81A4042
special CheckForAlivePartyMons
compare RESULT, 0
- jumpif 5, OldaleTown_PokemonCenter_2F_EventScript_1A4056
+ goto_if 5, OldaleTown_PokemonCenter_2F_EventScript_1A4056
setvar 0x8004, 2
return
@@ -347,39 +347,39 @@ SlateportCity_PokemonCenter_2F_EventScript_1A40CC:: @ 81A40CC
SootopolisCity_PokemonCenter_2F_EventScript_1A40CC:: @ 81A40CC
VerdanturfTown_PokemonCenter_2F_EventScript_1A40CC:: @ 81A40CC
checkflag 2049
- jumpif 0, OldaleTown_PokemonCenter_2F_EventScript_1A4339
+ goto_if 0, OldaleTown_PokemonCenter_2F_EventScript_1A4339
copyvar 0x8007, LAST_TALKED
lock
faceplayer
msgbox OldaleTown_PokemonCenter_2F_Text_1A457E, 5
compare RESULT, 0
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A4319
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A4319
compare RESULT, 1
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A40FA
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A40FA
OldaleTown_PokemonCenter_2F_EventScript_1A40FA:: @ 81A40FA
call OldaleTown_PokemonCenter_2F_EventScript_1A41BB
compare RESULT, 0
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A4319
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A4319
call S_DoSaveDialog
compare RESULT, 0
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A4319
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A4319
message OldaleTown_PokemonCenter_2F_Text_1A490C
waittext
special sub_80834E4
waitstate
compare RESULT, 1
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A4166
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A4166
compare RESULT, 2
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A4301
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A4301
compare RESULT, 3
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A430D
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A430D
compare RESULT, 4
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A432D
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A432D
compare RESULT, 5
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A4319
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A4319
compare RESULT, 6
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A42F5
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A42F5
OldaleTown_PokemonCenter_2F_EventScript_1A4166:: @ 81A4166
setvar 0x8004, 3
@@ -407,10 +407,10 @@ OldaleTown_PokemonCenter_2F_EventScript_1A4166:: @ 81A4166
OldaleTown_PokemonCenter_2F_EventScript_1A41BB:: @ 81A41BB
specialval RESULT, CalculatePlayerPartyCount
compare RESULT, 2
- jumpif 0, OldaleTown_PokemonCenter_2F_EventScript_1A41E1
+ goto_if 0, OldaleTown_PokemonCenter_2F_EventScript_1A41E1
specialval RESULT, GetNameOfEnigmaBerryInPlayerParty
compare RESULT, 1
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A41EE
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A41EE
setvar RESULT, 1
return
@@ -444,20 +444,20 @@ SlateportCity_PokemonCenter_2F_EventScript_1A41FB:: @ 81A41FB
SootopolisCity_PokemonCenter_2F_EventScript_1A41FB:: @ 81A41FB
VerdanturfTown_PokemonCenter_2F_EventScript_1A41FB:: @ 81A41FB
checkflag 2072
- jumpif 0, OldaleTown_PokemonCenter_2F_EventScript_1A434B
+ goto_if 0, OldaleTown_PokemonCenter_2F_EventScript_1A434B
copyvar 0x8007, LAST_TALKED
lock
faceplayer
msgbox OldaleTown_PokemonCenter_2F_Text_1A45FE, 5
compare RESULT, 0
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A4319
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A4319
compare RESULT, 1
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A4229
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A4229
OldaleTown_PokemonCenter_2F_EventScript_1A4229:: @ 81A4229
call S_DoSaveDialog
compare RESULT, 0
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A4319
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A4319
message OldaleTown_PokemonCenter_2F_Text_1A490C
waittext
special sub_808350C
@@ -465,19 +465,19 @@ OldaleTown_PokemonCenter_2F_EventScript_1A4229:: @ 81A4229
special sub_80835D8
waitstate
compare RESULT, 1
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A4294
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A4294
compare RESULT, 2
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A4301
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A4301
compare RESULT, 3
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A430D
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A430D
compare RESULT, 4
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A432D
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A432D
compare RESULT, 5
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A4319
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A4319
compare RESULT, 6
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A42F5
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A42F5
compare RESULT, 7
- jumpeq OldaleTown_PokemonCenter_2F_EventScript_1A42E9
+ goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A42E9
OldaleTown_PokemonCenter_2F_EventScript_1A4294:: @ 81A4294
setvar 0x8004, 4
@@ -620,7 +620,7 @@ DoubleBattleColosseum_EventScript_1A4383:: @ 81A4383
special sub_80C5568
waitstate
compare RESULT, 0
- jumpeq DoubleBattleColosseum_EventScript_1A43EF
+ goto_if_eq DoubleBattleColosseum_EventScript_1A43EF
setvar 0x8005, 0
special sub_8083B90
waitstate
@@ -631,7 +631,7 @@ DoubleBattleColosseum_EventScript_1A439E:: @ 81A439E
special sub_80C5568
waitstate
compare RESULT, 0
- jumpeq DoubleBattleColosseum_EventScript_1A43EF
+ goto_if_eq DoubleBattleColosseum_EventScript_1A43EF
setvar 0x8005, 1
special sub_8083B90
waitstate
@@ -642,7 +642,7 @@ DoubleBattleColosseum_EventScript_1A43B9:: @ 81A43B9
special sub_80C5568
waitstate
compare RESULT, 0
- jumpeq DoubleBattleColosseum_EventScript_1A43EF
+ goto_if_eq DoubleBattleColosseum_EventScript_1A43EF
setvar 0x8005, 2
special sub_8083B90
waitstate
@@ -653,7 +653,7 @@ DoubleBattleColosseum_EventScript_1A43D4:: @ 81A43D4
special sub_80C5568
waitstate
compare RESULT, 0
- jumpeq DoubleBattleColosseum_EventScript_1A43EF
+ goto_if_eq DoubleBattleColosseum_EventScript_1A43EF
setvar 0x8005, 3
special sub_8083B90
waitstate
@@ -691,7 +691,7 @@ RecordCorner_EventScript_1A4418:: @ 81A4418
special sub_80B929C
waitstate
compare 0x4001, 0
- jumpif 5, RecordCorner_EventScript_1A446C
+ goto_if 5, RecordCorner_EventScript_1A446C
end
RecordCorner_EventScript_1A442D:: @ 81A442D
@@ -699,7 +699,7 @@ RecordCorner_EventScript_1A442D:: @ 81A442D
special sub_80B929C
waitstate
compare 0x4001, 0
- jumpif 5, RecordCorner_EventScript_1A446C
+ goto_if 5, RecordCorner_EventScript_1A446C
end
RecordCorner_EventScript_1A4442:: @ 81A4442
@@ -707,7 +707,7 @@ RecordCorner_EventScript_1A4442:: @ 81A4442
special sub_80B929C
waitstate
compare 0x4001, 0
- jumpif 5, RecordCorner_EventScript_1A446C
+ goto_if 5, RecordCorner_EventScript_1A446C
end
RecordCorner_EventScript_1A4457:: @ 81A4457
@@ -715,7 +715,7 @@ RecordCorner_EventScript_1A4457:: @ 81A4457
special sub_80B929C
waitstate
compare 0x4001, 0
- jumpif 5, RecordCorner_EventScript_1A446C
+ goto_if 5, RecordCorner_EventScript_1A446C
end
RecordCorner_EventScript_1A446C:: @ 81A446C
@@ -771,7 +771,7 @@ TradeCenter_EventScript_1A44AD:: @ 81A44AD
RecordCorner_EventScript_1A44BC:: @ 81A44BC
compare 0x4000, 0
- jumpif 5, RecordCorner_EventScript_1A44D6
+ goto_if 5, RecordCorner_EventScript_1A44D6
special sub_8064EAC
message RecordCorner_Text_1A4DD7
waittext
@@ -792,7 +792,7 @@ RecordCorner_EventScript_1A44D6:: @ 81A44D6
TradeRoom_PromptToCancelLink:: @ 81A44E5
msgbox TradeRoom_WillLinkBeTerminated, 5
compare RESULT, 1
- jumpeq TradeRoom_TerminateLink
+ goto_if_eq TradeRoom_TerminateLink
hidebox 0, 0, 29, 19
end
diff --git a/data/scripts/contest_hall.inc b/data/scripts/contest_hall.inc
index 484607165..b41a40e14 100644
--- a/data/scripts/contest_hall.inc
+++ b/data/scripts/contest_hall.inc
@@ -6,16 +6,16 @@ VerdanturfTown_ContestLobby_EventScript_1A4E92:: @ 81A4E92
faceplayer
checkitem ITEM_CONTEST_PASS, 1
compare RESULT, 0
- callif 1, FallarborTown_ContestLobby_EventScript_1A4EDD
+ call_if 1, FallarborTown_ContestLobby_EventScript_1A4EDD
compare 0x408a, 0
- jumpif 5, FallarborTown_ContestLobby_EventScript_1A4F4E
+ goto_if 5, FallarborTown_ContestLobby_EventScript_1A4F4E
checkflag 1
- jumpeq FallarborTown_ContestLobby_EventScript_1A4F8F
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1A4F8F
bufferstd 0, 0x800b
msgbox FallarborTown_ContestLobby_Text_1A5DFC, 4
checkitem ITEM_CONTEST_PASS, 1
compare RESULT, 0
- jumpeq FallarborTown_ContestLobby_EventScript_1A4EE1
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1A4EE1
setflag 1
goto FallarborTown_ContestLobby_EventScript_1A4F8F
end
@@ -26,7 +26,7 @@ FallarborTown_ContestLobby_EventScript_1A4EDD:: @ 81A4EDD
FallarborTown_ContestLobby_EventScript_1A4EE1:: @ 81A4EE1
compare CONTEST_RANK, 0
- jumpeq FallarborTown_ContestLobby_EventScript_1A4EF6
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1A4EF6
msgbox FallarborTown_ContestLobby_Text_1A6340, 4
releaseall
end
@@ -34,14 +34,14 @@ FallarborTown_ContestLobby_EventScript_1A4EE1:: @ 81A4EE1
FallarborTown_ContestLobby_EventScript_1A4EF6:: @ 81A4EF6
msgbox FallarborTown_ContestLobby_Text_1A64F4, 5
compare RESULT, 1
- jumpeq FallarborTown_ContestLobby_EventScript_1A4F13
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1A4F13
msgbox FallarborTown_ContestLobby_Text_1A65EA, 4
releaseall
end
FallarborTown_ContestLobby_EventScript_1A4F13:: @ 81A4F13
checkflag 150
- jumpeq FallarborTown_ContestLobby_EventScript_1A4F44
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1A4F44
msgbox FallarborTown_ContestLobby_Text_1A6583, 4
giveitem ITEM_CONTEST_PASS
setflag 150
@@ -64,7 +64,7 @@ FallarborTown_ContestLobby_EventScript_1A4F4E:: @ 81A4F4E
FallarborTown_ContestLobby_EventScript_1A4F67:: @ 81A4F67
giveitem ITEM_LUXURY_BALL
compare RESULT, 0
- jumpeq FallarborTown_ContestLobby_EventScript_1A4F86
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1A4F86
setvar 0x408a, 0
closebutton
release
@@ -121,18 +121,18 @@ FallarborTown_ContestLobby_EventScript_1A5048:: @ 81A5048
msgbox FallarborTown_ContestLobby_Text_1A6319, 4
choosecontestpkmn
compare 0x8004, 255
- jumpeq FallarborTown_ContestLobby_EventScript_1A5097
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1A5097
special sub_80C43F4
compare RESULT, 0
- jumpeq FallarborTown_ContestLobby_EventScript_1A50C8
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1A50C8
compare RESULT, 1
- jumpeq FallarborTown_ContestLobby_EventScript_1A50D7
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1A50D7
compare RESULT, 2
- jumpeq FallarborTown_ContestLobby_EventScript_1A50FB
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1A50FB
compare RESULT, 3
- jumpeq FallarborTown_ContestLobby_EventScript_1A511F
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1A511F
compare RESULT, 4
- jumpeq FallarborTown_ContestLobby_EventScript_1A512E
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1A512E
end
FallarborTown_ContestLobby_EventScript_1A5097:: @ 81A5097
@@ -271,7 +271,7 @@ LinkContestRoom1_EventScript_1A5245:: @ 81A5245
LinkContestRoom1_EventScript_1A525F:: @ 81A525F
compare 0x4088, 5
- jumpeq LinkContestRoom1_EventScript_1A5273
+ goto_if_eq LinkContestRoom1_EventScript_1A5273
msgbox LinkContestRoom1_Text_1A68F0, 3
return
@@ -288,20 +288,20 @@ LinkContestRoom1_EventScript_1A527A:: @ 81A527A
call LinkContestRoom1_EventScript_1A5880
addvar 0x8006, 1
compare 0x8006, 4
- jumpif 5, LinkContestRoom1_EventScript_1A527A
+ goto_if 5, LinkContestRoom1_EventScript_1A527A
call LinkContestRoom1_EventScript_1A5377
setvar 0x4001, 6
return
LinkContestRoom1_EventScript_1A52AE:: @ 81A52AE
compare 0x8006, 0
- jumpeq LinkContestRoom1_EventScript_1A52DB
+ goto_if_eq LinkContestRoom1_EventScript_1A52DB
compare 0x8006, 1
- jumpeq LinkContestRoom1_EventScript_1A52ED
+ goto_if_eq LinkContestRoom1_EventScript_1A52ED
compare 0x8006, 2
- jumpeq LinkContestRoom1_EventScript_1A52FF
+ goto_if_eq LinkContestRoom1_EventScript_1A52FF
compare 0x8006, 3
- jumpeq LinkContestRoom1_EventScript_1A5311
+ goto_if_eq LinkContestRoom1_EventScript_1A5311
return
LinkContestRoom1_EventScript_1A52DB:: @ 81A52DB
@@ -358,7 +358,7 @@ LinkContestRoom1_EventScript_1A5323:: @ 81A5323
LinkContestRoom1_EventScript_1A535E:: @ 81A535E
compare 0x4088, 5
- jumpeq LinkContestRoom1_EventScript_1A5370
+ goto_if_eq LinkContestRoom1_EventScript_1A5370
message LinkContestRoom1_Text_1A6A04
waittext
return
@@ -386,7 +386,7 @@ LinkContestRoom1_EventScript_1A5377:: @ 81A5377
LinkContestRoom1_EventScript_1A53B3:: @ 81A53B3
compare 0x4088, 5
- jumpeq LinkContestRoom1_EventScript_1A53C7
+ goto_if_eq LinkContestRoom1_EventScript_1A53C7
msgbox LinkContestRoom1_Text_1A6A1F, 4
return
@@ -397,7 +397,7 @@ LinkContestRoom1_EventScript_1A53C7:: @ 81A53C7
LinkContestRoom1_EventScript_1A53CE:: @ 81A53CE
compare 0x4088, 5
- jumpeq LinkContestRoom1_EventScript_1A53DF
+ goto_if_eq LinkContestRoom1_EventScript_1A53DF
message LinkContestRoom1_Text_1A6AE1
return
@@ -432,15 +432,15 @@ LinkContestRoom1_EventScript_1A53E5:: @ 81A53E5
LinkContestRoom1_EventScript_1A5455:: @ 81A5455
special sub_80C47A0
compare 0x4088, 1
- callif 1, LinkContestRoom1_EventScript_1A555A
+ call_if 1, LinkContestRoom1_EventScript_1A555A
compare 0x4088, 2
- callif 1, LinkContestRoom1_EventScript_1A55B8
+ call_if 1, LinkContestRoom1_EventScript_1A55B8
compare 0x4088, 3
- callif 1, LinkContestRoom1_EventScript_1A5616
+ call_if 1, LinkContestRoom1_EventScript_1A5616
compare 0x4088, 4
- callif 1, LinkContestRoom1_EventScript_1A5674
+ call_if 1, LinkContestRoom1_EventScript_1A5674
compare 0x4088, 5
- callif 1, LinkContestRoom1_EventScript_1A56D2
+ call_if 1, LinkContestRoom1_EventScript_1A56D2
setvar 0x4001, 9
setvar 0x4002, 9
setvar 0x4003, 9
@@ -450,7 +450,7 @@ LinkContestRoom1_EventScript_1A5455:: @ 81A5455
setvar 0x4007, 9
setvar 0x4008, 9
compare 0x4000, 0
- callif 2, LinkContestRoom1_EventScript_1A54EB
+ call_if 2, LinkContestRoom1_EventScript_1A54EB
setvar 0x4001, 0
setvar 0x4002, 0
setvar 0x4003, 0
@@ -465,123 +465,123 @@ LinkContestRoom1_EventScript_1A54EB:: @ 81A54EB
setvar RESULT, 8
special ScriptRandom
compare RESULT, 0
- callif 1, LinkContestRoom1_EventScript_1A5760
+ call_if 1, LinkContestRoom1_EventScript_1A5760
compare RESULT, 1
- callif 1, LinkContestRoom1_EventScript_1A5784
+ call_if 1, LinkContestRoom1_EventScript_1A5784
compare RESULT, 2
- callif 1, LinkContestRoom1_EventScript_1A57A8
+ call_if 1, LinkContestRoom1_EventScript_1A57A8
compare RESULT, 3
- callif 1, LinkContestRoom1_EventScript_1A57CC
+ call_if 1, LinkContestRoom1_EventScript_1A57CC
compare RESULT, 4
- callif 1, LinkContestRoom1_EventScript_1A57F0
+ call_if 1, LinkContestRoom1_EventScript_1A57F0
compare RESULT, 5
- callif 1, LinkContestRoom1_EventScript_1A5814
+ call_if 1, LinkContestRoom1_EventScript_1A5814
compare RESULT, 6
- callif 1, LinkContestRoom1_EventScript_1A5838
+ call_if 1, LinkContestRoom1_EventScript_1A5838
compare RESULT, 7
- callif 1, LinkContestRoom1_EventScript_1A585C
+ call_if 1, LinkContestRoom1_EventScript_1A585C
compare 0x4000, 0
- jumpif 2, LinkContestRoom1_EventScript_1A54EB
+ goto_if 2, LinkContestRoom1_EventScript_1A54EB
waitmove 0
return
LinkContestRoom1_EventScript_1A555A:: @ 81A555A
compare 0x8004, 80
- jumpif 2, LinkContestRoom1_EventScript_1A575A
+ goto_if 2, LinkContestRoom1_EventScript_1A575A
compare 0x8004, 70
- jumpif 2, LinkContestRoom1_EventScript_1A5754
+ goto_if 2, LinkContestRoom1_EventScript_1A5754
compare 0x8004, 60
- jumpif 2, LinkContestRoom1_EventScript_1A574E
+ goto_if 2, LinkContestRoom1_EventScript_1A574E
compare 0x8004, 50
- jumpif 2, LinkContestRoom1_EventScript_1A5748
+ goto_if 2, LinkContestRoom1_EventScript_1A5748
compare 0x8004, 40
- jumpif 2, LinkContestRoom1_EventScript_1A5742
+ goto_if 2, LinkContestRoom1_EventScript_1A5742
compare 0x8004, 30
- jumpif 2, LinkContestRoom1_EventScript_1A573C
+ goto_if 2, LinkContestRoom1_EventScript_1A573C
compare 0x8004, 20
- jumpif 2, LinkContestRoom1_EventScript_1A5736
+ goto_if 2, LinkContestRoom1_EventScript_1A5736
compare 0x8004, 10
- jumpif 2, LinkContestRoom1_EventScript_1A5730
+ goto_if 2, LinkContestRoom1_EventScript_1A5730
setvar 0x4000, 0
return
LinkContestRoom1_EventScript_1A55B8:: @ 81A55B8
compare 0x8004, 230
- jumpif 2, LinkContestRoom1_EventScript_1A575A
+ goto_if 2, LinkContestRoom1_EventScript_1A575A
compare 0x8004, 210
- jumpif 2, LinkContestRoom1_EventScript_1A5754
+ goto_if 2, LinkContestRoom1_EventScript_1A5754
compare 0x8004, 190
- jumpif 2, LinkContestRoom1_EventScript_1A574E
+ goto_if 2, LinkContestRoom1_EventScript_1A574E
compare 0x8004, 170
- jumpif 2, LinkContestRoom1_EventScript_1A5748
+ goto_if 2, LinkContestRoom1_EventScript_1A5748
compare 0x8004, 150
- jumpif 2, LinkContestRoom1_EventScript_1A5742
+ goto_if 2, LinkContestRoom1_EventScript_1A5742
compare 0x8004, 130
- jumpif 2, LinkContestRoom1_EventScript_1A573C
+ goto_if 2, LinkContestRoom1_EventScript_1A573C
compare 0x8004, 110
- jumpif 2, LinkContestRoom1_EventScript_1A5736
+ goto_if 2, LinkContestRoom1_EventScript_1A5736
compare 0x8004, 90
- jumpif 2, LinkContestRoom1_EventScript_1A5730
+ goto_if 2, LinkContestRoom1_EventScript_1A5730
setvar 0x4000, 0
return
LinkContestRoom1_EventScript_1A5616:: @ 81A5616
compare 0x8004, 380
- jumpif 2, LinkContestRoom1_EventScript_1A575A
+ goto_if 2, LinkContestRoom1_EventScript_1A575A
compare 0x8004, 350
- jumpif 2, LinkContestRoom1_EventScript_1A5754
+ goto_if 2, LinkContestRoom1_EventScript_1A5754
compare 0x8004, 320
- jumpif 2, LinkContestRoom1_EventScript_1A574E
+ goto_if 2, LinkContestRoom1_EventScript_1A574E
compare 0x8004, 290
- jumpif 2, LinkContestRoom1_EventScript_1A5748
+ goto_if 2, LinkContestRoom1_EventScript_1A5748
compare 0x8004, 260
- jumpif 2, LinkContestRoom1_EventScript_1A5742
+ goto_if 2, LinkContestRoom1_EventScript_1A5742
compare 0x8004, 230
- jumpif 2, LinkContestRoom1_EventScript_1A573C
+ goto_if 2, LinkContestRoom1_EventScript_1A573C
compare 0x8004, 200
- jumpif 2, LinkContestRoom1_EventScript_1A5736
+ goto_if 2, LinkContestRoom1_EventScript_1A5736
compare 0x8004, 170
- jumpif 2, LinkContestRoom1_EventScript_1A5730
+ goto_if 2, LinkContestRoom1_EventScript_1A5730
setvar 0x4000, 0
return
LinkContestRoom1_EventScript_1A5674:: @ 81A5674
compare 0x8004, 600
- jumpif 2, LinkContestRoom1_EventScript_1A575A
+ goto_if 2, LinkContestRoom1_EventScript_1A575A
compare 0x8004, 560
- jumpif 2, LinkContestRoom1_EventScript_1A5754
+ goto_if 2, LinkContestRoom1_EventScript_1A5754
compare 0x8004, 520
- jumpif 2, LinkContestRoom1_EventScript_1A574E
+ goto_if 2, LinkContestRoom1_EventScript_1A574E
compare 0x8004, 480
- jumpif 2, LinkContestRoom1_EventScript_1A5748
+ goto_if 2, LinkContestRoom1_EventScript_1A5748
compare 0x8004, 440
- jumpif 2, LinkContestRoom1_EventScript_1A5742
+ goto_if 2, LinkContestRoom1_EventScript_1A5742
compare 0x8004, 400
- jumpif 2, LinkContestRoom1_EventScript_1A573C
+ goto_if 2, LinkContestRoom1_EventScript_1A573C
compare 0x8004, 360
- jumpif 2, LinkContestRoom1_EventScript_1A5736
+ goto_if 2, LinkContestRoom1_EventScript_1A5736
compare 0x8004, 320
- jumpif 2, LinkContestRoom1_EventScript_1A5730
+ goto_if 2, LinkContestRoom1_EventScript_1A5730
setvar 0x4000, 0
return
LinkContestRoom1_EventScript_1A56D2:: @ 81A56D2
compare 0x8004, 600
- jumpif 2, LinkContestRoom1_EventScript_1A575A
+ goto_if 2, LinkContestRoom1_EventScript_1A575A
compare 0x8004, 550
- jumpif 2, LinkContestRoom1_EventScript_1A5754
+ goto_if 2, LinkContestRoom1_EventScript_1A5754
compare 0x8004, 500
- jumpif 2, LinkContestRoom1_EventScript_1A574E
+ goto_if 2, LinkContestRoom1_EventScript_1A574E
compare 0x8004, 450
- jumpif 2, LinkContestRoom1_EventScript_1A5748
+ goto_if 2, LinkContestRoom1_EventScript_1A5748
compare 0x8004, 400
- jumpif 2, LinkContestRoom1_EventScript_1A5742
+ goto_if 2, LinkContestRoom1_EventScript_1A5742
compare 0x8004, 300
- jumpif 2, LinkContestRoom1_EventScript_1A573C
+ goto_if 2, LinkContestRoom1_EventScript_1A573C
compare 0x8004, 200
- jumpif 2, LinkContestRoom1_EventScript_1A5736
+ goto_if 2, LinkContestRoom1_EventScript_1A5736
compare 0x8004, 100
- jumpif 2, LinkContestRoom1_EventScript_1A5730
+ goto_if 2, LinkContestRoom1_EventScript_1A5730
setvar 0x4000, 0
return
@@ -619,7 +619,7 @@ LinkContestRoom1_EventScript_1A575A:: @ 81A575A
LinkContestRoom1_EventScript_1A5760:: @ 81A5760
compare 0x4001, 1
- jumpeq LinkContestRoom1_EventScript_1A5783
+ goto_if_eq LinkContestRoom1_EventScript_1A5783
move 6, LinkContestRoom1_Movement_1A5D8D
playsfx 21
pause 14
@@ -632,7 +632,7 @@ LinkContestRoom1_EventScript_1A5783:: @ 81A5783
LinkContestRoom1_EventScript_1A5784:: @ 81A5784
compare 0x4002, 1
- jumpeq LinkContestRoom1_EventScript_1A57A7
+ goto_if_eq LinkContestRoom1_EventScript_1A57A7
move 12, LinkContestRoom1_Movement_1A5D8D
playsfx 21
pause 14
@@ -645,7 +645,7 @@ LinkContestRoom1_EventScript_1A57A7:: @ 81A57A7
LinkContestRoom1_EventScript_1A57A8:: @ 81A57A8
compare 0x4003, 1
- jumpeq LinkContestRoom1_EventScript_1A57CB
+ goto_if_eq LinkContestRoom1_EventScript_1A57CB
move 7, LinkContestRoom1_Movement_1A5D8D
playsfx 21
pause 14
@@ -658,7 +658,7 @@ LinkContestRoom1_EventScript_1A57CB:: @ 81A57CB
LinkContestRoom1_EventScript_1A57CC:: @ 81A57CC
compare 0x4004, 1
- jumpeq LinkContestRoom1_EventScript_1A57EF
+ goto_if_eq LinkContestRoom1_EventScript_1A57EF
move 8, LinkContestRoom1_Movement_1A5D8D
playsfx 21
pause 14
@@ -671,7 +671,7 @@ LinkContestRoom1_EventScript_1A57EF:: @ 81A57EF
LinkContestRoom1_EventScript_1A57F0:: @ 81A57F0
compare 0x4005, 1
- jumpeq LinkContestRoom1_EventScript_1A5813
+ goto_if_eq LinkContestRoom1_EventScript_1A5813
move 9, LinkContestRoom1_Movement_1A5D8D
playsfx 21
pause 14
@@ -684,7 +684,7 @@ LinkContestRoom1_EventScript_1A5813:: @ 81A5813
LinkContestRoom1_EventScript_1A5814:: @ 81A5814
compare 0x4006, 1
- jumpeq LinkContestRoom1_EventScript_1A5837
+ goto_if_eq LinkContestRoom1_EventScript_1A5837
move 10, LinkContestRoom1_Movement_1A5D8D
playsfx 21
pause 14
@@ -697,7 +697,7 @@ LinkContestRoom1_EventScript_1A5837:: @ 81A5837
LinkContestRoom1_EventScript_1A5838:: @ 81A5838
compare 0x4007, 1
- jumpeq LinkContestRoom1_EventScript_1A585B
+ goto_if_eq LinkContestRoom1_EventScript_1A585B
move 11, LinkContestRoom1_Movement_1A5D8D
playsfx 21
pause 14
@@ -710,7 +710,7 @@ LinkContestRoom1_EventScript_1A585B:: @ 81A585B
LinkContestRoom1_EventScript_1A585C:: @ 81A585C
compare 0x4008, 1
- jumpeq LinkContestRoom1_EventScript_1A587F
+ goto_if_eq LinkContestRoom1_EventScript_1A587F
move 15, LinkContestRoom1_Movement_1A5D8D
playsfx 21
pause 14
@@ -783,7 +783,7 @@ LinkContestRoom1_EventScript_1A58EE:: @ 81A58EE
LinkContestRoom1_EventScript_1A5930:: @ 81A5930
compare 0x4088, 5
- jumpeq LinkContestRoom1_EventScript_1A5944
+ goto_if_eq LinkContestRoom1_EventScript_1A5944
msgbox LinkContestRoom1_Text_1A6AF5, 3
return
@@ -810,7 +810,7 @@ LinkContestRoom1_EventScript_1A594A:: @ 81A594A
LinkContestRoom1_EventScript_1A5984:: @ 81A5984
compare 0x4088, 5
- jumpeq LinkContestRoom1_EventScript_1A5998
+ goto_if_eq LinkContestRoom1_EventScript_1A5998
msgbox LinkContestRoom1_Text_1A6C06, 4
return
@@ -822,7 +822,7 @@ LinkContestRoom1_EventScript_1A5998:: @ 81A5998
LinkContestRoom1_EventScript_1A59A2:: @ 81A59A2
compare 0x4088, 5
- jumpeq LinkContestRoom1_EventScript_1A59B6
+ goto_if_eq LinkContestRoom1_EventScript_1A59B6
msgbox LinkContestRoom1_Text_1A6C21, 4
return
@@ -834,7 +834,7 @@ LinkContestRoom1_EventScript_1A59B6:: @ 81A59B6
LinkContestRoom1_EventScript_1A59C0:: @ 81A59C0
compare 0x4088, 5
- jumpeq LinkContestRoom1_EventScript_1A59D4
+ goto_if_eq LinkContestRoom1_EventScript_1A59D4
msgbox LinkContestRoom1_Text_1A6C9D, 4
return
@@ -846,7 +846,7 @@ LinkContestRoom1_EventScript_1A59D4:: @ 81A59D4
LinkContestRoom1_EventScript_1A59DE:: @ 81A59DE
compare 0x4088, 5
- jumpeq LinkContestRoom1_EventScript_1A59F2
+ goto_if_eq LinkContestRoom1_EventScript_1A59F2
msgbox LinkContestRoom1_Text_1A6D16, 4
return
@@ -896,7 +896,7 @@ LinkContestRoom1_EventScript_1A5A49:: @ 81A5A49
LinkContestRoom1_EventScript_1A5A75:: @ 81A5A75
compare 0x4088, 5
- jumpeq LinkContestRoom1_EventScript_1A5A89
+ goto_if_eq LinkContestRoom1_EventScript_1A5A89
msgbox LinkContestRoom1_Text_1A6D3C, 4
return
@@ -909,7 +909,7 @@ LinkContestRoom1_EventScript_1A5A90:: @ 81A5A90
addvar 0x4001, 1
lockall
compare 0x4088, 1
- callif 2, LinkContestRoom1_EventScript_1A5AE4
+ call_if 2, LinkContestRoom1_EventScript_1A5AE4
move 9, LinkContestRoom1_Movement_1A5DB7
move 12, LinkContestRoom1_Movement_1A5DBB
move 7, LinkContestRoom1_Movement_1A5DB7
@@ -919,7 +919,7 @@ LinkContestRoom1_EventScript_1A5A90:: @ 81A5A90
move 6, LinkContestRoom1_Movement_1A5DB3
move 8, LinkContestRoom1_Movement_1A5DAF
compare 0x4001, 4
- jumpif 5, LinkContestRoom1_EventScript_1A5A90
+ goto_if 5, LinkContestRoom1_EventScript_1A5A90
pause 30
return
@@ -994,10 +994,10 @@ LinkContestRoom1_EventScript_1A5AE4:: @ 81A5AE4
LinkContestRoom1_EventScript_1A5BAB:: @ 81A5BAB
compare 0x4088, 5
- jumpeq LinkContestRoom1_EventScript_1A5C4C
+ goto_if_eq LinkContestRoom1_EventScript_1A5C4C
call LinkContestRoom1_EventScript_1A5C12
checkflag 2
- jumpeq LinkContestRoom1_EventScript_1A5BF6
+ goto_if_eq LinkContestRoom1_EventScript_1A5BF6
msgbox LinkContestRoom1_Text_1A6DC5, 3
waittext
call LinkContestRoom1_EventScript_1A5C7F
@@ -1008,7 +1008,7 @@ LinkContestRoom1_EventScript_1A5BAB:: @ 81A5BAB
pause 30
special sub_80C4CF8
compare 0x8004, 1
- jumpeq LinkContestRoom1_EventScript_1A5C46
+ goto_if_eq LinkContestRoom1_EventScript_1A5C46
return
LinkContestRoom1_EventScript_1A5BF6:: @ 81A5BF6
@@ -1017,24 +1017,24 @@ LinkContestRoom1_EventScript_1A5BF6:: @ 81A5BF6
pause 90
special sub_80C4CF8
compare 0x8004, 1
- jumpeq LinkContestRoom1_EventScript_1A5C46
+ goto_if_eq LinkContestRoom1_EventScript_1A5C46
return
LinkContestRoom1_EventScript_1A5C12:: @ 81A5C12
specialval RESULT, sub_80C4440
compare RESULT, 1
- jumpeq LinkContestRoom1_EventScript_1A5C23
+ goto_if_eq LinkContestRoom1_EventScript_1A5C23
return
LinkContestRoom1_EventScript_1A5C23:: @ 81A5C23
special sub_80C47C0
compare 0x8005, 3
- jumpeq LinkContestRoom1_EventScript_1A5C32
+ goto_if_eq LinkContestRoom1_EventScript_1A5C32
return
LinkContestRoom1_EventScript_1A5C32:: @ 81A5C32
compare CONTEST_RANK, 3
- jumpeq LinkContestRoom1_EventScript_1A5C41
+ goto_if_eq LinkContestRoom1_EventScript_1A5C41
setflag 2
return
@@ -1054,7 +1054,7 @@ LinkContestRoom1_EventScript_1A5C4C:: @ 81A5C4C
call LinkContestRoom1_EventScript_1A5C6A
special sub_80C4CF8
compare 0x8004, 1
- jumpeq LinkContestRoom1_EventScript_1A5C64
+ goto_if_eq LinkContestRoom1_EventScript_1A5C64
closebutton
return
@@ -1066,7 +1066,7 @@ LinkContestRoom1_EventScript_1A5C6A:: @ 81A5C6A
special sub_80C496C
special sub_80C47C0
comparevars 0x8004, 0x8005
- jumpeq LinkContestRoom1_EventScript_1A5C7C
+ goto_if_eq LinkContestRoom1_EventScript_1A5C7C
return
LinkContestRoom1_EventScript_1A5C7C:: @ 81A5C7C
@@ -1112,19 +1112,19 @@ LinkContestRoom1_EventScript_1A5CD8:: @ 81A5CD8
LinkContestRoom1_EventScript_1A5CE5:: @ 81A5CE5
special sub_80C47C0
compare 0x8005, 3
- jumpeq LinkContestRoom1_EventScript_1A5CFC
+ goto_if_eq LinkContestRoom1_EventScript_1A5CFC
msgbox LinkContestRoom1_Text_1A6DF1, 3
return
LinkContestRoom1_EventScript_1A5CFC:: @ 81A5CFC
compare 0x4088, 2
- callif 1, LinkContestRoom1_EventScript_1A5C42
+ call_if 1, LinkContestRoom1_EventScript_1A5C42
inccounter GAME_STAT_WON_CONTEST
specialval RESULT, sub_80C4440
compare RESULT, 0
- jumpeq LinkContestRoom1_EventScript_1A5D5B
+ goto_if_eq LinkContestRoom1_EventScript_1A5D5B
compare CONTEST_RANK, 3
- jumpeq LinkContestRoom1_EventScript_1A5D3B
+ goto_if_eq LinkContestRoom1_EventScript_1A5D3B
msgbox LinkContestRoom1_Text_1A6DF1, 3
return
@@ -1136,7 +1136,7 @@ LinkContestRoom1_EventScript_1A5D2D:: @ 81A5D2D
LinkContestRoom1_EventScript_1A5D3B:: @ 81A5D3B
giveitem ITEM_LUXURY_BALL
compare RESULT, 0
- jumpeq LinkContestRoom1_EventScript_1A5D2D
+ goto_if_eq LinkContestRoom1_EventScript_1A5D2D
msgbox LinkContestRoom1_Text_1A6DF1, 3
return
diff --git a/data/scripts/day_care.inc b/data/scripts/day_care.inc
index d0e35203e..4c57e0b9f 100644
--- a/data/scripts/day_care.inc
+++ b/data/scripts/day_care.inc
@@ -4,11 +4,11 @@ Route117_EventScript_1B222D:: @ 81B222D
special sp0B5_daycare
specialval RESULT, sp0B6_daycare
compare RESULT, 1
- jumpeq Route117_EventScript_1B2262
+ goto_if_eq Route117_EventScript_1B2262
compare RESULT, 2
- jumpeq Route117_EventScript_1B22E7
+ goto_if_eq Route117_EventScript_1B22E7
compare RESULT, 3
- jumpeq Route117_EventScript_1B22FE
+ goto_if_eq Route117_EventScript_1B22FE
msgbox Route117_Text_1B25CB, 4
release
end
@@ -16,10 +16,10 @@ Route117_EventScript_1B222D:: @ 81B222D
Route117_EventScript_1B2262:: @ 81B2262
msgbox Route117_Text_1B2659, 5
compare RESULT, 1
- jumpeq Route117_EventScript_1B2298
+ goto_if_eq Route117_EventScript_1B2298
msgbox Route117_Text_1B28C4, 5
compare RESULT, 1
- jumpeq Route117_EventScript_1B2298
+ goto_if_eq Route117_EventScript_1B2298
msgbox Route117_Text_1B2745, 4
clearflag 134
special sub_8041E7C
@@ -29,7 +29,7 @@ Route117_EventScript_1B2262:: @ 81B2262
Route117_EventScript_1B2298:: @ 81B2298
specialval RESULT, CalculatePlayerPartyCount
compare RESULT, 6
- jumpif 5, Route117_EventScript_1B22B2
+ goto_if 5, Route117_EventScript_1B22B2
msgbox Route117_Text_1B2766, 4
release
end
@@ -49,7 +49,7 @@ Route117_EventScript_1B22B2:: @ 81B22B2
Route117_EventScript_1B22CD:: @ 81B22CD
specialval RESULT, sub_8042B4C
compare RESULT, 1
- callif 1, Route117_EventScript_1B22DE
+ call_if 1, Route117_EventScript_1B22DE
return
Route117_EventScript_1B22DE:: @ 81B22DE
@@ -83,14 +83,14 @@ Route117_PokemonDayCare_EventScript_1B2327:: @ 81B2327
faceplayer
specialval RESULT, sp0B6_daycare
compare RESULT, 1
- jumpeq Route117_PokemonDayCare_EventScript_1B2407
+ goto_if_eq Route117_PokemonDayCare_EventScript_1B2407
compare RESULT, 2
- jumpeq Route117_PokemonDayCare_EventScript_1B242B
+ goto_if_eq Route117_PokemonDayCare_EventScript_1B242B
compare RESULT, 3
- jumpeq Route117_PokemonDayCare_EventScript_1B2558
+ goto_if_eq Route117_PokemonDayCare_EventScript_1B2558
msgbox Route117_PokemonDayCare_Text_1B28F2, 5
compare RESULT, 1
- jumpeq Route117_PokemonDayCare_EventScript_1B236C
+ goto_if_eq Route117_PokemonDayCare_EventScript_1B236C
msgbox Route117_PokemonDayCare_Text_1B2A14, 4
release
end
@@ -98,16 +98,16 @@ Route117_PokemonDayCare_EventScript_1B2327:: @ 81B2327
Route117_PokemonDayCare_EventScript_1B236C:: @ 81B236C
specialval RESULT, sub_8095B6C
compare RESULT, 1
- jumpeq Route117_PokemonDayCare_EventScript_1B23F3
+ goto_if_eq Route117_PokemonDayCare_EventScript_1B23F3
msgbox Route117_PokemonDayCare_Text_1B2947, 4
fadescreen 1
special ChooseSendDaycareMon
waitstate
compare 0x8004, 255
- jumpeq Route117_PokemonDayCare_EventScript_1B23D0
+ goto_if_eq Route117_PokemonDayCare_EventScript_1B23D0
specialval RESULT, sub_8095C10
compare RESULT, 0
- jumpeq Route117_PokemonDayCare_EventScript_1B23FD
+ goto_if_eq Route117_PokemonDayCare_EventScript_1B23FD
specialval 0x8005, sub_8042328
checksound
pokecry 0x8005, 0
@@ -117,7 +117,7 @@ Route117_PokemonDayCare_EventScript_1B236C:: @ 81B236C
inccounter GAME_STAT_USED_DAYCARE
specialval RESULT, sp0B6_daycare
compare RESULT, 2
- jumpeq Route117_PokemonDayCare_EventScript_1B23DA
+ goto_if_eq Route117_PokemonDayCare_EventScript_1B23DA
release
end
@@ -129,7 +129,7 @@ Route117_PokemonDayCare_EventScript_1B23D0:: @ 81B23D0
Route117_PokemonDayCare_EventScript_1B23DA:: @ 81B23DA
msgbox Route117_PokemonDayCare_Text_1B29AD, 5
compare RESULT, 1
- jumpeq Route117_PokemonDayCare_EventScript_1B236C
+ goto_if_eq Route117_PokemonDayCare_EventScript_1B236C
goto Route117_PokemonDayCare_EventScript_1B23D0
end
@@ -155,7 +155,7 @@ Route117_PokemonDayCare_EventScript_1B2411:: @ 81B2411
Route117_PokemonDayCare_EventScript_1B241A:: @ 81B241A
specialval RESULT, sub_80417B8
compare RESULT, 0
- callif 5, Route117_PokemonDayCare_EventScript_1B2411
+ call_if 5, Route117_PokemonDayCare_EventScript_1B2411
return
Route117_PokemonDayCare_EventScript_1B242B:: @ 81B242B
@@ -164,26 +164,26 @@ Route117_PokemonDayCare_EventScript_1B242B:: @ 81B242B
call Route117_PokemonDayCare_EventScript_1B241A
msgbox Route117_PokemonDayCare_Text_1B29AD, 5
compare RESULT, 1
- jumpeq Route117_PokemonDayCare_EventScript_1B236C
+ goto_if_eq Route117_PokemonDayCare_EventScript_1B236C
msgbox Route117_PokemonDayCare_Text_1B2BF6, 5
compare RESULT, 1
- jumpeq Route117_PokemonDayCare_EventScript_1B2469
+ goto_if_eq Route117_PokemonDayCare_EventScript_1B2469
goto Route117_PokemonDayCare_EventScript_1B23D0
end
Route117_PokemonDayCare_EventScript_1B2469:: @ 81B2469
specialval RESULT, CalculatePlayerPartyCount
compare RESULT, 6
- jumpeq Route117_PokemonDayCare_EventScript_1B2539
+ goto_if_eq Route117_PokemonDayCare_EventScript_1B2539
specialval RESULT, sp0B6_daycare
setvar 0x8004, 0
compare RESULT, 2
- jumpeq Route117_PokemonDayCare_EventScript_1B24A8
+ goto_if_eq Route117_PokemonDayCare_EventScript_1B24A8
special ShowDaycareLevelMenu
waitstate
copyvar 0x8004, RESULT
compare RESULT, 2
- jumpeq Route117_PokemonDayCare_EventScript_1B23D0
+ goto_if_eq Route117_PokemonDayCare_EventScript_1B23D0
goto Route117_PokemonDayCare_EventScript_1B24A8
end
@@ -191,14 +191,14 @@ Route117_PokemonDayCare_EventScript_1B24A8:: @ 81B24A8
special sub_8041770
msgbox Route117_PokemonDayCare_Text_1B2B49, 5
compare RESULT, 1
- jumpeq Route117_PokemonDayCare_EventScript_1B24C4
+ goto_if_eq Route117_PokemonDayCare_EventScript_1B24C4
goto Route117_PokemonDayCare_EventScript_1B23D0
end
Route117_PokemonDayCare_EventScript_1B24C4:: @ 81B24C4
specialval RESULT, sub_80B7CE8
compare RESULT, 1
- jumpeq Route117_PokemonDayCare_EventScript_1B24DE
+ goto_if_eq Route117_PokemonDayCare_EventScript_1B24DE
msgbox Route117_PokemonDayCare_Text_1B2A30, 4
release
end
@@ -216,14 +216,14 @@ Route117_PokemonDayCare_EventScript_1B24DE:: @ 81B24DE
waitpokecry
specialval RESULT, sp0B6_daycare
compare RESULT, 2
- jumpeq Route117_PokemonDayCare_EventScript_1B2520
+ goto_if_eq Route117_PokemonDayCare_EventScript_1B2520
goto Route117_PokemonDayCare_EventScript_1B23D0
end
Route117_PokemonDayCare_EventScript_1B2520:: @ 81B2520
msgbox Route117_PokemonDayCare_Text_1B2A4F, 5
compare RESULT, 1
- jumpeq Route117_PokemonDayCare_EventScript_1B2469
+ goto_if_eq Route117_PokemonDayCare_EventScript_1B2469
goto Route117_PokemonDayCare_EventScript_1B23D0
end
@@ -265,7 +265,7 @@ Route117_PokemonDayCare_EventScript_1B2558:: @ 81B2558
call Route117_PokemonDayCare_EventScript_1B241A
msgbox Route117_PokemonDayCare_Text_1B2BF6, 5
compare RESULT, 1
- jumpeq Route117_PokemonDayCare_EventScript_1B2469
+ goto_if_eq Route117_PokemonDayCare_EventScript_1B2469
msgbox Route117_PokemonDayCare_Text_1B2A76, 4
release
end
@@ -274,7 +274,7 @@ Route117_PokemonDayCare_EventScript_1B2558:: @ 81B2558
special ShowDaycareLevelMenu
waitstate
compare RESULT, 2
- jumpeq Route117_PokemonDayCare_EventScript_1B23D0
+ goto_if_eq Route117_PokemonDayCare_EventScript_1B23D0
copyvar 0x8004, RESULT
specialval RESULT, sub_8041648
msgbox Route117_PokemonDayCare_Text_1B2B75, 4
diff --git a/data/scripts/gabby_and_ty.inc b/data/scripts/gabby_and_ty.inc
index c88733bea..2625ff573 100644
--- a/data/scripts/gabby_and_ty.inc
+++ b/data/scripts/gabby_and_ty.inc
@@ -203,13 +203,13 @@ Route111_EventScript_1AE5A2:: @ 81AE5A2
special GabbyAndTyBeforeInterview
special GabbyAndTySetScriptVarsToFieldObjectLocalIds
compare FACING, 2
- callif 1, Route111_EventScript_1AE5E0
+ call_if 1, Route111_EventScript_1AE5E0
compare FACING, 1
- callif 1, Route111_EventScript_1AE5EB
+ call_if 1, Route111_EventScript_1AE5EB
compare FACING, 4
- callif 1, Route111_EventScript_1AE5FD
+ call_if 1, Route111_EventScript_1AE5FD
checkflag 1
- jumpeq Route111_EventScript_1AE73A
+ goto_if_eq Route111_EventScript_1AE73A
msgbox Route111_Text_1AC015, 5
goto Route111_EventScript_1AE6F3
end
@@ -237,16 +237,16 @@ Route120_EventScript_1AE60F:: @ 81AE60F
special GabbyAndTyBeforeInterview
special GabbyAndTySetScriptVarsToFieldObjectLocalIds
compare FACING, 2
- callif 1, Route111_EventScript_1AE5E0
+ call_if 1, Route111_EventScript_1AE5E0
compare FACING, 1
- callif 1, Route111_EventScript_1AE5EB
+ call_if 1, Route111_EventScript_1AE5EB
compare FACING, 4
- callif 1, Route111_EventScript_1AE5FD
+ call_if 1, Route111_EventScript_1AE5FD
checkflag 1
- jumpeq Route111_EventScript_1AE73A
+ goto_if_eq Route111_EventScript_1AE73A
specialval RESULT, GabbyAndTyGetLastQuote
compare RESULT, 0
- jumpeq Route111_EventScript_1AE69F
+ goto_if_eq Route111_EventScript_1AE69F
msgbox Route111_Text_1AC10A, 4
specialval RESULT, sub_80BDD18
switch RESULT
@@ -301,14 +301,14 @@ Route111_EventScript_1AE6E5:: @ 81AE6E5
Route111_EventScript_1AE6F3:: @ 81AE6F3
compare RESULT, 0
- jumpeq Route111_EventScript_1AE72D
+ goto_if_eq Route111_EventScript_1AE72D
msgbox Route111_Text_1AC40F, 4
setvar 0x8004, 10
call Route111_EventScript_1A00F3
lock
faceplayer
compare RESULT, 0
- jumpeq Route111_EventScript_1AE72D
+ goto_if_eq Route111_EventScript_1AE72D
msgbox Route111_Text_1AC487, 4
special sub_80BDC14
setflag 1
diff --git a/data/scripts/magma_chimney.inc b/data/scripts/magma_chimney.inc
index a2f4f67b7..18bd1d53b 100644
--- a/data/scripts/magma_chimney.inc
+++ b/data/scripts/magma_chimney.inc
@@ -2,9 +2,9 @@ MtChimney_EventScript_1B2C95:: @ 81B2C95
lock
faceplayer
checkflag 219
- callif 0, MtChimney_EventScript_1B2CB9
+ call_if 0, MtChimney_EventScript_1B2CB9
checkflag 219
- callif 1, MtChimney_EventScript_1B2CC2
+ call_if 1, MtChimney_EventScript_1B2CC2
closebutton
move 1, MtChimney_Movement_1A083D
waitmove 0
@@ -68,9 +68,9 @@ MtChimney_EventScript_1B2CCB:: @ 81B2CCB
movespriteperm 1, 10, 12
reappear 1
compare FACING, 4
- callif 1, MtChimney_EventScript_1B2D7D
+ call_if 1, MtChimney_EventScript_1B2D7D
compare FACING, 2
- callif 1, MtChimney_EventScript_1B2D88
+ call_if 1, MtChimney_EventScript_1B2D88
move 255, MtChimney_Movement_1A083F
waitmove 0
.ifdef SAPPHIRE
@@ -80,9 +80,9 @@ MtChimney_EventScript_1B2CCB:: @ 81B2CCB
.endif
closebutton
compare FACING, 4
- callif 1, MtChimney_EventScript_1B2D93
+ call_if 1, MtChimney_EventScript_1B2D93
compare FACING, 2
- callif 1, MtChimney_EventScript_1B2D9E
+ call_if 1, MtChimney_EventScript_1B2D9E
disappear 1
setflag 927
setflag 139
diff --git a/data/scripts/maps/AbandonedShip_CaptainsOffice.inc b/data/scripts/maps/AbandonedShip_CaptainsOffice.inc
index cf525003e..eb912028a 100644
--- a/data/scripts/maps/AbandonedShip_CaptainsOffice.inc
+++ b/data/scripts/maps/AbandonedShip_CaptainsOffice.inc
@@ -5,12 +5,12 @@ AbandonedShip_CaptainsOffice_EventScript_15EAF5:: @ 815EAF5
lock
faceplayer
checkflag 294
- jumpeq AbandonedShip_CaptainsOffice_EventScript_15EB2D
+ goto_if_eq AbandonedShip_CaptainsOffice_EventScript_15EB2D
checkitem ITEM_SCANNER, 1
compare RESULT, 1
- jumpeq AbandonedShip_CaptainsOffice_EventScript_15EB23
+ goto_if_eq AbandonedShip_CaptainsOffice_EventScript_15EB23
checkflag 1078
- jumpeq AbandonedShip_CaptainsOffice_EventScript_15EB2D
+ goto_if_eq AbandonedShip_CaptainsOffice_EventScript_15EB2D
msgbox AbandonedShip_CaptainsOffice_Text_198C85, 4
release
end
diff --git a/data/scripts/maps/AbandonedShip_Corridors_B1F.inc b/data/scripts/maps/AbandonedShip_Corridors_B1F.inc
index b0ae966ad..212d80416 100644
--- a/data/scripts/maps/AbandonedShip_Corridors_B1F.inc
+++ b/data/scripts/maps/AbandonedShip_Corridors_B1F.inc
@@ -9,9 +9,9 @@ AbandonedShip_Corridors_B1F_MapScript1_15E99A:: @ 815E99A
AbandonedShip_Corridors_B1F_MapScript1_15E9A3:: @ 815E9A3
checkflag 239
- callif 0, AbandonedShip_Corridors_B1F_EventScript_15E9B6
+ call_if 0, AbandonedShip_Corridors_B1F_EventScript_15E9B6
checkflag 239
- callif 1, AbandonedShip_Corridors_B1F_EventScript_15E9C0
+ call_if 1, AbandonedShip_Corridors_B1F_EventScript_15E9C0
end
AbandonedShip_Corridors_B1F_EventScript_15E9B6:: @ 815E9B6
@@ -29,10 +29,10 @@ AbandonedShip_Corridors_B1F_EventScript_15E9CA:: @ 815E9CA
AbandonedShip_Corridors_B1F_EventScript_15E9D3:: @ 815E9D3
lockall
checkflag 239
- jumpeq AbandonedShip_Corridors_B1F_EventScript_15EA14
+ goto_if_eq AbandonedShip_Corridors_B1F_EventScript_15EA14
checkitem ITEM_STORAGE_KEY, 1
compare RESULT, 0
- jumpeq AbandonedShip_Corridors_B1F_EventScript_15EA0A
+ goto_if_eq AbandonedShip_Corridors_B1F_EventScript_15EA0A
msgbox AbandonedShip_Corridors_B1F_Text_198692, 4
playsfx 21
removeitem ITEM_STORAGE_KEY, 1
diff --git a/data/scripts/maps/AbandonedShip_HiddenFloorCorridors.inc b/data/scripts/maps/AbandonedShip_HiddenFloorCorridors.inc
index 8cb2aed22..9f0b5ca85 100644
--- a/data/scripts/maps/AbandonedShip_HiddenFloorCorridors.inc
+++ b/data/scripts/maps/AbandonedShip_HiddenFloorCorridors.inc
@@ -9,21 +9,21 @@ AbandonedShip_HiddenFloorCorridors_MapScript1_15EB51:: @ 815EB51
AbandonedShip_HiddenFloorCorridors_MapScript1_15EB5A:: @ 815EB5A
checkflag 240
- callif 0, AbandonedShip_HiddenFloorCorridors_EventScript_15EBCB
+ call_if 0, AbandonedShip_HiddenFloorCorridors_EventScript_15EBCB
checkflag 241
- callif 0, AbandonedShip_HiddenFloorCorridors_EventScript_15EBD5
+ call_if 0, AbandonedShip_HiddenFloorCorridors_EventScript_15EBD5
checkflag 242
- callif 0, AbandonedShip_HiddenFloorCorridors_EventScript_15EBDF
+ call_if 0, AbandonedShip_HiddenFloorCorridors_EventScript_15EBDF
checkflag 243
- callif 0, AbandonedShip_HiddenFloorCorridors_EventScript_15EBE9
+ call_if 0, AbandonedShip_HiddenFloorCorridors_EventScript_15EBE9
checkflag 240
- callif 1, AbandonedShip_HiddenFloorCorridors_EventScript_15EBA3
+ call_if 1, AbandonedShip_HiddenFloorCorridors_EventScript_15EBA3
checkflag 241
- callif 1, AbandonedShip_HiddenFloorCorridors_EventScript_15EBAD
+ call_if 1, AbandonedShip_HiddenFloorCorridors_EventScript_15EBAD
checkflag 242
- callif 1, AbandonedShip_HiddenFloorCorridors_EventScript_15EBB7
+ call_if 1, AbandonedShip_HiddenFloorCorridors_EventScript_15EBB7
checkflag 243
- callif 1, AbandonedShip_HiddenFloorCorridors_EventScript_15EBC1
+ call_if 1, AbandonedShip_HiddenFloorCorridors_EventScript_15EBC1
end
AbandonedShip_HiddenFloorCorridors_EventScript_15EBA3:: @ 815EBA3
@@ -61,10 +61,10 @@ AbandonedShip_HiddenFloorCorridors_EventScript_15EBE9:: @ 815EBE9
AbandonedShip_HiddenFloorCorridors_EventScript_15EBF3:: @ 815EBF3
lockall
checkflag 240
- jumpeq AbandonedShip_HiddenFloorCorridors_EventScript_15ECF7
+ goto_if_eq AbandonedShip_HiddenFloorCorridors_EventScript_15ECF7
checkitem ITEM_ROOM_1_KEY, 1
compare RESULT, 0
- jumpeq AbandonedShip_HiddenFloorCorridors_EventScript_15ECCF
+ goto_if_eq AbandonedShip_HiddenFloorCorridors_EventScript_15ECCF
msgbox AbandonedShip_HiddenFloorCorridors_Text_198E90, 4
playsfx 21
removeitem ITEM_ROOM_1_KEY, 1
@@ -77,10 +77,10 @@ AbandonedShip_HiddenFloorCorridors_EventScript_15EBF3:: @ 815EBF3
AbandonedShip_HiddenFloorCorridors_EventScript_15EC2A:: @ 815EC2A
lockall
checkflag 241
- jumpeq AbandonedShip_HiddenFloorCorridors_EventScript_15ECF7
+ goto_if_eq AbandonedShip_HiddenFloorCorridors_EventScript_15ECF7
checkitem ITEM_ROOM_2_KEY, 1
compare RESULT, 0
- jumpeq AbandonedShip_HiddenFloorCorridors_EventScript_15ECD9
+ goto_if_eq AbandonedShip_HiddenFloorCorridors_EventScript_15ECD9
msgbox AbandonedShip_HiddenFloorCorridors_Text_198E90, 4
playsfx 21
removeitem ITEM_ROOM_2_KEY, 1
@@ -93,10 +93,10 @@ AbandonedShip_HiddenFloorCorridors_EventScript_15EC2A:: @ 815EC2A
AbandonedShip_HiddenFloorCorridors_EventScript_15EC61:: @ 815EC61
lockall
checkflag 242
- jumpeq AbandonedShip_HiddenFloorCorridors_EventScript_15ECF7
+ goto_if_eq AbandonedShip_HiddenFloorCorridors_EventScript_15ECF7
checkitem ITEM_ROOM_4_KEY, 1
compare RESULT, 0
- jumpeq AbandonedShip_HiddenFloorCorridors_EventScript_15ECE3
+ goto_if_eq AbandonedShip_HiddenFloorCorridors_EventScript_15ECE3
msgbox AbandonedShip_HiddenFloorCorridors_Text_198E90, 4
playsfx 21
removeitem ITEM_ROOM_4_KEY, 1
@@ -109,10 +109,10 @@ AbandonedShip_HiddenFloorCorridors_EventScript_15EC61:: @ 815EC61
AbandonedShip_HiddenFloorCorridors_EventScript_15EC98:: @ 815EC98
lockall
checkflag 243
- jumpeq AbandonedShip_HiddenFloorCorridors_EventScript_15ECF7
+ goto_if_eq AbandonedShip_HiddenFloorCorridors_EventScript_15ECF7
checkitem ITEM_ROOM_6_KEY, 1
compare RESULT, 0
- jumpeq AbandonedShip_HiddenFloorCorridors_EventScript_15ECED
+ goto_if_eq AbandonedShip_HiddenFloorCorridors_EventScript_15ECED
msgbox AbandonedShip_HiddenFloorCorridors_Text_198E90, 4
playsfx 21
removeitem ITEM_ROOM_6_KEY, 1
diff --git a/data/scripts/maps/AbandonedShip_HiddenFloorRooms.inc b/data/scripts/maps/AbandonedShip_HiddenFloorRooms.inc
index 5c4c050a0..d8ed3fe07 100644
--- a/data/scripts/maps/AbandonedShip_HiddenFloorRooms.inc
+++ b/data/scripts/maps/AbandonedShip_HiddenFloorRooms.inc
@@ -11,11 +11,11 @@ AbandonedShip_HiddenFloorRooms_EventScript_15ED11:: @ 815ED11
getplayerxy 0x4002, 0x4003
setvar 0x4004, 1
compare 0x4002, 21
- callif 1, AbandonedShip_HiddenFloorRooms_EventScript_15ED89
+ call_if 1, AbandonedShip_HiddenFloorRooms_EventScript_15ED89
compare 0x4002, 36
- callif 1, AbandonedShip_HiddenFloorRooms_EventScript_15ED8F
+ call_if 1, AbandonedShip_HiddenFloorRooms_EventScript_15ED8F
compare 0x4003, 2
- callif 1, AbandonedShip_HiddenFloorRooms_EventScript_15ED95
+ call_if 1, AbandonedShip_HiddenFloorRooms_EventScript_15ED95
switch 0x4004
case 1, AbandonedShip_HiddenFloorRooms_EventScript_15ED9B
case 2, AbandonedShip_HiddenFloorRooms_EventScript_15EDC4
@@ -45,7 +45,7 @@ AbandonedShip_HiddenFloorRooms_EventScript_15ED9B:: @ 815ED9B
doanimation 54
specialval RESULT, sub_810F4D4
compare RESULT, 0
- callif 1, AbandonedShip_HiddenFloorRooms_EventScript_15EE8B
+ call_if 1, AbandonedShip_HiddenFloorRooms_EventScript_15EE8B
checkanimation 54
pause 10
end
@@ -56,10 +56,10 @@ AbandonedShip_HiddenFloorRooms_EventScript_15EDC4:: @ 815EDC4
AbandonedShip_HiddenFloorRooms_EventScript_15EDC5:: @ 815EDC5
specialval RESULT, sub_810F488
compare RESULT, 1
- jumpeq AbandonedShip_HiddenFloorRooms_EventScript_15EDEA
+ goto_if_eq AbandonedShip_HiddenFloorRooms_EventScript_15EDEA
pause 20
compare RESULT, 0
- callif 1, AbandonedShip_HiddenFloorRooms_EventScript_15EE6B
+ call_if 1, AbandonedShip_HiddenFloorRooms_EventScript_15EE6B
checkanimation 54
pause 10
end
@@ -79,7 +79,7 @@ AbandonedShip_HiddenFloorRooms_EventScript_15EDEB:: @ 815EDEB
doanimation 54
specialval RESULT, sub_810F4FC
compare RESULT, 0
- callif 1, AbandonedShip_HiddenFloorRooms_EventScript_15EE9B
+ call_if 1, AbandonedShip_HiddenFloorRooms_EventScript_15EE9B
checkanimation 54
pause 10
end
@@ -100,7 +100,7 @@ AbandonedShip_HiddenFloorRooms_EventScript_15EE23:: @ 815EE23
doanimation 54
specialval RESULT, sub_810F4B0
compare RESULT, 0
- callif 1, AbandonedShip_HiddenFloorRooms_EventScript_15EE7B
+ call_if 1, AbandonedShip_HiddenFloorRooms_EventScript_15EE7B
checkanimation 54
pause 10
end
diff --git a/data/scripts/maps/AbandonedShip_Rooms2_1F.inc b/data/scripts/maps/AbandonedShip_Rooms2_1F.inc
index a6ccdc43c..b7fe34b81 100644
--- a/data/scripts/maps/AbandonedShip_Rooms2_1F.inc
+++ b/data/scripts/maps/AbandonedShip_Rooms2_1F.inc
@@ -5,7 +5,7 @@ AbandonedShip_Rooms2_1F_EventScript_15EA68:: @ 815EA68
trainerbattle 4, OPPONENT_LOIS_AND_HAL_1, 0, AbandonedShip_Rooms2_1F_Text_1987C1, AbandonedShip_Rooms2_1F_Text_1987FE, AbandonedShip_Rooms2_1F_Text_19887F
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq AbandonedShip_Rooms2_1F_EventScript_15EA93
+ goto_if_eq AbandonedShip_Rooms2_1F_EventScript_15EA93
msgbox AbandonedShip_Rooms2_1F_Text_198835, 6
end
@@ -18,7 +18,7 @@ AbandonedShip_Rooms2_1F_EventScript_15EAAE:: @ 815EAAE
trainerbattle 4, OPPONENT_LOIS_AND_HAL_1, 0, AbandonedShip_Rooms2_1F_Text_1988CC, AbandonedShip_Rooms2_1F_Text_198916, AbandonedShip_Rooms2_1F_Text_19899A
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq AbandonedShip_Rooms2_1F_EventScript_15EAD9
+ goto_if_eq AbandonedShip_Rooms2_1F_EventScript_15EAD9
msgbox AbandonedShip_Rooms2_1F_Text_198934, 6
end
diff --git a/data/scripts/maps/AncientTomb.inc b/data/scripts/maps/AncientTomb.inc
index bfc5b6a79..deed30c5b 100644
--- a/data/scripts/maps/AncientTomb.inc
+++ b/data/scripts/maps/AncientTomb.inc
@@ -6,7 +6,7 @@ AncientTomb_MapScripts:: @ 815EFBE
AncientTomb_MapScript1_15EFCE:: @ 815EFCE
checkflag 2145
- callif 1, AncientTomb_EventScript_15EFD8
+ call_if 1, AncientTomb_EventScript_15EFD8
end
AncientTomb_EventScript_15EFD8:: @ 815EFD8
@@ -19,7 +19,7 @@ AncientTomb_MapScript1_15EFDC:: @ 815EFDC
AncientTomb_MapScript1_15EFE0:: @ 815EFE0
checkflag 2130
- callif 0, AncientTomb_EventScript_15EFEA
+ call_if 0, AncientTomb_EventScript_15EFEA
end
AncientTomb_EventScript_15EFEA:: @ 815EFEA
@@ -34,7 +34,7 @@ AncientTomb_EventScript_15EFEA:: @ 815EFEA
AncientTomb_EventScript_15F021:: @ 815F021
lockall
checkflag 2130
- jumpeq AncientTomb_EventScript_15F038
+ goto_if_eq AncientTomb_EventScript_15F038
braillemsg AncientTomb_Braille_1C552E
waitbutton
hidebox 0, 0, 29, 19
diff --git a/data/scripts/maps/AquaHideout_1F.inc b/data/scripts/maps/AquaHideout_1F.inc
index cc1ad33b1..2eb2ae7e9 100644
--- a/data/scripts/maps/AquaHideout_1F.inc
+++ b/data/scripts/maps/AquaHideout_1F.inc
@@ -11,7 +11,7 @@ MagmaHideout_1F_EventScript_15D7CE:: @ 815D7CE
lock
faceplayer
checkflag 111
- jumpeq AquaHideout_1F_EventScript_15D7E3
+ goto_if_eq AquaHideout_1F_EventScript_15D7E3
msgbox AquaHideout_1F_Text_196AFD, 4
release
end
@@ -26,7 +26,7 @@ MagmaHideout_1F_EventScript_15D7ED:: @ 815D7ED
lock
faceplayer
checkflag 111
- jumpeq AquaHideout_1F_EventScript_15D802
+ goto_if_eq AquaHideout_1F_EventScript_15D802
msgbox AquaHideout_1F_Text_196C83, 4
release
end
diff --git a/data/scripts/maps/AquaHideout_B1F.inc b/data/scripts/maps/AquaHideout_B1F.inc
index 969d590e3..cad8e7481 100644
--- a/data/scripts/maps/AquaHideout_B1F.inc
+++ b/data/scripts/maps/AquaHideout_B1F.inc
@@ -5,7 +5,7 @@ AquaHideout_B1F_MapScripts:: @ 815D831
AquaHideout_B1F_MapScript1_15D83C:: @ 815D83C
checkflag 2145
- callif 1, AquaHideout_B1F_EventScript_15D846
+ call_if 1, AquaHideout_B1F_EventScript_15D846
end
AquaHideout_B1F_EventScript_15D846:: @ 815D846
diff --git a/data/scripts/maps/BattleTower_Corridor.inc b/data/scripts/maps/BattleTower_Corridor.inc
index f4f50d90b..cfb4ba855 100644
--- a/data/scripts/maps/BattleTower_Corridor.inc
+++ b/data/scripts/maps/BattleTower_Corridor.inc
@@ -5,7 +5,7 @@ BattleTower_Corridor_MapScripts:: @ 8160845
BattleTower_Corridor_MapScript1_160850:: @ 8160850
compare 0x8006, 1
- jumpeq BattleTower_Corridor_EventScript_16086E
+ goto_if_eq BattleTower_Corridor_EventScript_16086E
setmaptile 12, 0, 519, 0
setmaptile 12, 1, 527, 0
end
@@ -22,7 +22,7 @@ BattleTower_Corridor_MapScript2_160881:: @ 8160881
BattleTower_Corridor_EventScript_16088B:: @ 816088B
setvar 0x4000, 1
compare 0x8006, 1
- jumpeq BattleTower_Corridor_EventScript_1608B1
+ goto_if_eq BattleTower_Corridor_EventScript_1608B1
move 1, BattleTower_Corridor_Movement_1608D5
move 255, BattleTower_Corridor_Movement_1608D4
waitmove 0
diff --git a/data/scripts/maps/BattleTower_Lobby.inc b/data/scripts/maps/BattleTower_Lobby.inc
index 50c9c9152..fc5cee29a 100644
--- a/data/scripts/maps/BattleTower_Lobby.inc
+++ b/data/scripts/maps/BattleTower_Lobby.inc
@@ -14,12 +14,12 @@ BattleTower_Lobby_EventScript_16029C:: @ 816029C
setvar 0x8004, 10
special sub_8135668
checkflag 238
- jumpeq BattleTower_Lobby_EventScript_1602E4
+ goto_if_eq BattleTower_Lobby_EventScript_1602E4
checkflag 237
- jumpeq BattleTower_Lobby_EventScript_1602CD
+ goto_if_eq BattleTower_Lobby_EventScript_1602CD
specialval 0x8007, sub_810F404
compare 0x8007, 50
- jumpif 0, BattleTower_Lobby_EventScript_1602E4
+ goto_if 0, BattleTower_Lobby_EventScript_1602E4
clearflag 941
special sub_810F8FC
return
@@ -27,7 +27,7 @@ BattleTower_Lobby_EventScript_16029C:: @ 816029C
BattleTower_Lobby_EventScript_1602CD:: @ 81602CD
specialval 0x8007, sub_810F404
compare 0x8007, 100
- jumpif 0, BattleTower_Lobby_EventScript_1602E4
+ goto_if 0, BattleTower_Lobby_EventScript_1602E4
clearflag 941
special sub_810F8FC
return
@@ -78,10 +78,10 @@ BattleTower_Lobby_EventScript_160342:: @ 8160342
setvar 0x8004, 0
special sub_81358A4
compare RESULT, 6
- jumpeq BattleTower_Lobby_EventScript_16037D
+ goto_if_eq BattleTower_Lobby_EventScript_16037D
special sub_8135E50
compare RESULT, 0
- jumpeq BattleTower_Lobby_EventScript_16037D
+ goto_if_eq BattleTower_Lobby_EventScript_16037D
message BattleTower_Lobby_Text_19A6BE
waittext
fanfare 370
@@ -92,7 +92,7 @@ BattleTower_Lobby_EventScript_16037D:: @ 816037D
setvar 0x8004, 8
special sub_81358A4
compare RESULT, 1
- jumpeq BattleTower_Lobby_EventScript_1603AD
+ goto_if_eq BattleTower_Lobby_EventScript_1603AD
message BattleTower_Lobby_Text_19A589
waittext
setvar 0x8004, 13
@@ -119,7 +119,7 @@ BattleTower_Lobby_EventScript_1603AD:: @ 81603AD
setvar 0x8004, 9
special sub_81358A4
compare RESULT, 49
- jumpif 5, BattleTower_Lobby_EventScript_1603F8
+ goto_if 5, BattleTower_Lobby_EventScript_1603F8
msgbox BattleTower_Lobby_Text_19A617, 4
BattleTower_Lobby_EventScript_1603F8:: @ 81603F8
@@ -187,7 +187,7 @@ BattleTower_Lobby_EventScript_16049E:: @ 816049E
setvar 0x8004, 0
special sub_81358A4
compare RESULT, 6
- jumpeq BattleTower_Lobby_EventScript_160342
+ goto_if_eq BattleTower_Lobby_EventScript_160342
special SavePlayerParty
msgbox BattleTower_Lobby_Text_199F2C, 4
@@ -210,7 +210,7 @@ BattleTower_Lobby_EventScript_1604FA:: @ 81604FA
case 127, BattleTower_Lobby_EventScript_160652
special CheckPartyBattleTowerBanlist
compare 0x8004, 1
- jumpeq BattleTower_Lobby_EventScript_16060D
+ goto_if_eq BattleTower_Lobby_EventScript_16060D
setvar 0x8004, 1
copyvar 0x8005, RESULT
copyvar 0x8006, RESULT
@@ -220,7 +220,7 @@ BattleTower_Lobby_EventScript_1604FA:: @ 81604FA
special ChooseBattleTowerPlayerParty
waitstate
compare RESULT, 0
- jumpeq BattleTower_Lobby_EventScript_16064F
+ goto_if_eq BattleTower_Lobby_EventScript_16064F
msgbox BattleTower_Lobby_Text_199FDA, 5
switch RESULT
case 0, BattleTower_Lobby_EventScript_16064F
@@ -246,7 +246,7 @@ BattleTower_Lobby_EventScript_160587:: @ 8160587
setvar 0x4000, 5
hidebox 0, 0, 15, 10
compare RESULT, 0
- jumpeq BattleTower_Lobby_EventScript_160642
+ goto_if_eq BattleTower_Lobby_EventScript_160642
inccounter GAME_STAT_ENTERED_BATTLE_TOWER
special SavePlayerParty
special sub_8135A14
@@ -348,9 +348,9 @@ BattleTower_Lobby_EventScript_1606CC:: @ 81606CC
lock
faceplayer
compare RESULT, 0
- jumpeq BattleTower_Lobby_EventScript_160701
+ goto_if_eq BattleTower_Lobby_EventScript_160701
compare RESULT, 1
- jumpeq BattleTower_Lobby_EventScript_16070B
+ goto_if_eq BattleTower_Lobby_EventScript_16070B
end
BattleTower_Lobby_EventScript_1606F7:: @ 81606F7
@@ -388,14 +388,14 @@ BattleTower_Lobby_EventScript_160733:: @ 8160733
lock
faceplayer
checkflag 238
- jumpeq BattleTower_Lobby_EventScript_1607C5
+ goto_if_eq BattleTower_Lobby_EventScript_1607C5
checkflag 237
- jumpeq BattleTower_Lobby_EventScript_160773
+ goto_if_eq BattleTower_Lobby_EventScript_160773
msgbox BattleTower_Lobby_Text_19A9EE, 4
setvar 0x8008, 42
givedecoration 42
compare RESULT, 0
- jumpeq BattleTower_Lobby_EventScript_1607AF
+ goto_if_eq BattleTower_Lobby_EventScript_1607AF
setflag 237
msgbox BattleTower_Lobby_Text_19ABAA, 4
release
@@ -404,12 +404,12 @@ BattleTower_Lobby_EventScript_160733:: @ 8160733
BattleTower_Lobby_EventScript_160773:: @ 8160773
specialval RESULT, sub_810F404
compare RESULT, 100
- jumpif 0, BattleTower_Lobby_EventScript_1607C5
+ goto_if 0, BattleTower_Lobby_EventScript_1607C5
msgbox BattleTower_Lobby_Text_19AAC4, 4
setvar 0x8008, 43
givedecoration 43
compare RESULT, 0
- jumpeq BattleTower_Lobby_EventScript_1607AF
+ goto_if_eq BattleTower_Lobby_EventScript_1607AF
setflag 238
msgbox BattleTower_Lobby_Text_19ABAA, 4
release
diff --git a/data/scripts/maps/BattleTower_Outside.inc b/data/scripts/maps/BattleTower_Outside.inc
index 01e10ebd3..77f8b39b6 100644
--- a/data/scripts/maps/BattleTower_Outside.inc
+++ b/data/scripts/maps/BattleTower_Outside.inc
@@ -14,7 +14,7 @@ BattleTower_Outside_EventScript_160168:: @ 8160168
msgbox BattleTower_Outside_Text_199D06, 4
checkitem ITEM_SS_TICKET, 1
compare RESULT, 0
- jumpeq BattleTower_Outside_EventScript_1601C6
+ goto_if_eq BattleTower_Outside_EventScript_1601C6
message BattleTower_Outside_Text_199D9D
waittext
goto BattleTower_Outside_EventScript_16018E
@@ -37,7 +37,7 @@ BattleTower_Outside_EventScript_1601C6:: @ 81601C6
BattleTower_Outside_EventScript_1601D0:: @ 81601D0
msgbox BattleTower_Outside_Text_199DF2, 5
compare RESULT, 0
- jumpeq BattleTower_Outside_EventScript_160226
+ goto_if_eq BattleTower_Outside_EventScript_160226
msgbox BattleTower_Outside_Text_199E4B, 4
call BattleTower_Outside_EventScript_160232
warp SlateportCity_Harbor, 255, 8, 11
@@ -48,7 +48,7 @@ BattleTower_Outside_EventScript_1601D0:: @ 81601D0
BattleTower_Outside_EventScript_1601FB:: @ 81601FB
msgbox BattleTower_Outside_Text_199E0E, 5
compare RESULT, 0
- jumpeq BattleTower_Outside_EventScript_160226
+ goto_if_eq BattleTower_Outside_EventScript_160226
msgbox BattleTower_Outside_Text_199E4B, 4
call BattleTower_Outside_EventScript_160232
warp LilycoveCity_Harbor, 255, 8, 11
diff --git a/data/scripts/maps/CaveOfOrigin_1F.inc b/data/scripts/maps/CaveOfOrigin_1F.inc
index 7fd365b36..3ad36cc18 100644
--- a/data/scripts/maps/CaveOfOrigin_1F.inc
+++ b/data/scripts/maps/CaveOfOrigin_1F.inc
@@ -4,5 +4,5 @@ CaveOfOrigin_1F_MapScripts:: @ 815DD6C
CaveOfOrigin_1F_MapScript1_15DD72:: @ 815DD72
checkflag 113
- callif 1, CaveOfOrigin_1F_EventScript_1A04E3
+ call_if 1, CaveOfOrigin_1F_EventScript_1A04E3
end
diff --git a/data/scripts/maps/CaveOfOrigin_B1F.inc b/data/scripts/maps/CaveOfOrigin_B1F.inc
index 9603ae83b..c3bbdd45f 100644
--- a/data/scripts/maps/CaveOfOrigin_B1F.inc
+++ b/data/scripts/maps/CaveOfOrigin_B1F.inc
@@ -4,5 +4,5 @@ CaveOfOrigin_B1F_MapScripts:: @ 815DD7C
CaveOfOrigin_B1F_MapScript1_15DD82:: @ 815DD82
checkflag 113
- callif 1, CaveOfOrigin_B1F_EventScript_1A04E3
+ call_if 1, CaveOfOrigin_B1F_EventScript_1A04E3
end
diff --git a/data/scripts/maps/CaveOfOrigin_B2F.inc b/data/scripts/maps/CaveOfOrigin_B2F.inc
index 6b3a55648..fb65de171 100644
--- a/data/scripts/maps/CaveOfOrigin_B2F.inc
+++ b/data/scripts/maps/CaveOfOrigin_B2F.inc
@@ -4,5 +4,5 @@ CaveOfOrigin_B2F_MapScripts:: @ 815DD8C
CaveOfOrigin_B2F_MapScript1_15DD92:: @ 815DD92
checkflag 113
- callif 1, CaveOfOrigin_B2F_EventScript_1A04E3
+ call_if 1, CaveOfOrigin_B2F_EventScript_1A04E3
end
diff --git a/data/scripts/maps/CaveOfOrigin_B3F.inc b/data/scripts/maps/CaveOfOrigin_B3F.inc
index 8e61048d2..c21b04e91 100644
--- a/data/scripts/maps/CaveOfOrigin_B3F.inc
+++ b/data/scripts/maps/CaveOfOrigin_B3F.inc
@@ -4,5 +4,5 @@ CaveOfOrigin_B3F_MapScripts:: @ 815DD9C
CaveOfOrigin_B3F_MapScript1_15DDA2:: @ 815DDA2
checkflag 113
- callif 1, CaveOfOrigin_B3F_EventScript_1A04E3
+ call_if 1, CaveOfOrigin_B3F_EventScript_1A04E3
end
diff --git a/data/scripts/maps/CaveOfOrigin_B4F.inc b/data/scripts/maps/CaveOfOrigin_B4F.inc
index 5517a9c7e..f5ce8138f 100644
--- a/data/scripts/maps/CaveOfOrigin_B4F.inc
+++ b/data/scripts/maps/CaveOfOrigin_B4F.inc
@@ -5,7 +5,7 @@ CaveOfOrigin_B4F_MapScripts:: @ 815DDAC
CaveOfOrigin_B4F_MapScript1_15DDB7:: @ 815DDB7
checkflag 2145
- callif 1, CaveOfOrigin_B4F_EventScript_15DDC1
+ call_if 1, CaveOfOrigin_B4F_EventScript_15DDC1
end
CaveOfOrigin_B4F_EventScript_15DDC1:: @ 815DDC1
@@ -20,7 +20,7 @@ CaveOfOrigin_B4F_MapScript1_15DDC5:: @ 815DDC5
.endif
call CaveOfOrigin_B4F_EventScript_1A01B5
checkflag 113
- callif 1, CaveOfOrigin_B4F_EventScript_1A04E3
+ call_if 1, CaveOfOrigin_B4F_EventScript_1A04E3
end
CaveOfOrigin_B4F_EventScript_15DDD7:: @ 815DDD7
@@ -67,7 +67,7 @@ CaveOfOrigin_B4F_EventScript_15DDD7:: @ 815DDD7
clearflag 2145
specialval RESULT, sub_810E300
compare RESULT, 1
- callif 1, CaveOfOrigin_B4F_EventScript_15DE73
+ call_if 1, CaveOfOrigin_B4F_EventScript_15DE73
setflag 816
setflag 855
setflag 856
diff --git a/data/scripts/maps/DesertRuins.inc b/data/scripts/maps/DesertRuins.inc
index 97a22bae3..ab094c824 100644
--- a/data/scripts/maps/DesertRuins.inc
+++ b/data/scripts/maps/DesertRuins.inc
@@ -6,7 +6,7 @@ DesertRuins_MapScripts:: @ 815CAF3
DesertRuins_MapScript1_15CB03:: @ 815CB03
checkflag 2145
- callif 1, DesertRuins_EventScript_15CB0D
+ call_if 1, DesertRuins_EventScript_15CB0D
end
DesertRuins_EventScript_15CB0D:: @ 815CB0D
@@ -15,7 +15,7 @@ DesertRuins_EventScript_15CB0D:: @ 815CB0D
DesertRuins_MapScript1_15CB11:: @ 815CB11
checkflag 2128
- callif 0, DesertRuins_EventScript_15CB1B
+ call_if 0, DesertRuins_EventScript_15CB1B
end
DesertRuins_EventScript_15CB1B:: @ 815CB1B
@@ -34,7 +34,7 @@ DesertRuins_MapScript1_15CB52:: @ 815CB52
DesertRuins_EventScript_15CB56:: @ 815CB56
lockall
checkflag 2128
- jumpeq DesertRuins_EventScript_15CB6D
+ goto_if_eq DesertRuins_EventScript_15CB6D
braillemsg DesertRuins_Braille_1C54C8
waitbutton
hidebox 0, 0, 29, 19
diff --git a/data/scripts/maps/DewfordTown.inc b/data/scripts/maps/DewfordTown.inc
index 9a914fcd8..f30c202c8 100644
--- a/data/scripts/maps/DewfordTown.inc
+++ b/data/scripts/maps/DewfordTown.inc
@@ -10,7 +10,7 @@ DewfordTown_EventScript_14E002:: @ 814E002
lock
faceplayer
checkflag 189
- jumpif 0, DewfordTown_EventScript_14E076
+ goto_if 0, DewfordTown_EventScript_14E076
message DewfordTown_Text_16B522
waittext
multichoicedef 21, 6, 0, 2, 0
@@ -44,7 +44,7 @@ DewfordTown_EventScript_14E06B:: @ 814E06B
DewfordTown_EventScript_14E076:: @ 814E076
msgbox DewfordTown_Text_16B3BC, 5
compare RESULT, 1
- jumpeq DewfordTown_EventScript_14E093
+ goto_if_eq DewfordTown_EventScript_14E093
msgbox DewfordTown_Text_16B471, 4
release
end
@@ -75,12 +75,12 @@ DewfordTown_EventScript_14E0C6:: @ 814E0C6
lock
faceplayer
checkflag 257
- jumpeq DewfordTown_EventScript_14E11B
+ goto_if_eq DewfordTown_EventScript_14E11B
msgbox DewfordTown_Text_16B665, 5
compare RESULT, 1
- jumpeq DewfordTown_EventScript_14E0F0
+ goto_if_eq DewfordTown_EventScript_14E0F0
compare RESULT, 0
- jumpeq DewfordTown_EventScript_14E111
+ goto_if_eq DewfordTown_EventScript_14E111
end
DewfordTown_EventScript_14E0F0:: @ 814E0F0
@@ -101,9 +101,9 @@ DewfordTown_EventScript_14E11B:: @ 814E11B
waittext
multichoice 20, 8, 50, 1
compare RESULT, 0
- jumpeq DewfordTown_EventScript_14E13D
+ goto_if_eq DewfordTown_EventScript_14E13D
compare RESULT, 1
- jumpeq DewfordTown_EventScript_14E147
+ goto_if_eq DewfordTown_EventScript_14E147
end
DewfordTown_EventScript_14E13D:: @ 814E13D
@@ -177,9 +177,9 @@ DewfordTown_EventScript_14E1D8:: @ 814E1D8
setflag 743
spriteinvisible 4, 0, 11
checkflag 149
- callif 0, DewfordTown_EventScript_14E281
+ call_if 0, DewfordTown_EventScript_14E281
checkflag 149
- callif 1, DewfordTown_EventScript_14E28A
+ call_if 1, DewfordTown_EventScript_14E28A
closebutton
copyvar 0x4096, 0x8008
restorespritelevel 255, 0, 11
@@ -600,9 +600,9 @@ DewfordTown_EventScript_14E413:: @ 814E413
call DewfordTown_EventScript_1A0102
msgbox DewfordTown_Text_16B9CE, 5
compare RESULT, 1
- jumpeq DewfordTown_EventScript_14E439
+ goto_if_eq DewfordTown_EventScript_14E439
compare RESULT, 0
- jumpeq DewfordTown_EventScript_14E443
+ goto_if_eq DewfordTown_EventScript_14E443
end
DewfordTown_EventScript_14E439:: @ 814E439
@@ -617,15 +617,15 @@ DewfordTown_EventScript_14E443:: @ 814E443
lock
faceplayer
compare RESULT, 1
- jumpeq DewfordTown_EventScript_14E46E
+ goto_if_eq DewfordTown_EventScript_14E46E
compare RESULT, 0
- jumpeq DewfordTown_EventScript_14E485
+ goto_if_eq DewfordTown_EventScript_14E485
end
DewfordTown_EventScript_14E46E:: @ 814E46E
inccounter GAME_STAT_STARTED_TRENDS
compare 0x8004, 0
- jumpeq DewfordTown_EventScript_14E48F
+ goto_if_eq DewfordTown_EventScript_14E48F
msgbox DewfordTown_Text_16BB44, 4
release
end
diff --git a/data/scripts/maps/DewfordTown_Gym.inc b/data/scripts/maps/DewfordTown_Gym.inc
index 457f510f0..cf484a546 100644
--- a/data/scripts/maps/DewfordTown_Gym.inc
+++ b/data/scripts/maps/DewfordTown_Gym.inc
@@ -8,15 +8,15 @@ DewfordTown_Gym_MapScript1_15306B:: @ 815306B
DewfordTown_Gym_EventScript_153071:: @ 8153071
checktrainerflag OPPONENT_BRAWLY
- jumpeq DewfordTown_Gym_EventScript_1530AA
+ goto_if_eq DewfordTown_Gym_EventScript_1530AA
call DewfordTown_Gym_EventScript_153122
copyvar 0x8001, 0x8000
compare 0x8000, 0
- jumpeq DewfordTown_Gym_EventScript_1530BA
+ goto_if_eq DewfordTown_Gym_EventScript_1530BA
compare 0x8000, 1
- jumpeq DewfordTown_Gym_EventScript_1530B6
+ goto_if_eq DewfordTown_Gym_EventScript_1530B6
compare 0x8000, 2
- jumpeq DewfordTown_Gym_EventScript_1530B2
+ goto_if_eq DewfordTown_Gym_EventScript_1530B2
goto DewfordTown_Gym_EventScript_1530AE
DewfordTown_Gym_EventScript_1530AA:: @ 81530AA
@@ -43,14 +43,14 @@ DewfordTown_Gym_EventScript_1530BE:: @ 81530BE
call DewfordTown_Gym_EventScript_153122
nop1
comparevars 0x8000, 0x8001
- jumpeq DewfordTown_Gym_EventScript_1530F5
+ goto_if_eq DewfordTown_Gym_EventScript_1530F5
copyvar 0x8001, 0x8000
compare 0x8000, 1
- jumpeq DewfordTown_Gym_EventScript_1530F6
+ goto_if_eq DewfordTown_Gym_EventScript_1530F6
compare 0x8000, 2
- jumpeq DewfordTown_Gym_EventScript_153101
+ goto_if_eq DewfordTown_Gym_EventScript_153101
compare 0x8000, 3
- jumpeq DewfordTown_Gym_EventScript_15310C
+ goto_if_eq DewfordTown_Gym_EventScript_15310C
DewfordTown_Gym_EventScript_1530F5:: @ 81530F5
return
@@ -82,17 +82,17 @@ DewfordTown_Gym_EventScript_153117:: @ 8153117
DewfordTown_Gym_EventScript_153122:: @ 8153122
setvar 0x8000, 0
checktrainerflag OPPONENT_HIDEKI
- jumpif 0, DewfordTown_Gym_EventScript_153135
+ goto_if 0, DewfordTown_Gym_EventScript_153135
addvar 0x8000, 1
DewfordTown_Gym_EventScript_153135:: @ 8153135
checktrainerflag OPPONENT_TESSA
- jumpif 0, DewfordTown_Gym_EventScript_153143
+ goto_if 0, DewfordTown_Gym_EventScript_153143
addvar 0x8000, 1
DewfordTown_Gym_EventScript_153143:: @ 8153143
checktrainerflag OPPONENT_LAURA
- jumpif 0, DewfordTown_Gym_EventScript_153151
+ goto_if 0, DewfordTown_Gym_EventScript_153151
addvar 0x8000, 1
DewfordTown_Gym_EventScript_153151:: @ 8153151
@@ -101,7 +101,7 @@ DewfordTown_Gym_EventScript_153151:: @ 8153151
DewfordTown_Gym_EventScript_153152:: @ 8153152
trainerbattle 1, OPPONENT_BRAWLY, 0, DewfordTown_Gym_Text_175182, DewfordTown_Gym_Text_175246, DewfordTown_Gym_EventScript_153177
checkflag 166
- jumpif 0, DewfordTown_Gym_EventScript_1531B5
+ goto_if 0, DewfordTown_Gym_EventScript_1531B5
msgbox DewfordTown_Gym_Text_175412, 4
release
end
@@ -116,7 +116,7 @@ DewfordTown_Gym_EventScript_153177:: @ 8153177
setflag 2056
addvar 0x4085, 1
compare 0x4085, 6
- callif 1, DewfordTown_Gym_EventScript_1A00FB
+ call_if 1, DewfordTown_Gym_EventScript_1A00FB
setvar 0x8008, 2
call DewfordTown_Gym_EventScript_1A01C0
goto DewfordTown_Gym_EventScript_1531B5
@@ -125,7 +125,7 @@ DewfordTown_Gym_EventScript_153177:: @ 8153177
DewfordTown_Gym_EventScript_1531B5:: @ 81531B5
giveitem ITEM_TM08
compare RESULT, 0
- jumpeq DewfordTown_Gym_EventScript_1A029B
+ goto_if_eq DewfordTown_Gym_EventScript_1A029B
msgbox DewfordTown_Gym_Text_1753BF, 4
setflag 166
release
@@ -165,7 +165,7 @@ DewfordTown_Gym_EventScript_15323F:: @ 815323F
lock
faceplayer
checkflag 1204
- jumpeq DewfordTown_Gym_EventScript_153254
+ goto_if_eq DewfordTown_Gym_EventScript_153254
msgbox DewfordTown_Gym_Text_174D98, 4
release
end
@@ -178,14 +178,14 @@ DewfordTown_Gym_EventScript_153254:: @ 8153254
DewfordTown_Gym_EventScript_15325E:: @ 815325E
lockall
checkflag 2056
- jumpeq DewfordTown_Gym_EventScript_15327E
+ goto_if_eq DewfordTown_Gym_EventScript_15327E
goto DewfordTown_Gym_EventScript_153288
end
DewfordTown_Gym_EventScript_15326E:: @ 815326E
lockall
checkflag 2056
- jumpeq DewfordTown_Gym_EventScript_15327E
+ goto_if_eq DewfordTown_Gym_EventScript_15327E
goto DewfordTown_Gym_EventScript_153288
end
diff --git a/data/scripts/maps/DewfordTown_Hall.inc b/data/scripts/maps/DewfordTown_Hall.inc
index 70689f7ac..cc096080e 100644
--- a/data/scripts/maps/DewfordTown_Hall.inc
+++ b/data/scripts/maps/DewfordTown_Hall.inc
@@ -7,7 +7,7 @@ DewfordTown_Hall_EventScript_153293:: @ 8153293
call DewfordTown_Hall_EventScript_1A0102
special sub_80FA5E4
compare RESULT, 1
- jumpeq DewfordTown_Hall_EventScript_1532B2
+ goto_if_eq DewfordTown_Hall_EventScript_1532B2
msgbox DewfordTown_Hall_Text_1754C9, 4
release
end
@@ -32,9 +32,9 @@ DewfordTown_Hall_EventScript_1532CD:: @ 81532CD
special sub_80EB83C
msgbox DewfordTown_Hall_Text_1755F9, 5
compare RESULT, 1
- jumpeq DewfordTown_Hall_EventScript_1532F6
+ goto_if_eq DewfordTown_Hall_EventScript_1532F6
compare RESULT, 0
- jumpeq DewfordTown_Hall_EventScript_153300
+ goto_if_eq DewfordTown_Hall_EventScript_153300
end
DewfordTown_Hall_EventScript_1532F6:: @ 81532F6
@@ -192,14 +192,14 @@ DewfordTown_Hall_EventScript_1534FD:: @ 81534FD
move 8, DewfordTown_Hall_Movement_153599
waitmove 0
compare 0x8008, 0
- jumpeq DewfordTown_Hall_EventScript_15351E
+ goto_if_eq DewfordTown_Hall_EventScript_15351E
compare 0x8008, 1
- jumpeq DewfordTown_Hall_EventScript_153534
+ goto_if_eq DewfordTown_Hall_EventScript_153534
end
DewfordTown_Hall_EventScript_15351E:: @ 815351E
compare FACING, 4
- jumpeq DewfordTown_Hall_EventScript_1534FC
+ goto_if_eq DewfordTown_Hall_EventScript_1534FC
move 255, DewfordTown_Hall_Movement_1A0843
waitmove 0
return
@@ -211,16 +211,16 @@ DewfordTown_Hall_EventScript_153535:: @ 8153535
move 7, DewfordTown_Hall_Movement_15359B
waitmove 0
compare 0x8008, 0
- jumpeq DewfordTown_Hall_EventScript_153556
+ goto_if_eq DewfordTown_Hall_EventScript_153556
compare 0x8008, 1
- jumpeq DewfordTown_Hall_EventScript_153583
+ goto_if_eq DewfordTown_Hall_EventScript_153583
end
DewfordTown_Hall_EventScript_153556:: @ 8153556
compare FACING, 2
- callif 1, DewfordTown_Hall_EventScript_15356D
+ call_if 1, DewfordTown_Hall_EventScript_15356D
compare FACING, 1
- callif 1, DewfordTown_Hall_EventScript_153578
+ call_if 1, DewfordTown_Hall_EventScript_153578
return
DewfordTown_Hall_EventScript_15356D:: @ 815356D
@@ -235,7 +235,7 @@ DewfordTown_Hall_EventScript_153578:: @ 8153578
DewfordTown_Hall_EventScript_153583:: @ 8153583
compare FACING, 3
- jumpeq DewfordTown_Hall_EventScript_1534FC
+ goto_if_eq DewfordTown_Hall_EventScript_1534FC
move 255, DewfordTown_Hall_Movement_1A083F
waitmove 0
return
@@ -253,11 +253,11 @@ DewfordTown_Hall_EventScript_15359D:: @ 815359D
faceplayer
call DewfordTown_Hall_EventScript_1A0102
checkflag 230
- jumpeq DewfordTown_Hall_EventScript_1535D1
+ goto_if_eq DewfordTown_Hall_EventScript_1535D1
msgbox DewfordTown_Hall_Text_175E13, 4
giveitem ITEM_TM36
compare RESULT, 0
- jumpeq DewfordTown_Hall_EventScript_1A029B
+ goto_if_eq DewfordTown_Hall_EventScript_1A029B
setflag 230
release
end
diff --git a/data/scripts/maps/DewfordTown_House2.inc b/data/scripts/maps/DewfordTown_House2.inc
index 529f8bb24..befe47404 100644
--- a/data/scripts/maps/DewfordTown_House2.inc
+++ b/data/scripts/maps/DewfordTown_House2.inc
@@ -5,11 +5,11 @@ DewfordTown_House2_EventScript_1535DC:: @ 81535DC
lock
faceplayer
checkflag 289
- jumpeq DewfordTown_House2_EventScript_153615
+ goto_if_eq DewfordTown_House2_EventScript_153615
msgbox DewfordTown_House2_Text_175EFE, 4
giveitem ITEM_SILK_SCARF
compare RESULT, 0
- jumpeq DewfordTown_House2_EventScript_15360B
+ goto_if_eq DewfordTown_House2_EventScript_15360B
setflag 289
release
end
diff --git a/data/scripts/maps/EverGrandeCity.inc b/data/scripts/maps/EverGrandeCity.inc
index 9b6d2a8b7..c9768d006 100644
--- a/data/scripts/maps/EverGrandeCity.inc
+++ b/data/scripts/maps/EverGrandeCity.inc
@@ -4,7 +4,7 @@ EverGrandeCity_MapScripts:: @ 814D4D5
EverGrandeCity_MapScript1_14D4DB:: @ 814D4DB
checkflag 2090
- callif 1, EverGrandeCity_EventScript_1A02C1
+ call_if 1, EverGrandeCity_EventScript_1A02C1
end
EverGrandeCity_EventScript_14D4E5:: @ 814D4E5
diff --git a/data/scripts/maps/EverGrandeCity_ChampionsRoom.inc b/data/scripts/maps/EverGrandeCity_ChampionsRoom.inc
index 4d2179cc1..2b0f9545f 100644
--- a/data/scripts/maps/EverGrandeCity_ChampionsRoom.inc
+++ b/data/scripts/maps/EverGrandeCity_ChampionsRoom.inc
@@ -54,16 +54,16 @@ EverGrandeCity_ChampionsRoom_EventScript_15B821:: @ 815B821
playsfx 8
checkgender
compare RESULT, 0
- callif 1, EverGrandeCity_ChampionsRoom_EventScript_15B87C
+ call_if 1, EverGrandeCity_ChampionsRoom_EventScript_15B87C
compare RESULT, 1
- callif 1, EverGrandeCity_ChampionsRoom_EventScript_15B881
+ call_if 1, EverGrandeCity_ChampionsRoom_EventScript_15B881
reappear 2
call EverGrandeCity_ChampionsRoom_EventScript_15B9BD
checkgender
compare RESULT, 0
- jumpeq EverGrandeCity_ChampionsRoom_EventScript_15B886
+ goto_if_eq EverGrandeCity_ChampionsRoom_EventScript_15B886
compare RESULT, 1
- jumpeq EverGrandeCity_ChampionsRoom_EventScript_15B8BB
+ goto_if_eq EverGrandeCity_ChampionsRoom_EventScript_15B8BB
end
EverGrandeCity_ChampionsRoom_EventScript_15B87C:: @ 815B87C
@@ -129,9 +129,9 @@ EverGrandeCity_ChampionsRoom_EventScript_15B8F0:: @ 815B8F0
msgbox EverGrandeCity_ChampionsRoom_Text_191546, 4
checkgender
compare RESULT, 0
- callif 1, EverGrandeCity_ChampionsRoom_EventScript_15B9AB
+ call_if 1, EverGrandeCity_ChampionsRoom_EventScript_15B9AB
compare RESULT, 1
- callif 1, EverGrandeCity_ChampionsRoom_EventScript_15B9B4
+ call_if 1, EverGrandeCity_ChampionsRoom_EventScript_15B9B4
closebutton
move 1, EverGrandeCity_ChampionsRoom_Movement_15B9FF
move 255, EverGrandeCity_ChampionsRoom_Movement_15B9E0
diff --git a/data/scripts/maps/EverGrandeCity_DrakesRoom.inc b/data/scripts/maps/EverGrandeCity_DrakesRoom.inc
index 55e38da15..3ddcb6ef3 100644
--- a/data/scripts/maps/EverGrandeCity_DrakesRoom.inc
+++ b/data/scripts/maps/EverGrandeCity_DrakesRoom.inc
@@ -25,9 +25,9 @@ EverGrandeCity_DrakesRoom_EventScript_15B736:: @ 815B736
EverGrandeCity_DrakesRoom_MapScript1_15B743:: @ 815B743
checkflag 1248
- callif 1, EverGrandeCity_DrakesRoom_EventScript_15B758
+ call_if 1, EverGrandeCity_DrakesRoom_EventScript_15B758
compare 0x409c, 4
- callif 1, EverGrandeCity_DrakesRoom_EventScript_15B75E
+ call_if 1, EverGrandeCity_DrakesRoom_EventScript_15B75E
end
EverGrandeCity_DrakesRoom_EventScript_15B758:: @ 815B758
@@ -42,7 +42,7 @@ EverGrandeCity_DrakesRoom_EventScript_15B764:: @ 815B764
lock
faceplayer
checkflag 1248
- jumpeq EverGrandeCity_DrakesRoom_EventScript_15B78B
+ goto_if_eq EverGrandeCity_DrakesRoom_EventScript_15B78B
playmusic 450, 0
msgbox EverGrandeCity_DrakesRoom_Text_190CEB, 4
trainerbattle 3, OPPONENT_DRAKE, 0, EverGrandeCity_DrakesRoom_Text_190E42
diff --git a/data/scripts/maps/EverGrandeCity_GlaciasRoom.inc b/data/scripts/maps/EverGrandeCity_GlaciasRoom.inc
index 9271f3da9..2526b2ea6 100644
--- a/data/scripts/maps/EverGrandeCity_GlaciasRoom.inc
+++ b/data/scripts/maps/EverGrandeCity_GlaciasRoom.inc
@@ -25,9 +25,9 @@ EverGrandeCity_GlaciasRoom_EventScript_15B69C:: @ 815B69C
EverGrandeCity_GlaciasRoom_MapScript1_15B6A9:: @ 815B6A9
checkflag 1247
- callif 1, EverGrandeCity_GlaciasRoom_EventScript_15B6BE
+ call_if 1, EverGrandeCity_GlaciasRoom_EventScript_15B6BE
compare 0x409c, 3
- callif 1, EverGrandeCity_GlaciasRoom_EventScript_15B6C4
+ call_if 1, EverGrandeCity_GlaciasRoom_EventScript_15B6C4
end
EverGrandeCity_GlaciasRoom_EventScript_15B6BE:: @ 815B6BE
@@ -42,7 +42,7 @@ EverGrandeCity_GlaciasRoom_EventScript_15B6CA:: @ 815B6CA
lock
faceplayer
checkflag 1247
- jumpeq EverGrandeCity_GlaciasRoom_EventScript_15B6F1
+ goto_if_eq EverGrandeCity_GlaciasRoom_EventScript_15B6F1
playmusic 450, 0
msgbox EverGrandeCity_GlaciasRoom_Text_190AF9, 4
trainerbattle 3, OPPONENT_GLACIA, 0, EverGrandeCity_GlaciasRoom_Text_190C01
diff --git a/data/scripts/maps/EverGrandeCity_HallOfFame.inc b/data/scripts/maps/EverGrandeCity_HallOfFame.inc
index 175990328..0999f9a4d 100644
--- a/data/scripts/maps/EverGrandeCity_HallOfFame.inc
+++ b/data/scripts/maps/EverGrandeCity_HallOfFame.inc
@@ -45,9 +45,9 @@ EverGrandeCity_HallOfFame_EventScript_15BBA8:: @ 815BBA8
call EverGrandeCity_HallOfFame_EventScript_19FC13
checkgender
compare RESULT, 0
- jumpeq EverGrandeCity_HallOfFame_EventScript_15BC41
+ goto_if_eq EverGrandeCity_HallOfFame_EventScript_15BC41
compare RESULT, 1
- jumpeq EverGrandeCity_HallOfFame_EventScript_15BC4D
+ goto_if_eq EverGrandeCity_HallOfFame_EventScript_15BC4D
end
EverGrandeCity_HallOfFame_EventScript_15BC41:: @ 815BC41
diff --git a/data/scripts/maps/EverGrandeCity_PhoebesRoom.inc b/data/scripts/maps/EverGrandeCity_PhoebesRoom.inc
index 9b693c227..9e2c4c0b7 100644
--- a/data/scripts/maps/EverGrandeCity_PhoebesRoom.inc
+++ b/data/scripts/maps/EverGrandeCity_PhoebesRoom.inc
@@ -25,9 +25,9 @@ EverGrandeCity_PhoebesRoom_EventScript_15B602:: @ 815B602
EverGrandeCity_PhoebesRoom_MapScript1_15B60F:: @ 815B60F
checkflag 1246
- callif 1, EverGrandeCity_PhoebesRoom_EventScript_15B624
+ call_if 1, EverGrandeCity_PhoebesRoom_EventScript_15B624
compare 0x409c, 2
- callif 1, EverGrandeCity_PhoebesRoom_EventScript_15B62A
+ call_if 1, EverGrandeCity_PhoebesRoom_EventScript_15B62A
end
EverGrandeCity_PhoebesRoom_EventScript_15B624:: @ 815B624
@@ -42,7 +42,7 @@ EverGrandeCity_PhoebesRoom_EventScript_15B630:: @ 815B630
lock
faceplayer
checkflag 1246
- jumpeq EverGrandeCity_PhoebesRoom_EventScript_15B657
+ goto_if_eq EverGrandeCity_PhoebesRoom_EventScript_15B657
playmusic 450, 0
msgbox EverGrandeCity_PhoebesRoom_Text_1908F5, 4
trainerbattle 3, OPPONENT_PHOEBE, 0, EverGrandeCity_PhoebesRoom_Text_190A0C
diff --git a/data/scripts/maps/EverGrandeCity_PokemonLeague.inc b/data/scripts/maps/EverGrandeCity_PokemonLeague.inc
index bfb3cdc1b..7065bdefe 100644
--- a/data/scripts/maps/EverGrandeCity_PokemonLeague.inc
+++ b/data/scripts/maps/EverGrandeCity_PokemonLeague.inc
@@ -6,7 +6,7 @@ EverGrandeCity_PokemonLeague_MapScript1_15BA7B:: @ 815BA7B
sethealplace 20
setflag 2132
checkflag 263
- callif 0, EverGrandeCity_PokemonLeague_EventScript_15BA8B
+ call_if 0, EverGrandeCity_PokemonLeague_EventScript_15BA8B
end
EverGrandeCity_PokemonLeague_EventScript_15BA8B:: @ 815BA8B
@@ -48,17 +48,17 @@ EverGrandeCity_PokemonLeague_Items:: @ 815BAC0
EverGrandeCity_PokemonLeague_EventScript_15BAD2:: @ 815BAD2
lockall
checkflag 263
- jumpeq EverGrandeCity_PokemonLeague_EventScript_15BB57
+ goto_if_eq EverGrandeCity_PokemonLeague_EventScript_15BB57
getplayerxy 0x4000, 0x4001
compare 0x4000, 11
- callif 4, EverGrandeCity_PokemonLeague_EventScript_15BB34
+ call_if 4, EverGrandeCity_PokemonLeague_EventScript_15BB34
compare 0x4000, 8
- callif 3, EverGrandeCity_PokemonLeague_EventScript_15BB3F
+ call_if 3, EverGrandeCity_PokemonLeague_EventScript_15BB3F
message EverGrandeCity_PokemonLeague_Text_1916FD
waittext
pause 75
checkflag 2060
- jumpif 0, EverGrandeCity_PokemonLeague_EventScript_15BB4A
+ goto_if 0, EverGrandeCity_PokemonLeague_EventScript_15BB4A
closebutton
move 3, EverGrandeCity_PokemonLeague_Movement_15BB7E
move 4, EverGrandeCity_PokemonLeague_Movement_15BB81
diff --git a/data/scripts/maps/EverGrandeCity_SidneysRoom.inc b/data/scripts/maps/EverGrandeCity_SidneysRoom.inc
index bbb95e0ad..d9e7a8213 100644
--- a/data/scripts/maps/EverGrandeCity_SidneysRoom.inc
+++ b/data/scripts/maps/EverGrandeCity_SidneysRoom.inc
@@ -6,9 +6,9 @@ EverGrandeCity_SidneysRoom_MapScripts:: @ 815B53F
EverGrandeCity_SidneysRoom_MapScript1_15B54F:: @ 815B54F
checkflag 1245
- callif 1, EverGrandeCity_SidneysRoom_EventScript_15B564
+ call_if 1, EverGrandeCity_SidneysRoom_EventScript_15B564
compare 0x409c, 1
- callif 1, EverGrandeCity_SidneysRoom_EventScript_15B56A
+ call_if 1, EverGrandeCity_SidneysRoom_EventScript_15B56A
end
EverGrandeCity_SidneysRoom_EventScript_15B564:: @ 815B564
@@ -43,7 +43,7 @@ EverGrandeCity_SidneysRoom_EventScript_15B596:: @ 815B596
lock
faceplayer
checkflag 1245
- jumpeq EverGrandeCity_SidneysRoom_EventScript_15B5BD
+ goto_if_eq EverGrandeCity_SidneysRoom_EventScript_15B5BD
playmusic 450, 0
msgbox EverGrandeCity_SidneysRoom_Text_190728, 4
trainerbattle 3, OPPONENT_SIDNEY, 0, EverGrandeCity_SidneysRoom_Text_190823
diff --git a/data/scripts/maps/FallarborTown.inc b/data/scripts/maps/FallarborTown.inc
index a48be5b24..043588ed5 100644
--- a/data/scripts/maps/FallarborTown.inc
+++ b/data/scripts/maps/FallarborTown.inc
@@ -13,7 +13,7 @@ FallarborTown_EventScript_14E7F5:: @ 814E7F5
lock
faceplayer
checkflag 139
- jumpeq FallarborTown_EventScript_14E80A
+ goto_if_eq FallarborTown_EventScript_14E80A
msgbox FallarborTown_Text_16C7FF, 4
release
end
diff --git a/data/scripts/maps/FallarborTown_ContestLobby.inc b/data/scripts/maps/FallarborTown_ContestLobby.inc
index ed67d922d..1dddf43de 100644
--- a/data/scripts/maps/FallarborTown_ContestLobby.inc
+++ b/data/scripts/maps/FallarborTown_ContestLobby.inc
@@ -93,7 +93,7 @@ FallarborTown_ContestLobby_EventScript_153A8E:: @ 8153A8E
FallarborTown_ContestLobby_EventScript_153A97:: @ 8153A97
checkflag 270
- jumpeq FallarborTown_ContestLobby_EventScript_153AA9
+ goto_if_eq FallarborTown_ContestLobby_EventScript_153AA9
msgbox FallarborTown_ContestLobby_Text_177246, 2
end
diff --git a/data/scripts/maps/FallarborTown_House1.inc b/data/scripts/maps/FallarborTown_House1.inc
index 8a44cdcfb..0228fe25d 100644
--- a/data/scripts/maps/FallarborTown_House1.inc
+++ b/data/scripts/maps/FallarborTown_House1.inc
@@ -9,25 +9,25 @@ FallarborTown_House1_EventScript_153BB5:: @ 8153BB5
lock
faceplayer
checkflag 229
- jumpeq FallarborTown_House1_EventScript_153C54
+ goto_if_eq FallarborTown_House1_EventScript_153C54
checkitem ITEM_METEORITE, 1
compare RESULT, 1
- jumpeq FallarborTown_House1_EventScript_153BDA
+ goto_if_eq FallarborTown_House1_EventScript_153BDA
msgbox FallarborTown_House1_Text_177755, 4
release
end
FallarborTown_House1_EventScript_153BDA:: @ 8153BDA
checkflag 2
- callif 0, FallarborTown_House1_EventScript_153C2D
+ call_if 0, FallarborTown_House1_EventScript_153C2D
checkflag 2
- callif 1, FallarborTown_House1_EventScript_153C3E
+ call_if 1, FallarborTown_House1_EventScript_153C3E
compare RESULT, 0
- jumpeq FallarborTown_House1_EventScript_153C47
+ goto_if_eq FallarborTown_House1_EventScript_153C47
msgbox FallarborTown_House1_Text_1778C4, 4
giveitem ITEM_TM27
compare RESULT, 0
- jumpeq FallarborTown_House1_EventScript_1A029B
+ goto_if_eq FallarborTown_House1_EventScript_1A029B
setvar 0x8004, 280
call FallarborTown_House1_EventScript_1A067F
setflag 229
@@ -59,9 +59,9 @@ FallarborTown_House1_EventScript_153C5E:: @ 8153C5E
lock
faceplayer
checkflag 229
- jumpeq FallarborTown_House1_EventScript_153C86
+ goto_if_eq FallarborTown_House1_EventScript_153C86
checkflag 139
- jumpeq FallarborTown_House1_EventScript_153C7C
+ goto_if_eq FallarborTown_House1_EventScript_153C7C
msgbox FallarborTown_House1_Text_177A2B, 4
release
end
diff --git a/data/scripts/maps/FallarborTown_House2.inc b/data/scripts/maps/FallarborTown_House2.inc
index c36036ce3..5ecc475ea 100644
--- a/data/scripts/maps/FallarborTown_House2.inc
+++ b/data/scripts/maps/FallarborTown_House2.inc
@@ -6,7 +6,7 @@ FallarborTown_House2_EventScript_153C91:: @ 8153C91
move 1, FallarborTown_House2_Movement_1A0839
waitmove 0
checkflag 1
- jumpeq FallarborTown_House2_EventScript_153CB6
+ goto_if_eq FallarborTown_House2_EventScript_153CB6
msgbox FallarborTown_House2_Text_177AF4, 4
setflag 1
goto FallarborTown_House2_EventScript_153CB6
@@ -15,7 +15,7 @@ FallarborTown_House2_EventScript_153C91:: @ 8153C91
FallarborTown_House2_EventScript_153CB6:: @ 8153CB6
checkitem ITEM_HEART_SCALE, 1
compare RESULT, 0
- jumpeq FallarborTown_House2_EventScript_153D60
+ goto_if_eq FallarborTown_House2_EventScript_153D60
msgbox FallarborTown_House2_Text_177BDB, 5
switch RESULT
case 0, FallarborTown_House2_EventScript_153D60
@@ -27,12 +27,12 @@ FallarborTown_House2_EventScript_153CE4:: @ 8153CE4
special sub_80F9A4C
waitstate
compare 0x8004, 255
- jumpeq FallarborTown_House2_EventScript_153D60
+ goto_if_eq FallarborTown_House2_EventScript_153D60
special sub_80FA148
compare RESULT, 1
- jumpeq FallarborTown_House2_EventScript_153D52
+ goto_if_eq FallarborTown_House2_EventScript_153D52
compare 0x8005, 0
- jumpeq FallarborTown_House2_EventScript_153D44
+ goto_if_eq FallarborTown_House2_EventScript_153D44
goto FallarborTown_House2_EventScript_153D1A
end
@@ -41,7 +41,7 @@ FallarborTown_House2_EventScript_153D1A:: @ 8153D1A
special sub_8132670
waitstate
compare 0x8004, 0
- jumpeq FallarborTown_House2_EventScript_153CE4
+ goto_if_eq FallarborTown_House2_EventScript_153CE4
msgbox FallarborTown_House2_Text_177CC3, 4
removeitem ITEM_HEART_SCALE, 1
goto FallarborTown_House2_EventScript_153D60
diff --git a/data/scripts/maps/FortreeCity.inc b/data/scripts/maps/FortreeCity.inc
index 7f9d5ae12..b5426de8e 100644
--- a/data/scripts/maps/FortreeCity.inc
+++ b/data/scripts/maps/FortreeCity.inc
@@ -19,7 +19,7 @@ FortreeCity_EventScript_14C95E:: @ 814C95E
lock
faceplayer
checkflag 295
- jumpeq FortreeCity_EventScript_14C973
+ goto_if_eq FortreeCity_EventScript_14C973
msgbox FortreeCity_Text_1675C2, 4
release
end
@@ -58,7 +58,7 @@ FortreeCity_EventScript_14C9B3:: @ 814C9B3
faceplayer
checkitem ITEM_DEVON_SCOPE, 1
compare RESULT, 1
- jumpeq FortreeCity_EventScript_14C9CF
+ goto_if_eq FortreeCity_EventScript_14C9CF
msgbox FortreeCity_Text_167868, 4
release
end
@@ -66,7 +66,7 @@ FortreeCity_EventScript_14C9B3:: @ 814C9B3
FortreeCity_EventScript_14C9CF:: @ 814C9CF
msgbox FortreeCity_Text_16788B, 5
compare RESULT, 1
- jumpeq FortreeCity_EventScript_14C9E4
+ goto_if_eq FortreeCity_EventScript_14C9E4
release
end
diff --git a/data/scripts/maps/FortreeCity_Gym.inc b/data/scripts/maps/FortreeCity_Gym.inc
index 971b05f1b..8744141cb 100644
--- a/data/scripts/maps/FortreeCity_Gym.inc
+++ b/data/scripts/maps/FortreeCity_Gym.inc
@@ -18,7 +18,7 @@ FortreeCity_Gym_EventScript_157EEC:: @ 8157EEC
FortreeCity_Gym_EventScript_157EF0:: @ 8157EF0
trainerbattle 1, OPPONENT_WINONA, 0, FortreeCity_Gym_Text_185CCB, FortreeCity_Gym_Text_185DBA, FortreeCity_Gym_EventScript_157F15
checkflag 170
- jumpif 0, FortreeCity_Gym_EventScript_157F3E
+ goto_if 0, FortreeCity_Gym_EventScript_157F3E
msgbox FortreeCity_Gym_Text_185F98, 4
release
end
@@ -38,7 +38,7 @@ FortreeCity_Gym_EventScript_157F15:: @ 8157F15
FortreeCity_Gym_EventScript_157F3E:: @ 8157F3E
giveitem ITEM_TM40
compare RESULT, 0
- jumpeq FortreeCity_Gym_EventScript_1A029B
+ goto_if_eq FortreeCity_Gym_EventScript_1A029B
msgbox FortreeCity_Gym_Text_185F4A, 4
setflag 170
release
@@ -68,7 +68,7 @@ FortreeCity_Gym_EventScript_157FBE:: @ 8157FBE
lock
faceplayer
checkflag 1225
- jumpeq FortreeCity_Gym_EventScript_157FD3
+ goto_if_eq FortreeCity_Gym_EventScript_157FD3
msgbox FortreeCity_Gym_Text_18589C, 4
release
end
@@ -81,14 +81,14 @@ FortreeCity_Gym_EventScript_157FD3:: @ 8157FD3
FortreeCity_Gym_EventScript_157FDD:: @ 8157FDD
lockall
checkflag 2060
- jumpeq FortreeCity_Gym_EventScript_157FFD
+ goto_if_eq FortreeCity_Gym_EventScript_157FFD
goto FortreeCity_Gym_EventScript_158007
end
FortreeCity_Gym_EventScript_157FED:: @ 8157FED
lockall
checkflag 2060
- jumpeq FortreeCity_Gym_EventScript_157FFD
+ goto_if_eq FortreeCity_Gym_EventScript_157FFD
goto FortreeCity_Gym_EventScript_158007
end
diff --git a/data/scripts/maps/FortreeCity_House1.inc b/data/scripts/maps/FortreeCity_House1.inc
index f5bda05ab..446831c33 100644
--- a/data/scripts/maps/FortreeCity_House1.inc
+++ b/data/scripts/maps/FortreeCity_House1.inc
@@ -5,24 +5,24 @@ FortreeCity_House1_EventScript_157E13:: @ 8157E13
lock
faceplayer
checkflag 155
- jumpeq FortreeCity_House1_EventScript_157EAD
+ goto_if_eq FortreeCity_House1_EventScript_157EAD
setvar 0x8008, 1
copyvar 0x8004, 0x8008
specialval RESULT, sub_804D89C
copyvar 0x8009, RESULT
msgbox FortreeCity_House1_Text_18568C, 5
compare RESULT, 0
- jumpeq FortreeCity_House1_EventScript_157E95
+ goto_if_eq FortreeCity_House1_EventScript_157E95
special sub_80F9A0C
waitstate
copyvar 0x800a, 0x8004
compare 0x8004, 255
- jumpeq FortreeCity_House1_EventScript_157E95
+ goto_if_eq FortreeCity_House1_EventScript_157E95
copyvar 0x8005, 0x800a
specialval RESULT, sub_804DB2C
copyvar 0x800b, RESULT
comparevars RESULT, 0x8009
- jumpif 5, FortreeCity_House1_EventScript_157E9F
+ goto_if 5, FortreeCity_House1_EventScript_157E9F
copyvar 0x8004, 0x8008
copyvar 0x8005, 0x800a
special sub_804DB68
diff --git a/data/scripts/maps/FortreeCity_House2.inc b/data/scripts/maps/FortreeCity_House2.inc
index ea4aad3d8..f210dd3ac 100644
--- a/data/scripts/maps/FortreeCity_House2.inc
+++ b/data/scripts/maps/FortreeCity_House2.inc
@@ -5,9 +5,9 @@ FortreeCity_House2_EventScript_1580B4:: @ 81580B4
lock
faceplayer
checkflag 264
- jumpeq FortreeCity_House2_EventScript_158157
+ goto_if_eq FortreeCity_House2_EventScript_158157
checkflag 118
- callif 0, FortreeCity_House2_EventScript_15814B
+ call_if 0, FortreeCity_House2_EventScript_15814B
msgbox FortreeCity_House2_Text_186360, 4
multichoice 21, 8, 54, 1
switch RESULT
@@ -23,7 +23,7 @@ FortreeCity_House2_EventScript_1580B4:: @ 81580B4
msgbox FortreeCity_House2_Text_1864C6, 4
giveitem ITEM_TM10
compare RESULT, 0
- jumpeq FortreeCity_House2_EventScript_1A029B
+ goto_if_eq FortreeCity_House2_EventScript_1A029B
setflag 264
msgbox FortreeCity_House2_Text_18652F, 4
release
diff --git a/data/scripts/maps/FortreeCity_House4.inc b/data/scripts/maps/FortreeCity_House4.inc
index 33d0ed1ae..5de611399 100644
--- a/data/scripts/maps/FortreeCity_House4.inc
+++ b/data/scripts/maps/FortreeCity_House4.inc
@@ -8,11 +8,11 @@ FortreeCity_House4_EventScript_15817F:: @ 815817F
FortreeCity_House4_EventScript_158188:: @ 8158188
lockall
checkflag 223
- jumpeq FortreeCity_House4_EventScript_158204
+ goto_if_eq FortreeCity_House4_EventScript_158204
checkflag 224
- jumpeq FortreeCity_House4_EventScript_1581D6
+ goto_if_eq FortreeCity_House4_EventScript_1581D6
checkflag 222
- jumpeq FortreeCity_House4_EventScript_1581C2
+ goto_if_eq FortreeCity_House4_EventScript_1581C2
msgbox FortreeCity_House4_Text_186835, 4
closebutton
setflag 222
@@ -36,7 +36,7 @@ FortreeCity_House4_EventScript_1581D6:: @ 81581D6
msgbox FortreeCity_House4_Text_186881, 4
giveitem ITEM_MENTAL_HERB
compare RESULT, 0
- jumpeq FortreeCity_House4_EventScript_1A029B
+ goto_if_eq FortreeCity_House4_EventScript_1A029B
setflag 223
releaseall
end
diff --git a/data/scripts/maps/GraniteCave_1F.inc b/data/scripts/maps/GraniteCave_1F.inc
index 59aaa2fc3..f389a774e 100644
--- a/data/scripts/maps/GraniteCave_1F.inc
+++ b/data/scripts/maps/GraniteCave_1F.inc
@@ -5,7 +5,7 @@ GraniteCave_1F_EventScript_15CBA7:: @ 815CBA7
lock
faceplayer
checkflag 109
- jumpeq GraniteCave_1F_EventScript_15CBD3
+ goto_if_eq GraniteCave_1F_EventScript_15CBD3
msgbox GraniteCave_1F_Text_194917, 4
giveitem ITEM_HM05
setflag 109
diff --git a/data/scripts/maps/GraniteCave_StevensRoom.inc b/data/scripts/maps/GraniteCave_StevensRoom.inc
index 895241406..004c3d679 100644
--- a/data/scripts/maps/GraniteCave_StevensRoom.inc
+++ b/data/scripts/maps/GraniteCave_StevensRoom.inc
@@ -11,17 +11,17 @@ GraniteCave_StevensRoom_EventScript_15CBFA:: @ 815CBFA
msgbox GraniteCave_StevensRoom_Text_194BDD, 4
giveitem ITEM_TM47
compare RESULT, 0
- callif 1, GraniteCave_StevensRoom_EventScript_15CC83
+ call_if 1, GraniteCave_StevensRoom_EventScript_15CC83
msgbox GraniteCave_StevensRoom_Text_194C8D, 4
closebutton
compare FACING, 2
- callif 1, GraniteCave_StevensRoom_EventScript_15CC6D
+ call_if 1, GraniteCave_StevensRoom_EventScript_15CC6D
compare FACING, 1
- callif 1, GraniteCave_StevensRoom_EventScript_15CC78
+ call_if 1, GraniteCave_StevensRoom_EventScript_15CC78
compare FACING, 3
- callif 1, GraniteCave_StevensRoom_EventScript_15CC6D
+ call_if 1, GraniteCave_StevensRoom_EventScript_15CC6D
compare FACING, 4
- callif 1, GraniteCave_StevensRoom_EventScript_15CC6D
+ call_if 1, GraniteCave_StevensRoom_EventScript_15CC6D
playsfx 9
disappear 1
release
diff --git a/data/scripts/maps/InsideOfTruck.inc b/data/scripts/maps/InsideOfTruck.inc
index 0c26f0f88..a265b97e1 100644
--- a/data/scripts/maps/InsideOfTruck.inc
+++ b/data/scripts/maps/InsideOfTruck.inc
@@ -18,9 +18,9 @@ InsideOfTruck_EventScript_15FC29:: @ 815FC29
setflag 0x4000
checkgender
compare RESULT, 0
- jumpeq InsideOfTruck_EventScript_15FC45
+ goto_if_eq InsideOfTruck_EventScript_15FC45
compare RESULT, 1
- jumpeq InsideOfTruck_EventScript_15FC68
+ goto_if_eq InsideOfTruck_EventScript_15FC68
end
InsideOfTruck_EventScript_15FC45:: @ 815FC45
diff --git a/data/scripts/maps/IslandCave.inc b/data/scripts/maps/IslandCave.inc
index e706914d7..73523c460 100644
--- a/data/scripts/maps/IslandCave.inc
+++ b/data/scripts/maps/IslandCave.inc
@@ -6,7 +6,7 @@ IslandCave_MapScripts:: @ 815EEB6
IslandCave_MapScript1_15EEC6:: @ 815EEC6
checkflag 2145
- callif 1, IslandCave_EventScript_15EED0
+ call_if 1, IslandCave_EventScript_15EED0
end
IslandCave_EventScript_15EED0:: @ 815EED0
@@ -15,7 +15,7 @@ IslandCave_EventScript_15EED0:: @ 815EED0
IslandCave_MapScript1_15EED4:: @ 815EED4
checkflag 2129
- callif 0, IslandCave_EventScript_15EEDE
+ call_if 0, IslandCave_EventScript_15EEDE
end
IslandCave_EventScript_15EEDE:: @ 815EEDE
@@ -46,7 +46,7 @@ S_OpenRegiceChamber:: @ 815EF19
IslandCave_EventScript_15EF59:: @ 815EF59
lockall
checkflag 2129
- jumpeq IslandCave_EventScript_15EF72
+ goto_if_eq IslandCave_EventScript_15EF72
braillemsg IslandCave_Braille_1C54FC
special DoBrailleWait
waitstate
@@ -62,7 +62,7 @@ IslandCave_EventScript_15EF7C:: @ 815EF7C
lockall
braillemsg IslandCave_Braille_1C54FC
checkflag 2129
- jumpeq IslandCave_EventScript_15EF95
+ goto_if_eq IslandCave_EventScript_15EF95
special DoBrailleWait
waitstate
goto IslandCave_EventScript_15EF95
diff --git a/data/scripts/maps/JaggedPass.inc b/data/scripts/maps/JaggedPass.inc
index 151f1ec79..e80894dc2 100644
--- a/data/scripts/maps/JaggedPass.inc
+++ b/data/scripts/maps/JaggedPass.inc
@@ -9,7 +9,7 @@ JaggedPass_MapScript1_15D271:: @ 815D271
JaggedPass_MapScript1_15D274:: @ 815D274
compare 0x40bd, 1
- callif 1, JaggedPass_EventScript_15D280
+ call_if 1, JaggedPass_EventScript_15D280
end
JaggedPass_EventScript_15D280:: @ 815D280
@@ -26,7 +26,7 @@ JaggedPass_EventScript_15D29C:: @ 815D29C
trainerbattle 0, OPPONENT_DIANA_1, 0, JaggedPass_Text_195E9E, JaggedPass_Text_195EDF
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq JaggedPass_EventScript_15D2C3
+ goto_if_eq JaggedPass_EventScript_15D2C3
msgbox JaggedPass_Text_195F04, 6
end
@@ -39,7 +39,7 @@ JaggedPass_EventScript_15D2DA:: @ 815D2DA
trainerbattle 0, OPPONENT_ETHAN_1, 0, JaggedPass_Text_195FF2, JaggedPass_Text_196032
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq JaggedPass_EventScript_15D301
+ goto_if_eq JaggedPass_EventScript_15D301
msgbox JaggedPass_Text_196077, 6
end
diff --git a/data/scripts/maps/LavaridgeTown.inc b/data/scripts/maps/LavaridgeTown.inc
index 125b2d42b..ca476eb97 100644
--- a/data/scripts/maps/LavaridgeTown.inc
+++ b/data/scripts/maps/LavaridgeTown.inc
@@ -6,11 +6,11 @@ LavaridgeTown_MapScripts:: @ 814E4A3
LavaridgeTown_MapScript1_14E4AE:: @ 814E4AE
setflag 2066
checkflag 139
- callif 1, LavaridgeTown_EventScript_14E4DF
+ call_if 1, LavaridgeTown_EventScript_14E4DF
call LavaridgeTown_EventScript_1A014E
call LavaridgeTown_EventScript_1A0172
compare 0x4053, 2
- callif 1, LavaridgeTown_EventScript_14E4D0
+ call_if 1, LavaridgeTown_EventScript_14E4D0
end
LavaridgeTown_EventScript_14E4D0:: @ 814E4D0
@@ -45,16 +45,16 @@ LavaridgeTown_EventScript_14E4ED:: @ 814E4ED
waitmove 0
checkgender
compare RESULT, 0
- callif 1, LavaridgeTown_EventScript_14E56B
+ call_if 1, LavaridgeTown_EventScript_14E56B
compare RESULT, 1
- callif 1, LavaridgeTown_EventScript_14E570
+ call_if 1, LavaridgeTown_EventScript_14E570
compare 0x8008, 1
- callif 1, LavaridgeTown_EventScript_14E68F
+ call_if 1, LavaridgeTown_EventScript_14E68F
checkgender
compare RESULT, 0
- jumpeq LavaridgeTown_EventScript_14E5AB
+ goto_if_eq LavaridgeTown_EventScript_14E5AB
compare RESULT, 1
- jumpeq LavaridgeTown_EventScript_14E5D0
+ goto_if_eq LavaridgeTown_EventScript_14E5D0
end
LavaridgeTown_EventScript_14E56B:: @ 814E56B
@@ -71,14 +71,14 @@ LavaridgeTown_EventScript_14E575:: @ 814E575
setvar 0x8008, 0
checkgender
compare RESULT, 0
- callif 1, LavaridgeTown_EventScript_14E56B
+ call_if 1, LavaridgeTown_EventScript_14E56B
compare RESULT, 1
- callif 1, LavaridgeTown_EventScript_14E570
+ call_if 1, LavaridgeTown_EventScript_14E570
checkgender
compare RESULT, 0
- jumpeq LavaridgeTown_EventScript_14E5AB
+ goto_if_eq LavaridgeTown_EventScript_14E5AB
compare RESULT, 1
- jumpeq LavaridgeTown_EventScript_14E5D0
+ goto_if_eq LavaridgeTown_EventScript_14E5D0
end
LavaridgeTown_EventScript_14E5AB:: @ 814E5AB
@@ -100,22 +100,22 @@ LavaridgeTown_EventScript_14E5D0:: @ 814E5D0
LavaridgeTown_EventScript_14E5F5:: @ 814E5F5
closebutton
compare 0x8008, 1
- callif 1, LavaridgeTown_EventScript_14E646
+ call_if 1, LavaridgeTown_EventScript_14E646
compare 0x8008, 0
- callif 1, LavaridgeTown_EventScript_14E64E
+ call_if 1, LavaridgeTown_EventScript_14E64E
disappear 8
reappear 7
pause 30
compare 0x8008, 1
- callif 1, LavaridgeTown_EventScript_14E69A
+ call_if 1, LavaridgeTown_EventScript_14E69A
compare 0x8008, 0
- callif 1, LavaridgeTown_EventScript_14E6A5
+ call_if 1, LavaridgeTown_EventScript_14E6A5
disappear 7
setvar 0x4053, 2
playmusicbattle 0
fadedefault
compare 0x8008, 0
- jumpeq LavaridgeTown_EventScript_14E644
+ goto_if_eq LavaridgeTown_EventScript_14E644
releaseall
end
@@ -129,13 +129,13 @@ LavaridgeTown_EventScript_14E646:: @ 814E646
LavaridgeTown_EventScript_14E64E:: @ 814E64E
compare FACING, 2
- callif 1, LavaridgeTown_EventScript_14E67B
+ call_if 1, LavaridgeTown_EventScript_14E67B
compare FACING, 1
- callif 1, LavaridgeTown_EventScript_14E680
+ call_if 1, LavaridgeTown_EventScript_14E680
compare FACING, 3
- callif 1, LavaridgeTown_EventScript_14E685
+ call_if 1, LavaridgeTown_EventScript_14E685
compare FACING, 4
- callif 1, LavaridgeTown_EventScript_14E68A
+ call_if 1, LavaridgeTown_EventScript_14E68A
return
LavaridgeTown_EventScript_14E67B:: @ 814E67B
@@ -166,13 +166,13 @@ LavaridgeTown_EventScript_14E69A:: @ 814E69A
LavaridgeTown_EventScript_14E6A5:: @ 814E6A5
compare FACING, 2
- callif 1, LavaridgeTown_EventScript_14E6D2
+ call_if 1, LavaridgeTown_EventScript_14E6D2
compare FACING, 1
- callif 1, LavaridgeTown_EventScript_14E6D2
+ call_if 1, LavaridgeTown_EventScript_14E6D2
compare FACING, 3
- callif 1, LavaridgeTown_EventScript_14E6DD
+ call_if 1, LavaridgeTown_EventScript_14E6DD
compare FACING, 4
- callif 1, LavaridgeTown_EventScript_14E6D2
+ call_if 1, LavaridgeTown_EventScript_14E6D2
return
LavaridgeTown_EventScript_14E6D2:: @ 814E6D2
@@ -238,7 +238,7 @@ LavaridgeTown_Movement_14E70E:: @ 814E70E
LavaridgeTown_EventScript_14E710:: @ 814E710
specialval RESULT, player_get_direction_lower_nybble
compare RESULT, 1
- jumpeq LavaridgeTown_EventScript_14E721
+ goto_if_eq LavaridgeTown_EventScript_14E721
end
LavaridgeTown_EventScript_14E721:: @ 814E721
@@ -273,13 +273,13 @@ LavaridgeTown_EventScript_14E75A:: @ 814E75A
lock
faceplayer
checkflag 266
- jumpeq LavaridgeTown_EventScript_14E79E
+ goto_if_eq LavaridgeTown_EventScript_14E79E
msgbox LavaridgeTown_Text_16C174, 5
compare RESULT, 0
- jumpeq LavaridgeTown_EventScript_14E7B2
+ goto_if_eq LavaridgeTown_EventScript_14E7B2
countpokemon
compare RESULT, 6
- jumpeq LavaridgeTown_EventScript_14E7A8
+ goto_if_eq LavaridgeTown_EventScript_14E7A8
msgbox LavaridgeTown_Text_16C2B6, 4
setflag 266
fanfare 370
diff --git a/data/scripts/maps/LavaridgeTown_Gym_1F.inc b/data/scripts/maps/LavaridgeTown_Gym_1F.inc
index 1f5810e7f..e22d4471f 100644
--- a/data/scripts/maps/LavaridgeTown_Gym_1F.inc
+++ b/data/scripts/maps/LavaridgeTown_Gym_1F.inc
@@ -14,27 +14,27 @@ LavaridgeTown_Gym_1F_EventScript_15369F:: @ 815369F
setvar 0x400e, 0
setvar 0x400f, 0
checktrainerflag OPPONENT_COLE
- jumpeq LavaridgeTown_Gym_1F_EventScript_1536C6
+ goto_if_eq LavaridgeTown_Gym_1F_EventScript_1536C6
setvar 0x400b, 1
LavaridgeTown_Gym_1F_EventScript_1536C6:: @ 81536C6
checktrainerflag OPPONENT_ZANE
- jumpeq LavaridgeTown_Gym_1F_EventScript_1536D4
+ goto_if_eq LavaridgeTown_Gym_1F_EventScript_1536D4
setvar 0x400c, 1
LavaridgeTown_Gym_1F_EventScript_1536D4:: @ 81536D4
checktrainerflag OPPONENT_AXLE
- jumpeq LavaridgeTown_Gym_1F_EventScript_1536E2
+ goto_if_eq LavaridgeTown_Gym_1F_EventScript_1536E2
setvar 0x400d, 1
LavaridgeTown_Gym_1F_EventScript_1536E2:: @ 81536E2
checktrainerflag OPPONENT_SADIE
- jumpeq LavaridgeTown_Gym_1F_EventScript_1536F0
+ goto_if_eq LavaridgeTown_Gym_1F_EventScript_1536F0
setvar 0x400e, 1
LavaridgeTown_Gym_1F_EventScript_1536F0:: @ 81536F0
checktrainerflag OPPONENT_ANDY
- jumpeq LavaridgeTown_Gym_1F_EventScript_1536FE
+ goto_if_eq LavaridgeTown_Gym_1F_EventScript_1536FE
setvar 0x400f, 1
LavaridgeTown_Gym_1F_EventScript_1536FE:: @ 81536FE
@@ -42,27 +42,27 @@ LavaridgeTown_Gym_1F_EventScript_1536FE:: @ 81536FE
LavaridgeTown_Gym_1F_EventScript_1536FF:: @ 81536FF
checktrainerflag OPPONENT_COLE
- jumpeq LavaridgeTown_Gym_1F_EventScript_15370C
+ goto_if_eq LavaridgeTown_Gym_1F_EventScript_15370C
spritebehave 2, 63
LavaridgeTown_Gym_1F_EventScript_15370C:: @ 815370C
checktrainerflag OPPONENT_ZANE
- jumpeq LavaridgeTown_Gym_1F_EventScript_153719
+ goto_if_eq LavaridgeTown_Gym_1F_EventScript_153719
spritebehave 3, 63
LavaridgeTown_Gym_1F_EventScript_153719:: @ 8153719
checktrainerflag OPPONENT_AXLE
- jumpeq LavaridgeTown_Gym_1F_EventScript_153726
+ goto_if_eq LavaridgeTown_Gym_1F_EventScript_153726
spritebehave 4, 63
LavaridgeTown_Gym_1F_EventScript_153726:: @ 8153726
checktrainerflag OPPONENT_SADIE
- jumpeq LavaridgeTown_Gym_1F_EventScript_153733
+ goto_if_eq LavaridgeTown_Gym_1F_EventScript_153733
spritebehave 5, 63
LavaridgeTown_Gym_1F_EventScript_153733:: @ 8153733
checktrainerflag OPPONENT_ANDY
- jumpeq LavaridgeTown_Gym_1F_EventScript_153740
+ goto_if_eq LavaridgeTown_Gym_1F_EventScript_153740
spritebehave 7, 63
LavaridgeTown_Gym_1F_EventScript_153740:: @ 8153740
@@ -71,7 +71,7 @@ LavaridgeTown_Gym_1F_EventScript_153740:: @ 8153740
LavaridgeTown_Gym_1F_EventScript_153741:: @ 8153741
trainerbattle 1, OPPONENT_FLANNERY, 0, LavaridgeTown_Gym_1F_Text_176801, LavaridgeTown_Gym_1F_Text_176960, LavaridgeTown_Gym_1F_EventScript_153766
checkflag 168
- jumpif 0, LavaridgeTown_Gym_1F_EventScript_1537A7
+ goto_if 0, LavaridgeTown_Gym_1F_EventScript_1537A7
msgbox LavaridgeTown_Gym_1F_Text_176C4A, 4
release
end
@@ -85,7 +85,7 @@ LavaridgeTown_Gym_1F_EventScript_153766:: @ 8153766
setflag 2058
addvar 0x4085, 1
compare 0x4085, 6
- callif 1, LavaridgeTown_Gym_1F_EventScript_1A00FB
+ call_if 1, LavaridgeTown_Gym_1F_EventScript_1A00FB
setvar 0x8008, 4
call LavaridgeTown_Gym_1F_EventScript_1A01C0
setflag 806
@@ -96,7 +96,7 @@ LavaridgeTown_Gym_1F_EventScript_153766:: @ 8153766
LavaridgeTown_Gym_1F_EventScript_1537A7:: @ 81537A7
giveitem ITEM_TM50
compare RESULT, 0
- jumpeq LavaridgeTown_Gym_1F_EventScript_1A029B
+ goto_if_eq LavaridgeTown_Gym_1F_EventScript_1A029B
msgbox LavaridgeTown_Gym_1F_Text_176B8F, 4
setflag 168
release
@@ -136,7 +136,7 @@ LavaridgeTown_Gym_1F_EventScript_153859:: @ 8153859
lock
faceplayer
checkflag 1213
- jumpeq LavaridgeTown_Gym_1F_EventScript_15386E
+ goto_if_eq LavaridgeTown_Gym_1F_EventScript_15386E
msgbox LavaridgeTown_Gym_1F_Text_176312, 4
release
end
@@ -149,14 +149,14 @@ LavaridgeTown_Gym_1F_EventScript_15386E:: @ 815386E
LavaridgeTown_Gym_1F_EventScript_153878:: @ 8153878
lockall
checkflag 2058
- jumpeq LavaridgeTown_Gym_1F_EventScript_153898
+ goto_if_eq LavaridgeTown_Gym_1F_EventScript_153898
goto LavaridgeTown_Gym_1F_EventScript_1538A2
end
LavaridgeTown_Gym_1F_EventScript_153888:: @ 8153888
lockall
checkflag 2058
- jumpeq LavaridgeTown_Gym_1F_EventScript_153898
+ goto_if_eq LavaridgeTown_Gym_1F_EventScript_153898
goto LavaridgeTown_Gym_1F_EventScript_1538A2
end
diff --git a/data/scripts/maps/LavaridgeTown_HerbShop.inc b/data/scripts/maps/LavaridgeTown_HerbShop.inc
index 6ff103ce3..c924684bc 100644
--- a/data/scripts/maps/LavaridgeTown_HerbShop.inc
+++ b/data/scripts/maps/LavaridgeTown_HerbShop.inc
@@ -29,11 +29,11 @@ LavaridgeTown_HerbShop_EventScript_153655:: @ 8153655
lock
faceplayer
checkflag 254
- jumpeq LavaridgeTown_HerbShop_EventScript_153684
+ goto_if_eq LavaridgeTown_HerbShop_EventScript_153684
msgbox LavaridgeTown_HerbShop_Text_1761A2, 4
giveitem ITEM_CHARCOAL
compare RESULT, 0
- jumpeq LavaridgeTown_HerbShop_EventScript_1A029B
+ goto_if_eq LavaridgeTown_HerbShop_EventScript_1A029B
setflag 254
release
end
diff --git a/data/scripts/maps/LilycoveCity.inc b/data/scripts/maps/LilycoveCity.inc
index 082e88bd5..f700988f9 100644
--- a/data/scripts/maps/LilycoveCity.inc
+++ b/data/scripts/maps/LilycoveCity.inc
@@ -8,7 +8,7 @@ LilycoveCity_MapScript1_14CA20:: @ 814CA20
setvar 0x4086, 0
setflag 802
checkflag 2090
- callif 1, LilycoveCity_EventScript_1A02C1
+ call_if 1, LilycoveCity_EventScript_1A02C1
call LilycoveCity_EventScript_1A0196
call LilycoveCity_EventScript_1A014E
end
@@ -29,9 +29,9 @@ LilycoveCity_MapScript1_14CA3F:: @ 814CA3F
setmaptile 72, 6, 445, 0
.endif
checkflag 112
- callif 0, LilycoveCity_EventScript_14CABE
+ call_if 0, LilycoveCity_EventScript_14CABE
checkflag 2061
- callif 1, LilycoveCity_EventScript_14CB2B
+ call_if 1, LilycoveCity_EventScript_14CB2B
end
LilycoveCity_EventScript_14CABE:: @ 814CABE
@@ -65,13 +65,13 @@ LilycoveCity_EventScript_14CB74:: @ 814CB74
faceplayer
checkdailyflags
checkflag 2255
- jumpeq LilycoveCity_EventScript_14CBB4
+ goto_if_eq LilycoveCity_EventScript_14CBB4
msgbox LilycoveCity_Text_1C5A7A, 4
random 10
addvar RESULT, 133
giveitem RESULT
compare RESULT, 0
- jumpeq LilycoveCity_EventScript_1A029B
+ goto_if_eq LilycoveCity_EventScript_1A029B
setflag 2255
msgbox LilycoveCity_Text_1C5B1D, 4
release
@@ -90,7 +90,7 @@ LilycoveCity_EventScript_14CBC7:: @ 814CBC7
lock
faceplayer
checkflag 2061
- jumpeq LilycoveCity_EventScript_14CBDC
+ goto_if_eq LilycoveCity_EventScript_14CBDC
msgbox LilycoveCity_Text_168750, 4
release
end
@@ -108,7 +108,7 @@ LilycoveCity_EventScript_14CBEF:: @ 814CBEF
lock
faceplayer
checkflag 112
- jumpeq LilycoveCity_EventScript_14CC04
+ goto_if_eq LilycoveCity_EventScript_14CC04
msgbox LilycoveCity_Text_1688C1, 4
release
end
@@ -122,7 +122,7 @@ LilycoveCity_EventScript_14CC0E:: @ 814CC0E
lock
faceplayer
checkflag 112
- jumpeq LilycoveCity_EventScript_14CC23
+ goto_if_eq LilycoveCity_EventScript_14CC23
msgbox LilycoveCity_Text_1689BF, 4
release
end
@@ -148,7 +148,7 @@ LilycoveCity_EventScript_14CC48:: @ 814CC48
lock
faceplayer
checkflag 2061
- jumpeq LilycoveCity_EventScript_14CC5D
+ goto_if_eq LilycoveCity_EventScript_14CC5D
msgbox LilycoveCity_Text_168C16, 4
release
end
@@ -187,7 +187,7 @@ LilycoveCity_EventScript_14CCA2:: @ 814CCA2
LilycoveCity_EventScript_14CCAC:: @ 814CCAC
lockall
checkflag 2052
- jumpeq LilycoveCity_EventScript_14CCC0
+ goto_if_eq LilycoveCity_EventScript_14CCC0
msgbox LilycoveCity_Text_168EDA, 4
releaseall
end
@@ -212,7 +212,7 @@ LilycoveCity_EventScript_14CCDC:: @ 814CCDC
LilycoveCity_EventScript_14CCE5:: @ 814CCE5
lockall
checkflag 218
- jumpeq LilycoveCity_EventScript_14CD18
+ goto_if_eq LilycoveCity_EventScript_14CD18
msgbox LilycoveCity_Text_16864A, 4
move LAST_TALKED, LilycoveCity_Movement_1A0839
waitmove 0
@@ -249,19 +249,19 @@ LilycoveCity_EventScript_14CD46:: @ 814CD46
faceplayer
checkgender
compare RESULT, 0
- jumpeq LilycoveCity_EventScript_14CD60
+ goto_if_eq LilycoveCity_EventScript_14CD60
compare RESULT, 1
- jumpeq LilycoveCity_EventScript_14CDD3
+ goto_if_eq LilycoveCity_EventScript_14CDD3
end
LilycoveCity_EventScript_14CD60:: @ 814CD60
playmusic 415, 1
checkflag 286
- callif 1, LilycoveCity_EventScript_14CDB0
+ call_if 1, LilycoveCity_EventScript_14CDB0
checkflag 286
- callif 0, LilycoveCity_EventScript_14CDB9
+ call_if 0, LilycoveCity_EventScript_14CDB9
compare RESULT, 0
- jumpeq LilycoveCity_EventScript_14CDC2
+ goto_if_eq LilycoveCity_EventScript_14CDC2
msgbox LilycoveCity_Text_167B94, 4
switch 0x4023
case 0, LilycoveCity_EventScript_14CE46
@@ -288,11 +288,11 @@ LilycoveCity_EventScript_14CDC2:: @ 814CDC2
LilycoveCity_EventScript_14CDD3:: @ 814CDD3
playmusic 421, 1
checkflag 286
- callif 1, LilycoveCity_EventScript_14CE23
+ call_if 1, LilycoveCity_EventScript_14CE23
checkflag 286
- callif 0, LilycoveCity_EventScript_14CE2C
+ call_if 0, LilycoveCity_EventScript_14CE2C
compare RESULT, 0
- jumpeq LilycoveCity_EventScript_14CE35
+ goto_if_eq LilycoveCity_EventScript_14CE35
msgbox LilycoveCity_Text_1680A9, 4
switch 0x4023
case 0, LilycoveCity_EventScript_14CE76
@@ -350,11 +350,11 @@ LilycoveCity_EventScript_14CEA6:: @ 814CEA6
msgbox LilycoveCity_Text_167C6B, 4
setvar RESULT, 0
checkflag 2060
- callif 1, LilycoveCity_EventScript_14CEDE
+ call_if 1, LilycoveCity_EventScript_14CEDE
compare RESULT, 0
- callif 1, LilycoveCity_EventScript_14CEEE
+ call_if 1, LilycoveCity_EventScript_14CEEE
compare RESULT, 1
- callif 1, LilycoveCity_EventScript_14CEF7
+ call_if 1, LilycoveCity_EventScript_14CEF7
clearflag 722
clearflag 849
goto LilycoveCity_EventScript_14CF6B
@@ -362,7 +362,7 @@ LilycoveCity_EventScript_14CEA6:: @ 814CEA6
LilycoveCity_EventScript_14CEDE:: @ 814CEDE
checkflag 2062
- jumpeq LilycoveCity_EventScript_14CEE8
+ goto_if_eq LilycoveCity_EventScript_14CEE8
return
LilycoveCity_EventScript_14CEE8:: @ 814CEE8
@@ -375,7 +375,7 @@ LilycoveCity_EventScript_14CEEE:: @ 814CEEE
LilycoveCity_EventScript_14CEF7:: @ 814CEF7
checkflag 2052
- jumpeq LilycoveCity_EventScript_14CF09
+ goto_if_eq LilycoveCity_EventScript_14CF09
msgbox LilycoveCity_Text_167DDD, 4
return
@@ -387,11 +387,11 @@ LilycoveCity_EventScript_14CF12:: @ 814CF12
msgbox LilycoveCity_Text_168149, 4
setvar RESULT, 0
checkflag 2060
- callif 1, LilycoveCity_EventScript_14CEDE
+ call_if 1, LilycoveCity_EventScript_14CEDE
compare RESULT, 0
- callif 1, LilycoveCity_EventScript_14CF47
+ call_if 1, LilycoveCity_EventScript_14CF47
compare RESULT, 1
- callif 1, LilycoveCity_EventScript_14CF50
+ call_if 1, LilycoveCity_EventScript_14CF50
clearflag 760
goto LilycoveCity_EventScript_14CF6B
end
@@ -402,7 +402,7 @@ LilycoveCity_EventScript_14CF47:: @ 814CF47
LilycoveCity_EventScript_14CF50:: @ 814CF50
checkflag 2052
- jumpeq LilycoveCity_EventScript_14CF62
+ goto_if_eq LilycoveCity_EventScript_14CF62
msgbox LilycoveCity_Text_168282, 4
return
diff --git a/data/scripts/maps/LilycoveCity_ContestLobby.inc b/data/scripts/maps/LilycoveCity_ContestLobby.inc
index ebd59cd91..1abc71238 100644
--- a/data/scripts/maps/LilycoveCity_ContestLobby.inc
+++ b/data/scripts/maps/LilycoveCity_ContestLobby.inc
@@ -14,7 +14,7 @@ LilycoveCity_ContestLobby_MapScript2_158877:: @ 8158877
LilycoveCity_ContestLobby_EventScript_158889:: @ 8158889
checkflag 775
- jumpeq LilycoveCity_ContestLobby_EventScript_158898
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158898
setvar 0x4099, 0
end
@@ -32,9 +32,9 @@ LilycoveCity_ContestLobby_EventScript_158898:: @ 8158898
lockall
msgbox LilycoveCity_ContestLobby_Text_1889FD, 5
compare RESULT, 1
- jumpeq LilycoveCity_ContestLobby_EventScript_1588DE
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_1588DE
compare RESULT, 0
- jumpeq LilycoveCity_ContestLobby_EventScript_158918
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158918
releaseall
end
@@ -45,7 +45,7 @@ LilycoveCity_ContestLobby_EventScript_1588DE:: @ 81588DE
setvar 0x4099, 0
specialval RESULT, GiveMonArtistRibbon
compare RESULT, 1
- callif 1, LilycoveCity_ContestLobby_EventScript_158948
+ call_if 1, LilycoveCity_ContestLobby_EventScript_158948
move 4, LilycoveCity_ContestLobby_Movement_158A43
waitmove 0
disappear 4
@@ -57,7 +57,7 @@ LilycoveCity_ContestLobby_EventScript_1588DE:: @ 81588DE
LilycoveCity_ContestLobby_EventScript_158918:: @ 8158918
msgbox LilycoveCity_ContestLobby_Text_188C41, 5
compare RESULT, 1
- jumpeq LilycoveCity_ContestLobby_EventScript_1588DE
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_1588DE
msgbox LilycoveCity_ContestLobby_Text_188CBD, 4
closebutton
move 4, LilycoveCity_ContestLobby_Movement_158A43
@@ -189,7 +189,7 @@ LilycoveCity_ContestLobby_Movement_158A52:: @ 8158A52
LilycoveCity_ContestLobby_EventScript_158A5B:: @ 8158A5B
checkflag 775
- jumpeq LilycoveCity_ContestLobby_EventScript_158A6A
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158A6A
setvar 0x4099, 0
end
@@ -206,9 +206,9 @@ LilycoveCity_ContestLobby_EventScript_158A6A:: @ 8158A6A
showcontestwinner 0
msgbox LilycoveCity_ContestLobby_Text_1889FD, 5
compare RESULT, 1
- jumpeq LilycoveCity_ContestLobby_EventScript_158AAE
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158AAE
compare RESULT, 0
- jumpeq LilycoveCity_ContestLobby_EventScript_158AE8
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158AE8
end
LilycoveCity_ContestLobby_EventScript_158AAE:: @ 8158AAE
@@ -218,7 +218,7 @@ LilycoveCity_ContestLobby_EventScript_158AAE:: @ 8158AAE
setvar 0x4099, 0
specialval RESULT, GiveMonArtistRibbon
compare RESULT, 1
- callif 1, LilycoveCity_ContestLobby_EventScript_158B18
+ call_if 1, LilycoveCity_ContestLobby_EventScript_158B18
move 11, LilycoveCity_ContestLobby_Movement_158B6D
waitmove 0
disappear 11
@@ -230,7 +230,7 @@ LilycoveCity_ContestLobby_EventScript_158AAE:: @ 8158AAE
LilycoveCity_ContestLobby_EventScript_158AE8:: @ 8158AE8
msgbox LilycoveCity_ContestLobby_Text_188C41, 5
compare RESULT, 1
- jumpeq LilycoveCity_ContestLobby_EventScript_158AAE
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158AAE
msgbox LilycoveCity_ContestLobby_Text_188CBD, 4
closebutton
move 11, LilycoveCity_ContestLobby_Movement_158B6D
@@ -306,9 +306,9 @@ LilycoveCity_ContestLobby_EventScript_158B85:: @ 8158B85
lockall
checkitem ITEM_CONTEST_PASS, 1
compare RESULT, 0
- jumpeq LilycoveCity_ContestLobby_EventScript_158BBA
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158BBA
checkflag 2
- jumpeq LilycoveCity_ContestLobby_EventScript_158BAE
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158BAE
message LilycoveCity_ContestLobby_Text_18848C
waittext
setflag 2
@@ -329,11 +329,11 @@ LilycoveCity_ContestLobby_EventScript_158BBA:: @ 8158BBA
LilycoveCity_ContestLobby_EventScript_158BC4:: @ 8158BC4
msgbox LilycoveCity_ContestLobby_Text_188521, 5
compare RESULT, 0
- jumpeq LilycoveCity_ContestLobby_EventScript_158C35
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158C35
call S_DoSaveDialog
hidebox 0, 0, 15, 9
compare RESULT, 0
- jumpeq LilycoveCity_ContestLobby_EventScript_158C35
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158C35
setflag 3
return
@@ -362,18 +362,18 @@ LilycoveCity_ContestLobby_EventScript_158C42:: @ 8158C42
setvar CONTEST_RANK, 0
choosecontestpkmn
compare 0x8004, 255
- jumpeq LilycoveCity_ContestLobby_EventScript_158CEA
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158CEA
special sub_80C43F4
compare RESULT, 0
- jumpeq LilycoveCity_ContestLobby_EventScript_158C96
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158C96
compare RESULT, 1
- jumpeq LilycoveCity_ContestLobby_EventScript_158CC0
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158CC0
compare RESULT, 2
- jumpeq LilycoveCity_ContestLobby_EventScript_158CC0
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158CC0
compare RESULT, 3
- jumpeq LilycoveCity_ContestLobby_EventScript_158CA4
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158CA4
compare RESULT, 4
- jumpeq LilycoveCity_ContestLobby_EventScript_158CB2
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158CB2
end
LilycoveCity_ContestLobby_EventScript_158C96:: @ 8158C96
@@ -403,7 +403,7 @@ LilycoveCity_ContestLobby_EventScript_158CC0:: @ 8158CC0
LilycoveCity_ContestLobby_EventScript_158CEA:: @ 8158CEA
checkflag 3
- callif 0, LilycoveCity_ContestLobby_EventScript_158BC4
+ call_if 0, LilycoveCity_ContestLobby_EventScript_158BC4
message LilycoveCity_ContestLobby_Text_1886DC
waittext
multichoice 0, 0, 4, 0
@@ -421,11 +421,11 @@ LilycoveCity_ContestLobby_EventScript_158D24:: @ 8158D24
special sub_808363C
waitstate
compare RESULT, 3
- jumpeq LilycoveCity_ContestLobby_EventScript_158D90
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158D90
compare RESULT, 5
- jumpeq LilycoveCity_ContestLobby_EventScript_158DA1
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158DA1
compare RESULT, 6
- jumpeq LilycoveCity_ContestLobby_EventScript_158DB2
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158DB2
message2 LilycoveCity_ContestLobby_Text_18872A
waittext
contestlinktransfer
@@ -570,7 +570,7 @@ LilycoveCity_ContestLobby_Movement_158EAE:: @ 8158EAE
LilycoveCity_ContestLobby_EventScript_158EB0:: @ 8158EB0
specialval RESULT, sub_80C5044
compare RESULT, 1
- jumpeq LilycoveCity_ContestLobby_EventScript_158EE8
+ goto_if_eq LilycoveCity_ContestLobby_EventScript_158EE8
setvar 0x800b, 8
setvar CONTEST_RANK, 3
call LilycoveCity_ContestLobby_EventScript_1A4E92
@@ -708,7 +708,7 @@ LilycoveCity_ContestLobby_EventScript_15901E:: @ 815901E
LilycoveCity_ContestLobby_EventScript_159027:: @ 8159027
checkflag 150
- jumpif 0, LilycoveCity_ContestLobby_EventScript_159039
+ goto_if 0, LilycoveCity_ContestLobby_EventScript_159039
msgbox LilycoveCity_ContestLobby_Text_188DDA, 2
end
diff --git a/data/scripts/maps/LilycoveCity_CoveLilyMotel_1F.inc b/data/scripts/maps/LilycoveCity_CoveLilyMotel_1F.inc
index 95945a595..638bf8cf1 100644
--- a/data/scripts/maps/LilycoveCity_CoveLilyMotel_1F.inc
+++ b/data/scripts/maps/LilycoveCity_CoveLilyMotel_1F.inc
@@ -4,9 +4,9 @@ LilycoveCity_CoveLilyMotel_1F_MapScripts:: @ 81582C4
LilycoveCity_CoveLilyMotel_1F_EventScript_1582C5:: @ 81582C5
lockall
checkflag 2052
- jumpeq LilycoveCity_CoveLilyMotel_1F_EventScript_158326
+ goto_if_eq LilycoveCity_CoveLilyMotel_1F_EventScript_158326
checkflag 2061
- jumpeq LilycoveCity_CoveLilyMotel_1F_EventScript_1582FF
+ goto_if_eq LilycoveCity_CoveLilyMotel_1F_EventScript_1582FF
msgbox LilycoveCity_CoveLilyMotel_1F_Text_186B71, 4
move 1, LilycoveCity_CoveLilyMotel_1F_Movement_1A0839
waitmove 0
diff --git a/data/scripts/maps/LilycoveCity_CoveLilyMotel_2F.inc b/data/scripts/maps/LilycoveCity_CoveLilyMotel_2F.inc
index 48758ac5c..f5c511179 100644
--- a/data/scripts/maps/LilycoveCity_CoveLilyMotel_2F.inc
+++ b/data/scripts/maps/LilycoveCity_CoveLilyMotel_2F.inc
@@ -5,12 +5,12 @@ LilycoveCity_CoveLilyMotel_2F_EventScript_1583A1:: @ 81583A1
lock
faceplayer
checkflag 2
- callif 0, LilycoveCity_CoveLilyMotel_2F_EventScript_1583C7
+ call_if 0, LilycoveCity_CoveLilyMotel_2F_EventScript_1583C7
checkflag 2
- callif 1, LilycoveCity_CoveLilyMotel_2F_EventScript_1583DD
+ call_if 1, LilycoveCity_CoveLilyMotel_2F_EventScript_1583DD
specialval RESULT, sub_8090FC0
compare RESULT, 1
- jumpeq LilycoveCity_CoveLilyMotel_2F_EventScript_1583D0
+ goto_if_eq LilycoveCity_CoveLilyMotel_2F_EventScript_1583D0
release
end
diff --git a/data/scripts/maps/LilycoveCity_DepartmentStoreElevator.inc b/data/scripts/maps/LilycoveCity_DepartmentStoreElevator.inc
index b28fe3a47..9a9843053 100644
--- a/data/scripts/maps/LilycoveCity_DepartmentStoreElevator.inc
+++ b/data/scripts/maps/LilycoveCity_DepartmentStoreElevator.inc
@@ -5,7 +5,7 @@ LilycoveCity_DepartmentStoreElevator_EventScript_15A39C:: @ 815A39C
lock
faceplayer
checkflag 2
- callif 0, LilycoveCity_DepartmentStoreElevator_EventScript_15A4CF
+ call_if 0, LilycoveCity_DepartmentStoreElevator_EventScript_15A4CF
copyvar 0x8005, 0x4043
special sub_810E944
message LilycoveCity_DepartmentStoreElevator_Text_1A0EF6
@@ -23,7 +23,7 @@ LilycoveCity_DepartmentStoreElevator_EventScript_15A39C:: @ 815A39C
LilycoveCity_DepartmentStoreElevator_EventScript_15A402:: @ 815A402
warpplace LilycoveCity_DepartmentStore_1F, 255, 2, 1
compare 0x4043, 0
- jumpeq LilycoveCity_DepartmentStoreElevator_EventScript_15A4B1
+ goto_if_eq LilycoveCity_DepartmentStoreElevator_EventScript_15A4B1
call LilycoveCity_DepartmentStoreElevator_EventScript_15A4B8
setvar 0x4043, 0
goto LilycoveCity_DepartmentStoreElevator_EventScript_15A4B1
@@ -32,7 +32,7 @@ LilycoveCity_DepartmentStoreElevator_EventScript_15A402:: @ 815A402
LilycoveCity_DepartmentStoreElevator_EventScript_15A425:: @ 815A425
warpplace LilycoveCity_DepartmentStore_2F, 255, 2, 1
compare 0x4043, 1
- jumpeq LilycoveCity_DepartmentStoreElevator_EventScript_15A4B1
+ goto_if_eq LilycoveCity_DepartmentStoreElevator_EventScript_15A4B1
call LilycoveCity_DepartmentStoreElevator_EventScript_15A4B8
setvar 0x4043, 1
goto LilycoveCity_DepartmentStoreElevator_EventScript_15A4B1
@@ -41,7 +41,7 @@ LilycoveCity_DepartmentStoreElevator_EventScript_15A425:: @ 815A425
LilycoveCity_DepartmentStoreElevator_EventScript_15A448:: @ 815A448
warpplace LilycoveCity_DepartmentStore_3F, 255, 2, 1
compare 0x4043, 2
- jumpeq LilycoveCity_DepartmentStoreElevator_EventScript_15A4B1
+ goto_if_eq LilycoveCity_DepartmentStoreElevator_EventScript_15A4B1
call LilycoveCity_DepartmentStoreElevator_EventScript_15A4B8
setvar 0x4043, 2
goto LilycoveCity_DepartmentStoreElevator_EventScript_15A4B1
@@ -50,7 +50,7 @@ LilycoveCity_DepartmentStoreElevator_EventScript_15A448:: @ 815A448
LilycoveCity_DepartmentStoreElevator_EventScript_15A46B:: @ 815A46B
warpplace LilycoveCity_DepartmentStore_4F, 255, 2, 1
compare 0x4043, 3
- jumpeq LilycoveCity_DepartmentStoreElevator_EventScript_15A4B1
+ goto_if_eq LilycoveCity_DepartmentStoreElevator_EventScript_15A4B1
call LilycoveCity_DepartmentStoreElevator_EventScript_15A4B8
setvar 0x4043, 3
goto LilycoveCity_DepartmentStoreElevator_EventScript_15A4B1
@@ -59,7 +59,7 @@ LilycoveCity_DepartmentStoreElevator_EventScript_15A46B:: @ 815A46B
LilycoveCity_DepartmentStoreElevator_EventScript_15A48E:: @ 815A48E
warpplace LilycoveCity_DepartmentStore_5F, 255, 2, 1
compare 0x4043, 4
- jumpeq LilycoveCity_DepartmentStoreElevator_EventScript_15A4B1
+ goto_if_eq LilycoveCity_DepartmentStoreElevator_EventScript_15A4B1
call LilycoveCity_DepartmentStoreElevator_EventScript_15A4B8
setvar 0x4043, 4
goto LilycoveCity_DepartmentStoreElevator_EventScript_15A4B1
diff --git a/data/scripts/maps/LilycoveCity_DepartmentStoreRooftop.inc b/data/scripts/maps/LilycoveCity_DepartmentStoreRooftop.inc
index c1be4bbe7..f3989bc2a 100644
--- a/data/scripts/maps/LilycoveCity_DepartmentStoreRooftop.inc
+++ b/data/scripts/maps/LilycoveCity_DepartmentStoreRooftop.inc
@@ -5,9 +5,9 @@ LilycoveCity_DepartmentStoreRooftop_MapScripts:: @ 815A13F
LilycoveCity_DepartmentStoreRooftop_MapScript1_15A145:: @ 815A145
event_96 3
compare RESULT, 1
- callif 1, LilycoveCity_DepartmentStoreRooftop_EventScript_15A15F
+ call_if 1, LilycoveCity_DepartmentStoreRooftop_EventScript_15A15F
compare RESULT, 0
- callif 1, LilycoveCity_DepartmentStoreRooftop_EventScript_15A163
+ call_if 1, LilycoveCity_DepartmentStoreRooftop_EventScript_15A163
end
LilycoveCity_DepartmentStoreRooftop_EventScript_15A15F:: @ 815A15F
@@ -53,7 +53,7 @@ LilycoveCity_DepartmentStoreRooftop_EventScript_15A1A0:: @ 815A1A0
faceplayer
event_96 3
compare RESULT, 1
- callif 1, LilycoveCity_DepartmentStoreRooftop_EventScript_15A1BA
+ call_if 1, LilycoveCity_DepartmentStoreRooftop_EventScript_15A1BA
msgbox LilycoveCity_DepartmentStoreRooftop_Text_18C61F, 4
release
end
@@ -128,22 +128,22 @@ LilycoveCity_DepartmentStoreRooftop_EventScript_15A260:: @ 815A260
LilycoveCity_DepartmentStoreRooftop_EventScript_15A267:: @ 815A267
compare 0x4001, 0
- callif 1, LilycoveCity_DepartmentStoreRooftop_EventScript_15A23D
+ call_if 1, LilycoveCity_DepartmentStoreRooftop_EventScript_15A23D
compare 0x4001, 1
- callif 1, LilycoveCity_DepartmentStoreRooftop_EventScript_15A244
+ call_if 1, LilycoveCity_DepartmentStoreRooftop_EventScript_15A244
compare 0x4001, 2
- callif 1, LilycoveCity_DepartmentStoreRooftop_EventScript_15A24B
+ call_if 1, LilycoveCity_DepartmentStoreRooftop_EventScript_15A24B
compare RESULT, 0
- jumpeq LilycoveCity_DepartmentStoreRooftop_EventScript_15A37A
+ goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_15A37A
checkitemspace 0x4000, 1
compare RESULT, 0
- jumpeq LilycoveCity_DepartmentStoreRooftop_EventScript_15A388
+ goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_15A388
compare 0x4001, 0
- callif 1, LilycoveCity_DepartmentStoreRooftop_EventScript_15A252
+ call_if 1, LilycoveCity_DepartmentStoreRooftop_EventScript_15A252
compare 0x4001, 1
- callif 1, LilycoveCity_DepartmentStoreRooftop_EventScript_15A259
+ call_if 1, LilycoveCity_DepartmentStoreRooftop_EventScript_15A259
compare 0x4001, 2
- callif 1, LilycoveCity_DepartmentStoreRooftop_EventScript_15A260
+ call_if 1, LilycoveCity_DepartmentStoreRooftop_EventScript_15A260
updatemoney 0, 0
nop
bufferitem 0, 0x4000
@@ -155,10 +155,10 @@ LilycoveCity_DepartmentStoreRooftop_EventScript_15A267:: @ 815A267
msgbox LilycoveCity_DepartmentStoreRooftop_Text_1A0C8C, 4
random 64
compare RESULT, 0
- jumpif 5, LilycoveCity_DepartmentStoreRooftop_EventScript_15A36E
+ goto_if 5, LilycoveCity_DepartmentStoreRooftop_EventScript_15A36E
checkitemspace 0x4000, 1
compare RESULT, 0
- jumpeq LilycoveCity_DepartmentStoreRooftop_EventScript_15A388
+ goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_15A388
playsfx 106
msgbox LilycoveCity_DepartmentStoreRooftop_Text_18C780, 4
additem 0x4000, 1
@@ -167,10 +167,10 @@ LilycoveCity_DepartmentStoreRooftop_EventScript_15A267:: @ 815A267
msgbox LilycoveCity_DepartmentStoreRooftop_Text_1A0C8C, 4
random 64
compare RESULT, 0
- jumpif 5, LilycoveCity_DepartmentStoreRooftop_EventScript_15A36E
+ goto_if 5, LilycoveCity_DepartmentStoreRooftop_EventScript_15A36E
checkitemspace 0x4000, 1
compare RESULT, 0
- jumpeq LilycoveCity_DepartmentStoreRooftop_EventScript_15A388
+ goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_15A388
playsfx 106
msgbox LilycoveCity_DepartmentStoreRooftop_Text_18C780, 4
additem 0x4000, 1
diff --git a/data/scripts/maps/LilycoveCity_DepartmentStore_1F.inc b/data/scripts/maps/LilycoveCity_DepartmentStore_1F.inc
index ac1198aee..5704a090b 100644
--- a/data/scripts/maps/LilycoveCity_DepartmentStore_1F.inc
+++ b/data/scripts/maps/LilycoveCity_DepartmentStore_1F.inc
@@ -10,12 +10,12 @@ LilycoveCity_DepartmentStore_1F_EventScript_159D5E:: @ 8159D5E
faceplayer
checkdailyflags
compare 0x4045, 0
- jumpif 5, LilycoveCity_DepartmentStore_1F_EventScript_159EB1
+ goto_if 5, LilycoveCity_DepartmentStore_1F_EventScript_159EB1
checkflag 2250
- jumpeq LilycoveCity_DepartmentStore_1F_EventScript_159E4C
+ goto_if_eq LilycoveCity_DepartmentStore_1F_EventScript_159E4C
msgbox LilycoveCity_DepartmentStore_1F_Text_1C4B5E, 5
compare RESULT, 0
- jumpeq LilycoveCity_DepartmentStore_1F_EventScript_159E56
+ goto_if_eq LilycoveCity_DepartmentStore_1F_EventScript_159E56
setflag 2250
message LilycoveCity_DepartmentStore_1F_Text_1C4CC6
waittext
@@ -34,24 +34,24 @@ LilycoveCity_DepartmentStore_1F_EventScript_159D5E:: @ 8159D5E
move 2, LilycoveCity_DepartmentStore_1F_Movement_1A0839
waitmove 0
compare 0x8004, 0
- jumpeq LilycoveCity_DepartmentStore_1F_EventScript_159E60
+ goto_if_eq LilycoveCity_DepartmentStore_1F_EventScript_159E60
inccounter GAME_STAT_WON_POKEMON_LOTTERY
compare 0x8006, 0
- callif 1, LilycoveCity_DepartmentStore_1F_EventScript_159E3A
+ call_if 1, LilycoveCity_DepartmentStore_1F_EventScript_159E3A
compare 0x8006, 1
- callif 1, LilycoveCity_DepartmentStore_1F_EventScript_159E43
+ call_if 1, LilycoveCity_DepartmentStore_1F_EventScript_159E43
bufferitem 0, 0x8005
compare 0x8004, 1
- callif 1, LilycoveCity_DepartmentStore_1F_EventScript_159E78
+ call_if 1, LilycoveCity_DepartmentStore_1F_EventScript_159E78
compare 0x8004, 2
- callif 1, LilycoveCity_DepartmentStore_1F_EventScript_159E81
+ call_if 1, LilycoveCity_DepartmentStore_1F_EventScript_159E81
compare 0x8004, 3
- callif 1, LilycoveCity_DepartmentStore_1F_EventScript_159E8A
+ call_if 1, LilycoveCity_DepartmentStore_1F_EventScript_159E8A
compare 0x8004, 4
- callif 1, LilycoveCity_DepartmentStore_1F_EventScript_159E93
+ call_if 1, LilycoveCity_DepartmentStore_1F_EventScript_159E93
giveitem 0x8005
compare RESULT, 0
- jumpeq LilycoveCity_DepartmentStore_1F_EventScript_159E9C
+ goto_if_eq LilycoveCity_DepartmentStore_1F_EventScript_159E9C
goto LilycoveCity_DepartmentStore_1F_EventScript_159E6E
end
@@ -113,7 +113,7 @@ LilycoveCity_DepartmentStore_1F_EventScript_159EB1:: @ 8159EB1
msgbox LilycoveCity_DepartmentStore_1F_Text_1C4FCC, 4
giveitem 0x4045
compare RESULT, 0
- jumpeq LilycoveCity_DepartmentStore_1F_EventScript_159EA7
+ goto_if_eq LilycoveCity_DepartmentStore_1F_EventScript_159EA7
setvar 0x4045, 0
release
end
diff --git a/data/scripts/maps/LilycoveCity_Harbor.inc b/data/scripts/maps/LilycoveCity_Harbor.inc
index 471d1f8b5..884b43bb1 100644
--- a/data/scripts/maps/LilycoveCity_Harbor.inc
+++ b/data/scripts/maps/LilycoveCity_Harbor.inc
@@ -11,13 +11,13 @@ LilycoveCity_Harbor_EventScript_1598A2:: @ 81598A2
faceplayer
checkitem ITEM_EON_TICKET, 1
compare RESULT, 1
- jumpeq LilycoveCity_Harbor_EventScript_1599EE
+ goto_if_eq LilycoveCity_Harbor_EventScript_1599EE
goto LilycoveCity_Harbor_EventScript_1598BA
end
LilycoveCity_Harbor_EventScript_1598BA:: @ 81598BA
checkflag 2052
- jumpeq LilycoveCity_Harbor_EventScript_1598CD
+ goto_if_eq LilycoveCity_Harbor_EventScript_1598CD
msgbox LilycoveCity_Harbor_Text_18B306, 4
release
end
@@ -26,7 +26,7 @@ LilycoveCity_Harbor_EventScript_1598CD:: @ 81598CD
msgbox LilycoveCity_Harbor_Text_18B36F, 4
checkitem ITEM_SS_TICKET, 1
compare RESULT, 0
- jumpeq LilycoveCity_Harbor_EventScript_159929
+ goto_if_eq LilycoveCity_Harbor_EventScript_159929
message LilycoveCity_Harbor_Text_18B406
waittext
goto LilycoveCity_Harbor_EventScript_1598F1
@@ -49,7 +49,7 @@ LilycoveCity_Harbor_EventScript_159929:: @ 8159929
LilycoveCity_Harbor_EventScript_159933:: @ 8159933
msgbox LilycoveCity_Harbor_Text_18B47D, 5
compare RESULT, 0
- jumpeq LilycoveCity_Harbor_EventScript_15997E
+ goto_if_eq LilycoveCity_Harbor_EventScript_15997E
setvar 0x40b4, 5
call LilycoveCity_Harbor_EventScript_15998A
warp SSTidalCorridor, 255, 1, 10
@@ -60,7 +60,7 @@ LilycoveCity_Harbor_EventScript_159933:: @ 8159933
LilycoveCity_Harbor_EventScript_15995B:: @ 815995B
msgbox LilycoveCity_Harbor_Text_18B499, 5
compare RESULT, 0
- jumpeq LilycoveCity_Harbor_EventScript_15997E
+ goto_if_eq LilycoveCity_Harbor_EventScript_15997E
call LilycoveCity_Harbor_EventScript_15998A
warp BattleTower_Outside, 255, 19, 23
waitstate
@@ -81,9 +81,9 @@ LilycoveCity_Harbor_EventScript_15998A:: @ 815998A
pause 30
spriteinvisible LAST_TALKED, 13, 10
compare FACING, 2
- callif 1, LilycoveCity_Harbor_EventScript_1599D9
+ call_if 1, LilycoveCity_Harbor_EventScript_1599D9
compare FACING, 4
- callif 1, LilycoveCity_Harbor_EventScript_1599CE
+ call_if 1, LilycoveCity_Harbor_EventScript_1599CE
pause 30
spriteinvisible 255, 0, 0
setvar 0x8004, 2
@@ -107,11 +107,11 @@ LilycoveCity_Harbor_EventScript_1599E4:: @ 81599E4
LilycoveCity_Harbor_EventScript_1599EE:: @ 81599EE
checkflag 2052
- jumpif 0, LilycoveCity_Harbor_EventScript_1598BA
+ goto_if 0, LilycoveCity_Harbor_EventScript_1598BA
checkflag 206
- jumpeq LilycoveCity_Harbor_EventScript_1598BA
+ goto_if_eq LilycoveCity_Harbor_EventScript_1598BA
checkflag 2131
- jumpif 0, LilycoveCity_Harbor_EventScript_1598BA
+ goto_if 0, LilycoveCity_Harbor_EventScript_1598BA
msgbox LilycoveCity_Harbor_Text_1C50F2, 4
closebutton
move LAST_TALKED, LilycoveCity_Harbor_Movement_1A0841
@@ -130,9 +130,9 @@ LilycoveCity_Harbor_EventScript_1599EE:: @ 81599EE
pause 30
disappear 4
compare FACING, 2
- callif 1, LilycoveCity_Harbor_EventScript_1599D9
+ call_if 1, LilycoveCity_Harbor_EventScript_1599D9
compare FACING, 4
- callif 1, LilycoveCity_Harbor_EventScript_1599CE
+ call_if 1, LilycoveCity_Harbor_EventScript_1599CE
pause 30
spriteinvisible 255, 0, 0
special ScrSpecial_HealPlayerParty
@@ -160,7 +160,7 @@ LilycoveCity_Harbor_EventScript_159A8D:: @ 8159A8D
lock
faceplayer
checkflag 2052
- jumpeq LilycoveCity_Harbor_EventScript_159AA2
+ goto_if_eq LilycoveCity_Harbor_EventScript_159AA2
msgbox LilycoveCity_Harbor_Text_18B504, 4
release
end
diff --git a/data/scripts/maps/LilycoveCity_House2.inc b/data/scripts/maps/LilycoveCity_House2.inc
index 75780667d..d3399f5ac 100644
--- a/data/scripts/maps/LilycoveCity_House2.inc
+++ b/data/scripts/maps/LilycoveCity_House2.inc
@@ -5,11 +5,11 @@ LilycoveCity_House2_EventScript_159BA3:: @ 8159BA3
lock
faceplayer
checkflag 234
- jumpeq LilycoveCity_House2_EventScript_159BDA
+ goto_if_eq LilycoveCity_House2_EventScript_159BDA
msgbox LilycoveCity_House2_Text_18B83C, 4
giveitem ITEM_TM44
compare RESULT, 0
- jumpeq LilycoveCity_House2_EventScript_1A029B
+ goto_if_eq LilycoveCity_House2_EventScript_1A029B
setflag 234
msgbox LilycoveCity_House2_Text_18B883, 4
release
diff --git a/data/scripts/maps/LilycoveCity_House3.inc b/data/scripts/maps/LilycoveCity_House3.inc
index 51e4988b3..6926f4f45 100644
--- a/data/scripts/maps/LilycoveCity_House3.inc
+++ b/data/scripts/maps/LilycoveCity_House3.inc
@@ -12,7 +12,7 @@ LilycoveCity_House3_EventScript_159BF3:: @ 8159BF3
faceplayer
msgbox LilycoveCity_House3_Text_18B8CC, 5
compare RESULT, 0
- jumpeq LilycoveCity_House3_EventScript_159C1D
+ goto_if_eq LilycoveCity_House3_EventScript_159C1D
msgbox LilycoveCity_House3_Text_18BA2B, 4
closebutton
move LAST_TALKED, LilycoveCity_House3_Movement_1A083D
diff --git a/data/scripts/maps/LilycoveCity_LilycoveMuseum_1F.inc b/data/scripts/maps/LilycoveCity_LilycoveMuseum_1F.inc
index a481f9c32..c0fa73360 100644
--- a/data/scripts/maps/LilycoveCity_LilycoveMuseum_1F.inc
+++ b/data/scripts/maps/LilycoveCity_LilycoveMuseum_1F.inc
@@ -12,9 +12,9 @@ LilycoveCity_LilycoveMuseum_1F_EventScript_158425:: @ 8158425
waittext
multichoice 20, 8, 16, 1
compare RESULT, 0
- jumpeq LilycoveCity_LilycoveMuseum_1F_EventScript_158458
+ goto_if_eq LilycoveCity_LilycoveMuseum_1F_EventScript_158458
compare RESULT, 1
- jumpeq LilycoveCity_LilycoveMuseum_1F_EventScript_15844F
+ goto_if_eq LilycoveCity_LilycoveMuseum_1F_EventScript_15844F
end
LilycoveCity_LilycoveMuseum_1F_EventScript_15844F:: @ 815844F
@@ -24,9 +24,9 @@ LilycoveCity_LilycoveMuseum_1F_EventScript_15844F:: @ 815844F
LilycoveCity_LilycoveMuseum_1F_EventScript_158458:: @ 8158458
msgbox LilycoveCity_LilycoveMuseum_1F_Text_187495, 5
compare RESULT, 0
- jumpeq LilycoveCity_LilycoveMuseum_1F_EventScript_158477
+ goto_if_eq LilycoveCity_LilycoveMuseum_1F_EventScript_158477
compare RESULT, 1
- jumpeq LilycoveCity_LilycoveMuseum_1F_EventScript_158481
+ goto_if_eq LilycoveCity_LilycoveMuseum_1F_EventScript_158481
end
LilycoveCity_LilycoveMuseum_1F_EventScript_158477:: @ 8158477
diff --git a/data/scripts/maps/LilycoveCity_LilycoveMuseum_2F.inc b/data/scripts/maps/LilycoveCity_LilycoveMuseum_2F.inc
index 06a3ae4ca..ec316b576 100644
--- a/data/scripts/maps/LilycoveCity_LilycoveMuseum_2F.inc
+++ b/data/scripts/maps/LilycoveCity_LilycoveMuseum_2F.inc
@@ -5,31 +5,31 @@ LilycoveCity_LilycoveMuseum_2F_MapScripts:: @ 81585AC
LilycoveCity_LilycoveMuseum_2F_MapScript1_1585B7:: @ 81585B7
checkflag 160
- jumpeq LilycoveCity_LilycoveMuseum_2F_EventScript_1585FD
+ goto_if_eq LilycoveCity_LilycoveMuseum_2F_EventScript_1585FD
goto LilycoveCity_LilycoveMuseum_2F_EventScript_1585C6
end
LilycoveCity_LilycoveMuseum_2F_EventScript_1585C6:: @ 81585C6
checkflag 161
- jumpeq LilycoveCity_LilycoveMuseum_2F_EventScript_158615
+ goto_if_eq LilycoveCity_LilycoveMuseum_2F_EventScript_158615
goto LilycoveCity_LilycoveMuseum_2F_EventScript_1585D5
end
LilycoveCity_LilycoveMuseum_2F_EventScript_1585D5:: @ 81585D5
checkflag 162
- jumpeq LilycoveCity_LilycoveMuseum_2F_EventScript_15862D
+ goto_if_eq LilycoveCity_LilycoveMuseum_2F_EventScript_15862D
goto LilycoveCity_LilycoveMuseum_2F_EventScript_1585E4
end
LilycoveCity_LilycoveMuseum_2F_EventScript_1585E4:: @ 81585E4
checkflag 163
- jumpeq LilycoveCity_LilycoveMuseum_2F_EventScript_158645
+ goto_if_eq LilycoveCity_LilycoveMuseum_2F_EventScript_158645
goto LilycoveCity_LilycoveMuseum_2F_EventScript_1585F3
end
LilycoveCity_LilycoveMuseum_2F_EventScript_1585F3:: @ 81585F3
checkflag 164
- jumpeq LilycoveCity_LilycoveMuseum_2F_EventScript_15865D
+ goto_if_eq LilycoveCity_LilycoveMuseum_2F_EventScript_15865D
end
LilycoveCity_LilycoveMuseum_2F_EventScript_1585FD:: @ 81585FD
@@ -97,7 +97,7 @@ LilycoveCity_LilycoveMuseum_2F_Movement_1586D5:: @ 81586D5
LilycoveCity_LilycoveMuseum_2F_EventScript_1586D8:: @ 81586D8
lockall
checkflag 236
- jumpeq LilycoveCity_LilycoveMuseum_2F_EventScript_158793
+ goto_if_eq LilycoveCity_LilycoveMuseum_2F_EventScript_158793
specialval 0x8004, sub_80C4D50
switch 0x8004
case 1, LilycoveCity_LilycoveMuseum_2F_EventScript_15872C
@@ -126,7 +126,7 @@ LilycoveCity_LilycoveMuseum_2F_EventScript_15875C:: @ 815875C
msgbox LilycoveCity_LilycoveMuseum_2F_Text_188120, 4
givedecoration 44
compare RESULT, 0
- jumpeq LilycoveCity_LilycoveMuseum_2F_EventScript_158783
+ goto_if_eq LilycoveCity_LilycoveMuseum_2F_EventScript_158783
setflag 236
closebutton
releaseall
@@ -147,35 +147,35 @@ LilycoveCity_LilycoveMuseum_2F_EventScript_158793:: @ 8158793
LilycoveCity_LilycoveMuseum_2F_EventScript_15879D:: @ 815879D
lockall
checkflag 162
- jumpeq LilycoveCity_LilycoveMuseum_2F_EventScript_15883C
+ goto_if_eq LilycoveCity_LilycoveMuseum_2F_EventScript_15883C
msgbox LilycoveCity_LilycoveMuseum_2F_Text_188219, 3
end
LilycoveCity_LilycoveMuseum_2F_EventScript_1587B0:: @ 81587B0
lockall
checkflag 164
- jumpeq LilycoveCity_LilycoveMuseum_2F_EventScript_158858
+ goto_if_eq LilycoveCity_LilycoveMuseum_2F_EventScript_158858
msgbox LilycoveCity_LilycoveMuseum_2F_Text_18824C, 3
end
LilycoveCity_LilycoveMuseum_2F_EventScript_1587C3:: @ 81587C3
lockall
checkflag 160
- jumpeq LilycoveCity_LilycoveMuseum_2F_EventScript_158820
+ goto_if_eq LilycoveCity_LilycoveMuseum_2F_EventScript_158820
msgbox LilycoveCity_LilycoveMuseum_2F_Text_1882B4, 3
end
LilycoveCity_LilycoveMuseum_2F_EventScript_1587D6:: @ 81587D6
lockall
checkflag 161
- jumpeq LilycoveCity_LilycoveMuseum_2F_EventScript_15882E
+ goto_if_eq LilycoveCity_LilycoveMuseum_2F_EventScript_15882E
msgbox LilycoveCity_LilycoveMuseum_2F_Text_188281, 3
end
LilycoveCity_LilycoveMuseum_2F_EventScript_1587E9:: @ 81587E9
lockall
checkflag 163
- jumpeq LilycoveCity_LilycoveMuseum_2F_EventScript_15884A
+ goto_if_eq LilycoveCity_LilycoveMuseum_2F_EventScript_15884A
msgbox LilycoveCity_LilycoveMuseum_2F_Text_1882E6, 3
end
diff --git a/data/scripts/maps/LilycoveCity_MoveDeletersHouse.inc b/data/scripts/maps/LilycoveCity_MoveDeletersHouse.inc
index 2786c930c..286ad055e 100644
--- a/data/scripts/maps/LilycoveCity_MoveDeletersHouse.inc
+++ b/data/scripts/maps/LilycoveCity_MoveDeletersHouse.inc
@@ -17,19 +17,19 @@ LilycoveCity_MoveDeletersHouse_EventScript_159ADE:: @ 8159ADE
special sub_80F9A0C
waitstate
compare 0x8004, 255
- jumpeq LilycoveCity_MoveDeletersHouse_EventScript_159B7B
+ goto_if_eq LilycoveCity_MoveDeletersHouse_EventScript_159B7B
special sub_80FA148
compare RESULT, 1
- jumpeq LilycoveCity_MoveDeletersHouse_EventScript_159B71
+ goto_if_eq LilycoveCity_MoveDeletersHouse_EventScript_159B71
special ScrSpecial_CountPokemonMoves
compare RESULT, 1
- jumpeq LilycoveCity_MoveDeletersHouse_EventScript_159B64
+ goto_if_eq LilycoveCity_MoveDeletersHouse_EventScript_159B64
msgbox LilycoveCity_MoveDeletersHouse_Text_18B6B0, 4
fadescreen 1
special sub_80F9EEC
fadescreen 0
compare 0x8005, 4
- jumpeq LilycoveCity_MoveDeletersHouse_EventScript_159ADE
+ goto_if_eq LilycoveCity_MoveDeletersHouse_EventScript_159ADE
special ScrSpecial_GetPokemonNicknameAndMoveName
msgbox LilycoveCity_MoveDeletersHouse_Text_18B6F2, 5
switch RESULT
diff --git a/data/scripts/maps/LilycoveCity_PokemonCenter_1F.inc b/data/scripts/maps/LilycoveCity_PokemonCenter_1F.inc
index 5809e28c8..b398076fa 100644
--- a/data/scripts/maps/LilycoveCity_PokemonCenter_1F.inc
+++ b/data/scripts/maps/LilycoveCity_PokemonCenter_1F.inc
@@ -22,7 +22,7 @@ LilycoveCity_PokemonCenter_1F_EventScript_159348:: @ 8159348
lock
faceplayer
checkflag 2061
- jumpeq LilycoveCity_PokemonCenter_1F_EventScript_15935D
+ goto_if_eq LilycoveCity_PokemonCenter_1F_EventScript_15935D
msgbox LilycoveCity_PokemonCenter_1F_Text_18A048, 4
release
end
diff --git a/data/scripts/maps/LilycoveCity_PokemonTrainerFanClub.inc b/data/scripts/maps/LilycoveCity_PokemonTrainerFanClub.inc
index e503ef4ec..14806cba4 100644
--- a/data/scripts/maps/LilycoveCity_PokemonTrainerFanClub.inc
+++ b/data/scripts/maps/LilycoveCity_PokemonTrainerFanClub.inc
@@ -62,9 +62,9 @@ LilycoveCity_PokemonTrainerFanClub_Movement_15940C:: @ 815940C
LilycoveCity_PokemonTrainerFanClub_MapScript1_159412:: @ 8159412
compare 0x4095, 1
- jumpeq LilycoveCity_PokemonTrainerFanClub_EventScript_159515
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159515
compare 0x4095, 2
- jumpeq LilycoveCity_PokemonTrainerFanClub_EventScript_159429
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159429
end
LilycoveCity_PokemonTrainerFanClub_EventScript_159429:: @ 8159429
@@ -72,35 +72,35 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_159429:: @ 8159429
setvar 0x8004, 8
specialval RESULT, sub_810FD60
compare RESULT, 0
- callif 1, LilycoveCity_PokemonTrainerFanClub_EventScript_1594D5
+ call_if 1, LilycoveCity_PokemonTrainerFanClub_EventScript_1594D5
setvar 0x8004, 9
specialval RESULT, sub_810FD60
compare RESULT, 0
- callif 1, LilycoveCity_PokemonTrainerFanClub_EventScript_1594DD
+ call_if 1, LilycoveCity_PokemonTrainerFanClub_EventScript_1594DD
setvar 0x8004, 10
specialval RESULT, sub_810FD60
compare RESULT, 0
- callif 1, LilycoveCity_PokemonTrainerFanClub_EventScript_1594E5
+ call_if 1, LilycoveCity_PokemonTrainerFanClub_EventScript_1594E5
setvar 0x8004, 11
specialval RESULT, sub_810FD60
compare RESULT, 0
- callif 1, LilycoveCity_PokemonTrainerFanClub_EventScript_1594ED
+ call_if 1, LilycoveCity_PokemonTrainerFanClub_EventScript_1594ED
setvar 0x8004, 12
specialval RESULT, sub_810FD60
compare RESULT, 0
- callif 1, LilycoveCity_PokemonTrainerFanClub_EventScript_1594F5
+ call_if 1, LilycoveCity_PokemonTrainerFanClub_EventScript_1594F5
setvar 0x8004, 13
specialval RESULT, sub_810FD60
compare RESULT, 0
- callif 1, LilycoveCity_PokemonTrainerFanClub_EventScript_1594FD
+ call_if 1, LilycoveCity_PokemonTrainerFanClub_EventScript_1594FD
setvar 0x8004, 14
specialval RESULT, sub_810FD60
compare RESULT, 0
- callif 1, LilycoveCity_PokemonTrainerFanClub_EventScript_159505
+ call_if 1, LilycoveCity_PokemonTrainerFanClub_EventScript_159505
setvar 0x8004, 15
specialval RESULT, sub_810FD60
compare RESULT, 0
- callif 1, LilycoveCity_PokemonTrainerFanClub_EventScript_15950D
+ call_if 1, LilycoveCity_PokemonTrainerFanClub_EventScript_15950D
end
LilycoveCity_PokemonTrainerFanClub_EventScript_1594D5:: @ 81594D5
@@ -149,13 +149,13 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_15952F:: @ 815952F
setvar 0x8004, 13
special sub_810FDAC
compare 0x4095, 0
- jumpeq LilycoveCity_PokemonTrainerFanClub_EventScript_15959C
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_15959C
specialval RESULT, sub_810FD60
compare RESULT, 1
- jumpeq LilycoveCity_PokemonTrainerFanClub_EventScript_15956E
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_15956E
specialval RESULT, sub_810FCB0
compare RESULT, 7
- jumpeq LilycoveCity_PokemonTrainerFanClub_EventScript_159592
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159592
msgbox LilycoveCity_PokemonTrainerFanClub_Text_18A400, 4
release
end
@@ -163,7 +163,7 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_15952F:: @ 815952F
LilycoveCity_PokemonTrainerFanClub_EventScript_15956E:: @ 815956E
specialval RESULT, sub_810FCB0
compare RESULT, 1
- jumpeq LilycoveCity_PokemonTrainerFanClub_EventScript_159588
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159588
msgbox LilycoveCity_PokemonTrainerFanClub_Text_18A36A, 4
release
end
@@ -189,13 +189,13 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_1595A6:: @ 81595A6
setvar 0x8004, 8
special sub_810FDAC
compare 0x4095, 0
- jumpeq LilycoveCity_PokemonTrainerFanClub_EventScript_159613
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159613
specialval RESULT, sub_810FD60
compare RESULT, 1
- jumpeq LilycoveCity_PokemonTrainerFanClub_EventScript_1595E5
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_1595E5
specialval RESULT, sub_810FCB0
compare RESULT, 7
- jumpeq LilycoveCity_PokemonTrainerFanClub_EventScript_159609
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159609
msgbox LilycoveCity_PokemonTrainerFanClub_Text_18A629, 4
release
end
@@ -203,7 +203,7 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_1595A6:: @ 81595A6
LilycoveCity_PokemonTrainerFanClub_EventScript_1595E5:: @ 81595E5
specialval RESULT, sub_810FCB0
compare RESULT, 1
- jumpeq LilycoveCity_PokemonTrainerFanClub_EventScript_1595FF
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_1595FF
msgbox LilycoveCity_PokemonTrainerFanClub_Text_18A584, 4
release
end
@@ -229,13 +229,13 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_15961D:: @ 815961D
setvar 0x8004, 9
special sub_810FDAC
compare 0x4095, 0
- jumpeq LilycoveCity_PokemonTrainerFanClub_EventScript_15968A
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_15968A
specialval RESULT, sub_810FD60
compare RESULT, 1
- jumpeq LilycoveCity_PokemonTrainerFanClub_EventScript_15965C
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_15965C
specialval RESULT, sub_810FCB0
compare RESULT, 7
- jumpeq LilycoveCity_PokemonTrainerFanClub_EventScript_159680
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159680
msgbox LilycoveCity_PokemonTrainerFanClub_Text_18A814, 4
release
end
@@ -243,7 +243,7 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_15961D:: @ 815961D
LilycoveCity_PokemonTrainerFanClub_EventScript_15965C:: @ 815965C
specialval RESULT, sub_810FCB0
compare RESULT, 1
- jumpeq LilycoveCity_PokemonTrainerFanClub_EventScript_159676
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159676
msgbox LilycoveCity_PokemonTrainerFanClub_Text_18A71E, 4
release
end
@@ -269,13 +269,13 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_159694:: @ 8159694
setvar 0x8004, 10
special sub_810FDAC
compare 0x4095, 0
- jumpeq LilycoveCity_PokemonTrainerFanClub_EventScript_159701
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159701
specialval RESULT, sub_810FD60
compare RESULT, 1
- jumpeq LilycoveCity_PokemonTrainerFanClub_EventScript_1596D3
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_1596D3
specialval RESULT, sub_810FCB0
compare RESULT, 7
- jumpeq LilycoveCity_PokemonTrainerFanClub_EventScript_1596F7
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_1596F7
msgbox LilycoveCity_PokemonTrainerFanClub_Text_18AB0A, 4
release
end
@@ -283,7 +283,7 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_159694:: @ 8159694
LilycoveCity_PokemonTrainerFanClub_EventScript_1596D3:: @ 81596D3
specialval RESULT, sub_810FCB0
compare RESULT, 1
- jumpeq LilycoveCity_PokemonTrainerFanClub_EventScript_1596ED
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_1596ED
msgbox LilycoveCity_PokemonTrainerFanClub_Text_18AA39, 4
release
end
@@ -310,10 +310,10 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_15970B:: @ 815970B
special sub_810FDAC
specialval RESULT, sub_810FD60
compare RESULT, 1
- jumpeq LilycoveCity_PokemonTrainerFanClub_EventScript_15973F
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_15973F
specialval RESULT, sub_810FCB0
compare RESULT, 7
- jumpeq LilycoveCity_PokemonTrainerFanClub_EventScript_159763
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159763
msgbox LilycoveCity_PokemonTrainerFanClub_Text_18ACC7, 4
release
end
@@ -321,7 +321,7 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_15970B:: @ 815970B
LilycoveCity_PokemonTrainerFanClub_EventScript_15973F:: @ 815973F
specialval RESULT, sub_810FCB0
compare RESULT, 1
- jumpeq LilycoveCity_PokemonTrainerFanClub_EventScript_159759
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159759
msgbox LilycoveCity_PokemonTrainerFanClub_Text_18AC15, 4
release
end
@@ -343,10 +343,10 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_15976D:: @ 815976D
special sub_810FDAC
specialval RESULT, sub_810FD60
compare RESULT, 1
- jumpeq LilycoveCity_PokemonTrainerFanClub_EventScript_1597A1
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_1597A1
specialval RESULT, sub_810FCB0
compare RESULT, 7
- jumpeq LilycoveCity_PokemonTrainerFanClub_EventScript_1597C5
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_1597C5
msgbox LilycoveCity_PokemonTrainerFanClub_Text_18AE63, 4
release
end
@@ -354,7 +354,7 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_15976D:: @ 815976D
LilycoveCity_PokemonTrainerFanClub_EventScript_1597A1:: @ 81597A1
specialval RESULT, sub_810FCB0
compare RESULT, 1
- jumpeq LilycoveCity_PokemonTrainerFanClub_EventScript_1597BB
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_1597BB
msgbox LilycoveCity_PokemonTrainerFanClub_Text_18AD6D, 4
release
end
@@ -376,10 +376,10 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_1597CF:: @ 81597CF
special sub_810FDAC
specialval RESULT, sub_810FD60
compare RESULT, 1
- jumpeq LilycoveCity_PokemonTrainerFanClub_EventScript_159803
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159803
specialval RESULT, sub_810FCB0
compare RESULT, 7
- jumpeq LilycoveCity_PokemonTrainerFanClub_EventScript_159827
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159827
msgbox LilycoveCity_PokemonTrainerFanClub_Text_18B030, 4
release
end
@@ -387,7 +387,7 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_1597CF:: @ 81597CF
LilycoveCity_PokemonTrainerFanClub_EventScript_159803:: @ 8159803
specialval RESULT, sub_810FCB0
compare RESULT, 1
- jumpeq LilycoveCity_PokemonTrainerFanClub_EventScript_15981D
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_15981D
msgbox LilycoveCity_PokemonTrainerFanClub_Text_18AF62, 4
release
end
@@ -409,10 +409,10 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_159831:: @ 8159831
special sub_810FDAC
specialval RESULT, sub_810FD60
compare RESULT, 1
- jumpeq LilycoveCity_PokemonTrainerFanClub_EventScript_159865
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159865
specialval RESULT, sub_810FCB0
compare RESULT, 7
- jumpeq LilycoveCity_PokemonTrainerFanClub_EventScript_159889
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159889
msgbox LilycoveCity_PokemonTrainerFanClub_Text_18B1FD, 4
release
end
@@ -420,7 +420,7 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_159831:: @ 8159831
LilycoveCity_PokemonTrainerFanClub_EventScript_159865:: @ 8159865
specialval RESULT, sub_810FCB0
compare RESULT, 1
- jumpeq LilycoveCity_PokemonTrainerFanClub_EventScript_15987F
+ goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_15987F
msgbox LilycoveCity_PokemonTrainerFanClub_Text_18B16E, 4
release
end
diff --git a/data/scripts/maps/LittlerootTown.inc b/data/scripts/maps/LittlerootTown.inc
index 2da725de7..1c019e046 100644
--- a/data/scripts/maps/LittlerootTown.inc
+++ b/data/scripts/maps/LittlerootTown.inc
@@ -6,19 +6,19 @@ LittlerootTown_MapScripts:: @ 814D509
LittlerootTown_MapScript1_14D514:: @ 814D514
setflag 2063
compare 0x4092, 2
- callif 1, LittlerootTown_EventScript_14D57B
+ call_if 1, LittlerootTown_EventScript_14D57B
checkflag 82
- callif 0, LittlerootTown_EventScript_14D583
+ call_if 0, LittlerootTown_EventScript_14D583
compare 0x4050, 3
- callif 1, LittlerootTown_EventScript_14D5A6
+ call_if 1, LittlerootTown_EventScript_14D5A6
compare 0x4082, 4
- callif 1, LittlerootTown_EventScript_14D570
+ call_if 1, LittlerootTown_EventScript_14D570
compare 0x408c, 4
- callif 1, LittlerootTown_EventScript_14D570
+ call_if 1, LittlerootTown_EventScript_14D570
compare 0x40c7, 1
- callif 1, LittlerootTown_EventScript_14D567
+ call_if 1, LittlerootTown_EventScript_14D567
compare 0x408d, 3
- callif 1, LittlerootTown_EventScript_14D563
+ call_if 1, LittlerootTown_EventScript_14D563
end
LittlerootTown_EventScript_14D563:: @ 814D563
@@ -41,7 +41,7 @@ LittlerootTown_EventScript_14D57B:: @ 814D57B
LittlerootTown_EventScript_14D583:: @ 814D583
compare 0x4050, 0
- jumpeq LittlerootTown_EventScript_14D59A
+ goto_if_eq LittlerootTown_EventScript_14D59A
movespriteperm 1, 10, 1
spritebehave 1, 7
return
@@ -56,9 +56,9 @@ LittlerootTown_EventScript_14D5A6:: @ 814D5A6
spritebehave 4, 8
checkgender
compare RESULT, 0
- callif 1, LittlerootTown_EventScript_14D5C5
+ call_if 1, LittlerootTown_EventScript_14D5C5
compare RESULT, 1
- callif 1, LittlerootTown_EventScript_14D5CD
+ call_if 1, LittlerootTown_EventScript_14D5CD
return
LittlerootTown_EventScript_14D5C5:: @ 814D5C5
@@ -188,11 +188,11 @@ LittlerootTown_EventScript_14D6DF:: @ 814D6DF
lock
faceplayer
checkflag 116
- jumpeq LittlerootTown_EventScript_14D72F
+ goto_if_eq LittlerootTown_EventScript_14D72F
checkflag 82
- jumpeq LittlerootTown_EventScript_14D722
+ goto_if_eq LittlerootTown_EventScript_14D722
compare 0x4050, 0
- jumpif 5, LittlerootTown_EventScript_14D708
+ goto_if 5, LittlerootTown_EventScript_14D708
msgbox LittlerootTown_Text_16ACEB, 4
release
end
@@ -335,9 +335,9 @@ LittlerootTown_EventScript_14D808:: @ 814D808
lockall
checkgender
compare RESULT, 0
- callif 1, LittlerootTown_EventScript_14D822
+ call_if 1, LittlerootTown_EventScript_14D822
compare RESULT, 1
- callif 1, LittlerootTown_EventScript_14D82B
+ call_if 1, LittlerootTown_EventScript_14D82B
releaseall
end
@@ -353,9 +353,9 @@ LittlerootTown_EventScript_14D834:: @ 814D834
lockall
checkgender
compare RESULT, 0
- callif 1, LittlerootTown_EventScript_14D84E
+ call_if 1, LittlerootTown_EventScript_14D84E
compare RESULT, 1
- callif 1, LittlerootTown_EventScript_14D857
+ call_if 1, LittlerootTown_EventScript_14D857
releaseall
end
@@ -408,27 +408,27 @@ LittlerootTown_EventScript_14D8AA:: @ 814D8AA
LittlerootTown_EventScript_14D8B6:: @ 814D8B6
checkgender
compare RESULT, 0
- callif 1, LittlerootTown_EventScript_14D93C
+ call_if 1, LittlerootTown_EventScript_14D93C
compare RESULT, 1
- callif 1, LittlerootTown_EventScript_14D947
+ call_if 1, LittlerootTown_EventScript_14D947
checkgender
compare RESULT, 0
- callif 1, LittlerootTown_EventScript_14D926
+ call_if 1, LittlerootTown_EventScript_14D926
compare RESULT, 1
- callif 1, LittlerootTown_EventScript_14D931
+ call_if 1, LittlerootTown_EventScript_14D931
msgbox LittlerootTown_Text_16A8EE, 4
closebutton
checkgender
compare RESULT, 0
- callif 1, LittlerootTown_EventScript_14D952
+ call_if 1, LittlerootTown_EventScript_14D952
compare RESULT, 1
- callif 1, LittlerootTown_EventScript_14D995
+ call_if 1, LittlerootTown_EventScript_14D995
call LittlerootTown_EventScript_14DD38
checkgender
compare RESULT, 0
- callif 1, LittlerootTown_EventScript_14DAAA
+ call_if 1, LittlerootTown_EventScript_14DAAA
compare RESULT, 1
- callif 1, LittlerootTown_EventScript_14DAED
+ call_if 1, LittlerootTown_EventScript_14DAED
goto LittlerootTown_EventScript_14DD2B
end
@@ -454,32 +454,32 @@ LittlerootTown_EventScript_14D947:: @ 814D947
LittlerootTown_EventScript_14D952:: @ 814D952
compare 0x8008, 0
- callif 1, LittlerootTown_EventScript_14D9D8
+ call_if 1, LittlerootTown_EventScript_14D9D8
compare 0x8008, 1
- callif 1, LittlerootTown_EventScript_14D9ED
+ call_if 1, LittlerootTown_EventScript_14D9ED
compare 0x8008, 2
- callif 1, LittlerootTown_EventScript_14DA02
+ call_if 1, LittlerootTown_EventScript_14DA02
compare 0x8008, 3
- callif 1, LittlerootTown_EventScript_14DA17
+ call_if 1, LittlerootTown_EventScript_14DA17
compare 0x8008, 4
- callif 1, LittlerootTown_EventScript_14DA2C
+ call_if 1, LittlerootTown_EventScript_14DA2C
compare 0x8008, 5
- callif 1, LittlerootTown_EventScript_14DA41
+ call_if 1, LittlerootTown_EventScript_14DA41
return
LittlerootTown_EventScript_14D995:: @ 814D995
compare 0x8008, 0
- callif 1, LittlerootTown_EventScript_14D9D8
+ call_if 1, LittlerootTown_EventScript_14D9D8
compare 0x8008, 1
- callif 1, LittlerootTown_EventScript_14D9ED
+ call_if 1, LittlerootTown_EventScript_14D9ED
compare 0x8008, 2
- callif 1, LittlerootTown_EventScript_14DA56
+ call_if 1, LittlerootTown_EventScript_14DA56
compare 0x8008, 3
- callif 1, LittlerootTown_EventScript_14DA6B
+ call_if 1, LittlerootTown_EventScript_14DA6B
compare 0x8008, 4
- callif 1, LittlerootTown_EventScript_14DA80
+ call_if 1, LittlerootTown_EventScript_14DA80
compare 0x8008, 5
- callif 1, LittlerootTown_EventScript_14DA95
+ call_if 1, LittlerootTown_EventScript_14DA95
return
LittlerootTown_EventScript_14D9D8:: @ 814D9D8
@@ -554,32 +554,32 @@ LittlerootTown_EventScript_14DA95:: @ 814DA95
LittlerootTown_EventScript_14DAAA:: @ 814DAAA
compare 0x8008, 0
- callif 1, LittlerootTown_EventScript_14DB30
+ call_if 1, LittlerootTown_EventScript_14DB30
compare 0x8008, 1
- callif 1, LittlerootTown_EventScript_14DB3B
+ call_if 1, LittlerootTown_EventScript_14DB3B
compare 0x8008, 2
- callif 1, LittlerootTown_EventScript_14DB46
+ call_if 1, LittlerootTown_EventScript_14DB46
compare 0x8008, 3
- callif 1, LittlerootTown_EventScript_14DB6C
+ call_if 1, LittlerootTown_EventScript_14DB6C
compare 0x8008, 4
- callif 1, LittlerootTown_EventScript_14DB92
+ call_if 1, LittlerootTown_EventScript_14DB92
compare 0x8008, 5
- callif 1, LittlerootTown_EventScript_14DBB8
+ call_if 1, LittlerootTown_EventScript_14DBB8
return
LittlerootTown_EventScript_14DAED:: @ 814DAED
compare 0x8008, 0
- callif 1, LittlerootTown_EventScript_14DB30
+ call_if 1, LittlerootTown_EventScript_14DB30
compare 0x8008, 1
- callif 1, LittlerootTown_EventScript_14DB3B
+ call_if 1, LittlerootTown_EventScript_14DB3B
compare 0x8008, 2
- callif 1, LittlerootTown_EventScript_14DBDE
+ call_if 1, LittlerootTown_EventScript_14DBDE
compare 0x8008, 3
- callif 1, LittlerootTown_EventScript_14DC04
+ call_if 1, LittlerootTown_EventScript_14DC04
compare 0x8008, 4
- callif 1, LittlerootTown_EventScript_14DC2A
+ call_if 1, LittlerootTown_EventScript_14DC2A
compare 0x8008, 5
- callif 1, LittlerootTown_EventScript_14DC50
+ call_if 1, LittlerootTown_EventScript_14DC50
return
LittlerootTown_EventScript_14DB30:: @ 814DB30
@@ -843,9 +843,9 @@ LittlerootTown_EventScript_14DCE2:: @ 814DCE2
faceplayer
checkgender
compare RESULT, 0
- callif 1, LittlerootTown_EventScript_14D926
+ call_if 1, LittlerootTown_EventScript_14D926
compare RESULT, 1
- callif 1, LittlerootTown_EventScript_14D931
+ call_if 1, LittlerootTown_EventScript_14D931
call LittlerootTown_EventScript_14DD38
move 4, LittlerootTown_Movement_1A0841
waitmove 0
diff --git a/data/scripts/maps/LittlerootTown_BrendansHouse_1F.inc b/data/scripts/maps/LittlerootTown_BrendansHouse_1F.inc
index 849115390..ca872ba0f 100644
--- a/data/scripts/maps/LittlerootTown_BrendansHouse_1F.inc
+++ b/data/scripts/maps/LittlerootTown_BrendansHouse_1F.inc
@@ -6,9 +6,9 @@ LittlerootTown_BrendansHouse_1F_MapScripts:: @ 815263B
LittlerootTown_BrendansHouse_1F_MapScript1_15264B:: @ 815264B
compare 0x4092, 6
- callif 0, LittlerootTown_BrendansHouse_1F_EventScript_152660
+ call_if 0, LittlerootTown_BrendansHouse_1F_EventScript_152660
checkflag 274
- callif 1, LittlerootTown_BrendansHouse_1F_EventScript_152673
+ call_if 1, LittlerootTown_BrendansHouse_1F_EventScript_152673
end
LittlerootTown_BrendansHouse_1F_EventScript_152660:: @ 8152660
@@ -19,7 +19,7 @@ LittlerootTown_BrendansHouse_1F_EventScript_152660:: @ 8152660
LittlerootTown_BrendansHouse_1F_EventScript_152673:: @ 8152673
checkgender
compare RESULT, 0
- jumpeq LittlerootTown_BrendansHouse_1F_EventScript_152680
+ goto_if_eq LittlerootTown_BrendansHouse_1F_EventScript_152680
return
LittlerootTown_BrendansHouse_1F_EventScript_152680:: @ 8152680
@@ -28,11 +28,11 @@ LittlerootTown_BrendansHouse_1F_EventScript_152680:: @ 8152680
LittlerootTown_BrendansHouse_1F_MapScript1_15268A:: @ 815268A
compare 0x4092, 3
- callif 1, LittlerootTown_BrendansHouse_1F_EventScript_1526C4
+ call_if 1, LittlerootTown_BrendansHouse_1F_EventScript_1526C4
compare 0x4092, 5
- callif 1, LittlerootTown_BrendansHouse_1F_EventScript_1526AC
+ call_if 1, LittlerootTown_BrendansHouse_1F_EventScript_1526AC
compare 0x4092, 6
- callif 1, LittlerootTown_BrendansHouse_1F_EventScript_1526B8
+ call_if 1, LittlerootTown_BrendansHouse_1F_EventScript_1526B8
end
LittlerootTown_BrendansHouse_1F_EventScript_1526AC:: @ 81526AC
diff --git a/data/scripts/maps/LittlerootTown_BrendansHouse_2F.inc b/data/scripts/maps/LittlerootTown_BrendansHouse_2F.inc
index 0803cd512..0176db332 100644
--- a/data/scripts/maps/LittlerootTown_BrendansHouse_2F.inc
+++ b/data/scripts/maps/LittlerootTown_BrendansHouse_2F.inc
@@ -5,9 +5,9 @@ LittlerootTown_BrendansHouse_2F_MapScripts:: @ 81527A4
LittlerootTown_BrendansHouse_2F_MapScript1_1527AF:: @ 81527AF
checkflag 130
- callif 0, LittlerootTown_BrendansHouse_2F_EventScript_1527CE
+ call_if 0, LittlerootTown_BrendansHouse_2F_EventScript_1527CE
compare 0x4092, 4
- callif 1, LittlerootTown_BrendansHouse_2F_EventScript_1B6950
+ call_if 1, LittlerootTown_BrendansHouse_2F_EventScript_1B6950
call LittlerootTown_BrendansHouse_2F_EventScript_1A2F3D
setvar 0x4089, 0
end
@@ -24,16 +24,16 @@ LittlerootTown_BrendansHouse_2F_MapScript2_1527DA:: @ 81527DA
LittlerootTown_BrendansHouse_2F_EventScript_1527E4:: @ 81527E4
checkgender
compare RESULT, 0
- jumpeq LittlerootTown_BrendansHouse_2F_EventScript_1A2F68
+ goto_if_eq LittlerootTown_BrendansHouse_2F_EventScript_1A2F68
end
@ 81527F1
lockall
checkgender
compare RESULT, 0
- jumpeq LittlerootTown_BrendansHouse_2F_EventScript_15280A
+ goto_if_eq LittlerootTown_BrendansHouse_2F_EventScript_15280A
compare RESULT, 1
- jumpeq LittlerootTown_BrendansHouse_2F_EventScript_152814
+ goto_if_eq LittlerootTown_BrendansHouse_2F_EventScript_152814
end
LittlerootTown_BrendansHouse_2F_EventScript_15280A:: @ 815280A
@@ -52,9 +52,9 @@ LittlerootTown_BrendansHouse_2F_EventScript_15281E:: @ 815281E
lockall
checkgender
compare RESULT, 0
- jumpeq LittlerootTown_BrendansHouse_2F_EventScript_152837
+ goto_if_eq LittlerootTown_BrendansHouse_2F_EventScript_152837
compare RESULT, 1
- jumpeq LittlerootTown_BrendansHouse_2F_EventScript_15285D
+ goto_if_eq LittlerootTown_BrendansHouse_2F_EventScript_15285D
end
LittlerootTown_BrendansHouse_2F_EventScript_152837:: @ 8152837
diff --git a/data/scripts/maps/LittlerootTown_MaysHouse_1F.inc b/data/scripts/maps/LittlerootTown_MaysHouse_1F.inc
index b70dc0687..1d76bb6dc 100644
--- a/data/scripts/maps/LittlerootTown_MaysHouse_1F.inc
+++ b/data/scripts/maps/LittlerootTown_MaysHouse_1F.inc
@@ -6,9 +6,9 @@ LittlerootTown_MaysHouse_1F_MapScripts:: @ 8152879
LittlerootTown_MaysHouse_1F_MapScript1_152889:: @ 8152889
compare 0x4092, 6
- callif 0, LittlerootTown_MaysHouse_1F_EventScript_15289E
+ call_if 0, LittlerootTown_MaysHouse_1F_EventScript_15289E
checkflag 274
- callif 1, LittlerootTown_MaysHouse_1F_EventScript_1528B1
+ call_if 1, LittlerootTown_MaysHouse_1F_EventScript_1528B1
end
LittlerootTown_MaysHouse_1F_EventScript_15289E:: @ 815289E
@@ -19,7 +19,7 @@ LittlerootTown_MaysHouse_1F_EventScript_15289E:: @ 815289E
LittlerootTown_MaysHouse_1F_EventScript_1528B1:: @ 81528B1
checkgender
compare RESULT, 1
- jumpeq LittlerootTown_MaysHouse_1F_EventScript_1528BE
+ goto_if_eq LittlerootTown_MaysHouse_1F_EventScript_1528BE
return
LittlerootTown_MaysHouse_1F_EventScript_1528BE:: @ 81528BE
@@ -28,11 +28,11 @@ LittlerootTown_MaysHouse_1F_EventScript_1528BE:: @ 81528BE
LittlerootTown_MaysHouse_1F_MapScript1_1528C8:: @ 81528C8
compare 0x4092, 3
- callif 1, LittlerootTown_MaysHouse_1F_EventScript_152902
+ call_if 1, LittlerootTown_MaysHouse_1F_EventScript_152902
compare 0x4092, 5
- callif 1, LittlerootTown_MaysHouse_1F_EventScript_1528EA
+ call_if 1, LittlerootTown_MaysHouse_1F_EventScript_1528EA
compare 0x4092, 6
- callif 1, LittlerootTown_MaysHouse_1F_EventScript_1528F6
+ call_if 1, LittlerootTown_MaysHouse_1F_EventScript_1528F6
end
LittlerootTown_MaysHouse_1F_EventScript_1528EA:: @ 81528EA
@@ -118,9 +118,9 @@ LittlerootTown_MaysHouse_1F_Movement_1529C0:: @ 81529C0
lockall
checkgender
compare RESULT, 0
- callif 1, LittlerootTown_MaysHouse_1F_EventScript_1529E1
+ call_if 1, LittlerootTown_MaysHouse_1F_EventScript_1529E1
compare RESULT, 1
- callif 1, LittlerootTown_MaysHouse_1F_EventScript_1529E2
+ call_if 1, LittlerootTown_MaysHouse_1F_EventScript_1529E2
releaseall
end
@@ -136,11 +136,11 @@ LittlerootTown_MaysHouse_1F_EventScript_1529EB:: @ 81529EB
lock
faceplayer
checkflag 130
- jumpeq LittlerootTown_BrendansHouse_1F_EventScript_152A21
+ goto_if_eq LittlerootTown_BrendansHouse_1F_EventScript_152A21
checkflag 301
- jumpeq LittlerootTown_BrendansHouse_1F_EventScript_152A17
+ goto_if_eq LittlerootTown_BrendansHouse_1F_EventScript_152A17
compare 0x408d, 3
- jumpeq LittlerootTown_BrendansHouse_1F_EventScript_152A2B
+ goto_if_eq LittlerootTown_BrendansHouse_1F_EventScript_152A2B
special GetRivalSonDaughterString
msgbox LittlerootTown_BrendansHouse_1F_Text_1731C6, 4
release
diff --git a/data/scripts/maps/LittlerootTown_MaysHouse_2F.inc b/data/scripts/maps/LittlerootTown_MaysHouse_2F.inc
index 85a41caff..a0dda8b70 100644
--- a/data/scripts/maps/LittlerootTown_MaysHouse_2F.inc
+++ b/data/scripts/maps/LittlerootTown_MaysHouse_2F.inc
@@ -5,9 +5,9 @@ LittlerootTown_MaysHouse_2F_MapScripts:: @ 8152A50
LittlerootTown_MaysHouse_2F_MapScript1_152A5B:: @ 8152A5B
checkflag 130
- callif 0, LittlerootTown_MaysHouse_2F_EventScript_152A7A
+ call_if 0, LittlerootTown_MaysHouse_2F_EventScript_152A7A
compare 0x4092, 4
- callif 1, LittlerootTown_MaysHouse_2F_EventScript_1B6950
+ call_if 1, LittlerootTown_MaysHouse_2F_EventScript_1B6950
call LittlerootTown_MaysHouse_2F_EventScript_1A2F3D
setvar 0x4089, 0
end
@@ -24,19 +24,19 @@ LittlerootTown_MaysHouse_2F_MapScript2_152A86:: @ 8152A86
LittlerootTown_MaysHouse_2F_EventScript_152A90:: @ 8152A90
checkgender
compare RESULT, 1
- jumpeq LittlerootTown_MaysHouse_2F_EventScript_1A2F68
+ goto_if_eq LittlerootTown_MaysHouse_2F_EventScript_1A2F68
end
LittlerootTown_BrendansHouse_2F_EventScript_152A9D:: @ 8152A9D
LittlerootTown_MaysHouse_2F_EventScript_152A9D:: @ 8152A9D
lockall
checkflag 292
- jumpeq LittlerootTown_BrendansHouse_2F_EventScript_152BB5
+ goto_if_eq LittlerootTown_BrendansHouse_2F_EventScript_152BB5
checkgender
compare RESULT, 0
- callif 1, LittlerootTown_BrendansHouse_2F_EventScript_152AD4
+ call_if 1, LittlerootTown_BrendansHouse_2F_EventScript_152AD4
compare RESULT, 1
- callif 1, LittlerootTown_BrendansHouse_2F_EventScript_152B4A
+ call_if 1, LittlerootTown_BrendansHouse_2F_EventScript_152B4A
playsfx 9
disappear LAST_TALKED
setvar 0x408d, 3
@@ -58,11 +58,11 @@ LittlerootTown_BrendansHouse_2F_EventScript_152AD4:: @ 8152AD4
msgbox LittlerootTown_BrendansHouse_2F_Text_1733AF, 4
closebutton
compare FACING, 4
- callif 1, LittlerootTown_BrendansHouse_2F_EventScript_152B29
+ call_if 1, LittlerootTown_BrendansHouse_2F_EventScript_152B29
compare FACING, 2
- callif 1, LittlerootTown_BrendansHouse_2F_EventScript_152B34
+ call_if 1, LittlerootTown_BrendansHouse_2F_EventScript_152B34
compare FACING, 3
- callif 1, LittlerootTown_BrendansHouse_2F_EventScript_152B3F
+ call_if 1, LittlerootTown_BrendansHouse_2F_EventScript_152B3F
return
LittlerootTown_BrendansHouse_2F_EventScript_152B29:: @ 8152B29
@@ -92,11 +92,11 @@ LittlerootTown_BrendansHouse_2F_EventScript_152B4A:: @ 8152B4A
msgbox LittlerootTown_BrendansHouse_2F_Text_1735FC, 4
closebutton
compare FACING, 4
- callif 1, LittlerootTown_BrendansHouse_2F_EventScript_152B9F
+ call_if 1, LittlerootTown_BrendansHouse_2F_EventScript_152B9F
compare FACING, 2
- callif 1, LittlerootTown_BrendansHouse_2F_EventScript_152B9F
+ call_if 1, LittlerootTown_BrendansHouse_2F_EventScript_152B9F
compare FACING, 3
- callif 1, LittlerootTown_BrendansHouse_2F_EventScript_152BAA
+ call_if 1, LittlerootTown_BrendansHouse_2F_EventScript_152BAA
return
LittlerootTown_BrendansHouse_2F_EventScript_152B9F:: @ 8152B9F
@@ -114,22 +114,22 @@ LittlerootTown_BrendansHouse_2F_EventScript_152BB5:: @ 8152BB5
waitmove 0
checkgender
compare RESULT, 0
- callif 1, LittlerootTown_BrendansHouse_2F_EventScript_152BDB
+ call_if 1, LittlerootTown_BrendansHouse_2F_EventScript_152BDB
compare RESULT, 1
- callif 1, LittlerootTown_BrendansHouse_2F_EventScript_152BED
+ call_if 1, LittlerootTown_BrendansHouse_2F_EventScript_152BED
setflag 293
releaseall
end
LittlerootTown_BrendansHouse_2F_EventScript_152BDB:: @ 8152BDB
checkflag 293
- jumpeq LittlerootTown_BrendansHouse_2F_EventScript_152BFF
+ goto_if_eq LittlerootTown_BrendansHouse_2F_EventScript_152BFF
msgbox LittlerootTown_BrendansHouse_2F_Text_1737AE, 4
return
LittlerootTown_BrendansHouse_2F_EventScript_152BED:: @ 8152BED
checkflag 293
- jumpeq LittlerootTown_BrendansHouse_2F_EventScript_152C08
+ goto_if_eq LittlerootTown_BrendansHouse_2F_EventScript_152C08
msgbox LittlerootTown_BrendansHouse_2F_Text_1738F2, 4
return
@@ -195,9 +195,9 @@ LittlerootTown_MaysHouse_2F_EventScript_152C39:: @ 8152C39
lockall
checkgender
compare RESULT, 0
- jumpeq LittlerootTown_MaysHouse_2F_EventScript_152C52
+ goto_if_eq LittlerootTown_MaysHouse_2F_EventScript_152C52
compare RESULT, 1
- jumpeq LittlerootTown_MaysHouse_2F_EventScript_152C5C
+ goto_if_eq LittlerootTown_MaysHouse_2F_EventScript_152C5C
end
LittlerootTown_MaysHouse_2F_EventScript_152C52:: @ 8152C52
diff --git a/data/scripts/maps/LittlerootTown_ProfessorBirchsLab.inc b/data/scripts/maps/LittlerootTown_ProfessorBirchsLab.inc
index 80148ce08..bd846b4fe 100644
--- a/data/scripts/maps/LittlerootTown_ProfessorBirchsLab.inc
+++ b/data/scripts/maps/LittlerootTown_ProfessorBirchsLab.inc
@@ -31,9 +31,9 @@ LittlerootTown_ProfessorBirchsLab_EventScript_152CBE:: @ 8152CBE
waitfanfare
msgbox LittlerootTown_ProfessorBirchsLab_Text_173EF8, 5
compare RESULT, 1
- jumpeq LittlerootTown_ProfessorBirchsLab_EventScript_152CEA
+ goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_152CEA
compare RESULT, 0
- jumpeq LittlerootTown_ProfessorBirchsLab_EventScript_152CFA
+ goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_152CFA
end
LittlerootTown_ProfessorBirchsLab_EventScript_152CEA:: @ 8152CEA
@@ -45,9 +45,9 @@ LittlerootTown_ProfessorBirchsLab_EventScript_152CEA:: @ 8152CEA
LittlerootTown_ProfessorBirchsLab_EventScript_152CFA:: @ 8152CFA
msgbox LittlerootTown_ProfessorBirchsLab_Text_173F3D, 5
compare RESULT, 1
- jumpeq LittlerootTown_ProfessorBirchsLab_EventScript_152D19
+ goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_152D19
compare RESULT, 0
- jumpeq LittlerootTown_ProfessorBirchsLab_EventScript_152D2B
+ goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_152D2B
end
LittlerootTown_ProfessorBirchsLab_EventScript_152D19:: @ 8152D19
@@ -60,9 +60,9 @@ LittlerootTown_ProfessorBirchsLab_EventScript_152D19:: @ 8152D19
LittlerootTown_ProfessorBirchsLab_EventScript_152D2B:: @ 8152D2B
msgbox LittlerootTown_ProfessorBirchsLab_Text_174075, 5
compare RESULT, 1
- jumpeq LittlerootTown_ProfessorBirchsLab_EventScript_152D19
+ goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_152D19
compare RESULT, 0
- jumpeq LittlerootTown_ProfessorBirchsLab_EventScript_152D2B
+ goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_152D2B
end
LittlerootTown_ProfessorBirchsLab_EventScript_152D4A:: @ 8152D4A
@@ -86,9 +86,9 @@ LittlerootTown_ProfessorBirchsLab_EventScript_152D63:: @ 8152D63
lock
faceplayer
compare 0x4084, 3
- jumpif 4, LittlerootTown_ProfessorBirchsLab_EventScript_152D90
+ goto_if 4, LittlerootTown_ProfessorBirchsLab_EventScript_152D90
checkflag 88
- jumpeq LittlerootTown_ProfessorBirchsLab_EventScript_152D86
+ goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_152D86
msgbox LittlerootTown_ProfessorBirchsLab_Text_173B29, 4
setflag 88
release
@@ -108,9 +108,9 @@ LittlerootTown_ProfessorBirchsLab_EventScript_152D9A:: @ 8152D9A
lock
faceplayer
checkflag 896
- jumpif 0, LittlerootTown_ProfessorBirchsLab_EventScript_1A037F
+ goto_if 0, LittlerootTown_ProfessorBirchsLab_EventScript_1A037F
compare 0x4084, 5
- jumpeq LittlerootTown_ProfessorBirchsLab_EventScript_152E7B
+ goto_if_eq LittlerootTown_ProfessorBirchsLab_EventScript_152E7B
msgbox LittlerootTown_ProfessorBirchsLab_Text_1740B4, 4
release
end
@@ -125,9 +125,9 @@ LittlerootTown_ProfessorBirchsLab_EventScript_152DBA:: @ 8152DBA
waitmove 0
checkgender
compare RESULT, 0
- callif 1, LittlerootTown_ProfessorBirchsLab_EventScript_152E13
+ call_if 1, LittlerootTown_ProfessorBirchsLab_EventScript_152E13
compare RESULT, 1
- callif 1, LittlerootTown_ProfessorBirchsLab_EventScript_152E40
+ call_if 1, LittlerootTown_ProfessorBirchsLab_EventScript_152E40
setvar 0x4084, 5
setflag 116
setvar 0x4051, 1
@@ -140,7 +140,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_152E13:: @ 8152E13
msgbox LittlerootTown_ProfessorBirchsLab_Text_1743D4, 4
giveitem ITEM_POKE_BALL, 5
compare RESULT, 0
- callif 1, LittlerootTown_ProfessorBirchsLab_EventScript_152E85
+ call_if 1, LittlerootTown_ProfessorBirchsLab_EventScript_152E85
msgbox LittlerootTown_ProfessorBirchsLab_Text_17443D, 4
setvar RESULT, 0
return
@@ -149,7 +149,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_152E40:: @ 8152E40
msgbox LittlerootTown_ProfessorBirchsLab_Text_17453C, 4
giveitem ITEM_POKE_BALL, 5
compare RESULT, 0
- callif 1, LittlerootTown_ProfessorBirchsLab_EventScript_152E8E
+ call_if 1, LittlerootTown_ProfessorBirchsLab_EventScript_152E8E
msgbox LittlerootTown_ProfessorBirchsLab_Text_17458C, 4
setvar RESULT, 1
return
@@ -189,9 +189,9 @@ LittlerootTown_ProfessorBirchsLab_EventScript_152EA3:: @ 8152EA3
faceplayer
checkgender
compare RESULT, 0
- callif 1, LittlerootTown_ProfessorBirchsLab_EventScript_152EBE
+ call_if 1, LittlerootTown_ProfessorBirchsLab_EventScript_152EBE
compare RESULT, 1
- callif 1, LittlerootTown_ProfessorBirchsLab_EventScript_152EC7
+ call_if 1, LittlerootTown_ProfessorBirchsLab_EventScript_152EC7
release
end
diff --git a/data/scripts/maps/MagmaHideout_B1F.inc b/data/scripts/maps/MagmaHideout_B1F.inc
index 0304181fb..63364c6e5 100644
--- a/data/scripts/maps/MagmaHideout_B1F.inc
+++ b/data/scripts/maps/MagmaHideout_B1F.inc
@@ -4,7 +4,7 @@ MagmaHideout_B1F_MapScripts:: @ 815F2A8
MagmaHideout_B1F_MapScript1_15F2AE:: @ 815F2AE
checkflag 2145
- callif 1, MagmaHideout_B1F_EventScript_15F2B8
+ call_if 1, MagmaHideout_B1F_EventScript_15F2B8
end
MagmaHideout_B1F_EventScript_15F2B8:: @ 815F2B8
diff --git a/data/scripts/maps/MauvilleCity.inc b/data/scripts/maps/MauvilleCity.inc
index 78d1961e5..cae65f41e 100644
--- a/data/scripts/maps/MauvilleCity.inc
+++ b/data/scripts/maps/MauvilleCity.inc
@@ -9,7 +9,7 @@ MauvilleCity_MapScript1_14C038:: @ 814C038
clearflag 99
setvar 0x4093, 0
checkflag 209
- callif 1, MauvilleCity_EventScript_14C053
+ call_if 1, MauvilleCity_EventScript_14C053
end
MauvilleCity_EventScript_14C053:: @ 814C053
@@ -53,7 +53,7 @@ MauvilleCity_EventScript_14C0A2:: @ 814C0A2
lock
faceplayer
checkflag 98
- jumpeq MauvilleCity_EventScript_14C0BA
+ goto_if_eq MauvilleCity_EventScript_14C0BA
msgbox MauvilleCity_Text_16674A, 4
setflag 98
release
@@ -68,7 +68,7 @@ MauvilleCity_EventScript_14C0C4:: @ 814C0C4
lock
faceplayer
checkflag 284
- jumpeq MauvilleCity_EventScript_14C0E4
+ goto_if_eq MauvilleCity_EventScript_14C0E4
msgbox MauvilleCity_Text_165B76, 4
closebutton
move 7, MauvilleCity_Movement_1A083D
@@ -87,7 +87,7 @@ MauvilleCity_EventScript_14C0E4:: @ 814C0E4
MauvilleCity_EventScript_14C0F9:: @ 814C0F9
lockall
checkflag 284
- jumpeq MauvilleCity_EventScript_14C292
+ goto_if_eq MauvilleCity_EventScript_14C292
move 6, MauvilleCity_Movement_1A0843
waitmove 0
msgbox MauvilleCity_Text_165BE3, 4
@@ -106,9 +106,9 @@ MauvilleCity_EventScript_14C0F9:: @ 814C0F9
MauvilleCity_EventScript_14C154:: @ 814C154
compare RESULT, 1
- callif 1, MauvilleCity_EventScript_14C23C
+ call_if 1, MauvilleCity_EventScript_14C23C
compare RESULT, 0
- jumpeq MauvilleCity_EventScript_14C285
+ goto_if_eq MauvilleCity_EventScript_14C285
closebutton
switch FACING
case 2, MauvilleCity_EventScript_14C187
@@ -285,11 +285,11 @@ MauvilleCity_EventScript_14C2F2:: @ 814C2F2
lock
faceplayer
checkflag 209
- jumpeq MauvilleCity_EventScript_14C368
+ goto_if_eq MauvilleCity_EventScript_14C368
compare 0x40ba, 2
- jumpeq MauvilleCity_EventScript_14C33C
+ goto_if_eq MauvilleCity_EventScript_14C33C
checkflag 208
- jumpeq MauvilleCity_EventScript_14C332
+ goto_if_eq MauvilleCity_EventScript_14C332
msgbox MauvilleCity_Text_1661C1, 4
giveitem ITEM_BASEMENT_KEY
setflag 208
@@ -306,7 +306,7 @@ MauvilleCity_EventScript_14C33C:: @ 814C33C
msgbox MauvilleCity_Text_1663EB, 4
giveitem ITEM_TM24
compare RESULT, 0
- jumpeq MauvilleCity_EventScript_1A029B
+ goto_if_eq MauvilleCity_EventScript_1A029B
setflag 209
msgbox MauvilleCity_Text_166488, 4
release
diff --git a/data/scripts/maps/MauvilleCity_BikeShop.inc b/data/scripts/maps/MauvilleCity_BikeShop.inc
index e0faf85a0..0b577885e 100644
--- a/data/scripts/maps/MauvilleCity_BikeShop.inc
+++ b/data/scripts/maps/MauvilleCity_BikeShop.inc
@@ -5,23 +5,23 @@ MauvilleCity_BikeShop_EventScript_156796:: @ 8156796
lock
faceplayer
checkflag 90
- jumpeq MauvilleCity_BikeShop_EventScript_15686E
+ goto_if_eq MauvilleCity_BikeShop_EventScript_15686E
checkflag 89
- jumpeq MauvilleCity_BikeShop_EventScript_1567D1
+ goto_if_eq MauvilleCity_BikeShop_EventScript_1567D1
msgbox MauvilleCity_BikeShop_Text_180F9F, 4
msgbox MauvilleCity_BikeShop_Text_181016, 5
compare RESULT, 1
- jumpeq MauvilleCity_BikeShop_EventScript_156824
+ goto_if_eq MauvilleCity_BikeShop_EventScript_156824
compare RESULT, 0
- jumpeq MauvilleCity_BikeShop_EventScript_156817
+ goto_if_eq MauvilleCity_BikeShop_EventScript_156817
end
MauvilleCity_BikeShop_EventScript_1567D1:: @ 81567D1
msgbox MauvilleCity_BikeShop_Text_181016, 5
compare RESULT, 1
- jumpeq MauvilleCity_BikeShop_EventScript_156824
+ goto_if_eq MauvilleCity_BikeShop_EventScript_156824
compare RESULT, 0
- jumpeq MauvilleCity_BikeShop_EventScript_156817
+ goto_if_eq MauvilleCity_BikeShop_EventScript_156817
end
MauvilleCity_BikeShop_EventScript_1567F0:: @ 81567F0
@@ -65,19 +65,19 @@ MauvilleCity_BikeShop_EventScript_156861:: @ 8156861
MauvilleCity_BikeShop_EventScript_15686E:: @ 815686E
msgbox MauvilleCity_BikeShop_Text_1813A0, 5
compare RESULT, 1
- jumpeq MauvilleCity_BikeShop_EventScript_15688D
+ goto_if_eq MauvilleCity_BikeShop_EventScript_15688D
compare RESULT, 0
- jumpeq MauvilleCity_BikeShop_EventScript_1568BF
+ goto_if_eq MauvilleCity_BikeShop_EventScript_1568BF
end
MauvilleCity_BikeShop_EventScript_15688D:: @ 815688D
msgbox MauvilleCity_BikeShop_Text_1813D4, 4
checkitem ITEM_ACRO_BIKE, 1
compare RESULT, 1
- jumpeq MauvilleCity_BikeShop_EventScript_1568C9
+ goto_if_eq MauvilleCity_BikeShop_EventScript_1568C9
checkitem ITEM_MACH_BIKE, 1
compare RESULT, 1
- jumpeq MauvilleCity_BikeShop_EventScript_1568EA
+ goto_if_eq MauvilleCity_BikeShop_EventScript_1568EA
msgbox MauvilleCity_BikeShop_Text_181498, 4
release
end
diff --git a/data/scripts/maps/MauvilleCity_GameCorner.inc b/data/scripts/maps/MauvilleCity_GameCorner.inc
index fa5b58885..db6223400 100644
--- a/data/scripts/maps/MauvilleCity_GameCorner.inc
+++ b/data/scripts/maps/MauvilleCity_GameCorner.inc
@@ -7,7 +7,7 @@ MauvilleCity_GameCorner_EventScript_156A34:: @ 8156A34
msgbox MauvilleCity_GameCorner_Text_181C35, 4
checkitem ITEM_COIN_CASE, 1
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_156B32
+ goto_if_eq MauvilleCity_GameCorner_EventScript_156B32
message MauvilleCity_GameCorner_Text_181CB4
waittext
showmoney 0, 0
@@ -34,10 +34,10 @@ MauvilleCity_GameCorner_EventScript_156A60:: @ 8156A60
MauvilleCity_GameCorner_EventScript_156AAE:: @ 8156AAE
checkcoins 16385
compare 0x4001, 9950
- jumpif 4, MauvilleCity_GameCorner_EventScript_156B5C
+ goto_if 4, MauvilleCity_GameCorner_EventScript_156B5C
checkmoney 0x3e8, 0
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_156B3C
+ goto_if_eq MauvilleCity_GameCorner_EventScript_156B3C
givecoins 50
paymoney 0x3e8, 0
updatemoney 0, 0
@@ -53,10 +53,10 @@ MauvilleCity_GameCorner_EventScript_156AAE:: @ 8156AAE
MauvilleCity_GameCorner_EventScript_156AF0:: @ 8156AF0
checkcoins 16385
compare 0x4001, 9500
- jumpif 4, MauvilleCity_GameCorner_EventScript_156B5C
+ goto_if 4, MauvilleCity_GameCorner_EventScript_156B5C
checkmoney 0x2710, 0
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_156B3C
+ goto_if_eq MauvilleCity_GameCorner_EventScript_156B3C
givecoins 500
paymoney 0x2710, 0
updatemoney 0, 0
@@ -101,7 +101,7 @@ MauvilleCity_GameCorner_EventScript_156B6C:: @ 8156B6C
msgbox MauvilleCity_GameCorner_Text_181DE1, 4
checkitem ITEM_COIN_CASE, 1
compare RESULT, 1
- jumpeq MauvilleCity_GameCorner_EventScript_156B88
+ goto_if_eq MauvilleCity_GameCorner_EventScript_156B88
release
end
@@ -145,7 +145,7 @@ MauvilleCity_GameCorner_EventScript_156BFE:: @ 8156BFE
MauvilleCity_GameCorner_EventScript_156C0C:: @ 8156C0C
msgbox MauvilleCity_GameCorner_Text_181E33, 5
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_156D0D
+ goto_if_eq MauvilleCity_GameCorner_EventScript_156D0D
switch 0x4001
case 1, MauvilleCity_GameCorner_EventScript_156C46
case 2, MauvilleCity_GameCorner_EventScript_156C80
@@ -155,11 +155,11 @@ MauvilleCity_GameCorner_EventScript_156C0C:: @ 8156C0C
MauvilleCity_GameCorner_EventScript_156C46:: @ 8156C46
checkcoins 16386
compare 0x4002, 1000
- jumpif 0, MauvilleCity_GameCorner_EventScript_156CF4
+ goto_if 0, MauvilleCity_GameCorner_EventScript_156CF4
bufferdecor 1, 88
checkdecor 88
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_156D02
+ goto_if_eq MauvilleCity_GameCorner_EventScript_156D02
removecoins 1000
adddecor 88
updatecoins 0, 0
@@ -171,11 +171,11 @@ MauvilleCity_GameCorner_EventScript_156C46:: @ 8156C46
MauvilleCity_GameCorner_EventScript_156C80:: @ 8156C80
checkcoins 16386
compare 0x4002, 1000
- jumpif 0, MauvilleCity_GameCorner_EventScript_156CF4
+ goto_if 0, MauvilleCity_GameCorner_EventScript_156CF4
bufferdecor 1, 89
checkdecor 89
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_156D02
+ goto_if_eq MauvilleCity_GameCorner_EventScript_156D02
removecoins 1000
adddecor 89
updatecoins 0, 0
@@ -187,11 +187,11 @@ MauvilleCity_GameCorner_EventScript_156C80:: @ 8156C80
MauvilleCity_GameCorner_EventScript_156CBA:: @ 8156CBA
checkcoins 16386
compare 0x4002, 1000
- jumpif 0, MauvilleCity_GameCorner_EventScript_156CF4
+ goto_if 0, MauvilleCity_GameCorner_EventScript_156CF4
bufferdecor 1, 90
checkdecor 90
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_156D02
+ goto_if_eq MauvilleCity_GameCorner_EventScript_156D02
removecoins 1000
adddecor 90
updatecoins 0, 0
@@ -222,7 +222,7 @@ MauvilleCity_GameCorner_EventScript_156D1A:: @ 8156D1A
msgbox MauvilleCity_GameCorner_Text_181DE1, 4
checkitem ITEM_COIN_CASE, 1
compare RESULT, 1
- jumpeq MauvilleCity_GameCorner_EventScript_156D36
+ goto_if_eq MauvilleCity_GameCorner_EventScript_156D36
release
end
@@ -278,7 +278,7 @@ MauvilleCity_GameCorner_EventScript_156DDE:: @ 8156DDE
MauvilleCity_GameCorner_EventScript_156DEC:: @ 8156DEC
msgbox MauvilleCity_GameCorner_Text_181E33, 5
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_156F77
+ goto_if_eq MauvilleCity_GameCorner_EventScript_156F77
switch 0x4001
case 1, MauvilleCity_GameCorner_EventScript_156E3C
case 2, MauvilleCity_GameCorner_EventScript_156E76
@@ -290,10 +290,10 @@ MauvilleCity_GameCorner_EventScript_156DEC:: @ 8156DEC
MauvilleCity_GameCorner_EventScript_156E3C:: @ 8156E3C
checkcoins 16386
compare 0x4002, 1500
- jumpif 0, MauvilleCity_GameCorner_EventScript_156F5E
+ goto_if 0, MauvilleCity_GameCorner_EventScript_156F5E
checkitemspace ITEM_TM32, 1
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_156F6C
+ goto_if_eq MauvilleCity_GameCorner_EventScript_156F6C
removecoins 1500
additem ITEM_TM32, 1
updatecoins 0, 0
@@ -305,10 +305,10 @@ MauvilleCity_GameCorner_EventScript_156E3C:: @ 8156E3C
MauvilleCity_GameCorner_EventScript_156E76:: @ 8156E76
checkcoins 16386
compare 0x4002, 3500
- jumpif 0, MauvilleCity_GameCorner_EventScript_156F5E
+ goto_if 0, MauvilleCity_GameCorner_EventScript_156F5E
checkitemspace ITEM_TM29, 1
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_156F6C
+ goto_if_eq MauvilleCity_GameCorner_EventScript_156F6C
removecoins 3500
additem ITEM_TM29, 1
updatecoins 0, 0
@@ -320,10 +320,10 @@ MauvilleCity_GameCorner_EventScript_156E76:: @ 8156E76
MauvilleCity_GameCorner_EventScript_156EB0:: @ 8156EB0
checkcoins 16386
compare 0x4002, 4000
- jumpif 0, MauvilleCity_GameCorner_EventScript_156F5E
+ goto_if 0, MauvilleCity_GameCorner_EventScript_156F5E
checkitemspace ITEM_TM35, 1
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_156F6C
+ goto_if_eq MauvilleCity_GameCorner_EventScript_156F6C
removecoins 4000
additem ITEM_TM35, 1
updatecoins 0, 0
@@ -335,10 +335,10 @@ MauvilleCity_GameCorner_EventScript_156EB0:: @ 8156EB0
MauvilleCity_GameCorner_EventScript_156EEA:: @ 8156EEA
checkcoins 16386
compare 0x4002, 4000
- jumpif 0, MauvilleCity_GameCorner_EventScript_156F5E
+ goto_if 0, MauvilleCity_GameCorner_EventScript_156F5E
checkitemspace ITEM_TM24, 1
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_156F6C
+ goto_if_eq MauvilleCity_GameCorner_EventScript_156F6C
removecoins 4000
additem ITEM_TM24, 1
updatecoins 0, 0
@@ -350,10 +350,10 @@ MauvilleCity_GameCorner_EventScript_156EEA:: @ 8156EEA
MauvilleCity_GameCorner_EventScript_156F24:: @ 8156F24
checkcoins 16386
compare 0x4002, 4000
- jumpif 0, MauvilleCity_GameCorner_EventScript_156F5E
+ goto_if 0, MauvilleCity_GameCorner_EventScript_156F5E
checkitemspace ITEM_TM13, 1
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_156F6C
+ goto_if_eq MauvilleCity_GameCorner_EventScript_156F6C
removecoins 4000
additem ITEM_TM13, 1
updatecoins 0, 0
@@ -390,10 +390,10 @@ MauvilleCity_GameCorner_EventScript_156F96:: @ 8156F96
lock
faceplayer
checkflag 226
- jumpeq MauvilleCity_GameCorner_EventScript_157072
+ goto_if_eq MauvilleCity_GameCorner_EventScript_157072
msgbox MauvilleCity_GameCorner_Text_181F3D, 5
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_157068
+ goto_if_eq MauvilleCity_GameCorner_EventScript_157068
switch 0x4023
case 0, MauvilleCity_GameCorner_EventScript_156FDB
case 1, MauvilleCity_GameCorner_EventScript_157005
@@ -404,7 +404,7 @@ MauvilleCity_GameCorner_EventScript_156FDB:: @ 8156FDB
bufferdecor 1, 88
checkdecor 88
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_157059
+ goto_if_eq MauvilleCity_GameCorner_EventScript_157059
msgbox MauvilleCity_GameCorner_Text_181F89, 4
givedecoration 88
setflag 226
@@ -415,7 +415,7 @@ MauvilleCity_GameCorner_EventScript_157005:: @ 8157005
bufferdecor 1, 89
checkdecor 89
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_157059
+ goto_if_eq MauvilleCity_GameCorner_EventScript_157059
msgbox MauvilleCity_GameCorner_Text_181F89, 4
givedecoration 89
setflag 226
@@ -426,7 +426,7 @@ MauvilleCity_GameCorner_EventScript_15702F:: @ 815702F
bufferdecor 1, 90
checkdecor 90
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_157059
+ goto_if_eq MauvilleCity_GameCorner_EventScript_157059
msgbox MauvilleCity_GameCorner_Text_181F89, 4
givedecoration 90
setflag 226
@@ -454,17 +454,17 @@ MauvilleCity_GameCorner_EventScript_15707C:: @ 815707C
faceplayer
checkitem ITEM_COIN_CASE, 1
compare RESULT, 1
- jumpeq MauvilleCity_GameCorner_EventScript_15709C
+ goto_if_eq MauvilleCity_GameCorner_EventScript_15709C
msgbox MauvilleCity_GameCorner_Text_18201E, 4
goto MauvilleCity_GameCorner_EventScript_157108
end
MauvilleCity_GameCorner_EventScript_15709C:: @ 815709C
checkflag 225
- jumpeq MauvilleCity_GameCorner_EventScript_1570CA
+ goto_if_eq MauvilleCity_GameCorner_EventScript_1570CA
checkcoins 16385
compare 0x4001, 1
- jumpif 4, MauvilleCity_GameCorner_EventScript_1570CA
+ goto_if 4, MauvilleCity_GameCorner_EventScript_1570CA
setflag 225
givecoins 20
msgbox MauvilleCity_GameCorner_Text_18208E, 4
@@ -523,7 +523,7 @@ MauvilleCity_GameCorner_EventScript_157135:: @ 8157135
lockall
checkitem ITEM_COIN_CASE, 1
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_1572B5
+ goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
setvar 0x8004, 0
specialval RESULT, sub_810F424
pokecasino RESULT
@@ -534,7 +534,7 @@ MauvilleCity_GameCorner_EventScript_157155:: @ 8157155
lockall
checkitem ITEM_COIN_CASE, 1
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_1572B5
+ goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
setvar 0x8004, 1
specialval RESULT, sub_810F424
pokecasino RESULT
@@ -545,7 +545,7 @@ MauvilleCity_GameCorner_EventScript_157175:: @ 8157175
lockall
checkitem ITEM_COIN_CASE, 1
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_1572B5
+ goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
setvar 0x8004, 2
specialval RESULT, sub_810F424
pokecasino RESULT
@@ -556,7 +556,7 @@ MauvilleCity_GameCorner_EventScript_157195:: @ 8157195
lockall
checkitem ITEM_COIN_CASE, 1
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_1572B5
+ goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
setvar 0x8004, 3
specialval RESULT, sub_810F424
pokecasino RESULT
@@ -567,7 +567,7 @@ MauvilleCity_GameCorner_EventScript_1571B5:: @ 81571B5
lockall
checkitem ITEM_COIN_CASE, 1
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_1572B5
+ goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
setvar 0x8004, 4
specialval RESULT, sub_810F424
pokecasino RESULT
@@ -578,7 +578,7 @@ MauvilleCity_GameCorner_EventScript_1571D5:: @ 81571D5
lockall
checkitem ITEM_COIN_CASE, 1
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_1572B5
+ goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
setvar 0x8004, 5
specialval RESULT, sub_810F424
pokecasino RESULT
@@ -589,7 +589,7 @@ MauvilleCity_GameCorner_EventScript_1571F5:: @ 81571F5
lockall
checkitem ITEM_COIN_CASE, 1
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_1572B5
+ goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
setvar 0x8004, 6
specialval RESULT, sub_810F424
pokecasino RESULT
@@ -600,7 +600,7 @@ MauvilleCity_GameCorner_EventScript_157215:: @ 8157215
lockall
checkitem ITEM_COIN_CASE, 1
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_1572B5
+ goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
setvar 0x8004, 7
specialval RESULT, sub_810F424
pokecasino RESULT
@@ -611,7 +611,7 @@ MauvilleCity_GameCorner_EventScript_157235:: @ 8157235
lockall
checkitem ITEM_COIN_CASE, 1
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_1572B5
+ goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
setvar 0x8004, 8
specialval RESULT, sub_810F424
pokecasino RESULT
@@ -622,7 +622,7 @@ MauvilleCity_GameCorner_EventScript_157255:: @ 8157255
lockall
checkitem ITEM_COIN_CASE, 1
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_1572B5
+ goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
setvar 0x8004, 9
specialval RESULT, sub_810F424
pokecasino RESULT
@@ -633,7 +633,7 @@ MauvilleCity_GameCorner_EventScript_157275:: @ 8157275
lockall
checkitem ITEM_COIN_CASE, 1
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_1572B5
+ goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
setvar 0x8004, 10
specialval RESULT, sub_810F424
pokecasino RESULT
@@ -644,7 +644,7 @@ MauvilleCity_GameCorner_EventScript_157295:: @ 8157295
lockall
checkitem ITEM_COIN_CASE, 1
compare RESULT, 0
- jumpeq MauvilleCity_GameCorner_EventScript_1572B5
+ goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
setvar 0x8004, 11
specialval RESULT, sub_810F424
pokecasino RESULT
diff --git a/data/scripts/maps/MauvilleCity_Gym.inc b/data/scripts/maps/MauvilleCity_Gym.inc
index 75136dcef..80a33ffb0 100644
--- a/data/scripts/maps/MauvilleCity_Gym.inc
+++ b/data/scripts/maps/MauvilleCity_Gym.inc
@@ -4,7 +4,7 @@ MauvilleCity_Gym_MapScripts:: @ 8156450
MauvilleCity_Gym_MapScript1_156456:: @ 8156456
checkflag 1208
- jumpeq MauvilleCity_Gym_EventScript_1565A7
+ goto_if_eq MauvilleCity_Gym_EventScript_1565A7
switch 0x4093
case 0, MauvilleCity_Gym_EventScript_156491
case 1, MauvilleCity_Gym_EventScript_15657D
@@ -14,7 +14,7 @@ MauvilleCity_Gym_MapScript1_156456:: @ 8156456
MauvilleCity_Gym_EventScript_156491:: @ 8156491
checkflag 99
- jumpeq MauvilleCity_Gym_EventScript_15649B
+ goto_if_eq MauvilleCity_Gym_EventScript_15649B
end
MauvilleCity_Gym_EventScript_15649B:: @ 815649B
@@ -70,9 +70,9 @@ MauvilleCity_Gym_EventScript_1565A7:: @ 81565A7
MauvilleCity_Gym_EventScript_1565AB:: @ 81565AB
trainerbattle 1, OPPONENT_WATTSON, 0, MauvilleCity_Gym_Text_180C32, MauvilleCity_Gym_Text_180D64, MauvilleCity_Gym_EventScript_1565DB
checkflag 167
- jumpif 0, MauvilleCity_Gym_EventScript_15661D
+ goto_if 0, MauvilleCity_Gym_EventScript_15661D
compare 0x40ba, 2
- jumpeq MauvilleCity_Gym_EventScript_156641
+ goto_if_eq MauvilleCity_Gym_EventScript_156641
msgbox MauvilleCity_Gym_Text_180EDB, 4
release
end
@@ -86,7 +86,7 @@ MauvilleCity_Gym_EventScript_1565DB:: @ 81565DB
setflag 2057
addvar 0x4085, 1
compare 0x4085, 6
- callif 1, MauvilleCity_Gym_EventScript_1A00FB
+ call_if 1, MauvilleCity_Gym_EventScript_1A00FB
setvar 0x8008, 3
call MauvilleCity_Gym_EventScript_1A01C0
special MauvilleGymSpecial3
@@ -98,7 +98,7 @@ MauvilleCity_Gym_EventScript_1565DB:: @ 81565DB
MauvilleCity_Gym_EventScript_15661D:: @ 815661D
giveitem ITEM_TM34
compare RESULT, 0
- jumpeq MauvilleCity_Gym_EventScript_1A029B
+ goto_if_eq MauvilleCity_Gym_EventScript_1A029B
msgbox MauvilleCity_Gym_Text_180E76, 4
setflag 167
release
@@ -112,9 +112,9 @@ MauvilleCity_Gym_EventScript_156641:: @ 8156641
MauvilleCity_Gym_EventScript_15664B:: @ 815664B
lockall
checkflag 1208
- jumpeq MauvilleCity_Gym_EventScript_1566DA
+ goto_if_eq MauvilleCity_Gym_EventScript_1566DA
compare 0x4093, 1
- jumpeq MauvilleCity_Gym_EventScript_1566DA
+ goto_if_eq MauvilleCity_Gym_EventScript_1566DA
setvar 0x4093, 1
setvar 0x8004, 0
goto MauvilleCity_Gym_EventScript_1566BA
@@ -123,9 +123,9 @@ MauvilleCity_Gym_EventScript_15664B:: @ 815664B
MauvilleCity_Gym_EventScript_156670:: @ 8156670
lockall
checkflag 1208
- jumpeq MauvilleCity_Gym_EventScript_1566DA
+ goto_if_eq MauvilleCity_Gym_EventScript_1566DA
compare 0x4093, 2
- jumpeq MauvilleCity_Gym_EventScript_1566DA
+ goto_if_eq MauvilleCity_Gym_EventScript_1566DA
setvar 0x4093, 2
setvar 0x8004, 1
goto MauvilleCity_Gym_EventScript_1566BA
@@ -134,9 +134,9 @@ MauvilleCity_Gym_EventScript_156670:: @ 8156670
MauvilleCity_Gym_EventScript_156695:: @ 8156695
lockall
checkflag 1208
- jumpeq MauvilleCity_Gym_EventScript_1566DA
+ goto_if_eq MauvilleCity_Gym_EventScript_1566DA
compare 0x4093, 3
- jumpeq MauvilleCity_Gym_EventScript_1566DA
+ goto_if_eq MauvilleCity_Gym_EventScript_1566DA
setvar 0x4093, 3
setvar 0x8004, 2
goto MauvilleCity_Gym_EventScript_1566BA
@@ -148,9 +148,9 @@ MauvilleCity_Gym_EventScript_1566BA:: @ 81566BA
special DrawWholeMapView
playsfx 44
checkflag 99
- jumpeq MauvilleCity_Gym_EventScript_1566E1
+ goto_if_eq MauvilleCity_Gym_EventScript_1566E1
checkflag 99
- jumpif 0, MauvilleCity_Gym_EventScript_1566DC
+ goto_if 0, MauvilleCity_Gym_EventScript_1566DC
releaseall
end
@@ -192,7 +192,7 @@ MauvilleCity_Gym_EventScript_156742:: @ 8156742
lock
faceplayer
checkflag 1208
- jumpeq MauvilleCity_Gym_EventScript_156757
+ goto_if_eq MauvilleCity_Gym_EventScript_156757
msgbox MauvilleCity_Gym_Text_180815, 4
release
end
@@ -205,14 +205,14 @@ MauvilleCity_Gym_EventScript_156757:: @ 8156757
MauvilleCity_Gym_EventScript_156761:: @ 8156761
lockall
checkflag 2057
- jumpeq MauvilleCity_Gym_EventScript_156781
+ goto_if_eq MauvilleCity_Gym_EventScript_156781
goto MauvilleCity_Gym_EventScript_15678B
end
MauvilleCity_Gym_EventScript_156771:: @ 8156771
lockall
checkflag 2057
- jumpeq MauvilleCity_Gym_EventScript_156781
+ goto_if_eq MauvilleCity_Gym_EventScript_156781
goto MauvilleCity_Gym_EventScript_15678B
end
diff --git a/data/scripts/maps/MauvilleCity_House1.inc b/data/scripts/maps/MauvilleCity_House1.inc
index 48ee31be5..e76564847 100644
--- a/data/scripts/maps/MauvilleCity_House1.inc
+++ b/data/scripts/maps/MauvilleCity_House1.inc
@@ -5,7 +5,7 @@ MauvilleCity_House1_EventScript_1569FD:: @ 81569FD
lock
faceplayer
checkflag 107
- jumpeq MauvilleCity_House1_EventScript_156A29
+ goto_if_eq MauvilleCity_House1_EventScript_156A29
msgbox MauvilleCity_House1_Text_181B1A, 4
giveitem ITEM_HM06
setflag 107
diff --git a/data/scripts/maps/MauvilleCity_House2.inc b/data/scripts/maps/MauvilleCity_House2.inc
index edb74f9f9..24236ede6 100644
--- a/data/scripts/maps/MauvilleCity_House2.inc
+++ b/data/scripts/maps/MauvilleCity_House2.inc
@@ -5,11 +5,11 @@ MauvilleCity_House2_EventScript_1572C0:: @ 81572C0
lock
faceplayer
checkflag 258
- jumpeq MauvilleCity_House2_EventScript_15733D
+ goto_if_eq MauvilleCity_House2_EventScript_15733D
msgbox MauvilleCity_House2_Text_18244E, 4
checkitem ITEM_HARBOR_MAIL, 1
compare RESULT, 1
- jumpeq MauvilleCity_House2_EventScript_1572E5
+ goto_if_eq MauvilleCity_House2_EventScript_1572E5
release
end
@@ -21,9 +21,9 @@ MauvilleCity_House2_EventScript_1572E5:: @ 81572E5
waitmove 0
msgbox MauvilleCity_House2_Text_1824D8, 5
compare RESULT, 1
- jumpeq MauvilleCity_House2_EventScript_15731B
+ goto_if_eq MauvilleCity_House2_EventScript_15731B
compare RESULT, 0
- jumpeq MauvilleCity_House2_EventScript_157347
+ goto_if_eq MauvilleCity_House2_EventScript_157347
end
MauvilleCity_House2_EventScript_15731B:: @ 815731B
diff --git a/data/scripts/maps/MeteorFalls_1F_1R.inc b/data/scripts/maps/MeteorFalls_1F_1R.inc
index 3e7155955..d5e1574cc 100644
--- a/data/scripts/maps/MeteorFalls_1F_1R.inc
+++ b/data/scripts/maps/MeteorFalls_1F_1R.inc
@@ -216,7 +216,7 @@ MeteorFalls_1F_1R_EventScript_15C656:: @ 815C656
lock
faceplayer
checkflag 244
- jumpeq MeteorFalls_1F_1R_EventScript_15C66E
+ goto_if_eq MeteorFalls_1F_1R_EventScript_15C66E
setflag 244
msgbox MeteorFalls_1F_1R_Text_1937EB, 4
release
diff --git a/data/scripts/maps/MeteorFalls_1F_2R.inc b/data/scripts/maps/MeteorFalls_1F_2R.inc
index 8e45c34ae..23d814855 100644
--- a/data/scripts/maps/MeteorFalls_1F_2R.inc
+++ b/data/scripts/maps/MeteorFalls_1F_2R.inc
@@ -5,7 +5,7 @@ MeteorFalls_1F_2R_EventScript_15C679:: @ 815C679
trainerbattle 0, OPPONENT_NICOLAS_1, 0, MeteorFalls_1F_2R_Text_1939C5, MeteorFalls_1F_2R_Text_193A35
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq MeteorFalls_1F_2R_EventScript_15C6A0
+ goto_if_eq MeteorFalls_1F_2R_EventScript_15C6A0
msgbox MeteorFalls_1F_2R_Text_193A60, 6
end
@@ -18,7 +18,7 @@ MeteorFalls_1F_2R_EventScript_15C6B7:: @ 815C6B7
trainerbattle 4, OPPONENT_JOHN_AND_JAY_1, 0, MeteorFalls_1F_2R_Text_193BB7, MeteorFalls_1F_2R_Text_193C10, MeteorFalls_1F_2R_Text_193C9F
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq MeteorFalls_1F_2R_EventScript_15C6E2
+ goto_if_eq MeteorFalls_1F_2R_EventScript_15C6E2
msgbox MeteorFalls_1F_2R_Text_193C35, 6
end
@@ -31,7 +31,7 @@ MeteorFalls_1F_2R_EventScript_15C6FD:: @ 815C6FD
trainerbattle 4, OPPONENT_JOHN_AND_JAY_1, 0, MeteorFalls_1F_2R_Text_193D10, MeteorFalls_1F_2R_Text_193D6E, MeteorFalls_1F_2R_Text_193DFB
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq MeteorFalls_1F_2R_EventScript_15C728
+ goto_if_eq MeteorFalls_1F_2R_EventScript_15C728
msgbox MeteorFalls_1F_2R_Text_193D9A, 6
end
diff --git a/data/scripts/maps/MossdeepCity.inc b/data/scripts/maps/MossdeepCity.inc
index ddb317364..d1b8e88b3 100644
--- a/data/scripts/maps/MossdeepCity.inc
+++ b/data/scripts/maps/MossdeepCity.inc
@@ -8,7 +8,7 @@ MossdeepCity_MapScript1_14CF98:: @ 814CF98
clearflag 102
clearflag 103
checkflag 2090
- callif 1, MossdeepCity_EventScript_1A02C1
+ call_if 1, MossdeepCity_EventScript_1A02C1
end
MossdeepCity_EventScript_14CFAE:: @ 814CFAE
@@ -69,14 +69,14 @@ MossdeepCity_EventScript_14D027:: @ 814D027
lock
faceplayer
checkflag 276
- jumpeq MossdeepCity_EventScript_14D069
+ goto_if_eq MossdeepCity_EventScript_14D069
msgbox MossdeepCity_Text_1690A9, 5
compare RESULT, 0
- jumpeq MossdeepCity_EventScript_14D073
+ goto_if_eq MossdeepCity_EventScript_14D073
msgbox MossdeepCity_Text_169117, 4
giveitem ITEM_KINGS_ROCK
compare RESULT, 0
- jumpeq MossdeepCity_EventScript_1A029B
+ goto_if_eq MossdeepCity_EventScript_1A029B
setflag 276
release
end
diff --git a/data/scripts/maps/MossdeepCity_GameCorner_1F.inc b/data/scripts/maps/MossdeepCity_GameCorner_1F.inc
index 59669596a..f644e93cc 100644
--- a/data/scripts/maps/MossdeepCity_GameCorner_1F.inc
+++ b/data/scripts/maps/MossdeepCity_GameCorner_1F.inc
@@ -7,7 +7,7 @@ MossdeepCity_GameCorner_1F_MapScripts:: @ 815AC52
MossdeepCity_GameCorner_1F_MapScript1_15AC62:: @ 815AC62
special sub_813601C
compare RESULT, 1
- callif 1, MossdeepCity_GameCorner_1F_EventScript_15AC71
+ call_if 1, MossdeepCity_GameCorner_1F_EventScript_15AC71
end
MossdeepCity_GameCorner_1F_EventScript_15AC71:: @ 815AC71
@@ -18,9 +18,9 @@ MossdeepCity_GameCorner_1F_EventScript_15AC71:: @ 815AC71
MossdeepCity_GameCorner_1F_MapScript1_15AC84:: @ 815AC84
special sub_813601C
compare RESULT, 0
- callif 1, MossdeepCity_GameCorner_1F_EventScript_15AC9E
+ call_if 1, MossdeepCity_GameCorner_1F_EventScript_15AC9E
compare 0x40c0, 0
- callif 5, MossdeepCity_GameCorner_1F_EventScript_15ACAF
+ call_if 5, MossdeepCity_GameCorner_1F_EventScript_15ACAF
end
MossdeepCity_GameCorner_1F_EventScript_15AC9E:: @ 815AC9E
@@ -50,11 +50,11 @@ MossdeepCity_GameCorner_1F_EventScript_15ACD5:: @ 815ACD5
move 255, MossdeepCity_GameCorner_1F_Movement_1A0841
waitmove 0
compare 0x40c0, 1
- callif 1, MossdeepCity_GameCorner_1F_EventScript_15AD22
+ call_if 1, MossdeepCity_GameCorner_1F_EventScript_15AD22
compare 0x40c0, 2
- callif 1, MossdeepCity_GameCorner_1F_EventScript_15AD2B
+ call_if 1, MossdeepCity_GameCorner_1F_EventScript_15AD2B
compare 0x40c0, 3
- callif 1, MossdeepCity_GameCorner_1F_EventScript_15AD34
+ call_if 1, MossdeepCity_GameCorner_1F_EventScript_15AD34
special LoadPlayerParty
setvar 0x40c0, 0
releaseall
@@ -85,7 +85,7 @@ MossdeepCity_GameCorner_1F_EventScript_15AD42:: @ 815AD42
lock
faceplayer
compare 0x4001, 1
- jumpeq MossdeepCity_GameCorner_1F_EventScript_15AD59
+ goto_if_eq MossdeepCity_GameCorner_1F_EventScript_15AD59
msgbox MossdeepCity_GameCorner_1F_Text_18E59A, 4
release
end
@@ -95,28 +95,28 @@ MossdeepCity_GameCorner_1F_EventScript_15AD59:: @ 815AD59
special sub_810F414
msgbox MossdeepCity_GameCorner_1F_Text_18E650, 5
compare RESULT, 0
- jumpeq MossdeepCity_GameCorner_1F_EventScript_15ADE8
+ goto_if_eq MossdeepCity_GameCorner_1F_EventScript_15ADE8
call MossdeepCity_GameCorner_1F_EventScript_15ADF5
compare RESULT, 0
- jumpeq MossdeepCity_GameCorner_1F_EventScript_15ADE8
+ goto_if_eq MossdeepCity_GameCorner_1F_EventScript_15ADE8
msgbox MossdeepCity_GameCorner_1F_Text_18E741, 5
compare RESULT, 0
- callif 1, MossdeepCity_GameCorner_1F_EventScript_15ADE8
+ call_if 1, MossdeepCity_GameCorner_1F_EventScript_15ADE8
special LoadPlayerParty
call S_DoSaveDialog
compare RESULT, 0
- jumpeq MossdeepCity_GameCorner_1F_EventScript_15ADE8
+ goto_if_eq MossdeepCity_GameCorner_1F_EventScript_15ADE8
hidebox 0, 0, 15, 10
special SavePlayerParty
special ReducePlayerPartyToThree
msgbox MossdeepCity_GameCorner_1F_Text_18E777, 4
closebutton
compare FACING, 2
- callif 1, MossdeepCity_GameCorner_1F_EventScript_15AE04
+ call_if 1, MossdeepCity_GameCorner_1F_EventScript_15AE04
compare FACING, 4
- callif 1, MossdeepCity_GameCorner_1F_EventScript_15AE16
+ call_if 1, MossdeepCity_GameCorner_1F_EventScript_15AE16
compare FACING, 3
- callif 1, MossdeepCity_GameCorner_1F_EventScript_15AE28
+ call_if 1, MossdeepCity_GameCorner_1F_EventScript_15AE28
warp MossdeepCity_GameCorner_B1F, 255, 3, 1
waitstate
release
diff --git a/data/scripts/maps/MossdeepCity_GameCorner_B1F.inc b/data/scripts/maps/MossdeepCity_GameCorner_B1F.inc
index c7d1201fd..77cc96f4d 100644
--- a/data/scripts/maps/MossdeepCity_GameCorner_B1F.inc
+++ b/data/scripts/maps/MossdeepCity_GameCorner_B1F.inc
@@ -23,11 +23,11 @@ MossdeepCity_GameCorner_B1F_EventScript_15AE6E:: @ 815AE6E
special sub_813556C
waitstate
compare RESULT, 3
- callif 1, MossdeepCity_GameCorner_B1F_EventScript_15AED5
+ call_if 1, MossdeepCity_GameCorner_B1F_EventScript_15AED5
compare RESULT, 1
- callif 1, MossdeepCity_GameCorner_B1F_EventScript_15AEE3
+ call_if 1, MossdeepCity_GameCorner_B1F_EventScript_15AEE3
compare RESULT, 2
- callif 1, MossdeepCity_GameCorner_B1F_EventScript_15AEEE
+ call_if 1, MossdeepCity_GameCorner_B1F_EventScript_15AEEE
closebutton
special ScrSpecial_HealPlayerParty
move 255, MossdeepCity_GameCorner_B1F_Movement_15AEFF
diff --git a/data/scripts/maps/MossdeepCity_Gym.inc b/data/scripts/maps/MossdeepCity_Gym.inc
index 733f6816e..4c46ca334 100644
--- a/data/scripts/maps/MossdeepCity_Gym.inc
+++ b/data/scripts/maps/MossdeepCity_Gym.inc
@@ -4,25 +4,25 @@ MossdeepCity_Gym_MapScripts:: @ 815A4D3
MossdeepCity_Gym_MapScript1_15A4D9:: @ 815A4D9
checkflag 100
- jumpeq MossdeepCity_Gym_EventScript_15A510
+ goto_if_eq MossdeepCity_Gym_EventScript_15A510
goto MossdeepCity_Gym_EventScript_15A4E8
end
MossdeepCity_Gym_EventScript_15A4E8:: @ 815A4E8
checkflag 101
- jumpeq MossdeepCity_Gym_EventScript_15A528
+ goto_if_eq MossdeepCity_Gym_EventScript_15A528
goto MossdeepCity_Gym_EventScript_15A4F7
end
MossdeepCity_Gym_EventScript_15A4F7:: @ 815A4F7
checkflag 102
- jumpeq MossdeepCity_Gym_EventScript_15A540
+ goto_if_eq MossdeepCity_Gym_EventScript_15A540
goto MossdeepCity_Gym_EventScript_15A506
end
MossdeepCity_Gym_EventScript_15A506:: @ 815A506
checkflag 103
- jumpeq MossdeepCity_Gym_EventScript_15A558
+ goto_if_eq MossdeepCity_Gym_EventScript_15A558
end
MossdeepCity_Gym_EventScript_15A510:: @ 815A510
@@ -51,7 +51,7 @@ MossdeepCity_Gym_EventScript_15A558:: @ 815A558
MossdeepCity_Gym_EventScript_15A56B:: @ 815A56B
trainerbattle 8, OPPONENT_TATE_AND_LIZA, 0, MossdeepCity_Gym_Text_18CF02, MossdeepCity_Gym_Text_18D077, MossdeepCity_Gym_Text_18D324, MossdeepCity_Gym_EventScript_15A594
checkflag 171
- jumpif 0, MossdeepCity_Gym_EventScript_15A5C6
+ goto_if 0, MossdeepCity_Gym_EventScript_15A5C6
msgbox MossdeepCity_Gym_Text_18D273, 4
release
end
@@ -74,7 +74,7 @@ MossdeepCity_Gym_EventScript_15A594:: @ 815A594
MossdeepCity_Gym_EventScript_15A5C6:: @ 815A5C6
giveitem ITEM_TM04
compare RESULT, 0
- jumpeq MossdeepCity_Gym_EventScript_1A029B
+ goto_if_eq MossdeepCity_Gym_EventScript_1A029B
msgbox MossdeepCity_Gym_Text_18D1CF, 4
setflag 171
release
@@ -83,7 +83,7 @@ MossdeepCity_Gym_EventScript_15A5C6:: @ 815A5C6
MossdeepCity_Gym_EventScript_15A5EA:: @ 815A5EA
lockall
checkflag 100
- jumpeq MossdeepCity_Gym_EventScript_15A621
+ goto_if_eq MossdeepCity_Gym_EventScript_15A621
setflag 100
move 255, MossdeepCity_Gym_Movement_15A7F7
waitmove 0
@@ -110,7 +110,7 @@ MossdeepCity_Gym_EventScript_15A621:: @ 815A621
MossdeepCity_Gym_EventScript_15A646:: @ 815A646
lockall
checkflag 101
- jumpeq MossdeepCity_Gym_EventScript_15A675
+ goto_if_eq MossdeepCity_Gym_EventScript_15A675
setflag 101
move 255, MossdeepCity_Gym_Movement_15A7F7
waitmove 0
@@ -131,7 +131,7 @@ MossdeepCity_Gym_EventScript_15A675:: @ 815A675
MossdeepCity_Gym_EventScript_15A69A:: @ 815A69A
lockall
checkflag 102
- jumpeq MossdeepCity_Gym_EventScript_15A6C9
+ goto_if_eq MossdeepCity_Gym_EventScript_15A6C9
setflag 102
move 255, MossdeepCity_Gym_Movement_15A7F7
waitmove 0
@@ -152,7 +152,7 @@ MossdeepCity_Gym_EventScript_15A6C9:: @ 815A6C9
MossdeepCity_Gym_EventScript_15A6EE:: @ 815A6EE
lockall
checkflag 103
- jumpeq MossdeepCity_Gym_EventScript_15A71D
+ goto_if_eq MossdeepCity_Gym_EventScript_15A71D
setflag 103
move 255, MossdeepCity_Gym_Movement_15A7F7
waitmove 0
@@ -211,7 +211,7 @@ MossdeepCity_Gym_EventScript_15A7D8:: @ 815A7D8
lock
faceplayer
checkflag 1229
- jumpeq MossdeepCity_Gym_EventScript_15A7ED
+ goto_if_eq MossdeepCity_Gym_EventScript_15A7ED
msgbox MossdeepCity_Gym_Text_18C7E3, 4
release
end
@@ -229,14 +229,14 @@ MossdeepCity_Gym_Movement_15A7F7:: @ 815A7F7
MossdeepCity_Gym_EventScript_15A7FA:: @ 815A7FA
lockall
checkflag 2061
- jumpeq MossdeepCity_Gym_EventScript_15A81A
+ goto_if_eq MossdeepCity_Gym_EventScript_15A81A
goto MossdeepCity_Gym_EventScript_15A824
end
MossdeepCity_Gym_EventScript_15A80A:: @ 815A80A
lockall
checkflag 2061
- jumpeq MossdeepCity_Gym_EventScript_15A81A
+ goto_if_eq MossdeepCity_Gym_EventScript_15A81A
goto MossdeepCity_Gym_EventScript_15A824
end
diff --git a/data/scripts/maps/MossdeepCity_House1.inc b/data/scripts/maps/MossdeepCity_House1.inc
index 319dfba8e..c8af8f886 100644
--- a/data/scripts/maps/MossdeepCity_House1.inc
+++ b/data/scripts/maps/MossdeepCity_House1.inc
@@ -8,7 +8,7 @@ MossdeepCity_House1_EventScript_15A82F:: @ 815A82F
msgbox MossdeepCity_House1_Text_18D465, 4
specialval RESULT, GetPokeblockNameByMonNature
compare RESULT, 0
- jumpeq MossdeepCity_House1_EventScript_15A855
+ goto_if_eq MossdeepCity_House1_EventScript_15A855
msgbox MossdeepCity_House1_Text_18D475, 4
release
end
diff --git a/data/scripts/maps/MossdeepCity_House2.inc b/data/scripts/maps/MossdeepCity_House2.inc
index f3d07b64e..3cf5a8ff4 100644
--- a/data/scripts/maps/MossdeepCity_House2.inc
+++ b/data/scripts/maps/MossdeepCity_House2.inc
@@ -20,9 +20,9 @@ MossdeepCity_House2_EventScript_15A87B:: @ 815A87B
setflag 224
clearflag 933
compare FACING, 2
- callif 1, MossdeepCity_House2_EventScript_15A8AE
+ call_if 1, MossdeepCity_House2_EventScript_15A8AE
compare FACING, 3
- callif 1, MossdeepCity_House2_EventScript_15A8B9
+ call_if 1, MossdeepCity_House2_EventScript_15A8B9
disappear 3
release
end
diff --git a/data/scripts/maps/MossdeepCity_House3.inc b/data/scripts/maps/MossdeepCity_House3.inc
index fd97ee598..8f9bf4dc5 100644
--- a/data/scripts/maps/MossdeepCity_House3.inc
+++ b/data/scripts/maps/MossdeepCity_House3.inc
@@ -5,10 +5,10 @@ MossdeepCity_House3_EventScript_15A972:: @ 815A972
lock
faceplayer
checkflag 152
- jumpeq MossdeepCity_House3_EventScript_15A9B1
+ goto_if_eq MossdeepCity_House3_EventScript_15A9B1
msgbox MossdeepCity_House3_Text_18D909, 5
compare RESULT, 0
- jumpeq MossdeepCity_House3_EventScript_15A9BB
+ goto_if_eq MossdeepCity_House3_EventScript_15A9BB
msgbox MossdeepCity_House3_Text_18D9A9, 4
giveitem ITEM_SUPER_ROD
setflag 152
diff --git a/data/scripts/maps/MossdeepCity_House4.inc b/data/scripts/maps/MossdeepCity_House4.inc
index 12dc941e7..215cf5e35 100644
--- a/data/scripts/maps/MossdeepCity_House4.inc
+++ b/data/scripts/maps/MossdeepCity_House4.inc
@@ -5,7 +5,7 @@ MossdeepCity_House4_EventScript_15AB31:: @ 815AB31
lock
faceplayer
checkflag 2052
- jumpeq MossdeepCity_House4_EventScript_15AB46
+ goto_if_eq MossdeepCity_House4_EventScript_15AB46
msgbox MossdeepCity_House4_Text_18E0E3, 4
release
end
@@ -20,7 +20,7 @@ MossdeepCity_House4_EventScript_15AB50:: @ 815AB50
faceplayer
special sub_80BB63C
compare RESULT, 0
- jumpeq MossdeepCity_House4_EventScript_15AB6D
+ goto_if_eq MossdeepCity_House4_EventScript_15AB6D
special GetSecretBaseNearbyMapName
msgbox MossdeepCity_House4_Text_18E17E, 4
release
diff --git a/data/scripts/maps/MossdeepCity_SpaceCenter_1F.inc b/data/scripts/maps/MossdeepCity_SpaceCenter_1F.inc
index db31e4c62..369523b42 100644
--- a/data/scripts/maps/MossdeepCity_SpaceCenter_1F.inc
+++ b/data/scripts/maps/MossdeepCity_SpaceCenter_1F.inc
@@ -8,9 +8,9 @@ MossdeepCity_SpaceCenter_1F_EventScript_15AB8B:: @ 815AB8B
specialval RESULT, GetWeekCount
buffernum 0, RESULT
compare RESULT, 0
- callif 1, MossdeepCity_SpaceCenter_1F_EventScript_15ABBA
+ call_if 1, MossdeepCity_SpaceCenter_1F_EventScript_15ABBA
compare RESULT, 1
- callif 4, MossdeepCity_SpaceCenter_1F_EventScript_15ABC3
+ call_if 4, MossdeepCity_SpaceCenter_1F_EventScript_15ABC3
closebutton
move LAST_TALKED, MossdeepCity_SpaceCenter_1F_Movement_1A083D
waitmove 0
@@ -33,11 +33,11 @@ MossdeepCity_SpaceCenter_1F_EventScript_15ABD5:: @ 815ABD5
lock
faceplayer
checkflag 192
- jumpeq MossdeepCity_SpaceCenter_1F_EventScript_15AC0C
+ goto_if_eq MossdeepCity_SpaceCenter_1F_EventScript_15AC0C
msgbox MossdeepCity_SpaceCenter_1F_Text_18E335, 4
giveitem ITEM_SUN_STONE
compare RESULT, 0
- jumpeq MossdeepCity_SpaceCenter_1F_EventScript_1A029B
+ goto_if_eq MossdeepCity_SpaceCenter_1F_EventScript_1A029B
setflag 192
msgbox MossdeepCity_SpaceCenter_1F_Text_18E39B, 4
release
diff --git a/data/scripts/maps/MossdeepCity_StevensHouse.inc b/data/scripts/maps/MossdeepCity_StevensHouse.inc
index d4477bd39..f6ba77cb9 100644
--- a/data/scripts/maps/MossdeepCity_StevensHouse.inc
+++ b/data/scripts/maps/MossdeepCity_StevensHouse.inc
@@ -6,7 +6,7 @@ MossdeepCity_StevensHouse_MapScripts:: @ 815A9C5
MossdeepCity_StevensHouse_MapScript1_15A9D5:: @ 815A9D5
checkflag 2052
- callif 0, MossdeepCity_StevensHouse_EventScript_15A9DF
+ call_if 0, MossdeepCity_StevensHouse_EventScript_15A9DF
end
MossdeepCity_StevensHouse_EventScript_15A9DF:: @ 815A9DF
@@ -15,7 +15,7 @@ MossdeepCity_StevensHouse_EventScript_15A9DF:: @ 815A9DF
MossdeepCity_StevensHouse_MapScript1_15A9E9:: @ 815A9E9
compare 0x40c6, 1
- callif 1, MossdeepCity_StevensHouse_EventScript_15A9F5
+ call_if 1, MossdeepCity_StevensHouse_EventScript_15A9F5
end
MossdeepCity_StevensHouse_EventScript_15A9F5:: @ 815A9F5
@@ -73,10 +73,10 @@ MossdeepCity_StevensHouse_EventScript_15AA7C:: @ 815AA7C
lockall
msgbox MossdeepCity_StevensHouse_Text_18DD12, 5
compare RESULT, 0
- jumpeq MossdeepCity_StevensHouse_EventScript_15AAE6
+ goto_if_eq MossdeepCity_StevensHouse_EventScript_15AAE6
countpokemon
compare RESULT, 6
- jumpeq MossdeepCity_StevensHouse_EventScript_15AADC
+ goto_if_eq MossdeepCity_StevensHouse_EventScript_15AADC
copyvar 0x8004, RESULT
disappear 2
fanfare 370
@@ -87,7 +87,7 @@ MossdeepCity_StevensHouse_EventScript_15AA7C:: @ 815AA7C
bufferpoke 1, SPECIES_BELDUM
msgbox MossdeepCity_StevensHouse_Text_1A1102, 5
compare RESULT, 1
- callif 1, MossdeepCity_StevensHouse_EventScript_1A0678
+ call_if 1, MossdeepCity_StevensHouse_EventScript_1A0678
setflag 968
setflag 298
releaseall
@@ -114,7 +114,7 @@ MossdeepCity_StevensHouse_EventScript_15AAF9:: @ 815AAF9
MossdeepCity_StevensHouse_EventScript_15AB02:: @ 815AB02
lockall
checkflag 302
- jumpeq MossdeepCity_StevensHouse_EventScript_15AB16
+ goto_if_eq MossdeepCity_StevensHouse_EventScript_15AB16
msgbox MossdeepCity_StevensHouse_Text_18DF1A, 4
releaseall
end
diff --git a/data/scripts/maps/MtChimney.inc b/data/scripts/maps/MtChimney.inc
index 0134adbdf..458e4a15b 100644
--- a/data/scripts/maps/MtChimney.inc
+++ b/data/scripts/maps/MtChimney.inc
@@ -19,17 +19,17 @@ MtChimney_EventScript_15CF95:: @ 815CF95
nop
msgbox MtChimney_Text_195760, 5
compare RESULT, 0
- jumpeq MtChimney_EventScript_15D00B
+ goto_if_eq MtChimney_EventScript_15D00B
checkmoney 0xc8, 0
compare RESULT, 0
- jumpeq MtChimney_EventScript_15D018
+ goto_if_eq MtChimney_EventScript_15D018
msgbox MtChimney_Text_1957A9, 4
checkitemspace ITEM_LAVA_COOKIE, 1
compare RESULT, 1
- callif 1, MtChimney_EventScript_15D000
+ call_if 1, MtChimney_EventScript_15D000
giveitem ITEM_LAVA_COOKIE
compare RESULT, 0
- jumpeq MtChimney_EventScript_15CFF3
+ goto_if_eq MtChimney_EventScript_15CFF3
hidemoney 0, 0
release
end
@@ -407,12 +407,12 @@ MtChimney_EventScript_15D174:: @ 815D174
MtChimney_EventScript_15D17D:: @ 815D17D
lockall
checkflag 139
- jumpif 0, MtChimney_EventScript_15D1D0
+ goto_if 0, MtChimney_EventScript_15D1D0
checkflag 115
- jumpeq MtChimney_EventScript_15D1C6
+ goto_if_eq MtChimney_EventScript_15D1C6
msgbox MtChimney_Text_195870, 5
compare RESULT, 0
- jumpeq MtChimney_EventScript_15D1BC
+ goto_if_eq MtChimney_EventScript_15D1BC
msgbox MtChimney_Text_1958C6, 4
giveitem ITEM_METEORITE
setflag 115
@@ -442,7 +442,7 @@ MtChimney_EventScript_15D1E3:: @ 815D1E3
trainerbattle 0, OPPONENT_SHELBY_1, 0, MtChimney_Text_19597F, MtChimney_Text_1959D8
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq MtChimney_EventScript_15D20A
+ goto_if_eq MtChimney_EventScript_15D20A
msgbox MtChimney_Text_195A04, 6
end
diff --git a/data/scripts/maps/MtChimney_CableCarStation.inc b/data/scripts/maps/MtChimney_CableCarStation.inc
index 24101b0cb..6f4ea44a5 100644
--- a/data/scripts/maps/MtChimney_CableCarStation.inc
+++ b/data/scripts/maps/MtChimney_CableCarStation.inc
@@ -5,7 +5,7 @@ MtChimney_CableCarStation_MapScripts:: @ 815C0FA
MtChimney_CableCarStation_MapScript1_15C105:: @ 815C105
compare 0x40a3, 1
- callif 1, MtChimney_CableCarStation_EventScript_15C111
+ call_if 1, MtChimney_CableCarStation_EventScript_15C111
end
MtChimney_CableCarStation_EventScript_15C111:: @ 815C111
@@ -33,9 +33,9 @@ MtChimney_CableCarStation_EventScript_15C14B:: @ 815C14B
faceplayer
msgbox MtChimney_CableCarStation_Text_19256A, 5
compare RESULT, 1
- jumpeq MtChimney_CableCarStation_EventScript_15C16C
+ goto_if_eq MtChimney_CableCarStation_EventScript_15C16C
compare RESULT, 0
- jumpeq MtChimney_CableCarStation_EventScript_15C19B
+ goto_if_eq MtChimney_CableCarStation_EventScript_15C19B
end
MtChimney_CableCarStation_EventScript_15C16C:: @ 815C16C
diff --git a/data/scripts/maps/MtPyre_1F.inc b/data/scripts/maps/MtPyre_1F.inc
index 805c4a8d3..026d54bfe 100644
--- a/data/scripts/maps/MtPyre_1F.inc
+++ b/data/scripts/maps/MtPyre_1F.inc
@@ -5,11 +5,11 @@ MtPyre_1F_EventScript_15D323:: @ 815D323
lock
faceplayer
checkflag 282
- jumpeq MtPyre_1F_EventScript_15D352
+ goto_if_eq MtPyre_1F_EventScript_15D352
msgbox MtPyre_1F_Text_196151, 4
giveitem ITEM_CLEANSE_TAG
compare RESULT, 0
- jumpeq MtPyre_1F_EventScript_1A029B
+ goto_if_eq MtPyre_1F_EventScript_1A029B
setflag 282
release
end
diff --git a/data/scripts/maps/MtPyre_6F.inc b/data/scripts/maps/MtPyre_6F.inc
index 657b4ef15..4f8d99c5e 100644
--- a/data/scripts/maps/MtPyre_6F.inc
+++ b/data/scripts/maps/MtPyre_6F.inc
@@ -5,7 +5,7 @@ MtPyre_6F_EventScript_15D448:: @ 815D448
trainerbattle 0, OPPONENT_VALERIE_1, 0, MtPyre_6F_Text_1969FE, MtPyre_6F_Text_196A30
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq MtPyre_6F_EventScript_15D46F
+ goto_if_eq MtPyre_6F_EventScript_15D46F
msgbox MtPyre_6F_Text_196A4C, 6
end
diff --git a/data/scripts/maps/MtPyre_Exterior.inc b/data/scripts/maps/MtPyre_Exterior.inc
index efffc7c3b..550f74d9a 100644
--- a/data/scripts/maps/MtPyre_Exterior.inc
+++ b/data/scripts/maps/MtPyre_Exterior.inc
@@ -9,7 +9,7 @@ MtPyre_Exterior_MapScript1_15D48C:: @ 815D48C
MtPyre_Exterior_EventScript_15D492:: @ 815D492
getplayerxy 0x4000, 0x4001
compare 0x4001, 12
- jumpif 0, MtPyre_Exterior_EventScript_15D4A3
+ goto_if 0, MtPyre_Exterior_EventScript_15D4A3
return
MtPyre_Exterior_EventScript_15D4A3:: @ 815D4A3
diff --git a/data/scripts/maps/MtPyre_Summit.inc b/data/scripts/maps/MtPyre_Summit.inc
index f30b6fb9e..31a83857b 100644
--- a/data/scripts/maps/MtPyre_Summit.inc
+++ b/data/scripts/maps/MtPyre_Summit.inc
@@ -31,11 +31,11 @@ MtPyre_Summit_EventScript_15D4E1:: @ 815D4E1
waitmove 0
pause 50
compare 0x8008, 0
- callif 1, MtPyre_Summit_EventScript_15D593
+ call_if 1, MtPyre_Summit_EventScript_15D593
compare 0x8008, 1
- callif 1, MtPyre_Summit_EventScript_15D59E
+ call_if 1, MtPyre_Summit_EventScript_15D59E
compare 0x8008, 2
- callif 1, MtPyre_Summit_EventScript_15D59F
+ call_if 1, MtPyre_Summit_EventScript_15D59F
.ifdef SAPPHIRE
msgbox UnknownString_81B52B0, 4
.else
@@ -53,11 +53,11 @@ MtPyre_Summit_EventScript_15D4E1:: @ 815D4E1
pause 20
call MtPyre_Summit_EventScript_15D57A
compare 0x8008, 0
- callif 1, MtPyre_Summit_EventScript_15D5AA
+ call_if 1, MtPyre_Summit_EventScript_15D5AA
compare 0x8008, 1
- callif 1, MtPyre_Summit_EventScript_15D5BF
+ call_if 1, MtPyre_Summit_EventScript_15D5BF
compare 0x8008, 2
- callif 1, MtPyre_Summit_EventScript_15D5CA
+ call_if 1, MtPyre_Summit_EventScript_15D5CA
.ifdef SAPPHIRE
msgbox UnknownString_81B53AB, 4
.else
@@ -144,9 +144,9 @@ MtPyre_Summit_EventScript_15D5EF:: @ 815D5EF
msgbox MtPyre_Summit_Text_1B64B3, 5
.endif
compare RESULT, 1
- callif 1, MtPyre_Summit_EventScript_15D611
+ call_if 1, MtPyre_Summit_EventScript_15D611
compare RESULT, 0
- callif 1, MtPyre_Summit_EventScript_15D61A
+ call_if 1, MtPyre_Summit_EventScript_15D61A
release
end
@@ -170,11 +170,11 @@ MtPyre_Summit_EventScript_15D623:: @ 815D623
lock
faceplayer
checkflag 259
- jumpeq MtPyre_Summit_EventScript_15D6C4
+ goto_if_eq MtPyre_Summit_EventScript_15D6C4
checkflag 113
- jumpeq MtPyre_Summit_EventScript_15D64A
+ goto_if_eq MtPyre_Summit_EventScript_15D64A
checkflag 129
- jumpeq MtPyre_Summit_EventScript_15D6BA
+ goto_if_eq MtPyre_Summit_EventScript_15D6BA
.ifdef SAPPHIRE
msgbox UnknownString_81B54BE, 4
.else
@@ -190,9 +190,9 @@ MtPyre_Summit_EventScript_15D64A:: @ 815D64A
msgbox MtPyre_Summit_Text_1B6283, 5
.endif
compare RESULT, 1
- jumpeq MtPyre_Summit_EventScript_15D669
+ goto_if_eq MtPyre_Summit_EventScript_15D669
compare RESULT, 0
- jumpeq MtPyre_Summit_EventScript_15D69B
+ goto_if_eq MtPyre_Summit_EventScript_15D69B
end
MtPyre_Summit_EventScript_15D669:: @ 815D669
@@ -221,9 +221,9 @@ MtPyre_Summit_EventScript_15D69B:: @ 815D69B
msgbox MtPyre_Summit_Text_1B62E7, 5
.endif
compare RESULT, 1
- jumpeq MtPyre_Summit_EventScript_15D669
+ goto_if_eq MtPyre_Summit_EventScript_15D669
compare RESULT, 0
- jumpeq MtPyre_Summit_EventScript_15D69B
+ goto_if_eq MtPyre_Summit_EventScript_15D69B
end
MtPyre_Summit_EventScript_15D6BA:: @ 815D6BA
@@ -269,11 +269,11 @@ MtPyre_Summit_EventScript_15D6F2:: @ 815D6F2
waitmove 0
pause 50
compare 0x8008, 0
- callif 1, MtPyre_Summit_EventScript_15D75E
+ call_if 1, MtPyre_Summit_EventScript_15D75E
compare 0x8008, 1
- callif 1, MtPyre_Summit_EventScript_15D769
+ call_if 1, MtPyre_Summit_EventScript_15D769
compare 0x8008, 2
- callif 1, MtPyre_Summit_EventScript_15D774
+ call_if 1, MtPyre_Summit_EventScript_15D774
.ifdef SAPPHIRE
msgbox UnknownString_81B5BFC, 4
.else
@@ -281,11 +281,11 @@ MtPyre_Summit_EventScript_15D6F2:: @ 815D6F2
.endif
closebutton
compare 0x8008, 0
- callif 1, MtPyre_Summit_EventScript_15D77F
+ call_if 1, MtPyre_Summit_EventScript_15D77F
compare 0x8008, 1
- callif 1, MtPyre_Summit_EventScript_15D78A
+ call_if 1, MtPyre_Summit_EventScript_15D78A
compare 0x8008, 2
- callif 1, MtPyre_Summit_EventScript_15D795
+ call_if 1, MtPyre_Summit_EventScript_15D795
disappear 2
setvar 0x40b9, 3
releaseall
diff --git a/data/scripts/maps/NewMauville_Entrance.inc b/data/scripts/maps/NewMauville_Entrance.inc
index 547fc72e7..698f2f6cd 100644
--- a/data/scripts/maps/NewMauville_Entrance.inc
+++ b/data/scripts/maps/NewMauville_Entrance.inc
@@ -5,7 +5,7 @@ NewMauville_Entrance_MapScripts:: @ 815E48A
NewMauville_Entrance_MapScript1_15E495:: @ 815E495
compare 0x40ba, 0
- callif 1, NewMauville_Entrance_EventScript_15E4A1
+ call_if 1, NewMauville_Entrance_EventScript_15E4A1
end
NewMauville_Entrance_EventScript_15E4A1:: @ 815E4A1
@@ -28,10 +28,10 @@ NewMauville_Entrance_EventScript_15E4DC:: @ 815E4DC
msgbox NewMauville_Entrance_Text_1982C0, 4
checkitem ITEM_BASEMENT_KEY, 1
compare RESULT, 0
- jumpeq NewMauville_Entrance_EventScript_15E55D
+ goto_if_eq NewMauville_Entrance_EventScript_15E55D
msgbox NewMauville_Entrance_Text_1982D4, 5
compare RESULT, 0
- jumpeq NewMauville_Entrance_EventScript_15E55D
+ goto_if_eq NewMauville_Entrance_EventScript_15E55D
msgbox NewMauville_Entrance_Text_1982EA, 4
setmaptile 3, 0, 707, 0
setmaptile 4, 0, 708, 0
diff --git a/data/scripts/maps/NewMauville_Inside.inc b/data/scripts/maps/NewMauville_Inside.inc
index b088b8e7d..352bb8a6d 100644
--- a/data/scripts/maps/NewMauville_Inside.inc
+++ b/data/scripts/maps/NewMauville_Inside.inc
@@ -6,11 +6,11 @@ NewMauville_Inside_MapScripts:: @ 815E55F
NewMauville_Inside_MapScript1_15E56F:: @ 815E56F
compare 0x4001, 1
- callif 1, NewMauville_Inside_EventScript_15E5DA
+ call_if 1, NewMauville_Inside_EventScript_15E5DA
compare 0x4002, 1
- callif 1, NewMauville_Inside_EventScript_15E728
+ call_if 1, NewMauville_Inside_EventScript_15E728
checkflag 2145
- callif 1, NewMauville_Inside_EventScript_15E58F
+ call_if 1, NewMauville_Inside_EventScript_15E58F
end
NewMauville_Inside_EventScript_15E58F:: @ 815E58F
@@ -24,7 +24,7 @@ NewMauville_Inside_MapScript1_15E593:: @ 815E593
NewMauville_Inside_MapScript1_15E59E:: @ 815E59E
compare 0x40ba, 2
- callif 1, NewMauville_Inside_EventScript_15E88B
+ call_if 1, NewMauville_Inside_EventScript_15E88B
end
NewMauville_Inside_EventScript_15E5AA:: @ 815E5AA
@@ -151,7 +151,7 @@ NewMauville_Inside_EventScript_15E88B:: @ 815E88B
NewMauville_Inside_EventScript_15E8E0:: @ 815E8E0
lockall
compare 0x40ba, 2
- jumpeq NewMauville_Inside_EventScript_15E8F6
+ goto_if_eq NewMauville_Inside_EventScript_15E8F6
msgbox NewMauville_Inside_Text_198315, 4
releaseall
end
diff --git a/data/scripts/maps/OldaleTown.inc b/data/scripts/maps/OldaleTown.inc
index f1d554d87..d620df71e 100644
--- a/data/scripts/maps/OldaleTown.inc
+++ b/data/scripts/maps/OldaleTown.inc
@@ -6,11 +6,11 @@ OldaleTown_MapScript1_14DD68:: @ 814DD68
call OldaleTown_EventScript_1A014E
setflag 2064
checkflag 116
- callif 0, OldaleTown_EventScript_14DD92
+ call_if 0, OldaleTown_EventScript_14DD92
checkflag 132
- callif 0, OldaleTown_EventScript_14DD9E
+ call_if 0, OldaleTown_EventScript_14DD9E
checkflag 116
- callif 1, OldaleTown_EventScript_14DD8C
+ call_if 1, OldaleTown_EventScript_14DD8C
end
OldaleTown_EventScript_14DD8C:: @ 814DD8C
@@ -39,9 +39,9 @@ OldaleTown_EventScript_14DDBC:: @ 814DDBC
lock
faceplayer
checkflag 132
- jumpeq OldaleTown_EventScript_14DE79
+ goto_if_eq OldaleTown_EventScript_14DE79
checkflag 1
- jumpeq OldaleTown_EventScript_14DE79
+ goto_if_eq OldaleTown_EventScript_14DE79
setflag 1
playmusic 420, 0
msgbox OldaleTown_Text_16AEF2, 4
@@ -77,7 +77,7 @@ OldaleTown_EventScript_14DE4C:: @ 814DE4C
msgbox OldaleTown_Text_16AF2F, 4
giveitem ITEM_POTION
compare RESULT, 0
- jumpeq OldaleTown_EventScript_14DE83
+ goto_if_eq OldaleTown_EventScript_14DE83
msgbox OldaleTown_Text_16AFE1, 4
setflag 132
fadedefault
@@ -196,7 +196,7 @@ OldaleTown_EventScript_14DEDF:: @ 814DEDF
lock
faceplayer
checkflag 116
- jumpeq OldaleTown_EventScript_14DF26
+ goto_if_eq OldaleTown_EventScript_14DF26
msgbox OldaleTown_Text_16B0CC, 4
closebutton
move 3, OldaleTown_Movement_1A083D
@@ -258,9 +258,9 @@ OldaleTown_EventScript_14DF77:: @ 814DF77
OldaleTown_EventScript_14DF92:: @ 814DF92
checkgender
compare RESULT, 0
- jumpeq OldaleTown_EventScript_14DFAA
+ goto_if_eq OldaleTown_EventScript_14DFAA
compare RESULT, 1
- jumpeq OldaleTown_EventScript_14DFB8
+ goto_if_eq OldaleTown_EventScript_14DFB8
end
OldaleTown_EventScript_14DFAA:: @ 814DFAA
diff --git a/data/scripts/maps/OldaleTown_Mart.inc b/data/scripts/maps/OldaleTown_Mart.inc
index 3f4994890..77d7eee4d 100644
--- a/data/scripts/maps/OldaleTown_Mart.inc
+++ b/data/scripts/maps/OldaleTown_Mart.inc
@@ -7,7 +7,7 @@ OldaleTown_Mart_EventScript_152F79:: @ 8152F79
message OldaleTown_Mart_Text_1A0BE4
waittext
checkflag 116
- jumpeq OldaleTown_Mart_EventScript_152FA8
+ goto_if_eq OldaleTown_Mart_EventScript_152FA8
pokemart OldaleTown_Mart_Items1
msgbox OldaleTown_Mart_Text_1A0C02, 4
release
@@ -44,7 +44,7 @@ OldaleTown_Mart_EventScript_152FC6:: @ 8152FC6
lock
faceplayer
checkflag 116
- jumpeq OldaleTown_Mart_EventScript_152FDB
+ goto_if_eq OldaleTown_Mart_EventScript_152FDB
msgbox OldaleTown_Mart_Text_174A8A, 4
release
end
diff --git a/data/scripts/maps/OldaleTown_PokemonCenter_1F.inc b/data/scripts/maps/OldaleTown_PokemonCenter_1F.inc
index 4ba96ddc8..6d2fe54f0 100644
--- a/data/scripts/maps/OldaleTown_PokemonCenter_1F.inc
+++ b/data/scripts/maps/OldaleTown_PokemonCenter_1F.inc
@@ -27,7 +27,7 @@ OldaleTown_PokemonCenter_1F_EventScript_152F37:: @ 8152F37
lock
faceplayer
checkflag 2049
- jumpeq OldaleTown_PokemonCenter_1F_EventScript_152F4C
+ goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_152F4C
msgbox OldaleTown_PokemonCenter_1F_Text_1749C0, 4
release
end
diff --git a/data/scripts/maps/PacifidlogTown_House2.inc b/data/scripts/maps/PacifidlogTown_House2.inc
index f2174441f..aaeeb2453 100644
--- a/data/scripts/maps/PacifidlogTown_House2.inc
+++ b/data/scripts/maps/PacifidlogTown_House2.inc
@@ -7,27 +7,27 @@ PacifidlogTown_House2_EventScript_154168:: @ 8154168
checkdailyflags
call PacifidlogTown_House2_EventScript_1541B4
checkflag 299
- jumpeq PacifidlogTown_House2_EventScript_154254
+ goto_if_eq PacifidlogTown_House2_EventScript_154254
checkflag 300
- callif 1, PacifidlogTown_House2_EventScript_1541CE
+ call_if 1, PacifidlogTown_House2_EventScript_1541CE
checkflag 300
- callif 0, PacifidlogTown_House2_EventScript_1541D7
+ call_if 0, PacifidlogTown_House2_EventScript_1541D7
setflag 300
specialval RESULT, GetLeadMonFriendshipScore
compare RESULT, 4
- jumpif 4, PacifidlogTown_House2_EventScript_1541EC
+ goto_if 4, PacifidlogTown_House2_EventScript_1541EC
specialval RESULT, GetLeadMonFriendshipScore
compare RESULT, 2
- jumpif 4, PacifidlogTown_House2_EventScript_15421B
+ goto_if 4, PacifidlogTown_House2_EventScript_15421B
goto PacifidlogTown_House2_EventScript_154225
end
PacifidlogTown_House2_EventScript_1541B4:: @ 81541B4
checkflag 299
- jumpif 0, PacifidlogTown_House2_EventScript_1A14DC
+ goto_if 0, PacifidlogTown_House2_EventScript_1A14DC
specialval RESULT, sub_810F908
compare RESULT, 0
- callif 1, PacifidlogTown_House2_EventScript_1541E8
+ call_if 1, PacifidlogTown_House2_EventScript_1541E8
return
PacifidlogTown_House2_EventScript_1541CE:: @ 81541CE
@@ -47,7 +47,7 @@ PacifidlogTown_House2_EventScript_1541EC:: @ 81541EC
msgbox PacifidlogTown_House2_Text_179169, 4
giveitem ITEM_TM27
compare RESULT, 0
- jumpeq PacifidlogTown_House2_EventScript_1A029B
+ goto_if_eq PacifidlogTown_House2_EventScript_1A029B
setflag 299
special sub_810F950
msgbox PacifidlogTown_House2_Text_179283, 4
@@ -63,7 +63,7 @@ PacifidlogTown_House2_EventScript_154225:: @ 8154225
msgbox PacifidlogTown_House2_Text_17922D, 4
giveitem ITEM_TM21
compare RESULT, 0
- jumpeq PacifidlogTown_House2_EventScript_1A029B
+ goto_if_eq PacifidlogTown_House2_EventScript_1A029B
setflag 299
special sub_810F950
msgbox PacifidlogTown_House2_Text_179283, 4
diff --git a/data/scripts/maps/PacifidlogTown_House3.inc b/data/scripts/maps/PacifidlogTown_House3.inc
index 6ab9a09b0..73f749400 100644
--- a/data/scripts/maps/PacifidlogTown_House3.inc
+++ b/data/scripts/maps/PacifidlogTown_House3.inc
@@ -5,24 +5,24 @@ PacifidlogTown_House3_EventScript_15429E:: @ 815429E
lock
faceplayer
checkflag 154
- jumpeq PacifidlogTown_House3_EventScript_154338
+ goto_if_eq PacifidlogTown_House3_EventScript_154338
setvar 0x8008, 2
copyvar 0x8004, 0x8008
specialval RESULT, sub_804D89C
copyvar 0x8009, RESULT
msgbox PacifidlogTown_House3_Text_17940E, 5
compare RESULT, 0
- jumpeq PacifidlogTown_House3_EventScript_154320
+ goto_if_eq PacifidlogTown_House3_EventScript_154320
special sub_80F9A0C
waitstate
copyvar 0x800a, 0x8004
compare 0x8004, 255
- jumpeq PacifidlogTown_House3_EventScript_154320
+ goto_if_eq PacifidlogTown_House3_EventScript_154320
copyvar 0x8005, 0x800a
specialval RESULT, sub_804DB2C
copyvar 0x800b, RESULT
comparevars RESULT, 0x8009
- jumpif 5, PacifidlogTown_House3_EventScript_15432A
+ goto_if 5, PacifidlogTown_House3_EventScript_15432A
copyvar 0x8004, 0x8008
copyvar 0x8005, 0x800a
special sub_804DB68
diff --git a/data/scripts/maps/PacifidlogTown_House4.inc b/data/scripts/maps/PacifidlogTown_House4.inc
index e48644beb..b7a6c9f86 100644
--- a/data/scripts/maps/PacifidlogTown_House4.inc
+++ b/data/scripts/maps/PacifidlogTown_House4.inc
@@ -14,9 +14,9 @@ PacifidlogTown_House4_EventScript_15435E:: @ 815435E
faceplayer
msgbox PacifidlogTown_House4_Text_17963D, 5
compare RESULT, 1
- jumpeq PacifidlogTown_House4_EventScript_15437F
+ goto_if_eq PacifidlogTown_House4_EventScript_15437F
compare RESULT, 0
- jumpeq PacifidlogTown_House4_EventScript_154389
+ goto_if_eq PacifidlogTown_House4_EventScript_154389
end
PacifidlogTown_House4_EventScript_15437F:: @ 815437F
diff --git a/data/scripts/maps/PacifidlogTown_House5.inc b/data/scripts/maps/PacifidlogTown_House5.inc
index dca1a51b0..fdc496d1f 100644
--- a/data/scripts/maps/PacifidlogTown_House5.inc
+++ b/data/scripts/maps/PacifidlogTown_House5.inc
@@ -6,7 +6,7 @@ PacifidlogTown_House5_EventScript_154394:: @ 8154394
faceplayer
specialval RESULT, IsMirageIslandPresent
compare RESULT, 1
- jumpeq PacifidlogTown_House5_EventScript_1543B0
+ goto_if_eq PacifidlogTown_House5_EventScript_1543B0
msgbox PacifidlogTown_House5_Text_179718, 4
release
end
diff --git a/data/scripts/maps/PetalburgCity.inc b/data/scripts/maps/PetalburgCity.inc
index ed575844c..1ffc14144 100644
--- a/data/scripts/maps/PetalburgCity.inc
+++ b/data/scripts/maps/PetalburgCity.inc
@@ -6,9 +6,9 @@ PetalburgCity_MapScripts:: @ 814B70C
PetalburgCity_MapScript1_14B717:: @ 814B717
setflag 2070
compare 0x4057, 0
- callif 1, PetalburgCity_EventScript_14B731
+ call_if 1, PetalburgCity_EventScript_14B731
compare 0x4057, 2
- callif 1, PetalburgCity_EventScript_14B739
+ call_if 1, PetalburgCity_EventScript_14B739
end
PetalburgCity_EventScript_14B731:: @ 814B731
@@ -188,23 +188,23 @@ PetalburgCity_EventScript_14B866:: @ 814B866
move 9, PetalburgCity_Movement_1A0835
waitmove 0
compare 0x8008, 0
- callif 1, PetalburgCity_EventScript_14B91B
+ call_if 1, PetalburgCity_EventScript_14B91B
compare 0x8008, 1
- callif 1, PetalburgCity_EventScript_14B930
+ call_if 1, PetalburgCity_EventScript_14B930
compare 0x8008, 2
- callif 1, PetalburgCity_EventScript_14B93B
+ call_if 1, PetalburgCity_EventScript_14B93B
compare 0x8008, 3
- callif 1, PetalburgCity_EventScript_14B950
+ call_if 1, PetalburgCity_EventScript_14B950
msgbox PetalburgCity_Text_16438A, 4
closebutton
compare 0x8008, 0
- callif 1, PetalburgCity_EventScript_14B965
+ call_if 1, PetalburgCity_EventScript_14B965
compare 0x8008, 1
- callif 1, PetalburgCity_EventScript_14B977
+ call_if 1, PetalburgCity_EventScript_14B977
compare 0x8008, 2
- callif 1, PetalburgCity_EventScript_14B989
+ call_if 1, PetalburgCity_EventScript_14B989
compare 0x8008, 3
- callif 1, PetalburgCity_EventScript_14B99B
+ call_if 1, PetalburgCity_EventScript_14B99B
msgbox PetalburgCity_Text_164426, 4
move 9, PetalburgCity_Movement_1A0843
move 255, PetalburgCity_Movement_1A0843
diff --git a/data/scripts/maps/PetalburgCity_Gym.inc b/data/scripts/maps/PetalburgCity_Gym.inc
index f8dfb0a39..4b0757f63 100644
--- a/data/scripts/maps/PetalburgCity_Gym.inc
+++ b/data/scripts/maps/PetalburgCity_Gym.inc
@@ -7,28 +7,28 @@ PetalburgCity_Gym_MapScripts:: @ 8154477
PetalburgCity_Gym_MapScript1_15448C:: @ 815448C
compare 0x4085, 6
- jumpeq PetalburgCity_Gym_EventScript_1544A3
+ goto_if_eq PetalburgCity_Gym_EventScript_1544A3
compare 0x4085, 7
- callif 4, PetalburgCity_Gym_EventScript_1544ED
+ call_if 4, PetalburgCity_Gym_EventScript_1544ED
end
PetalburgCity_Gym_EventScript_1544A3:: @ 81544A3
setvar 0x8005, 1
call PetalburgCity_Gym_EventScript_154F9A
checktrainerflag OPPONENT_RANDALL
- callif 1, PetalburgCity_Gym_EventScript_154FBB
+ call_if 1, PetalburgCity_Gym_EventScript_154FBB
checktrainerflag OPPONENT_MARY
- callif 1, PetalburgCity_Gym_EventScript_154FDC
+ call_if 1, PetalburgCity_Gym_EventScript_154FDC
checktrainerflag OPPONENT_PARKER
- callif 1, PetalburgCity_Gym_EventScript_154FFD
+ call_if 1, PetalburgCity_Gym_EventScript_154FFD
checktrainerflag OPPONENT_LORI
- callif 1, PetalburgCity_Gym_EventScript_15501E
+ call_if 1, PetalburgCity_Gym_EventScript_15501E
checktrainerflag OPPONENT_GEORGE
- callif 1, PetalburgCity_Gym_EventScript_15503F
+ call_if 1, PetalburgCity_Gym_EventScript_15503F
checktrainerflag OPPONENT_JODY
- callif 1, PetalburgCity_Gym_EventScript_155060
+ call_if 1, PetalburgCity_Gym_EventScript_155060
checktrainerflag OPPONENT_BERKE
- callif 1, PetalburgCity_Gym_EventScript_155081
+ call_if 1, PetalburgCity_Gym_EventScript_155081
end
PetalburgCity_Gym_EventScript_1544ED:: @ 81544ED
@@ -45,11 +45,11 @@ PetalburgCity_Gym_EventScript_1544ED:: @ 81544ED
PetalburgCity_Gym_MapScript1_15451B:: @ 815451B
compare 0x4085, 1
- callif 1, PetalburgCity_Gym_EventScript_15453B
+ call_if 1, PetalburgCity_Gym_EventScript_15453B
compare 0x4085, 6
- callif 0, PetalburgCity_Gym_EventScript_154543
+ call_if 0, PetalburgCity_Gym_EventScript_154543
checkflag 2052
- callif 1, PetalburgCity_Gym_EventScript_15454B
+ call_if 1, PetalburgCity_Gym_EventScript_15454B
end
PetalburgCity_Gym_EventScript_15453B:: @ 815453B
@@ -145,65 +145,65 @@ PetalburgCity_Gym_EventScript_154669:: @ 8154669
reappear 10
playsfx 8
compare 0x8008, 0
- callif 1, PetalburgCity_Gym_EventScript_1547EE
+ call_if 1, PetalburgCity_Gym_EventScript_1547EE
compare 0x8008, 1
- callif 1, PetalburgCity_Gym_EventScript_154800
+ call_if 1, PetalburgCity_Gym_EventScript_154800
compare 0x8008, 2
- callif 1, PetalburgCity_Gym_EventScript_15481C
+ call_if 1, PetalburgCity_Gym_EventScript_15481C
compare 0x8008, 3
- callif 1, PetalburgCity_Gym_EventScript_15481C
+ call_if 1, PetalburgCity_Gym_EventScript_15481C
msgbox PetalburgCity_Gym_Text_179F07, 4
msgbox PetalburgCity_Gym_Text_179F37, 4
msgbox PetalburgCity_Gym_Text_179F70, 4
msgbox PetalburgCity_Gym_Text_17A03A, 4
compare 0x8008, 0
- callif 1, PetalburgCity_Gym_EventScript_154884
+ call_if 1, PetalburgCity_Gym_EventScript_154884
compare 0x8008, 1
- callif 1, PetalburgCity_Gym_EventScript_15488F
+ call_if 1, PetalburgCity_Gym_EventScript_15488F
compare 0x8008, 2
- callif 1, PetalburgCity_Gym_EventScript_1548A1
+ call_if 1, PetalburgCity_Gym_EventScript_1548A1
compare 0x8008, 3
- callif 1, PetalburgCity_Gym_EventScript_1548B3
+ call_if 1, PetalburgCity_Gym_EventScript_1548B3
msgbox PetalburgCity_Gym_Text_17A04A, 4
compare 0x8008, 0
- callif 1, PetalburgCity_Gym_EventScript_1548C5
+ call_if 1, PetalburgCity_Gym_EventScript_1548C5
compare 0x8008, 1
- callif 1, PetalburgCity_Gym_EventScript_1548D0
+ call_if 1, PetalburgCity_Gym_EventScript_1548D0
compare 0x8008, 2
- callif 1, PetalburgCity_Gym_EventScript_1548DB
+ call_if 1, PetalburgCity_Gym_EventScript_1548DB
compare 0x8008, 3
- callif 1, PetalburgCity_Gym_EventScript_1548E6
+ call_if 1, PetalburgCity_Gym_EventScript_1548E6
msgbox PetalburgCity_Gym_Text_17A0A8, 4
msgbox PetalburgCity_Gym_Text_17A0EB, 4
msgbox PetalburgCity_Gym_Text_17A156, 4
compare 0x8008, 0
- callif 1, PetalburgCity_Gym_EventScript_15492F
+ call_if 1, PetalburgCity_Gym_EventScript_15492F
compare 0x8008, 1
- callif 1, PetalburgCity_Gym_EventScript_154930
+ call_if 1, PetalburgCity_Gym_EventScript_154930
compare 0x8008, 2
- callif 1, PetalburgCity_Gym_EventScript_15493B
+ call_if 1, PetalburgCity_Gym_EventScript_15493B
compare 0x8008, 3
- callif 1, PetalburgCity_Gym_EventScript_15493C
+ call_if 1, PetalburgCity_Gym_EventScript_15493C
compare 0x8008, 0
- callif 1, PetalburgCity_Gym_EventScript_1548F1
+ call_if 1, PetalburgCity_Gym_EventScript_1548F1
compare 0x8008, 1
- callif 1, PetalburgCity_Gym_EventScript_1548FC
+ call_if 1, PetalburgCity_Gym_EventScript_1548FC
compare 0x8008, 2
- callif 1, PetalburgCity_Gym_EventScript_1548F1
+ call_if 1, PetalburgCity_Gym_EventScript_1548F1
compare 0x8008, 3
- callif 1, PetalburgCity_Gym_EventScript_1548F1
+ call_if 1, PetalburgCity_Gym_EventScript_1548F1
msgbox PetalburgCity_Gym_Text_17A171, 4
closebutton
setflag 0x4001
playmusic 420, 0
compare 0x8008, 0
- callif 1, PetalburgCity_Gym_EventScript_154835
+ call_if 1, PetalburgCity_Gym_EventScript_154835
compare 0x8008, 1
- callif 1, PetalburgCity_Gym_EventScript_15484E
+ call_if 1, PetalburgCity_Gym_EventScript_15484E
compare 0x8008, 2
- callif 1, PetalburgCity_Gym_EventScript_154860
+ call_if 1, PetalburgCity_Gym_EventScript_154860
compare 0x8008, 3
- callif 1, PetalburgCity_Gym_EventScript_154872
+ call_if 1, PetalburgCity_Gym_EventScript_154872
disappear 10
setflag 728
setvar 0x4085, 1
@@ -353,11 +353,11 @@ PetalburgCity_Gym_EventScript_15493C:: @ 815493C
PetalburgCity_Gym_EventScript_15493D:: @ 815493D
call PetalburgCity_Gym_EventScript_154969
compare RESULT, 1
- jumpeq PetalburgCity_Gym_EventScript_1549B8
+ goto_if_eq PetalburgCity_Gym_EventScript_1549B8
checkflag 169
- jumpif 0, PetalburgCity_Gym_EventScript_154A2C
+ goto_if 0, PetalburgCity_Gym_EventScript_154A2C
checkflag 2052
- jumpeq PetalburgCity_Gym_EventScript_154B69
+ goto_if_eq PetalburgCity_Gym_EventScript_154B69
msgbox PetalburgCity_Gym_Text_17AA6B, 4
release
end
@@ -365,15 +365,15 @@ PetalburgCity_Gym_EventScript_15493D:: @ 815493D
PetalburgCity_Gym_EventScript_154969:: @ 8154969
specialval RESULT, IsEnigmaBerryValid
compare RESULT, 0
- jumpeq PetalburgCity_Gym_EventScript_1549B2
+ goto_if_eq PetalburgCity_Gym_EventScript_1549B2
checkitem ITEM_ENIGMA_BERRY, 1
compare RESULT, 1
- jumpeq PetalburgCity_Gym_EventScript_1549B2
+ goto_if_eq PetalburgCity_Gym_EventScript_1549B2
checkpcitem ITEM_ENIGMA_BERRY, 1
compare RESULT, 1
- jumpeq PetalburgCity_Gym_EventScript_1549B2
+ goto_if_eq PetalburgCity_Gym_EventScript_1549B2
compare 0x402d, 0
- jumpeq PetalburgCity_Gym_EventScript_1549B2
+ goto_if_eq PetalburgCity_Gym_EventScript_1549B2
msgbox PetalburgCity_Gym_Text_1C5570, 4
setvar RESULT, 1
return
@@ -385,7 +385,7 @@ PetalburgCity_Gym_EventScript_1549B2:: @ 81549B2
PetalburgCity_Gym_EventScript_1549B8:: @ 81549B8
giveitem ITEM_ENIGMA_BERRY
compare RESULT, 0
- jumpeq PetalburgCity_Gym_EventScript_1A029B
+ goto_if_eq PetalburgCity_Gym_EventScript_1A029B
setvar 0x402d, 0
release
end
@@ -414,28 +414,28 @@ PetalburgCity_Gym_EventScript_1549D6:: @ 81549D6
PetalburgCity_Gym_EventScript_154A2C:: @ 8154A2C
giveitem ITEM_TM42
compare RESULT, 0
- jumpeq PetalburgCity_Gym_EventScript_1A029B
+ goto_if_eq PetalburgCity_Gym_EventScript_1A029B
setflag 169
msgbox PetalburgCity_Gym_Text_17A8CF, 4
msgbox PetalburgCity_Gym_Text_17A976, 4
closebutton
compare FACING, 2
- callif 1, PetalburgCity_Gym_EventScript_154ABC
+ call_if 1, PetalburgCity_Gym_EventScript_154ABC
compare FACING, 1
- callif 1, PetalburgCity_Gym_EventScript_154AC7
+ call_if 1, PetalburgCity_Gym_EventScript_154AC7
compare FACING, 3
- callif 1, PetalburgCity_Gym_EventScript_154AD2
+ call_if 1, PetalburgCity_Gym_EventScript_154AD2
compare FACING, 4
- callif 1, PetalburgCity_Gym_EventScript_154ADD
+ call_if 1, PetalburgCity_Gym_EventScript_154ADD
pause 70
compare FACING, 2
- callif 1, PetalburgCity_Gym_EventScript_154AE8
+ call_if 1, PetalburgCity_Gym_EventScript_154AE8
compare FACING, 1
- callif 1, PetalburgCity_Gym_EventScript_154AF3
+ call_if 1, PetalburgCity_Gym_EventScript_154AF3
compare FACING, 3
- callif 1, PetalburgCity_Gym_EventScript_154AFE
+ call_if 1, PetalburgCity_Gym_EventScript_154AFE
compare FACING, 4
- callif 1, PetalburgCity_Gym_EventScript_154B09
+ call_if 1, PetalburgCity_Gym_EventScript_154B09
msgbox PetalburgCity_Gym_Text_17A9F6, 4
release
end
@@ -593,14 +593,14 @@ PetalburgCity_Gym_EventScript_154B69:: @ 8154B69
PetalburgCity_Gym_EventScript_154B73:: @ 8154B73
lockall
compare 0x4085, 6
- jumpif 0, PetalburgCity_Gym_EventScript_154BB9
+ goto_if 0, PetalburgCity_Gym_EventScript_154BB9
setvar 0x8008, 7
setvar 0x8009, 85
msgbox PetalburgCity_Gym_Text_17B870, 5
compare RESULT, 1
- jumpeq PetalburgCity_Gym_EventScript_154BA8
+ goto_if_eq PetalburgCity_Gym_EventScript_154BA8
compare RESULT, 0
- jumpeq PetalburgCity_Gym_EventScript_154BB7
+ goto_if_eq PetalburgCity_Gym_EventScript_154BB7
end
PetalburgCity_Gym_EventScript_154BA8:: @ 8154BA8
@@ -623,150 +623,150 @@ PetalburgCity_Gym_EventScript_154BB9:: @ 8154BB9
PetalburgCity_Gym_EventScript_154BC3:: @ 8154BC3
lockall
compare 0x4085, 6
- jumpif 0, PetalburgCity_Gym_EventScript_154BB9
+ goto_if 0, PetalburgCity_Gym_EventScript_154BB9
setvar 0x8008, 1
setvar 0x8009, 98
msgbox PetalburgCity_Gym_Text_17B8D4, 5
compare RESULT, 1
- jumpeq PetalburgCity_Gym_EventScript_154BA8
+ goto_if_eq PetalburgCity_Gym_EventScript_154BA8
compare RESULT, 0
- jumpeq PetalburgCity_Gym_EventScript_154BB7
+ goto_if_eq PetalburgCity_Gym_EventScript_154BB7
end
PetalburgCity_Gym_EventScript_154BF8:: @ 8154BF8
lockall
checktrainerflag OPPONENT_RANDALL
- jumpif 0, PetalburgCity_Gym_EventScript_154BB9
+ goto_if 0, PetalburgCity_Gym_EventScript_154BB9
setvar 0x8008, 7
setvar 0x8009, 46
msgbox PetalburgCity_Gym_Text_17B90F, 5
compare RESULT, 1
- jumpeq PetalburgCity_Gym_EventScript_154BA8
+ goto_if_eq PetalburgCity_Gym_EventScript_154BA8
compare RESULT, 0
- jumpeq PetalburgCity_Gym_EventScript_154BB7
+ goto_if_eq PetalburgCity_Gym_EventScript_154BB7
end
PetalburgCity_Gym_EventScript_154C2B:: @ 8154C2B
lockall
checktrainerflag OPPONENT_RANDALL
- jumpif 0, PetalburgCity_Gym_EventScript_154BB9
+ goto_if 0, PetalburgCity_Gym_EventScript_154BB9
setvar 0x8008, 1
setvar 0x8009, 59
msgbox PetalburgCity_Gym_Text_17B950, 5
compare RESULT, 1
- jumpeq PetalburgCity_Gym_EventScript_154BA8
+ goto_if_eq PetalburgCity_Gym_EventScript_154BA8
compare RESULT, 0
- jumpeq PetalburgCity_Gym_EventScript_154BB7
+ goto_if_eq PetalburgCity_Gym_EventScript_154BB7
end
PetalburgCity_Gym_EventScript_154C5E:: @ 8154C5E
lockall
checktrainerflag OPPONENT_MARY
- jumpif 0, PetalburgCity_Gym_EventScript_154BB9
+ goto_if 0, PetalburgCity_Gym_EventScript_154BB9
setvar 0x8008, 7
setvar 0x8009, 59
msgbox PetalburgCity_Gym_Text_17B950, 5
compare RESULT, 1
- jumpeq PetalburgCity_Gym_EventScript_154BA8
+ goto_if_eq PetalburgCity_Gym_EventScript_154BA8
compare RESULT, 0
- jumpeq PetalburgCity_Gym_EventScript_154BB7
+ goto_if_eq PetalburgCity_Gym_EventScript_154BB7
end
PetalburgCity_Gym_EventScript_154C91:: @ 8154C91
lockall
checktrainerflag OPPONENT_MARY
- jumpif 0, PetalburgCity_Gym_EventScript_154BB9
+ goto_if 0, PetalburgCity_Gym_EventScript_154BB9
setvar 0x8008, 1
setvar 0x8009, 72
msgbox PetalburgCity_Gym_Text_17B98A, 5
compare RESULT, 1
- jumpeq PetalburgCity_Gym_EventScript_154BA8
+ goto_if_eq PetalburgCity_Gym_EventScript_154BA8
compare RESULT, 0
- jumpeq PetalburgCity_Gym_EventScript_154BB7
+ goto_if_eq PetalburgCity_Gym_EventScript_154BB7
end
PetalburgCity_Gym_EventScript_154CC4:: @ 8154CC4
lockall
checktrainerflag OPPONENT_PARKER
- jumpif 0, PetalburgCity_Gym_EventScript_154BB9
+ goto_if 0, PetalburgCity_Gym_EventScript_154BB9
setvar 0x8008, 1
setvar 0x8009, 20
msgbox PetalburgCity_Gym_Text_17B9C5, 5
compare RESULT, 1
- jumpeq PetalburgCity_Gym_EventScript_154BA8
+ goto_if_eq PetalburgCity_Gym_EventScript_154BA8
compare RESULT, 0
- jumpeq PetalburgCity_Gym_EventScript_154BB7
+ goto_if_eq PetalburgCity_Gym_EventScript_154BB7
end
PetalburgCity_Gym_EventScript_154CF7:: @ 8154CF7
lockall
checktrainerflag OPPONENT_LORI
- jumpif 0, PetalburgCity_Gym_EventScript_154BB9
+ goto_if 0, PetalburgCity_Gym_EventScript_154BB9
setvar 0x8008, 7
setvar 0x8009, 20
msgbox PetalburgCity_Gym_Text_17B9C5, 5
compare RESULT, 1
- jumpeq PetalburgCity_Gym_EventScript_154BA8
+ goto_if_eq PetalburgCity_Gym_EventScript_154BA8
compare RESULT, 0
- jumpeq PetalburgCity_Gym_EventScript_154BB7
+ goto_if_eq PetalburgCity_Gym_EventScript_154BB7
end
PetalburgCity_Gym_EventScript_154D2A:: @ 8154D2A
lockall
checktrainerflag OPPONENT_LORI
- jumpif 0, PetalburgCity_Gym_EventScript_154BB9
+ goto_if 0, PetalburgCity_Gym_EventScript_154BB9
setvar 0x8008, 1
setvar 0x8009, 33
msgbox PetalburgCity_Gym_Text_17BA00, 5
compare RESULT, 1
- jumpeq PetalburgCity_Gym_EventScript_154BA8
+ goto_if_eq PetalburgCity_Gym_EventScript_154BA8
compare RESULT, 0
- jumpeq PetalburgCity_Gym_EventScript_154BB7
+ goto_if_eq PetalburgCity_Gym_EventScript_154BB7
end
PetalburgCity_Gym_EventScript_154D5D:: @ 8154D5D
lockall
checktrainerflag OPPONENT_GEORGE
- jumpif 0, PetalburgCity_Gym_EventScript_154BB9
+ goto_if 0, PetalburgCity_Gym_EventScript_154BB9
setvar 0x8008, 7
setvar 0x8009, 33
msgbox PetalburgCity_Gym_Text_17BA00, 5
compare RESULT, 1
- jumpeq PetalburgCity_Gym_EventScript_154BA8
+ goto_if_eq PetalburgCity_Gym_EventScript_154BA8
compare RESULT, 0
- jumpeq PetalburgCity_Gym_EventScript_154BB7
+ goto_if_eq PetalburgCity_Gym_EventScript_154BB7
end
PetalburgCity_Gym_EventScript_154D90:: @ 8154D90
lockall
checktrainerflag OPPONENT_JODY
- jumpif 0, PetalburgCity_Gym_EventScript_154BB9
+ goto_if 0, PetalburgCity_Gym_EventScript_154BB9
setvar 0x8008, 1
setvar 0x8009, 7
msgbox PetalburgCity_Gym_Text_17BA3D, 5
compare RESULT, 1
- jumpeq PetalburgCity_Gym_EventScript_154BA8
+ goto_if_eq PetalburgCity_Gym_EventScript_154BA8
compare RESULT, 0
- jumpeq PetalburgCity_Gym_EventScript_154BB7
+ goto_if_eq PetalburgCity_Gym_EventScript_154BB7
end
PetalburgCity_Gym_EventScript_154DC3:: @ 8154DC3
lockall
checktrainerflag OPPONENT_BERKE
- jumpif 0, PetalburgCity_Gym_EventScript_154BB9
+ goto_if 0, PetalburgCity_Gym_EventScript_154BB9
setvar 0x8008, 7
setvar 0x8009, 7
msgbox PetalburgCity_Gym_Text_17BA3D, 5
compare RESULT, 1
- jumpeq PetalburgCity_Gym_EventScript_154BA8
+ goto_if_eq PetalburgCity_Gym_EventScript_154BA8
compare RESULT, 0
- jumpeq PetalburgCity_Gym_EventScript_154BB7
+ goto_if_eq PetalburgCity_Gym_EventScript_154BB7
end
PetalburgCity_Gym_EventScript_154DF6:: @ 8154DF6
trainerbattle 2, OPPONENT_RANDALL, 0, PetalburgCity_Gym_Text_17ADA5, PetalburgCity_Gym_Text_17AE11, PetalburgCity_Gym_EventScript_154E1A
checkflag 1217
- jumpeq PetalburgCity_Gym_EventScript_154E29
+ goto_if_eq PetalburgCity_Gym_EventScript_154E29
msgbox PetalburgCity_Gym_Text_17AE30, 6
end
@@ -784,7 +784,7 @@ PetalburgCity_Gym_EventScript_154E29:: @ 8154E29
PetalburgCity_Gym_EventScript_154E32:: @ 8154E32
trainerbattle 2, OPPONENT_PARKER, 0, PetalburgCity_Gym_Text_17AF5A, PetalburgCity_Gym_Text_17AF98, PetalburgCity_Gym_EventScript_154E56
checkflag 1217
- jumpeq PetalburgCity_Gym_EventScript_154E65
+ goto_if_eq PetalburgCity_Gym_EventScript_154E65
msgbox PetalburgCity_Gym_Text_17AFD3, 6
end
@@ -802,7 +802,7 @@ PetalburgCity_Gym_EventScript_154E65:: @ 8154E65
PetalburgCity_Gym_EventScript_154E6E:: @ 8154E6E
trainerbattle 2, OPPONENT_GEORGE, 0, PetalburgCity_Gym_Text_17B058, PetalburgCity_Gym_Text_17B0F7, PetalburgCity_Gym_EventScript_154E92
checkflag 1217
- jumpeq PetalburgCity_Gym_EventScript_154EA1
+ goto_if_eq PetalburgCity_Gym_EventScript_154EA1
msgbox PetalburgCity_Gym_Text_17B12C, 6
end
@@ -820,7 +820,7 @@ PetalburgCity_Gym_EventScript_154EA1:: @ 8154EA1
PetalburgCity_Gym_EventScript_154EAA:: @ 8154EAA
trainerbattle 2, OPPONENT_BERKE, 0, PetalburgCity_Gym_Text_17B237, PetalburgCity_Gym_Text_17B2C0, PetalburgCity_Gym_EventScript_154ECE
checkflag 1217
- jumpeq PetalburgCity_Gym_EventScript_154EDD
+ goto_if_eq PetalburgCity_Gym_EventScript_154EDD
msgbox PetalburgCity_Gym_Text_17B2E4, 6
end
@@ -838,7 +838,7 @@ PetalburgCity_Gym_EventScript_154EDD:: @ 8154EDD
PetalburgCity_Gym_EventScript_154EE6:: @ 8154EE6
trainerbattle 2, OPPONENT_MARY, 0, PetalburgCity_Gym_Text_17B3F7, PetalburgCity_Gym_Text_17B454, PetalburgCity_Gym_EventScript_154F0A
checkflag 1217
- jumpeq PetalburgCity_Gym_EventScript_154F19
+ goto_if_eq PetalburgCity_Gym_EventScript_154F19
msgbox PetalburgCity_Gym_Text_17B46F, 6
end
@@ -856,7 +856,7 @@ PetalburgCity_Gym_EventScript_154F19:: @ 8154F19
PetalburgCity_Gym_EventScript_154F22:: @ 8154F22
trainerbattle 2, OPPONENT_LORI, 0, PetalburgCity_Gym_Text_17B58D, PetalburgCity_Gym_Text_17B5CB, PetalburgCity_Gym_EventScript_154F46
checkflag 1217
- jumpeq PetalburgCity_Gym_EventScript_154F55
+ goto_if_eq PetalburgCity_Gym_EventScript_154F55
msgbox PetalburgCity_Gym_Text_17B5EA, 6
end
@@ -874,7 +874,7 @@ PetalburgCity_Gym_EventScript_154F55:: @ 8154F55
PetalburgCity_Gym_EventScript_154F5E:: @ 8154F5E
trainerbattle 2, OPPONENT_JODY, 0, PetalburgCity_Gym_Text_17B6D4, PetalburgCity_Gym_Text_17B732, PetalburgCity_Gym_EventScript_154F82
checkflag 1217
- jumpeq PetalburgCity_Gym_EventScript_154F91
+ goto_if_eq PetalburgCity_Gym_EventScript_154F91
msgbox PetalburgCity_Gym_Text_17B749, 6
end
@@ -892,72 +892,72 @@ PetalburgCity_Gym_EventScript_154F91:: @ 8154F91
PetalburgCity_Gym_EventScript_154F9A:: @ 8154F9A
setvar 0x8004, 1
compare 0x8005, 0
- callif 1, PetalburgCity_Gym_EventScript_155182
+ call_if 1, PetalburgCity_Gym_EventScript_155182
compare 0x8005, 1
- callif 1, PetalburgCity_Gym_EventScript_155187
+ call_if 1, PetalburgCity_Gym_EventScript_155187
call PetalburgCity_Gym_EventScript_1550A2
return
PetalburgCity_Gym_EventScript_154FBB:: @ 8154FBB
setvar 0x8004, 2
compare 0x8005, 0
- callif 1, PetalburgCity_Gym_EventScript_155182
+ call_if 1, PetalburgCity_Gym_EventScript_155182
compare 0x8005, 1
- callif 1, PetalburgCity_Gym_EventScript_155187
+ call_if 1, PetalburgCity_Gym_EventScript_155187
call PetalburgCity_Gym_EventScript_1550C7
return
PetalburgCity_Gym_EventScript_154FDC:: @ 8154FDC
setvar 0x8004, 3
compare 0x8005, 0
- callif 1, PetalburgCity_Gym_EventScript_155182
+ call_if 1, PetalburgCity_Gym_EventScript_155182
compare 0x8005, 1
- callif 1, PetalburgCity_Gym_EventScript_155187
+ call_if 1, PetalburgCity_Gym_EventScript_155187
call PetalburgCity_Gym_EventScript_1550EC
return
PetalburgCity_Gym_EventScript_154FFD:: @ 8154FFD
setvar 0x8004, 4
compare 0x8005, 0
- callif 1, PetalburgCity_Gym_EventScript_155182
+ call_if 1, PetalburgCity_Gym_EventScript_155182
compare 0x8005, 1
- callif 1, PetalburgCity_Gym_EventScript_155187
+ call_if 1, PetalburgCity_Gym_EventScript_155187
call PetalburgCity_Gym_EventScript_155111
return
PetalburgCity_Gym_EventScript_15501E:: @ 815501E
setvar 0x8004, 5
compare 0x8005, 0
- callif 1, PetalburgCity_Gym_EventScript_155182
+ call_if 1, PetalburgCity_Gym_EventScript_155182
compare 0x8005, 1
- callif 1, PetalburgCity_Gym_EventScript_155187
+ call_if 1, PetalburgCity_Gym_EventScript_155187
call PetalburgCity_Gym_EventScript_155124
return
PetalburgCity_Gym_EventScript_15503F:: @ 815503F
setvar 0x8004, 6
compare 0x8005, 0
- callif 1, PetalburgCity_Gym_EventScript_155182
+ call_if 1, PetalburgCity_Gym_EventScript_155182
compare 0x8005, 1
- callif 1, PetalburgCity_Gym_EventScript_155187
+ call_if 1, PetalburgCity_Gym_EventScript_155187
call PetalburgCity_Gym_EventScript_155149
return
PetalburgCity_Gym_EventScript_155060:: @ 8155060
setvar 0x8004, 7
compare 0x8005, 0
- callif 1, PetalburgCity_Gym_EventScript_155182
+ call_if 1, PetalburgCity_Gym_EventScript_155182
compare 0x8005, 1
- callif 1, PetalburgCity_Gym_EventScript_155187
+ call_if 1, PetalburgCity_Gym_EventScript_155187
call PetalburgCity_Gym_EventScript_15515C
return
PetalburgCity_Gym_EventScript_155081:: @ 8155081
setvar 0x8004, 8
compare 0x8005, 0
- callif 1, PetalburgCity_Gym_EventScript_155182
+ call_if 1, PetalburgCity_Gym_EventScript_155182
compare 0x8005, 1
- callif 1, PetalburgCity_Gym_EventScript_155187
+ call_if 1, PetalburgCity_Gym_EventScript_155187
call PetalburgCity_Gym_EventScript_15516F
return
@@ -1022,7 +1022,7 @@ PetalburgCity_Gym_EventScript_15518B:: @ 815518B
lock
faceplayer
checkflag 1217
- jumpeq PetalburgCity_Gym_EventScript_1551A0
+ goto_if_eq PetalburgCity_Gym_EventScript_1551A0
msgbox PetalburgCity_Gym_Text_17AB96, 4
release
end
@@ -1035,14 +1035,14 @@ PetalburgCity_Gym_EventScript_1551A0:: @ 81551A0
PetalburgCity_Gym_EventScript_1551AA:: @ 81551AA
lockall
checkflag 2059
- jumpeq PetalburgCity_Gym_EventScript_1551CA
+ goto_if_eq PetalburgCity_Gym_EventScript_1551CA
goto PetalburgCity_Gym_EventScript_1551D4
end
PetalburgCity_Gym_EventScript_1551BA:: @ 81551BA
lockall
checkflag 2059
- jumpeq PetalburgCity_Gym_EventScript_1551CA
+ goto_if_eq PetalburgCity_Gym_EventScript_1551CA
goto PetalburgCity_Gym_EventScript_1551D4
end
diff --git a/data/scripts/maps/PetalburgCity_Mart.inc b/data/scripts/maps/PetalburgCity_Mart.inc
index 2eac03cac..ab7bb822a 100644
--- a/data/scripts/maps/PetalburgCity_Mart.inc
+++ b/data/scripts/maps/PetalburgCity_Mart.inc
@@ -7,7 +7,7 @@ PetalburgCity_Mart_EventScript_1552B0:: @ 81552B0
message PetalburgCity_Mart_Text_1A0BE4
waittext
checkflag 296
- jumpeq PetalburgCity_Mart_EventScript_1552EA
+ goto_if_eq PetalburgCity_Mart_EventScript_1552EA
pokemart PetalburgCity_Mart_Items1
msgbox PetalburgCity_Mart_Text_1A0C02, 4
release
diff --git a/data/scripts/maps/PetalburgCity_PokemonCenter_1F.inc b/data/scripts/maps/PetalburgCity_PokemonCenter_1F.inc
index 5ef99eee1..63dcaa6ca 100644
--- a/data/scripts/maps/PetalburgCity_PokemonCenter_1F.inc
+++ b/data/scripts/maps/PetalburgCity_PokemonCenter_1F.inc
@@ -29,17 +29,17 @@ PetalburgCity_PokemonCenter_1F_EventScript_155233:: @ 8155233
msgbox PetalburgCity_PokemonCenter_1F_Text_17BDC5, 4
specialval RESULT, IsStarterInParty
compare RESULT, 1
- jumpeq PetalburgCity_PokemonCenter_1F_EventScript_15524F
+ goto_if_eq PetalburgCity_PokemonCenter_1F_EventScript_15524F
release
end
PetalburgCity_PokemonCenter_1F_EventScript_15524F:: @ 815524F
compare 0x4023, 0
- callif 1, PetalburgCity_PokemonCenter_1F_EventScript_155272
+ call_if 1, PetalburgCity_PokemonCenter_1F_EventScript_155272
compare 0x4023, 1
- callif 1, PetalburgCity_PokemonCenter_1F_EventScript_15527B
+ call_if 1, PetalburgCity_PokemonCenter_1F_EventScript_15527B
compare 0x4023, 2
- callif 1, PetalburgCity_PokemonCenter_1F_EventScript_155284
+ call_if 1, PetalburgCity_PokemonCenter_1F_EventScript_155284
release
end
diff --git a/data/scripts/maps/PetalburgCity_WallysHouse.inc b/data/scripts/maps/PetalburgCity_WallysHouse.inc
index fb521aa46..d8e95d8c6 100644
--- a/data/scripts/maps/PetalburgCity_WallysHouse.inc
+++ b/data/scripts/maps/PetalburgCity_WallysHouse.inc
@@ -5,13 +5,13 @@ PetalburgCity_WallysHouse_EventScript_1543C4:: @ 81543C4
lock
faceplayer
checkflag 126
- jumpeq PetalburgCity_WallysHouse_EventScript_1543F7
+ goto_if_eq PetalburgCity_WallysHouse_EventScript_1543F7
checkflag 122
- jumpeq PetalburgCity_WallysHouse_EventScript_154427
+ goto_if_eq PetalburgCity_WallysHouse_EventScript_154427
checkflag 1217
- jumpeq PetalburgCity_WallysHouse_EventScript_154406
+ goto_if_eq PetalburgCity_WallysHouse_EventScript_154406
checkflag 135
- jumpeq PetalburgCity_WallysHouse_EventScript_15443B
+ goto_if_eq PetalburgCity_WallysHouse_EventScript_15443B
msgbox PetalburgCity_WallysHouse_Text_179805, 4
setflag 135
release
@@ -19,7 +19,7 @@ PetalburgCity_WallysHouse_EventScript_1543C4:: @ 81543C4
PetalburgCity_WallysHouse_EventScript_1543F7:: @ 81543F7
checkflag 122
- jumpeq PetalburgCity_WallysHouse_EventScript_154431
+ goto_if_eq PetalburgCity_WallysHouse_EventScript_154431
goto PetalburgCity_WallysHouse_EventScript_154406
end
@@ -50,9 +50,9 @@ PetalburgCity_WallysHouse_EventScript_154445:: @ 8154445
lock
faceplayer
checkflag 122
- jumpeq PetalburgCity_WallysHouse_EventScript_15446D
+ goto_if_eq PetalburgCity_WallysHouse_EventScript_15446D
checkflag 1217
- jumpeq PetalburgCity_WallysHouse_EventScript_154463
+ goto_if_eq PetalburgCity_WallysHouse_EventScript_154463
msgbox PetalburgCity_WallysHouse_Text_179C2C, 4
release
end
diff --git a/data/scripts/maps/PetalburgWoods.inc b/data/scripts/maps/PetalburgWoods.inc
index 463fbec3c..d1d3a1b8a 100644
--- a/data/scripts/maps/PetalburgWoods.inc
+++ b/data/scripts/maps/PetalburgWoods.inc
@@ -92,7 +92,7 @@ PetalburgWoods_EventScript_15CDFA:: @ 815CDFA
msgbox PetalburgWoods_Text_19507E, 4
giveitem ITEM_GREAT_BALL
compare RESULT, 0
- jumpeq PetalburgWoods_EventScript_15CE3F
+ goto_if_eq PetalburgWoods_EventScript_15CE3F
goto PetalburgWoods_EventScript_15CE4D
end
@@ -242,11 +242,11 @@ PetalburgWoods_EventScript_15CEDC:: @ 815CEDC
lock
faceplayer
checkflag 297
- jumpeq PetalburgWoods_EventScript_15CF0B
+ goto_if_eq PetalburgWoods_EventScript_15CF0B
msgbox PetalburgWoods_Text_19549E, 4
giveitem ITEM_MIRACLE_SEED
compare RESULT, 0
- jumpeq PetalburgWoods_EventScript_1A029B
+ goto_if_eq PetalburgWoods_EventScript_1A029B
setflag 297
release
end
@@ -273,7 +273,7 @@ PetalburgWoods_EventScript_15CF3E:: @ 815CF3E
trainerbattle 0, OPPONENT_JAMES_1, 0, PetalburgWoods_Text_19526A, PetalburgWoods_Text_1952AE
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq PetalburgWoods_EventScript_15CF65
+ goto_if_eq PetalburgWoods_EventScript_15CF65
msgbox PetalburgWoods_Text_1952CC, 6
end
diff --git a/data/scripts/maps/Route102.inc b/data/scripts/maps/Route102.inc
index b0a714763..5f9f76be2 100644
--- a/data/scripts/maps/Route102.inc
+++ b/data/scripts/maps/Route102.inc
@@ -21,7 +21,7 @@ Route102_EventScript_14EAFE:: @ 814EAFE
trainerbattle 0, OPPONENT_CALVIN_1, 0, Route102_Text_1B79C3, Route102_Text_1B7A2C
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route102_EventScript_14EB25
+ goto_if_eq Route102_EventScript_14EB25
msgbox Route102_Text_1B7A60, 6
end
diff --git a/data/scripts/maps/Route103.inc b/data/scripts/maps/Route103.inc
index 2d0c1c921..d12f8918f 100644
--- a/data/scripts/maps/Route103.inc
+++ b/data/scripts/maps/Route103.inc
@@ -11,9 +11,9 @@ Route103_EventScript_14EB92:: @ 814EB92
lockall
checkgender
compare RESULT, 0
- jumpeq Route103_EventScript_14EBAB
+ goto_if_eq Route103_EventScript_14EBAB
compare RESULT, 1
- jumpeq Route103_EventScript_14EC04
+ goto_if_eq Route103_EventScript_14EC04
end
Route103_EventScript_14EBAB:: @ 814EBAB
@@ -175,7 +175,7 @@ Route103_EventScript_14EDAB:: @ 814EDAB
trainerbattle 4, OPPONENT_AMY_AND_LIV_1, 0, Route103_Text_1B7DF7, Route103_Text_1B7E3B, Route103_Text_1B7EAC
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route103_EventScript_14EDD6
+ goto_if_eq Route103_EventScript_14EDD6
msgbox Route103_Text_1B7E50, 6
end
@@ -188,7 +188,7 @@ Route103_EventScript_14EDF1:: @ 814EDF1
trainerbattle 4, OPPONENT_AMY_AND_LIV_1, 0, Route103_Text_1B7EFB, Route103_Text_1B7F20, Route103_Text_1B7F8E
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route103_EventScript_14EE1C
+ goto_if_eq Route103_EventScript_14EE1C
msgbox Route103_Text_1B7F40, 6
end
@@ -206,7 +206,7 @@ Route103_EventScript_14EE4E:: @ 814EE4E
trainerbattle 0, OPPONENT_MIGUEL_1, 0, Route103_Text_1B82A9, Route103_Text_1B82EC
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route103_EventScript_14EE75
+ goto_if_eq Route103_EventScript_14EE75
msgbox Route103_Text_1B830D, 6
end
diff --git a/data/scripts/maps/Route104.inc b/data/scripts/maps/Route104.inc
index d829c6a93..584ab47dd 100644
--- a/data/scripts/maps/Route104.inc
+++ b/data/scripts/maps/Route104.inc
@@ -18,9 +18,9 @@ Route104_MapScript1_14EEA8:: @ 814EEA8
Route104_EventScript_14EEAE:: @ 814EEAE
checkflag 127
- jumpif 0, Route104_EventScript_14EEC4
+ goto_if 0, Route104_EventScript_14EEC4
checkflag 2057
- jumpif 0, Route104_EventScript_14EEC4
+ goto_if 0, Route104_EventScript_14EEC4
clearflag 906
return
@@ -32,11 +32,11 @@ Route104_EventScript_14EEC8:: @ 814EEC8
lock
faceplayer
checkflag 246
- jumpeq Route104_EventScript_14EEFF
+ goto_if_eq Route104_EventScript_14EEFF
msgbox Route104_Text_1C55B9, 4
giveitem ITEM_CHESTO_BERRY
compare RESULT, 0
- jumpeq Route104_EventScript_1A029B
+ goto_if_eq Route104_EventScript_1A029B
setflag 246
msgbox Route104_Text_1C5665, 4
release
@@ -51,11 +51,11 @@ Route104_EventScript_14EF09:: @ 814EF09
lock
faceplayer
checkflag 279
- jumpeq Route104_EventScript_14EF38
+ goto_if_eq Route104_EventScript_14EF38
msgbox Route104_Text_16DD91, 4
giveitem ITEM_WHITE_HERB
compare RESULT, 0
- jumpeq Route104_EventScript_1A029B
+ goto_if_eq Route104_EventScript_1A029B
setflag 279
release
end
@@ -105,11 +105,11 @@ Route104_EventScript_14EF93:: @ 814EF93
lock
faceplayer
checkflag 262
- jumpeq Route104_EventScript_14EFC2
+ goto_if_eq Route104_EventScript_14EFC2
msgbox Route104_Text_16DC5F, 4
giveitem ITEM_TM09
compare RESULT, 0
- jumpeq Route104_EventScript_1A029B
+ goto_if_eq Route104_EventScript_1A029B
setflag 262
release
end
@@ -159,9 +159,9 @@ Route104_EventScript_14EFD5:: @ 814EFD5
moveoffscreen 2
setvar 0x408e, 0
checkflag 189
- jumpif 0, Route104_EventScript_14F08B
+ goto_if 0, Route104_EventScript_14F08B
checkflag 189
- jumpeq Route104_EventScript_14F095
+ goto_if_eq Route104_EventScript_14F095
end
Route104_EventScript_14F08B:: @ 814F08B
@@ -411,7 +411,7 @@ Route104_EventScript_14F1A0:: @ 814F1A0
trainerbattle 0, OPPONENT_HALEY_1, 0, Route104_Text_1B8770, Route104_Text_1B87A7
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route104_EventScript_14F1C7
+ goto_if_eq Route104_EventScript_14F1C7
msgbox Route104_Text_1B87C3, 6
end
@@ -424,7 +424,7 @@ Route104_EventScript_14F1DE:: @ 814F1DE
trainerbattle 0, OPPONENT_WINSTON_1, 0, Route104_Text_1B88D4, Route104_Text_1B8911
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route104_EventScript_14F205
+ goto_if_eq Route104_EventScript_14F205
msgbox Route104_Text_1B8925, 6
end
@@ -437,7 +437,7 @@ Route104_EventScript_14F21C:: @ 814F21C
trainerbattle 0, OPPONENT_CINDY_1, 0, Route104_Text_1B8A24, Route104_Text_1B8A61
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route104_EventScript_14F243
+ goto_if_eq Route104_EventScript_14F243
msgbox Route104_Text_1B8A69, 6
end
diff --git a/data/scripts/maps/Route104_MrBrineysHouse.inc b/data/scripts/maps/Route104_MrBrineysHouse.inc
index 693939cf4..ce32a544a 100644
--- a/data/scripts/maps/Route104_MrBrineysHouse.inc
+++ b/data/scripts/maps/Route104_MrBrineysHouse.inc
@@ -5,9 +5,9 @@ Route104_MrBrineysHouse_MapScripts:: @ 815BCB2
Route104_MrBrineysHouse_MapScript1_15BCB8:: @ 815BCB8
setflag 2109
compare 0x4090, 1
- callif 1, Route104_MrBrineysHouse_EventScript_15BCD4
+ call_if 1, Route104_MrBrineysHouse_EventScript_15BCD4
checkflag 188
- callif 1, Route104_MrBrineysHouse_EventScript_15BCD0
+ call_if 1, Route104_MrBrineysHouse_EventScript_15BCD0
end
Route104_MrBrineysHouse_EventScript_15BCD0:: @ 815BCD0
@@ -25,11 +25,11 @@ Route104_MrBrineysHouse_EventScript_15BCEB:: @ 815BCEB
lock
faceplayer
checkflag 147
- callif 0, Route104_MrBrineysHouse_EventScript_15BD0E
+ call_if 0, Route104_MrBrineysHouse_EventScript_15BD0E
checkflag 189
- jumpif 0, Route104_MrBrineysHouse_EventScript_15BD65
+ goto_if 0, Route104_MrBrineysHouse_EventScript_15BD65
checkflag 149
- jumpif 0, Route104_MrBrineysHouse_EventScript_15BD7E
+ goto_if 0, Route104_MrBrineysHouse_EventScript_15BD7E
goto Route104_MrBrineysHouse_EventScript_15BD32
end
@@ -38,7 +38,7 @@ Route104_MrBrineysHouse_EventScript_15BD0E:: @ 815BD0E
msgbox Route104_MrBrineysHouse_Text_191A82, 4
msgbox Route104_MrBrineysHouse_Text_191AAD, 5
compare RESULT, 0
- jumpeq Route104_MrBrineysHouse_EventScript_15BD97
+ goto_if_eq Route104_MrBrineysHouse_EventScript_15BD97
goto Route104_MrBrineysHouse_EventScript_15BDAB
end
@@ -55,14 +55,14 @@ Route104_MrBrineysHouse_EventScript_15BD32:: @ 815BD32
Route104_MrBrineysHouse_EventScript_15BD65:: @ 815BD65
msgbox Route104_MrBrineysHouse_Text_191CC3, 5
compare RESULT, 0
- jumpeq Route104_MrBrineysHouse_EventScript_15BD97
+ goto_if_eq Route104_MrBrineysHouse_EventScript_15BD97
goto Route104_MrBrineysHouse_EventScript_15BDAB
end
Route104_MrBrineysHouse_EventScript_15BD7E:: @ 815BD7E
msgbox Route104_MrBrineysHouse_Text_191DA6, 5
compare RESULT, 0
- jumpeq Route104_MrBrineysHouse_EventScript_15BD97
+ goto_if_eq Route104_MrBrineysHouse_EventScript_15BD97
goto Route104_MrBrineysHouse_EventScript_15BDAB
end
diff --git a/data/scripts/maps/Route104_PrettyPetalFlowerShop.inc b/data/scripts/maps/Route104_PrettyPetalFlowerShop.inc
index 02842c62d..d4d7b59cb 100644
--- a/data/scripts/maps/Route104_PrettyPetalFlowerShop.inc
+++ b/data/scripts/maps/Route104_PrettyPetalFlowerShop.inc
@@ -5,9 +5,9 @@ Route104_PrettyPetalFlowerShop_MapScripts:: @ 815BDE4
Route104_PrettyPetalFlowerShop_MapScript1_15BDEA:: @ 815BDEA
setflag 2108
checkflag 127
- jumpif 0, Route104_PrettyPetalFlowerShop_EventScript_15BE03
+ goto_if 0, Route104_PrettyPetalFlowerShop_EventScript_15BE03
checkflag 2057
- jumpif 0, Route104_PrettyPetalFlowerShop_EventScript_15BE03
+ goto_if 0, Route104_PrettyPetalFlowerShop_EventScript_15BE03
setflag 1
end
@@ -19,25 +19,25 @@ Route104_PrettyPetalFlowerShop_EventScript_15BE0B:: @ 815BE0B
lock
faceplayer
checkflag 1
- jumpeq Route104_PrettyPetalFlowerShop_EventScript_15BE7C
+ goto_if_eq Route104_PrettyPetalFlowerShop_EventScript_15BE7C
msgbox Route104_PrettyPetalFlowerShop_Text_1C5EC6, 4
checkflag 127
- jumpeq Route104_PrettyPetalFlowerShop_EventScript_15BE4A
+ goto_if_eq Route104_PrettyPetalFlowerShop_EventScript_15BE4A
setflag 127
msgbox Route104_PrettyPetalFlowerShop_Text_1C5F48, 5
compare RESULT, 1
- callif 1, Route104_PrettyPetalFlowerShop_EventScript_15BE6A
+ call_if 1, Route104_PrettyPetalFlowerShop_EventScript_15BE6A
compare RESULT, 0
- callif 1, Route104_PrettyPetalFlowerShop_EventScript_15BE73
+ call_if 1, Route104_PrettyPetalFlowerShop_EventScript_15BE73
release
end
Route104_PrettyPetalFlowerShop_EventScript_15BE4A:: @ 815BE4A
msgbox Route104_PrettyPetalFlowerShop_Text_1C5F1B, 5
compare RESULT, 1
- callif 1, Route104_PrettyPetalFlowerShop_EventScript_15BE6A
+ call_if 1, Route104_PrettyPetalFlowerShop_EventScript_15BE6A
compare RESULT, 0
- callif 1, Route104_PrettyPetalFlowerShop_EventScript_15BE73
+ call_if 1, Route104_PrettyPetalFlowerShop_EventScript_15BE73
release
end
@@ -73,7 +73,7 @@ Route104_PrettyPetalFlowerShop_EventScript_15BEA4:: @ 815BEA4
lock
faceplayer
checkflag 94
- jumpif 0, Route104_PrettyPetalFlowerShop_EventScript_15BEB9
+ goto_if 0, Route104_PrettyPetalFlowerShop_EventScript_15BEB9
msgbox Route104_PrettyPetalFlowerShop_Text_1C61E8, 4
release
end
@@ -91,13 +91,13 @@ Route104_PrettyPetalFlowerShop_EventScript_15BEDA:: @ 815BEDA
faceplayer
checkdailyflags
checkflag 2256
- jumpeq Route104_PrettyPetalFlowerShop_EventScript_15BF1A
+ goto_if_eq Route104_PrettyPetalFlowerShop_EventScript_15BF1A
msgbox Route104_PrettyPetalFlowerShop_Text_1C62DA, 4
random 8
addvar RESULT, 133
giveitem RESULT
compare RESULT, 0
- jumpeq Route104_PrettyPetalFlowerShop_EventScript_1A029B
+ goto_if_eq Route104_PrettyPetalFlowerShop_EventScript_1A029B
setflag 2256
msgbox Route104_PrettyPetalFlowerShop_Text_1C6335, 4
release
diff --git a/data/scripts/maps/Route104_Prototype.inc b/data/scripts/maps/Route104_Prototype.inc
index ff1c9d258..e090c4bf2 100644
--- a/data/scripts/maps/Route104_Prototype.inc
+++ b/data/scripts/maps/Route104_Prototype.inc
@@ -5,21 +5,21 @@ Route104_Prototype_EventScript_160C4B:: @ 8160C4B
lock
faceplayer
checktrainerflag OPPONENT_BRIANNA_1
- jumpif 0, Route104_Prototype_EventScript_160C99
+ goto_if 0, Route104_Prototype_EventScript_160C99
checktrainerflag OPPONENT_CINDY_2
- jumpif 0, Route104_Prototype_EventScript_160C99
+ goto_if 0, Route104_Prototype_EventScript_160C99
checktrainerflag OPPONENT_AMY_AND_LIV_3
- jumpif 0, Route104_Prototype_EventScript_160C99
+ goto_if 0, Route104_Prototype_EventScript_160C99
checktrainerflag OPPONENT_GINA_AND_MIA_2
- jumpif 0, Route104_Prototype_EventScript_160C99
+ goto_if 0, Route104_Prototype_EventScript_160C99
checktrainerflag OPPONENT_LUCAS_2
- jumpif 0, Route104_Prototype_EventScript_160C99
+ goto_if 0, Route104_Prototype_EventScript_160C99
checktrainerflag OPPONENT_MIKE_1
- jumpif 0, Route104_Prototype_EventScript_160C99
+ goto_if 0, Route104_Prototype_EventScript_160C99
setflag 215
msgbox Route104_Prototype_Text_19B267, 4
checkflag 216
- jumpeq Route104_Prototype_EventScript_160CFB
+ goto_if_eq Route104_Prototype_EventScript_160CFB
release
end
@@ -32,21 +32,21 @@ Route104_Prototype_EventScript_160CA3:: @ 8160CA3
lock
faceplayer
checktrainerflag OPPONENT_BRIANNA_1
- jumpif 0, Route104_Prototype_EventScript_160CF1
+ goto_if 0, Route104_Prototype_EventScript_160CF1
checktrainerflag OPPONENT_CINDY_2
- jumpif 0, Route104_Prototype_EventScript_160CF1
+ goto_if 0, Route104_Prototype_EventScript_160CF1
checktrainerflag OPPONENT_AMY_AND_LIV_3
- jumpif 0, Route104_Prototype_EventScript_160CF1
+ goto_if 0, Route104_Prototype_EventScript_160CF1
checktrainerflag OPPONENT_GINA_AND_MIA_2
- jumpif 0, Route104_Prototype_EventScript_160CF1
+ goto_if 0, Route104_Prototype_EventScript_160CF1
checktrainerflag OPPONENT_LUCAS_2
- jumpif 0, Route104_Prototype_EventScript_160CF1
+ goto_if 0, Route104_Prototype_EventScript_160CF1
checktrainerflag OPPONENT_MIKE_1
- jumpif 0, Route104_Prototype_EventScript_160CF1
+ goto_if 0, Route104_Prototype_EventScript_160CF1
setflag 216
msgbox Route104_Prototype_Text_19B2E9, 4
checkflag 215
- jumpeq Route104_Prototype_EventScript_160CFB
+ goto_if_eq Route104_Prototype_EventScript_160CFB
release
end
diff --git a/data/scripts/maps/Route105.inc b/data/scripts/maps/Route105.inc
index c71e2ce05..1182dae7e 100644
--- a/data/scripts/maps/Route105.inc
+++ b/data/scripts/maps/Route105.inc
@@ -4,7 +4,7 @@ Route105_MapScripts:: @ 814F298
Route105_MapScript1_14F29E:: @ 814F29E
checkflag 228
- callif 0, Route105_EventScript_14F2A8
+ call_if 0, Route105_EventScript_14F2A8
end
Route105_EventScript_14F2A8:: @ 814F2A8
diff --git a/data/scripts/maps/Route106.inc b/data/scripts/maps/Route106.inc
index 0c25594c6..0acf70e64 100644
--- a/data/scripts/maps/Route106.inc
+++ b/data/scripts/maps/Route106.inc
@@ -19,7 +19,7 @@ Route106_EventScript_14F366:: @ 814F366
trainerbattle 0, OPPONENT_ELLIOT_1, 0, Route106_Text_1B8EF0, Route106_Text_1B8F25
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route106_EventScript_14F38D
+ goto_if_eq Route106_EventScript_14F38D
msgbox Route106_Text_1B8F55, 6
end
diff --git a/data/scripts/maps/Route107.inc b/data/scripts/maps/Route107.inc
index a14bb7298..9daa57b7e 100644
--- a/data/scripts/maps/Route107.inc
+++ b/data/scripts/maps/Route107.inc
@@ -10,7 +10,7 @@ Route107_EventScript_14F3D3:: @ 814F3D3
trainerbattle 0, OPPONENT_TONY_1, 0, Route107_Text_1B933A, Route107_Text_1B9365
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route107_EventScript_14F3FA
+ goto_if_eq Route107_EventScript_14F3FA
msgbox Route107_Text_1B938E, 6
end
diff --git a/data/scripts/maps/Route109.inc b/data/scripts/maps/Route109.inc
index 6e9d4adff..09be54c49 100644
--- a/data/scripts/maps/Route109.inc
+++ b/data/scripts/maps/Route109.inc
@@ -272,7 +272,7 @@ Route109_EventScript_14F680:: @ 814F680
lock
faceplayer
checkflag 149
- jumpif 0, Route109_EventScript_14F691
+ goto_if 0, Route109_EventScript_14F691
goto Route109_EventScript_14F6AF
end
@@ -280,7 +280,7 @@ Route109_EventScript_14F691:: @ 814F691
message Route109_Text_16E0F9
msgbox Route109_Text_16E0F9, 5
compare RESULT, 0
- jumpeq Route109_EventScript_14F6F1
+ goto_if_eq Route109_EventScript_14F6F1
goto Route109_EventScript_14F6E2
end
@@ -329,11 +329,11 @@ Route109_EventScript_14F725:: @ 814F725
faceplayer
special GetPlayerBigGuyGirlString
checkflag 280
- jumpeq Route109_EventScript_14F762
+ goto_if_eq Route109_EventScript_14F762
msgbox Route109_Text_16E433, 4
giveitem ITEM_SOFT_SAND
compare RESULT, 0
- jumpeq Route109_EventScript_1A029B
+ goto_if_eq Route109_EventScript_1A029B
closebutton
move LAST_TALKED, Route109_Movement_1A083D
waitmove 0
@@ -398,7 +398,7 @@ Route109_EventScript_14F809:: @ 814F809
trainerbattle 0, OPPONENT_RICKY_1, 0, Route109_Text_1B9C23, Route109_Text_1B9C65
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route109_EventScript_14F830
+ goto_if_eq Route109_EventScript_14F830
msgbox Route109_Text_1B9C6E, 6
end
@@ -411,7 +411,7 @@ Route109_EventScript_14F847:: @ 814F847
trainerbattle 0, OPPONENT_LOLA_1, 0, Route109_Text_1B9D54, Route109_Text_1B9D87
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route109_EventScript_14F86E
+ goto_if_eq Route109_EventScript_14F86E
msgbox Route109_Text_1B9D8E, 6
end
diff --git a/data/scripts/maps/Route109_SeashoreHouse.inc b/data/scripts/maps/Route109_SeashoreHouse.inc
index e8afb54fb..789ee3e56 100644
--- a/data/scripts/maps/Route109_SeashoreHouse.inc
+++ b/data/scripts/maps/Route109_SeashoreHouse.inc
@@ -10,11 +10,11 @@ Route109_SeashoreHouse_EventScript_160DD4:: @ 8160DD4
lock
faceplayer
checkflag 140
- jumpeq Route109_SeashoreHouse_EventScript_160E36
+ goto_if_eq Route109_SeashoreHouse_EventScript_160E36
checkflag 141
- jumpeq Route109_SeashoreHouse_EventScript_160E08
+ goto_if_eq Route109_SeashoreHouse_EventScript_160E08
checkflag 2
- jumpeq Route109_SeashoreHouse_EventScript_160DFE
+ goto_if_eq Route109_SeashoreHouse_EventScript_160DFE
msgbox Route109_SeashoreHouse_Text_19B4D9, 4
setflag 2
release
@@ -29,7 +29,7 @@ Route109_SeashoreHouse_EventScript_160E08:: @ 8160E08
msgbox Route109_SeashoreHouse_Text_19B609, 4
giveitem ITEM_SODA_POP, 6
compare RESULT, 0
- jumpeq Route109_SeashoreHouse_EventScript_160E2C
+ goto_if_eq Route109_SeashoreHouse_EventScript_160E2C
setflag 140
release
end
@@ -44,7 +44,7 @@ Route109_SeashoreHouse_EventScript_160E36:: @ 8160E36
nop
msgbox Route109_SeashoreHouse_Text_19B702, 5
compare RESULT, 1
- jumpeq Route109_SeashoreHouse_EventScript_160E5A
+ goto_if_eq Route109_SeashoreHouse_EventScript_160E5A
msgbox Route109_SeashoreHouse_Text_19B773, 4
hidemoney 0, 0
release
@@ -53,10 +53,10 @@ Route109_SeashoreHouse_EventScript_160E36:: @ 8160E36
Route109_SeashoreHouse_EventScript_160E5A:: @ 8160E5A
checkmoney 0x12c, 0
compare RESULT, 0
- jumpeq Route109_SeashoreHouse_EventScript_160E9E
+ goto_if_eq Route109_SeashoreHouse_EventScript_160E9E
checkitemspace ITEM_SODA_POP, 1
compare RESULT, 0
- jumpeq Route109_SeashoreHouse_EventScript_160EAB
+ goto_if_eq Route109_SeashoreHouse_EventScript_160EAB
msgbox Route109_SeashoreHouse_Text_19B74C, 4
paymoney 0x12c, 0
updatemoney 0, 0
@@ -95,11 +95,11 @@ Route109_SeashoreHouse_EventScript_160EEE:: @ 8160EEE
Route109_SeashoreHouse_EventScript_160F09:: @ 8160F09
checktrainerflag OPPONENT_DWAYNE
- jumpif 0, Route109_SeashoreHouse_EventScript_160F29
+ goto_if 0, Route109_SeashoreHouse_EventScript_160F29
checktrainerflag OPPONENT_JOHANNA
- jumpif 0, Route109_SeashoreHouse_EventScript_160F29
+ goto_if 0, Route109_SeashoreHouse_EventScript_160F29
checktrainerflag OPPONENT_SIMON
- jumpif 0, Route109_SeashoreHouse_EventScript_160F29
+ goto_if 0, Route109_SeashoreHouse_EventScript_160F29
setflag 141
release
end
diff --git a/data/scripts/maps/Route110.inc b/data/scripts/maps/Route110.inc
index 745faaddf..723c41e0c 100644
--- a/data/scripts/maps/Route110.inc
+++ b/data/scripts/maps/Route110.inc
@@ -13,7 +13,7 @@ Route110_MapScript1_14F914:: @ 814F914
call Route110_EventScript_1A014E
call Route110_EventScript_1A0172
compare 0x40a9, 1
- callif 1, Route110_EventScript_14F92F
+ call_if 1, Route110_EventScript_14F92F
end
Route110_EventScript_14F92F:: @ 814F92F
@@ -133,7 +133,7 @@ Route110_EventScript_14FA2E:: @ 814FA2E
lockall
specialval RESULT, GetRecordedCyclingRoadResults
compare RESULT, 0
- jumpeq Route110_EventScript_14FA49
+ goto_if_eq Route110_EventScript_14FA49
msgbox Route110_Text_16F53A, 4
releaseall
end
@@ -148,9 +148,9 @@ Route110_EventScript_14FA53:: @ 814FA53
faceplayer
specialval RESULT, GetPlayerAvatarBike
compare RESULT, 1
- jumpeq Route110_EventScript_14FA84
+ goto_if_eq Route110_EventScript_14FA84
compare 0x40a9, 0
- jumpeq Route110_EventScript_14FA7A
+ goto_if_eq Route110_EventScript_14FA7A
msgbox Route110_Text_16F26A, 4
release
end
@@ -179,7 +179,7 @@ Route110_EventScript_14FABC:: @ 814FABC
trainerbattle 0, OPPONENT_EDWIN_1, 0, Route110_Text_1BA7D2, Route110_Text_1BA803
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route110_EventScript_14FAE3
+ goto_if_eq Route110_EventScript_14FAE3
msgbox Route110_Text_1BA829, 6
end
@@ -207,7 +207,7 @@ Route110_EventScript_14FB3F:: @ 814FB3F
trainerbattle 0, OPPONENT_BENJAMIN_1, 0, Route110_Text_1BA352, Route110_Text_1BA379
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route110_EventScript_14FB66
+ goto_if_eq Route110_EventScript_14FB66
msgbox Route110_Text_1BA3A5, 6
end
@@ -225,7 +225,7 @@ Route110_EventScript_14FB94:: @ 814FB94
trainerbattle 0, OPPONENT_ABIGAIL_1, 0, Route110_Text_1BA4A0, Route110_Text_1BA50F
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route110_EventScript_14FBBB
+ goto_if_eq Route110_EventScript_14FBBB
msgbox Route110_Text_1BA52E, 6
end
@@ -238,7 +238,7 @@ Route110_EventScript_14FBD2:: @ 814FBD2
trainerbattle 0, OPPONENT_ISABEL_1, 0, Route110_Text_1BA990, Route110_Text_1BA9D0
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route110_EventScript_14FBF9
+ goto_if_eq Route110_EventScript_14FBF9
msgbox Route110_Text_1BA9E9, 6
end
@@ -327,9 +327,9 @@ Route110_EventScript_14FD34:: @ 814FD34
lockall
checkgender
compare RESULT, 0
- callif 1, Route110_EventScript_14FDA7
+ call_if 1, Route110_EventScript_14FDA7
compare RESULT, 1
- callif 1, Route110_EventScript_14FDAC
+ call_if 1, Route110_EventScript_14FDAC
move 28, Route110_Movement_1A0845
waitmove 0
move 28, Route110_Movement_1A0833
@@ -338,16 +338,16 @@ Route110_EventScript_14FD34:: @ 814FD34
waitmove 0
pause 30
compare 0x8008, 1
- callif 1, Route110_EventScript_14FF14
+ call_if 1, Route110_EventScript_14FF14
compare 0x8008, 2
- callif 1, Route110_EventScript_14FF1F
+ call_if 1, Route110_EventScript_14FF1F
compare 0x8008, 3
- callif 1, Route110_EventScript_14FF2A
+ call_if 1, Route110_EventScript_14FF2A
checkgender
compare RESULT, 0
- jumpeq Route110_EventScript_14FDB1
+ goto_if_eq Route110_EventScript_14FDB1
compare RESULT, 1
- jumpeq Route110_EventScript_14FE2B
+ goto_if_eq Route110_EventScript_14FE2B
releaseall
end
@@ -426,22 +426,22 @@ Route110_EventScript_14FEA5:: @ 814FEA5
Route110_EventScript_14FEB2:: @ 814FEB2
closebutton
compare 0x8008, 1
- callif 1, Route110_EventScript_14FF56
+ call_if 1, Route110_EventScript_14FF56
compare 0x8008, 2
- callif 1, Route110_EventScript_14FF5E
+ call_if 1, Route110_EventScript_14FF5E
compare 0x8008, 3
- callif 1, Route110_EventScript_14FF66
+ call_if 1, Route110_EventScript_14FF66
spritebehave 28, 10
spritebehave 29, 10
disappear 28
reappear 29
pause 45
compare 0x8008, 1
- callif 1, Route110_EventScript_14FF35
+ call_if 1, Route110_EventScript_14FF35
compare 0x8008, 2
- callif 1, Route110_EventScript_14FF40
+ call_if 1, Route110_EventScript_14FF40
compare 0x8008, 3
- callif 1, Route110_EventScript_14FF4B
+ call_if 1, Route110_EventScript_14FF4B
disappear 29
setvar 0x4069, 1
playmusicbattle 0
diff --git a/data/scripts/maps/Route110_SeasideCyclingRoadNorthEntrance.inc b/data/scripts/maps/Route110_SeasideCyclingRoadNorthEntrance.inc
index 96e492b39..32b3ae4fb 100644
--- a/data/scripts/maps/Route110_SeasideCyclingRoadNorthEntrance.inc
+++ b/data/scripts/maps/Route110_SeasideCyclingRoadNorthEntrance.inc
@@ -4,9 +4,9 @@ Route110_SeasideCyclingRoadNorthEntrance_MapScripts:: @ 81634C8
Route110_SeasideCyclingRoadNorthEntrance_MapScript1_1634CE:: @ 81634CE
compare 0x40a9, 3
- callif 1, Route110_SeasideCyclingRoadNorthEntrance_EventScript_1634E5
+ call_if 1, Route110_SeasideCyclingRoadNorthEntrance_EventScript_1634E5
compare 0x40a9, 2
- callif 1, Route110_SeasideCyclingRoadNorthEntrance_EventScript_1634E5
+ call_if 1, Route110_SeasideCyclingRoadNorthEntrance_EventScript_1634E5
end
Route110_SeasideCyclingRoadNorthEntrance_EventScript_1634E5:: @ 81634E5
@@ -25,9 +25,9 @@ Route110_SeasideCyclingRoadNorthEntrance_EventScript_1634F7:: @ 81634F7
lockall
specialval RESULT, GetPlayerAvatarBike @ player state?
compare RESULT, 2
- callif 1, Route110_SeasideCyclingRoadNorthEntrance_EventScript_16351D
+ call_if 1, Route110_SeasideCyclingRoadNorthEntrance_EventScript_16351D
compare RESULT, 0
- jumpeq Route110_SeasideCyclingRoadNorthEntrance_EventScript_163523
+ goto_if_eq Route110_SeasideCyclingRoadNorthEntrance_EventScript_163523
setflag 2091
setvar 0x4001, 1
releaseall
diff --git a/data/scripts/maps/Route110_SeasideCyclingRoadSouthEntrance.inc b/data/scripts/maps/Route110_SeasideCyclingRoadSouthEntrance.inc
index 08d6fb5f1..95ea7454e 100644
--- a/data/scripts/maps/Route110_SeasideCyclingRoadSouthEntrance.inc
+++ b/data/scripts/maps/Route110_SeasideCyclingRoadSouthEntrance.inc
@@ -12,7 +12,7 @@ Route110_SeasideCyclingRoadSouthEntrance_EventScript_16348B:: @ 816348B
lockall
specialval RESULT, GetPlayerAvatarBike
compare RESULT, 0
- jumpeq Route110_SeasideCyclingRoadSouthEntrance_EventScript_1634A6
+ goto_if_eq Route110_SeasideCyclingRoadSouthEntrance_EventScript_1634A6
setflag 2091
setvar 0x4001, 1
releaseall
diff --git a/data/scripts/maps/Route110_TrickHouseEnd.inc b/data/scripts/maps/Route110_TrickHouseEnd.inc
index 10e1a6865..d18f30a43 100644
--- a/data/scripts/maps/Route110_TrickHouseEnd.inc
+++ b/data/scripts/maps/Route110_TrickHouseEnd.inc
@@ -7,7 +7,7 @@ Route110_TrickHouseEnd_MapScripts:: @ 8161936
Route110_TrickHouseEnd_MapScript1_16194B:: @ 816194B
compare 0x4001, 1
- callif 1, Route110_TrickHouseEnd_EventScript_161994
+ call_if 1, Route110_TrickHouseEnd_EventScript_161994
end
Route110_TrickHouseEnd_MapScript1_161957:: @ 8161957
@@ -62,7 +62,7 @@ Route110_TrickHouseEnd_EventScript_161A0B:: @ 8161A0B
setvar 0x40c1, 0
giveitem ITEM_RARE_CANDY
compare RESULT, 0
- callif 1, Route110_TrickHouseEnd_EventScript_161C4E
+ call_if 1, Route110_TrickHouseEnd_EventScript_161C4E
msgbox Route110_TrickHouseEnd_Text_19C9BD, 4
closebutton
call Route110_TrickHouseEnd_EventScript_161C2E
@@ -75,7 +75,7 @@ Route110_TrickHouseEnd_EventScript_161A47:: @ 8161A47
setvar 0x40c1, 0
giveitem ITEM_TIMER_BALL
compare RESULT, 0
- callif 1, Route110_TrickHouseEnd_EventScript_161C4E
+ call_if 1, Route110_TrickHouseEnd_EventScript_161C4E
msgbox Route110_TrickHouseEnd_Text_19C9BD, 4
closebutton
call Route110_TrickHouseEnd_EventScript_161C2E
@@ -88,7 +88,7 @@ Route110_TrickHouseEnd_EventScript_161A83:: @ 8161A83
setvar 0x40c1, 0
giveitem ITEM_HARD_STONE
compare RESULT, 0
- callif 1, Route110_TrickHouseEnd_EventScript_161C4E
+ call_if 1, Route110_TrickHouseEnd_EventScript_161C4E
msgbox Route110_TrickHouseEnd_Text_19C9BD, 4
closebutton
call Route110_TrickHouseEnd_EventScript_161C2E
@@ -101,7 +101,7 @@ Route110_TrickHouseEnd_EventScript_161ABF:: @ 8161ABF
setvar 0x40c1, 0
giveitem ITEM_SMOKE_BALL
compare RESULT, 0
- callif 1, Route110_TrickHouseEnd_EventScript_161C4E
+ call_if 1, Route110_TrickHouseEnd_EventScript_161C4E
msgbox Route110_TrickHouseEnd_Text_19C9BD, 4
closebutton
call Route110_TrickHouseEnd_EventScript_161C2E
@@ -114,7 +114,7 @@ Route110_TrickHouseEnd_EventScript_161AFB:: @ 8161AFB
setvar 0x40c1, 0
giveitem ITEM_TM12
compare RESULT, 0
- callif 1, Route110_TrickHouseEnd_EventScript_161C4E
+ call_if 1, Route110_TrickHouseEnd_EventScript_161C4E
msgbox Route110_TrickHouseEnd_Text_19C9BD, 4
closebutton
call Route110_TrickHouseEnd_EventScript_161C2E
@@ -127,7 +127,7 @@ Route110_TrickHouseEnd_EventScript_161B37:: @ 8161B37
setvar 0x40c1, 0
giveitem ITEM_MAGNET
compare RESULT, 0
- callif 1, Route110_TrickHouseEnd_EventScript_161C4E
+ call_if 1, Route110_TrickHouseEnd_EventScript_161C4E
msgbox Route110_TrickHouseEnd_Text_19C9BD, 4
closebutton
call Route110_TrickHouseEnd_EventScript_161C2E
@@ -140,7 +140,7 @@ Route110_TrickHouseEnd_EventScript_161B73:: @ 8161B73
setvar 0x40c1, 0
giveitem ITEM_PP_MAX
compare RESULT, 0
- callif 1, Route110_TrickHouseEnd_EventScript_161C4E
+ call_if 1, Route110_TrickHouseEnd_EventScript_161C4E
msgbox Route110_TrickHouseEnd_Text_19C9BD, 4
closebutton
call Route110_TrickHouseEnd_EventScript_161C2E
@@ -151,13 +151,13 @@ Route110_TrickHouseEnd_EventScript_161BAF:: @ 8161BAF
msgbox Route110_TrickHouseEnd_Text_19C5AF, 4
closebutton
compare FACING, 1
- callif 1, Route110_TrickHouseEnd_EventScript_161C74
+ call_if 1, Route110_TrickHouseEnd_EventScript_161C74
compare FACING, 2
- callif 1, Route110_TrickHouseEnd_EventScript_161C7F
+ call_if 1, Route110_TrickHouseEnd_EventScript_161C7F
compare FACING, 3
- callif 1, Route110_TrickHouseEnd_EventScript_161C8A
+ call_if 1, Route110_TrickHouseEnd_EventScript_161C8A
compare FACING, 4
- callif 1, Route110_TrickHouseEnd_EventScript_161C95
+ call_if 1, Route110_TrickHouseEnd_EventScript_161C95
pause 30
msgbox Route110_TrickHouseEnd_Text_19C602, 4
closebutton
@@ -172,7 +172,7 @@ Route110_TrickHouseEnd_EventScript_161BAF:: @ 8161BAF
givedecoration 31
.endc
compare RESULT, 0
- callif 1, Route110_TrickHouseEnd_EventScript_161C61
+ call_if 1, Route110_TrickHouseEnd_EventScript_161C61
msgbox Route110_TrickHouseEnd_Text_19C85C, 4
call Route110_TrickHouseEnd_EventScript_161C2E
special ResetTrickHouseEndRoomFlag
diff --git a/data/scripts/maps/Route110_TrickHouseEntrance.inc b/data/scripts/maps/Route110_TrickHouseEntrance.inc
index 2601942be..81d6a44e0 100644
--- a/data/scripts/maps/Route110_TrickHouseEntrance.inc
+++ b/data/scripts/maps/Route110_TrickHouseEntrance.inc
@@ -7,17 +7,17 @@ Route110_TrickHouseEntrance_MapScripts:: @ 8160F2B
Route110_TrickHouseEntrance_MapScript1_160F3B:: @ 8160F3B
setflag 2114
compare 0x40b5, 1
- jumpeq Route110_TrickHouseEntrance_EventScript_160FCE
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_160FCE
compare 0x40c1, 1
- jumpeq Route110_TrickHouseEntrance_EventScript_160FB2
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_160FB2
compare 0x40a6, 1
- jumpeq Route110_TrickHouseEntrance_EventScript_16108E
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_16108E
compare 0x40a7, 5
- callif 1, Route110_TrickHouseEntrance_EventScript_160FDE
+ call_if 1, Route110_TrickHouseEntrance_EventScript_160FDE
compare 0x40a7, 3
- callif 1, Route110_TrickHouseEntrance_EventScript_160FDE
+ call_if 1, Route110_TrickHouseEntrance_EventScript_160FDE
compare 0x40a7, 0
- callif 1, Route110_TrickHouseEntrance_EventScript_160FDE
+ call_if 1, Route110_TrickHouseEntrance_EventScript_160FDE
switch 0x40a7
case 0, Route110_TrickHouseEntrance_EventScript_16109A
case 1, Route110_TrickHouseEntrance_EventScript_1610A0
@@ -28,7 +28,7 @@ Route110_TrickHouseEntrance_MapScript1_160F3B:: @ 8160F3B
Route110_TrickHouseEntrance_EventScript_160FB2:: @ 8160FB2
setvar 0x40a5, 1
compare 0x4044, 8
- jumpeq Route110_TrickHouseEntrance_EventScript_160FC8
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_160FC8
setvar 0x40a7, 2
end
@@ -45,56 +45,56 @@ Route110_TrickHouseEntrance_EventScript_160FCE:: @ 8160FCE
Route110_TrickHouseEntrance_EventScript_160FDE:: @ 8160FDE
setvar 0x40a7, 0
compare 0x4044, 1
- callif 1, Route110_TrickHouseEntrance_EventScript_16103C
+ call_if 1, Route110_TrickHouseEntrance_EventScript_16103C
compare 0x4044, 2
- callif 1, Route110_TrickHouseEntrance_EventScript_161046
+ call_if 1, Route110_TrickHouseEntrance_EventScript_161046
compare 0x4044, 3
- callif 1, Route110_TrickHouseEntrance_EventScript_161050
+ call_if 1, Route110_TrickHouseEntrance_EventScript_161050
compare 0x4044, 4
- callif 1, Route110_TrickHouseEntrance_EventScript_16105A
+ call_if 1, Route110_TrickHouseEntrance_EventScript_16105A
compare 0x4044, 5
- callif 1, Route110_TrickHouseEntrance_EventScript_161064
+ call_if 1, Route110_TrickHouseEntrance_EventScript_161064
compare 0x4044, 6
- callif 1, Route110_TrickHouseEntrance_EventScript_16106E
+ call_if 1, Route110_TrickHouseEntrance_EventScript_16106E
compare 0x4044, 7
- callif 1, Route110_TrickHouseEntrance_EventScript_161078
+ call_if 1, Route110_TrickHouseEntrance_EventScript_161078
compare 0x4044, 8
- callif 1, Route110_TrickHouseEntrance_EventScript_161082
+ call_if 1, Route110_TrickHouseEntrance_EventScript_161082
return
Route110_TrickHouseEntrance_EventScript_16103C:: @ 816103C
checkflag 2057
- callif 0, Route110_TrickHouseEntrance_EventScript_161088
+ call_if 0, Route110_TrickHouseEntrance_EventScript_161088
return
Route110_TrickHouseEntrance_EventScript_161046:: @ 8161046
checkflag 2058
- callif 0, Route110_TrickHouseEntrance_EventScript_161088
+ call_if 0, Route110_TrickHouseEntrance_EventScript_161088
return
Route110_TrickHouseEntrance_EventScript_161050:: @ 8161050
checkflag 2059
- callif 0, Route110_TrickHouseEntrance_EventScript_161088
+ call_if 0, Route110_TrickHouseEntrance_EventScript_161088
return
Route110_TrickHouseEntrance_EventScript_16105A:: @ 816105A
checkflag 2060
- callif 0, Route110_TrickHouseEntrance_EventScript_161088
+ call_if 0, Route110_TrickHouseEntrance_EventScript_161088
return
Route110_TrickHouseEntrance_EventScript_161064:: @ 8161064
checkflag 2061
- callif 0, Route110_TrickHouseEntrance_EventScript_161088
+ call_if 0, Route110_TrickHouseEntrance_EventScript_161088
return
Route110_TrickHouseEntrance_EventScript_16106E:: @ 816106E
checkflag 2062
- callif 0, Route110_TrickHouseEntrance_EventScript_161088
+ call_if 0, Route110_TrickHouseEntrance_EventScript_161088
return
Route110_TrickHouseEntrance_EventScript_161078:: @ 8161078
checkflag 2052
- callif 0, Route110_TrickHouseEntrance_EventScript_161088
+ call_if 0, Route110_TrickHouseEntrance_EventScript_161088
return
Route110_TrickHouseEntrance_EventScript_161082:: @ 8161082
@@ -214,7 +214,7 @@ Route110_TrickHouseEntrance_EventScript_1611D7:: @ 81611D7
lockall
pause 20
compare 0x4044, 0
- callif 1, Route110_TrickHouseEntrance_EventScript_161327
+ call_if 1, Route110_TrickHouseEntrance_EventScript_161327
msgbox Route110_TrickHouseEntrance_Text_19BD82, 4
closebutton
pause 20
@@ -249,21 +249,21 @@ Route110_TrickHouseEntrance_EventScript_16124D:: @ 816124D
move 255, Route110_TrickHouseEntrance_Movement_1A0835
waitmove 0
compare 0x4044, 0
- callif 1, Route110_TrickHouseEntrance_EventScript_1612CD
+ call_if 1, Route110_TrickHouseEntrance_EventScript_1612CD
compare 0x4044, 1
- callif 1, Route110_TrickHouseEntrance_EventScript_1612D6
+ call_if 1, Route110_TrickHouseEntrance_EventScript_1612D6
compare 0x4044, 2
- callif 1, Route110_TrickHouseEntrance_EventScript_1612DF
+ call_if 1, Route110_TrickHouseEntrance_EventScript_1612DF
compare 0x4044, 3
- callif 1, Route110_TrickHouseEntrance_EventScript_1612E8
+ call_if 1, Route110_TrickHouseEntrance_EventScript_1612E8
compare 0x4044, 4
- callif 1, Route110_TrickHouseEntrance_EventScript_1612F1
+ call_if 1, Route110_TrickHouseEntrance_EventScript_1612F1
compare 0x4044, 5
- callif 1, Route110_TrickHouseEntrance_EventScript_1612FA
+ call_if 1, Route110_TrickHouseEntrance_EventScript_1612FA
compare 0x4044, 6
- callif 1, Route110_TrickHouseEntrance_EventScript_161303
+ call_if 1, Route110_TrickHouseEntrance_EventScript_161303
compare 0x4044, 7
- callif 1, Route110_TrickHouseEntrance_EventScript_16130C
+ call_if 1, Route110_TrickHouseEntrance_EventScript_16130C
closebutton
setvar 0x40a6, 1
warp Route110_TrickHouseEntrance, 255, 6, 2
@@ -352,27 +352,27 @@ Route110_TrickHouseEntrance_EventScript_16136E:: @ 816136E
waitmove 0
msgbox Route110_TrickHouseEntrance_Text_19C07E, 4
compare 0x4044, 1
- jumpeq Route110_TrickHouseEntrance_EventScript_1613CE
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_1613CE
compare 0x4044, 2
- jumpeq Route110_TrickHouseEntrance_EventScript_1613FA
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_1613FA
compare 0x4044, 3
- jumpeq Route110_TrickHouseEntrance_EventScript_161426
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161426
compare 0x4044, 4
- jumpeq Route110_TrickHouseEntrance_EventScript_161452
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161452
compare 0x4044, 5
- jumpeq Route110_TrickHouseEntrance_EventScript_16147E
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_16147E
compare 0x4044, 6
- jumpeq Route110_TrickHouseEntrance_EventScript_1614AA
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_1614AA
compare 0x4044, 7
- jumpeq Route110_TrickHouseEntrance_EventScript_1614D6
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_1614D6
end
Route110_TrickHouseEntrance_EventScript_1613CE:: @ 81613CE
giveitem ITEM_RARE_CANDY
compare RESULT, 1
- jumpeq Route110_TrickHouseEntrance_EventScript_161502
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161502
compare RESULT, 0
- callif 1, Route110_TrickHouseEntrance_EventScript_1A02A5
+ call_if 1, Route110_TrickHouseEntrance_EventScript_1A02A5
msgbox Route110_TrickHouseEntrance_Text_19C0FC, 4
releaseall
end
@@ -380,9 +380,9 @@ Route110_TrickHouseEntrance_EventScript_1613CE:: @ 81613CE
Route110_TrickHouseEntrance_EventScript_1613FA:: @ 81613FA
giveitem ITEM_TIMER_BALL
compare RESULT, 1
- jumpeq Route110_TrickHouseEntrance_EventScript_161502
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161502
compare RESULT, 0
- callif 1, Route110_TrickHouseEntrance_EventScript_1A02A5
+ call_if 1, Route110_TrickHouseEntrance_EventScript_1A02A5
msgbox Route110_TrickHouseEntrance_Text_19C0FC, 4
releaseall
end
@@ -390,9 +390,9 @@ Route110_TrickHouseEntrance_EventScript_1613FA:: @ 81613FA
Route110_TrickHouseEntrance_EventScript_161426:: @ 8161426
giveitem ITEM_HARD_STONE
compare RESULT, 1
- jumpeq Route110_TrickHouseEntrance_EventScript_161502
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161502
compare RESULT, 0
- callif 1, Route110_TrickHouseEntrance_EventScript_1A02A5
+ call_if 1, Route110_TrickHouseEntrance_EventScript_1A02A5
msgbox Route110_TrickHouseEntrance_Text_19C0FC, 4
releaseall
end
@@ -400,9 +400,9 @@ Route110_TrickHouseEntrance_EventScript_161426:: @ 8161426
Route110_TrickHouseEntrance_EventScript_161452:: @ 8161452
giveitem ITEM_SMOKE_BALL
compare RESULT, 1
- jumpeq Route110_TrickHouseEntrance_EventScript_161502
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161502
compare RESULT, 0
- callif 1, Route110_TrickHouseEntrance_EventScript_1A02A5
+ call_if 1, Route110_TrickHouseEntrance_EventScript_1A02A5
msgbox Route110_TrickHouseEntrance_Text_19C0FC, 4
releaseall
end
@@ -410,9 +410,9 @@ Route110_TrickHouseEntrance_EventScript_161452:: @ 8161452
Route110_TrickHouseEntrance_EventScript_16147E:: @ 816147E
giveitem ITEM_TM12
compare RESULT, 1
- jumpeq Route110_TrickHouseEntrance_EventScript_161502
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161502
compare RESULT, 0
- callif 1, Route110_TrickHouseEntrance_EventScript_1A02A5
+ call_if 1, Route110_TrickHouseEntrance_EventScript_1A02A5
msgbox Route110_TrickHouseEntrance_Text_19C0FC, 4
releaseall
end
@@ -420,9 +420,9 @@ Route110_TrickHouseEntrance_EventScript_16147E:: @ 816147E
Route110_TrickHouseEntrance_EventScript_1614AA:: @ 81614AA
giveitem ITEM_MAGNET
compare RESULT, 1
- jumpeq Route110_TrickHouseEntrance_EventScript_161502
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161502
compare RESULT, 0
- callif 1, Route110_TrickHouseEntrance_EventScript_1A02A5
+ call_if 1, Route110_TrickHouseEntrance_EventScript_1A02A5
msgbox Route110_TrickHouseEntrance_Text_19C0FC, 4
releaseall
end
@@ -430,9 +430,9 @@ Route110_TrickHouseEntrance_EventScript_1614AA:: @ 81614AA
Route110_TrickHouseEntrance_EventScript_1614D6:: @ 81614D6
giveitem ITEM_PP_MAX
compare RESULT, 1
- jumpeq Route110_TrickHouseEntrance_EventScript_161502
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161502
compare RESULT, 0
- callif 1, Route110_TrickHouseEntrance_EventScript_1A02A5
+ call_if 1, Route110_TrickHouseEntrance_EventScript_1A02A5
msgbox Route110_TrickHouseEntrance_Text_19C0FC, 4
releaseall
end
@@ -455,9 +455,9 @@ Route110_TrickHouseEntrance_EventScript_161518:: @ 8161518
givedecoration 31
.endif
compare RESULT, 1
- jumpeq Route110_TrickHouseEntrance_EventScript_161551
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161551
compare RESULT, 0
- callif 1, Route110_TrickHouseEntrance_EventScript_1A02B8
+ call_if 1, Route110_TrickHouseEntrance_EventScript_1A02B8
msgbox Route110_TrickHouseEntrance_Text_19C18D, 4
releaseall
end
@@ -496,7 +496,7 @@ Route110_TrickHouseEntrance_EventScript_1615C7:: @ 81615C7
msgbox Route110_TrickHouseEntrance_Text_19BE7D, 5
closebutton
compare RESULT, 1
- jumpeq Route110_TrickHouseEntrance_EventScript_1615DD
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_1615DD
releaseall
end
@@ -578,7 +578,7 @@ Route110_TrickHouseEntrance_EventScript_1616B8:: @ 81616B8
Route110_TrickHouseEntrance_EventScript_1616C2:: @ 81616C2
compare 0x4044, 8
- jumpeq Route110_TrickHouseEntrance_EventScript_1616D7
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_1616D7
msgbox Route110_TrickHouseEntrance_Text_19BE6E, 4
releaseall
end
@@ -603,7 +603,7 @@ gUnknown_081616E1:: @ 81616E1
Route110_TrickHouseEntrance_EventScript_161740:: @ 8161740
compare 0x40AB, 0
- jumpeq Route110_TrickHouseEntrance_EventScript_161888
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161888
msgbox UnknownString_819CAD1, 4
playsfx SE_PIN
setvar 0x40AB, 2
@@ -614,7 +614,7 @@ Route110_TrickHouseEntrance_EventScript_161740:: @ 8161740
Route110_TrickHouseEntrance_EventScript_161769:: @ 8161769
compare 0x40AC, 0
- jumpeq Route110_TrickHouseEntrance_EventScript_161888
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161888
msgbox UnknownString_819CCCB, 4
playsfx SE_PIN
setvar 0x40AC, 2
@@ -625,7 +625,7 @@ Route110_TrickHouseEntrance_EventScript_161769:: @ 8161769
Route110_TrickHouseEntrance_EventScript_161792:: @ 8161792
compare 0x40AD, 0
- jumpeq Route110_TrickHouseEntrance_EventScript_161888
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161888
msgbox UnknownString_819CEF9, 4
playsfx SE_PIN
setvar 0x40AD, 2
@@ -636,7 +636,7 @@ Route110_TrickHouseEntrance_EventScript_161792:: @ 8161792
Route110_TrickHouseEntrance_EventScript_1617BB:: @ 81617BB
compare 0x40AE, 0
- jumpeq Route110_TrickHouseEntrance_EventScript_161888
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161888
msgbox UnknownString_819D164, 4
playsfx SE_PIN
setvar 0x40AE, 2
@@ -647,7 +647,7 @@ Route110_TrickHouseEntrance_EventScript_1617BB:: @ 81617BB
Route110_TrickHouseEntrance_EventScript_1617E4:: @ 81617E4
compare 0x40AF, 0
- jumpeq Route110_TrickHouseEntrance_EventScript_161888
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161888
msgbox UnknownString_819D3A5, 4
playsfx SE_PIN
setvar 0x40AF, 2
@@ -658,7 +658,7 @@ Route110_TrickHouseEntrance_EventScript_1617E4:: @ 81617E4
Route110_TrickHouseEntrance_EventScript_16180D:: @ 816180D
compare 0x40B0, 0
- jumpeq Route110_TrickHouseEntrance_EventScript_161888
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161888
msgbox UnknownString_819DC0A, 4
playsfx SE_PIN
setvar 0x40B0, 2
@@ -669,7 +669,7 @@ Route110_TrickHouseEntrance_EventScript_16180D:: @ 816180D
Route110_TrickHouseEntrance_EventScript_161836:: @ 8161836
compare 0x40B1, 0
- jumpeq Route110_TrickHouseEntrance_EventScript_161888
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161888
msgbox UnknownString_819DE8D, 4
playsfx SE_PIN
setvar 0x40B1, 2
@@ -680,7 +680,7 @@ Route110_TrickHouseEntrance_EventScript_161836:: @ 8161836
Route110_TrickHouseEntrance_EventScript_16185F:: @ 816185F
compare 0x40B2, 0
- jumpeq Route110_TrickHouseEntrance_EventScript_161888
+ goto_if_eq Route110_TrickHouseEntrance_EventScript_161888
msgbox UnknownString_819E0FF, 4
playsfx SE_PIN
setvar 0x40B2, 2
@@ -727,11 +727,11 @@ Route110_TrickHouseEntrance_EventScript_1618B0:: @ 81618B0
msgbox Route110_TrickHouseEntrance_Text_19BA56, 4
releaseall
compare 0x4044, 0
- callif 1, Route110_TrickHouseEntrance_EventScript_1618E1
+ call_if 1, Route110_TrickHouseEntrance_EventScript_1618E1
compare 0x4044, 1
- callif 1, Route110_TrickHouseEntrance_EventScript_1618F6
+ call_if 1, Route110_TrickHouseEntrance_EventScript_1618F6
compare 0x4044, 2
- callif 1, Route110_TrickHouseEntrance_EventScript_16190B
+ call_if 1, Route110_TrickHouseEntrance_EventScript_16190B
setvar 0x40a5, 1
end
diff --git a/data/scripts/maps/Route110_TrickHousePuzzle1.inc b/data/scripts/maps/Route110_TrickHousePuzzle1.inc
index b4f800876..3a89c2db1 100644
--- a/data/scripts/maps/Route110_TrickHousePuzzle1.inc
+++ b/data/scripts/maps/Route110_TrickHousePuzzle1.inc
@@ -4,7 +4,7 @@ Route110_TrickHousePuzzle1_MapScripts:: @ 8161CF8
Route110_TrickHousePuzzle1_MapScript1_161CFE:: @ 8161CFE
compare 0x40ab, 2
- jumpeq Route110_TrickHousePuzzle1_EventScript_161D0A
+ goto_if_eq Route110_TrickHousePuzzle1_EventScript_161D0A
end
Route110_TrickHousePuzzle1_EventScript_161D0A:: @ 8161D0A
@@ -14,7 +14,7 @@ Route110_TrickHousePuzzle1_EventScript_161D0A:: @ 8161D0A
Route110_TrickHousePuzzle1_EventScript_161D14:: @ 8161D14
lockall
compare 0x40ab, 0
- jumpeq Route110_TrickHousePuzzle1_EventScript_161D26
+ goto_if_eq Route110_TrickHousePuzzle1_EventScript_161D26
goto Route110_TrickHousePuzzle1_EventScript_161892
end
diff --git a/data/scripts/maps/Route110_TrickHousePuzzle2.inc b/data/scripts/maps/Route110_TrickHousePuzzle2.inc
index 96e9d8143..a4731d329 100644
--- a/data/scripts/maps/Route110_TrickHousePuzzle2.inc
+++ b/data/scripts/maps/Route110_TrickHousePuzzle2.inc
@@ -5,13 +5,13 @@ Route110_TrickHousePuzzle2_MapScripts:: @ 8161D76
Route110_TrickHousePuzzle2_MapScript1_161D81:: @ 8161D81
compare 0x4001, 1
- callif 1, Route110_TrickHousePuzzle2_EventScript_161E2C
+ call_if 1, Route110_TrickHousePuzzle2_EventScript_161E2C
compare 0x4002, 1
- callif 1, Route110_TrickHousePuzzle2_EventScript_161E3F
+ call_if 1, Route110_TrickHousePuzzle2_EventScript_161E3F
compare 0x4003, 1
- callif 1, Route110_TrickHousePuzzle2_EventScript_161E52
+ call_if 1, Route110_TrickHousePuzzle2_EventScript_161E52
compare 0x4004, 1
- callif 1, Route110_TrickHousePuzzle2_EventScript_161E65
+ call_if 1, Route110_TrickHousePuzzle2_EventScript_161E65
end
Route110_TrickHousePuzzle2_MapScript1_161DAE:: @ 8161DAE
@@ -24,7 +24,7 @@ Route110_TrickHousePuzzle2_MapScript1_161DAE:: @ 8161DAE
Route110_TrickHousePuzzle2_EventScript_161DC3:: @ 8161DC3
lockall
compare 0x40ac, 0
- jumpeq Route110_TrickHousePuzzle2_EventScript_161DD5
+ goto_if_eq Route110_TrickHousePuzzle2_EventScript_161DD5
goto Route110_TrickHousePuzzle2_EventScript_161892
end
diff --git a/data/scripts/maps/Route110_TrickHousePuzzle3.inc b/data/scripts/maps/Route110_TrickHousePuzzle3.inc
index c81c5dd1c..86d68a6ef 100644
--- a/data/scripts/maps/Route110_TrickHousePuzzle3.inc
+++ b/data/scripts/maps/Route110_TrickHousePuzzle3.inc
@@ -6,9 +6,9 @@ Route110_TrickHousePuzzle3_MapScripts:: @ 8161EBD
Route110_TrickHousePuzzle3_MapScript1_161EC8:: @ 8161EC8
call Route110_TrickHousePuzzle3_EventScript_161F12
compare 0x4009, 0
- callif 1, Route110_TrickHousePuzzle3_EventScript_161FE5
+ call_if 1, Route110_TrickHousePuzzle3_EventScript_161FE5
compare 0x4009, 1
- callif 1, Route110_TrickHousePuzzle3_EventScript_1622C8
+ call_if 1, Route110_TrickHousePuzzle3_EventScript_1622C8
end
Route110_TrickHousePuzzle3_MapScript1_161EE4:: @ 8161EE4
@@ -32,19 +32,19 @@ Route110_TrickHousePuzzle3_EventScript_161F12:: @ 8161F12
setmaptile 1, 3, 600, 0
setmaptile 10, 2, 600, 0
compare 0x4008, 1
- callif 1, Route110_TrickHousePuzzle3_EventScript_161F9F
+ call_if 1, Route110_TrickHousePuzzle3_EventScript_161F9F
compare 0x4008, 2
- callif 1, Route110_TrickHousePuzzle3_EventScript_161FA9
+ call_if 1, Route110_TrickHousePuzzle3_EventScript_161FA9
compare 0x4008, 3
- callif 1, Route110_TrickHousePuzzle3_EventScript_161FB3
+ call_if 1, Route110_TrickHousePuzzle3_EventScript_161FB3
compare 0x4008, 4
- callif 1, Route110_TrickHousePuzzle3_EventScript_161FBD
+ call_if 1, Route110_TrickHousePuzzle3_EventScript_161FBD
compare 0x4008, 5
- callif 1, Route110_TrickHousePuzzle3_EventScript_161FC7
+ call_if 1, Route110_TrickHousePuzzle3_EventScript_161FC7
compare 0x4008, 6
- callif 1, Route110_TrickHousePuzzle3_EventScript_161FD1
+ call_if 1, Route110_TrickHousePuzzle3_EventScript_161FD1
compare 0x4008, 7
- callif 1, Route110_TrickHousePuzzle3_EventScript_161FDB
+ call_if 1, Route110_TrickHousePuzzle3_EventScript_161FDB
return
Route110_TrickHousePuzzle3_EventScript_161F9F:: @ 8161F9F
@@ -303,19 +303,19 @@ Route110_TrickHousePuzzle3_EventScript_162612:: @ 8162612
setvar 0x4006, 0
setvar 0x4007, 0
compare 0x4008, 1
- callif 1, Route110_TrickHousePuzzle3_EventScript_162683
+ call_if 1, Route110_TrickHousePuzzle3_EventScript_162683
compare 0x4008, 2
- callif 1, Route110_TrickHousePuzzle3_EventScript_162689
+ call_if 1, Route110_TrickHousePuzzle3_EventScript_162689
compare 0x4008, 3
- callif 1, Route110_TrickHousePuzzle3_EventScript_16268F
+ call_if 1, Route110_TrickHousePuzzle3_EventScript_16268F
compare 0x4008, 4
- callif 1, Route110_TrickHousePuzzle3_EventScript_162695
+ call_if 1, Route110_TrickHousePuzzle3_EventScript_162695
compare 0x4008, 5
- callif 1, Route110_TrickHousePuzzle3_EventScript_16269B
+ call_if 1, Route110_TrickHousePuzzle3_EventScript_16269B
compare 0x4008, 6
- callif 1, Route110_TrickHousePuzzle3_EventScript_1626A1
+ call_if 1, Route110_TrickHousePuzzle3_EventScript_1626A1
compare 0x4008, 7
- callif 1, Route110_TrickHousePuzzle3_EventScript_1626A7
+ call_if 1, Route110_TrickHousePuzzle3_EventScript_1626A7
return
Route110_TrickHousePuzzle3_EventScript_162683:: @ 8162683
@@ -348,14 +348,14 @@ Route110_TrickHousePuzzle3_EventScript_1626A7:: @ 81626A7
Route110_TrickHousePuzzle3_EventScript_1626AD:: @ 81626AD
compare 0x4009, 1
- callif 1, Route110_TrickHousePuzzle3_EventScript_161FE5
+ call_if 1, Route110_TrickHousePuzzle3_EventScript_161FE5
compare 0x4009, 0
- callif 1, Route110_TrickHousePuzzle3_EventScript_1622C8
+ call_if 1, Route110_TrickHousePuzzle3_EventScript_1622C8
special DrawWholeMapView
compare 0x4009, 1
- jumpeq Route110_TrickHousePuzzle3_EventScript_1626DD
+ goto_if_eq Route110_TrickHousePuzzle3_EventScript_1626DD
compare 0x4009, 0
- jumpeq Route110_TrickHousePuzzle3_EventScript_1626E4
+ goto_if_eq Route110_TrickHousePuzzle3_EventScript_1626E4
end
Route110_TrickHousePuzzle3_EventScript_1626DD:: @ 81626DD
@@ -371,7 +371,7 @@ Route110_TrickHousePuzzle3_EventScript_1626E4:: @ 81626E4
Route110_TrickHousePuzzle3_EventScript_1626EB:: @ 81626EB
lockall
compare 0x40ad, 0
- jumpeq Route110_TrickHousePuzzle3_EventScript_1626FD
+ goto_if_eq Route110_TrickHousePuzzle3_EventScript_1626FD
goto Route110_TrickHousePuzzle3_EventScript_161892
end
diff --git a/data/scripts/maps/Route110_TrickHousePuzzle4.inc b/data/scripts/maps/Route110_TrickHousePuzzle4.inc
index 11c0074d9..0c9fc426f 100644
--- a/data/scripts/maps/Route110_TrickHousePuzzle4.inc
+++ b/data/scripts/maps/Route110_TrickHousePuzzle4.inc
@@ -4,7 +4,7 @@ Route110_TrickHousePuzzle4_MapScripts:: @ 816274D
Route110_TrickHousePuzzle4_EventScript_16274E:: @ 816274E
lockall
compare 0x40ae, 0
- jumpeq Route110_TrickHousePuzzle4_EventScript_162760
+ goto_if_eq Route110_TrickHousePuzzle4_EventScript_162760
goto Route110_TrickHousePuzzle4_EventScript_161892
end
diff --git a/data/scripts/maps/Route110_TrickHousePuzzle5.inc b/data/scripts/maps/Route110_TrickHousePuzzle5.inc
index be416e326..72268710b 100644
--- a/data/scripts/maps/Route110_TrickHousePuzzle5.inc
+++ b/data/scripts/maps/Route110_TrickHousePuzzle5.inc
@@ -14,7 +14,7 @@ Route110_TrickHousePuzzle5_MapScript1_1627B6:: @ 81627B6
Route110_TrickHousePuzzle5_EventScript_1627D5:: @ 81627D5
lockall
compare 0x40af, 0
- jumpeq Route110_TrickHousePuzzle5_EventScript_1627E7
+ goto_if_eq Route110_TrickHousePuzzle5_EventScript_1627E7
goto Route110_TrickHousePuzzle5_EventScript_161892
end
@@ -28,7 +28,7 @@ Route110_TrickHousePuzzle5_EventScript_1627F2:: @ 81627F2
move 1, Route110_TrickHousePuzzle5_Movement_1A0839
waitmove 0
compare 0x4001, 1
- jumpeq Route110_TrickHousePuzzle5_EventScript_162DE9
+ goto_if_eq Route110_TrickHousePuzzle5_EventScript_162DE9
setvar 0x4009, 0
goto Route110_TrickHousePuzzle5_EventScript_16293F
end
@@ -38,7 +38,7 @@ Route110_TrickHousePuzzle5_EventScript_162813:: @ 8162813
move 2, Route110_TrickHousePuzzle5_Movement_1A0839
waitmove 0
compare 0x4002, 1
- jumpeq Route110_TrickHousePuzzle5_EventScript_162DE9
+ goto_if_eq Route110_TrickHousePuzzle5_EventScript_162DE9
setvar 0x4009, 0
goto Route110_TrickHousePuzzle5_EventScript_1629B3
end
@@ -48,7 +48,7 @@ Route110_TrickHousePuzzle5_EventScript_162834:: @ 8162834
move 3, Route110_TrickHousePuzzle5_Movement_1A0839
waitmove 0
compare 0x4003, 1
- jumpeq Route110_TrickHousePuzzle5_EventScript_162DE9
+ goto_if_eq Route110_TrickHousePuzzle5_EventScript_162DE9
setvar 0x4009, 0
goto Route110_TrickHousePuzzle5_EventScript_162A27
end
@@ -58,7 +58,7 @@ Route110_TrickHousePuzzle5_EventScript_162855:: @ 8162855
move 4, Route110_TrickHousePuzzle5_Movement_1A0839
waitmove 0
compare 0x4004, 1
- jumpeq Route110_TrickHousePuzzle5_EventScript_162DE9
+ goto_if_eq Route110_TrickHousePuzzle5_EventScript_162DE9
setvar 0x4009, 0
goto Route110_TrickHousePuzzle5_EventScript_162A9B
end
@@ -68,7 +68,7 @@ Route110_TrickHousePuzzle5_EventScript_162876:: @ 8162876
move 5, Route110_TrickHousePuzzle5_Movement_1A0839
waitmove 0
compare 0x4005, 1
- jumpeq Route110_TrickHousePuzzle5_EventScript_162DE9
+ goto_if_eq Route110_TrickHousePuzzle5_EventScript_162DE9
setvar 0x4009, 0
goto Route110_TrickHousePuzzle5_EventScript_162B0F
end
@@ -166,11 +166,11 @@ Route110_TrickHousePuzzle5_EventScript_16293F:: @ 816293F
move 1, Route110_TrickHousePuzzle5_Movement_1A0835
waitmove 0
compare 0x4009, 1
- callif 1, Route110_TrickHousePuzzle5_EventScript_162DF3
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_162DF3
compare 0x4009, 2
- callif 1, Route110_TrickHousePuzzle5_EventScript_162E2B
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_162E2B
compare 0x4009, 3
- callif 1, Route110_TrickHousePuzzle5_EventScript_162E63
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_162E63
msgbox Route110_TrickHousePuzzle5_Text_19D423, 4
random 3
switch RESULT
@@ -188,11 +188,11 @@ Route110_TrickHousePuzzle5_EventScript_1629B3:: @ 81629B3
move 2, Route110_TrickHousePuzzle5_Movement_1A0835
waitmove 0
compare 0x4009, 1
- callif 1, Route110_TrickHousePuzzle5_EventScript_162E9B
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_162E9B
compare 0x4009, 2
- callif 1, Route110_TrickHousePuzzle5_EventScript_162ED3
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_162ED3
compare 0x4009, 3
- callif 1, Route110_TrickHousePuzzle5_EventScript_162F0B
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_162F0B
msgbox Route110_TrickHousePuzzle5_Text_19D636, 4
random 3
switch RESULT
@@ -210,11 +210,11 @@ Route110_TrickHousePuzzle5_EventScript_162A27:: @ 8162A27
move 3, Route110_TrickHousePuzzle5_Movement_1A0835
waitmove 0
compare 0x4009, 1
- callif 1, Route110_TrickHousePuzzle5_EventScript_162DF3
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_162DF3
compare 0x4009, 2
- callif 1, Route110_TrickHousePuzzle5_EventScript_162E2B
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_162E2B
compare 0x4009, 3
- callif 1, Route110_TrickHousePuzzle5_EventScript_162E63
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_162E63
msgbox Route110_TrickHousePuzzle5_Text_19D7D3, 4
random 3
switch RESULT
@@ -232,11 +232,11 @@ Route110_TrickHousePuzzle5_EventScript_162A9B:: @ 8162A9B
move 4, Route110_TrickHousePuzzle5_Movement_1A0835
waitmove 0
compare 0x4009, 1
- callif 1, Route110_TrickHousePuzzle5_EventScript_162DF3
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_162DF3
compare 0x4009, 2
- callif 1, Route110_TrickHousePuzzle5_EventScript_162E2B
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_162E2B
compare 0x4009, 3
- callif 1, Route110_TrickHousePuzzle5_EventScript_162E63
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_162E63
msgbox Route110_TrickHousePuzzle5_Text_19D93D, 4
random 3
switch RESULT
@@ -254,11 +254,11 @@ Route110_TrickHousePuzzle5_EventScript_162B0F:: @ 8162B0F
move 5, Route110_TrickHousePuzzle5_Movement_1A0835
waitmove 0
compare 0x4009, 1
- callif 1, Route110_TrickHousePuzzle5_EventScript_162E9B
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_162E9B
compare 0x4009, 2
- callif 1, Route110_TrickHousePuzzle5_EventScript_162ED3
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_162ED3
compare 0x4009, 3
- callif 1, Route110_TrickHousePuzzle5_EventScript_162F0B
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_162F0B
msgbox Route110_TrickHousePuzzle5_Text_19DA9A, 4
random 3
switch RESULT
@@ -419,80 +419,80 @@ Route110_TrickHousePuzzle5_EventScript_162DE9:: @ 8162DE9
Route110_TrickHousePuzzle5_EventScript_162DF3:: @ 8162DF3
compare 0x4008, 1
- callif 1, Route110_TrickHousePuzzle5_EventScript_162F43
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_162F43
compare 0x4008, 2
- callif 1, Route110_TrickHousePuzzle5_EventScript_162F4E
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_162F4E
compare 0x4008, 3
- callif 1, Route110_TrickHousePuzzle5_EventScript_162F59
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_162F59
compare 0x4008, 4
- callif 1, Route110_TrickHousePuzzle5_EventScript_162F64
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_162F64
compare 0x4008, 5
- callif 1, Route110_TrickHousePuzzle5_EventScript_162F6F
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_162F6F
return
Route110_TrickHousePuzzle5_EventScript_162E2B:: @ 8162E2B
compare 0x4008, 1
- callif 1, Route110_TrickHousePuzzle5_EventScript_162F7A
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_162F7A
compare 0x4008, 2
- callif 1, Route110_TrickHousePuzzle5_EventScript_162F85
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_162F85
compare 0x4008, 3
- callif 1, Route110_TrickHousePuzzle5_EventScript_162F90
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_162F90
compare 0x4008, 4
- callif 1, Route110_TrickHousePuzzle5_EventScript_162F9B
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_162F9B
compare 0x4008, 5
- callif 1, Route110_TrickHousePuzzle5_EventScript_162FA6
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_162FA6
return
Route110_TrickHousePuzzle5_EventScript_162E63:: @ 8162E63
compare 0x4008, 1
- callif 1, Route110_TrickHousePuzzle5_EventScript_162FB1
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_162FB1
compare 0x4008, 2
- callif 1, Route110_TrickHousePuzzle5_EventScript_162FBC
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_162FBC
compare 0x4008, 3
- callif 1, Route110_TrickHousePuzzle5_EventScript_162FC7
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_162FC7
compare 0x4009, 4
- callif 1, Route110_TrickHousePuzzle5_EventScript_162FD2
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_162FD2
compare 0x4009, 5
- callif 1, Route110_TrickHousePuzzle5_EventScript_162FDD
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_162FDD
return
Route110_TrickHousePuzzle5_EventScript_162E9B:: @ 8162E9B
compare 0x4008, 1
- callif 1, Route110_TrickHousePuzzle5_EventScript_162FE8
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_162FE8
compare 0x4008, 2
- callif 1, Route110_TrickHousePuzzle5_EventScript_162FF3
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_162FF3
compare 0x4008, 3
- callif 1, Route110_TrickHousePuzzle5_EventScript_162FFE
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_162FFE
compare 0x4008, 4
- callif 1, Route110_TrickHousePuzzle5_EventScript_163009
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_163009
compare 0x4008, 5
- callif 1, Route110_TrickHousePuzzle5_EventScript_163014
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_163014
return
Route110_TrickHousePuzzle5_EventScript_162ED3:: @ 8162ED3
compare 0x4008, 1
- callif 1, Route110_TrickHousePuzzle5_EventScript_16301F
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_16301F
compare 0x4008, 2
- callif 1, Route110_TrickHousePuzzle5_EventScript_16302A
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_16302A
compare 0x4008, 3
- callif 1, Route110_TrickHousePuzzle5_EventScript_163035
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_163035
compare 0x4008, 4
- callif 1, Route110_TrickHousePuzzle5_EventScript_163040
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_163040
compare 0x4008, 5
- callif 1, Route110_TrickHousePuzzle5_EventScript_16304B
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_16304B
return
Route110_TrickHousePuzzle5_EventScript_162F0B:: @ 8162F0B
compare 0x4008, 1
- callif 1, Route110_TrickHousePuzzle5_EventScript_163056
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_163056
compare 0x4008, 2
- callif 1, Route110_TrickHousePuzzle5_EventScript_163061
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_163061
compare 0x4008, 3
- callif 1, Route110_TrickHousePuzzle5_EventScript_16306C
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_16306C
compare 0x4008, 4
- callif 1, Route110_TrickHousePuzzle5_EventScript_163077
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_163077
compare 0x4008, 5
- callif 1, Route110_TrickHousePuzzle5_EventScript_163082
+ call_if 1, Route110_TrickHousePuzzle5_EventScript_163082
return
Route110_TrickHousePuzzle5_EventScript_162F43:: @ 8162F43
diff --git a/data/scripts/maps/Route110_TrickHousePuzzle6.inc b/data/scripts/maps/Route110_TrickHousePuzzle6.inc
index bd0a7c8d8..ddf845142 100644
--- a/data/scripts/maps/Route110_TrickHousePuzzle6.inc
+++ b/data/scripts/maps/Route110_TrickHousePuzzle6.inc
@@ -18,7 +18,7 @@ Route110_TrickHousePuzzle6_EventScript_1630E6:: @ 81630E6
Route110_TrickHousePuzzle6_EventScript_1630EA:: @ 81630EA
lockall
compare 0x40b0, 0
- jumpeq Route110_TrickHousePuzzle6_EventScript_1630FC
+ goto_if_eq Route110_TrickHousePuzzle6_EventScript_1630FC
goto Route110_TrickHousePuzzle6_EventScript_161892
end
diff --git a/data/scripts/maps/Route110_TrickHousePuzzle7.inc b/data/scripts/maps/Route110_TrickHousePuzzle7.inc
index a4093c546..c9dcce5e3 100644
--- a/data/scripts/maps/Route110_TrickHousePuzzle7.inc
+++ b/data/scripts/maps/Route110_TrickHousePuzzle7.inc
@@ -11,15 +11,15 @@ Route110_TrickHousePuzzle7_MapScript1_163161:: @ 8163161
Route110_TrickHousePuzzle7_EventScript_163167:: @ 8163167
checkflag 194
- callif 1, Route110_TrickHousePuzzle7_EventScript_163195
+ call_if 1, Route110_TrickHousePuzzle7_EventScript_163195
checkflag 195
- callif 1, Route110_TrickHousePuzzle7_EventScript_1631A8
+ call_if 1, Route110_TrickHousePuzzle7_EventScript_1631A8
checkflag 196
- callif 1, Route110_TrickHousePuzzle7_EventScript_1631BB
+ call_if 1, Route110_TrickHousePuzzle7_EventScript_1631BB
checkflag 197
- callif 1, Route110_TrickHousePuzzle7_EventScript_1631CE
+ call_if 1, Route110_TrickHousePuzzle7_EventScript_1631CE
checkflag 198
- callif 1, Route110_TrickHousePuzzle7_EventScript_1631E1
+ call_if 1, Route110_TrickHousePuzzle7_EventScript_1631E1
return
Route110_TrickHousePuzzle7_EventScript_163195:: @ 8163195
@@ -74,7 +74,7 @@ Route110_TrickHousePuzzle7_EventScript_163240:: @ 8163240
Route110_TrickHousePuzzle7_MapScript1_163253:: @ 8163253
compare 0x40b6, 1
- jumpeq Route110_TrickHousePuzzle7_EventScript_16326E
+ goto_if_eq Route110_TrickHousePuzzle7_EventScript_16326E
clearflag 194
clearflag 195
clearflag 196
@@ -87,7 +87,7 @@ Route110_TrickHousePuzzle7_EventScript_16326E:: @ 816326E
Route110_TrickHousePuzzle7_MapScript1_16326F:: @ 816326F
compare 0x40b6, 1
- callif 1, Route110_TrickHousePuzzle7_EventScript_163167
+ call_if 1, Route110_TrickHousePuzzle7_EventScript_163167
end
Route110_TrickHousePuzzle7_MapScript2_16327B:: @ 816327B
@@ -101,7 +101,7 @@ Route110_TrickHousePuzzle7_EventScript_163285:: @ 8163285
Route110_TrickHousePuzzle7_EventScript_16328B:: @ 816328B
lockall
compare 0x40b1, 0
- jumpeq Route110_TrickHousePuzzle7_EventScript_16329D
+ goto_if_eq Route110_TrickHousePuzzle7_EventScript_16329D
goto Route110_TrickHousePuzzle7_EventScript_161892
end
@@ -122,75 +122,75 @@ Route110_TrickHousePuzzle7_EventScript_1632B9:: @ 81632B9
lockall
pause 32
checkflag 194
- callif 0, Route110_TrickHousePuzzle7_EventScript_163195
+ call_if 0, Route110_TrickHousePuzzle7_EventScript_163195
checkflag 194
- callif 1, Route110_TrickHousePuzzle7_EventScript_1631F4
+ call_if 1, Route110_TrickHousePuzzle7_EventScript_1631F4
special DrawWholeMapView
playsfx 36
checkflag 194
- jumpif 0, Route110_TrickHousePuzzle7_EventScript_1633A4
+ goto_if 0, Route110_TrickHousePuzzle7_EventScript_1633A4
checkflag 194
- jumpeq Route110_TrickHousePuzzle7_EventScript_1633A9
+ goto_if_eq Route110_TrickHousePuzzle7_EventScript_1633A9
end
Route110_TrickHousePuzzle7_EventScript_1632E8:: @ 81632E8
lockall
pause 32
checkflag 195
- callif 0, Route110_TrickHousePuzzle7_EventScript_1631A8
+ call_if 0, Route110_TrickHousePuzzle7_EventScript_1631A8
checkflag 195
- callif 1, Route110_TrickHousePuzzle7_EventScript_163207
+ call_if 1, Route110_TrickHousePuzzle7_EventScript_163207
special DrawWholeMapView
playsfx 36
checkflag 195
- jumpif 0, Route110_TrickHousePuzzle7_EventScript_1633AE
+ goto_if 0, Route110_TrickHousePuzzle7_EventScript_1633AE
checkflag 195
- jumpeq Route110_TrickHousePuzzle7_EventScript_1633B3
+ goto_if_eq Route110_TrickHousePuzzle7_EventScript_1633B3
end
Route110_TrickHousePuzzle7_EventScript_163317:: @ 8163317
lockall
pause 32
checkflag 196
- callif 0, Route110_TrickHousePuzzle7_EventScript_1631BB
+ call_if 0, Route110_TrickHousePuzzle7_EventScript_1631BB
checkflag 196
- callif 1, Route110_TrickHousePuzzle7_EventScript_16321A
+ call_if 1, Route110_TrickHousePuzzle7_EventScript_16321A
special DrawWholeMapView
playsfx 36
checkflag 196
- jumpif 0, Route110_TrickHousePuzzle7_EventScript_1633B8
+ goto_if 0, Route110_TrickHousePuzzle7_EventScript_1633B8
checkflag 196
- jumpeq Route110_TrickHousePuzzle7_EventScript_1633BD
+ goto_if_eq Route110_TrickHousePuzzle7_EventScript_1633BD
end
Route110_TrickHousePuzzle7_EventScript_163346:: @ 8163346
lockall
pause 32
checkflag 197
- callif 0, Route110_TrickHousePuzzle7_EventScript_1631CE
+ call_if 0, Route110_TrickHousePuzzle7_EventScript_1631CE
checkflag 197
- callif 1, Route110_TrickHousePuzzle7_EventScript_16322D
+ call_if 1, Route110_TrickHousePuzzle7_EventScript_16322D
special DrawWholeMapView
playsfx 36
checkflag 197
- jumpif 0, Route110_TrickHousePuzzle7_EventScript_1633C2
+ goto_if 0, Route110_TrickHousePuzzle7_EventScript_1633C2
checkflag 197
- jumpeq Route110_TrickHousePuzzle7_EventScript_1633C7
+ goto_if_eq Route110_TrickHousePuzzle7_EventScript_1633C7
end
Route110_TrickHousePuzzle7_EventScript_163375:: @ 8163375
lockall
pause 32
checkflag 198
- callif 0, Route110_TrickHousePuzzle7_EventScript_1631E1
+ call_if 0, Route110_TrickHousePuzzle7_EventScript_1631E1
checkflag 198
- callif 1, Route110_TrickHousePuzzle7_EventScript_163240
+ call_if 1, Route110_TrickHousePuzzle7_EventScript_163240
special DrawWholeMapView
playsfx 36
checkflag 198
- jumpif 0, Route110_TrickHousePuzzle7_EventScript_1633CC
+ goto_if 0, Route110_TrickHousePuzzle7_EventScript_1633CC
checkflag 198
- jumpeq Route110_TrickHousePuzzle7_EventScript_1633D1
+ goto_if_eq Route110_TrickHousePuzzle7_EventScript_1633D1
end
Route110_TrickHousePuzzle7_EventScript_1633A4:: @ 81633A4
diff --git a/data/scripts/maps/Route110_TrickHousePuzzle8.inc b/data/scripts/maps/Route110_TrickHousePuzzle8.inc
index d4afab4ea..5f0b00684 100644
--- a/data/scripts/maps/Route110_TrickHousePuzzle8.inc
+++ b/data/scripts/maps/Route110_TrickHousePuzzle8.inc
@@ -4,7 +4,7 @@ Route110_TrickHousePuzzle8_MapScripts:: @ 816341B
Route110_TrickHousePuzzle8_EventScript_16341C:: @ 816341C
lockall
compare 0x40b2, 0
- jumpeq Route110_TrickHousePuzzle8_EventScript_16342E
+ goto_if_eq Route110_TrickHousePuzzle8_EventScript_16342E
goto Route110_TrickHousePuzzle8_EventScript_161892
end
diff --git a/data/scripts/maps/Route111.inc b/data/scripts/maps/Route111.inc
index 68be7e7d2..2a69df98a 100644
--- a/data/scripts/maps/Route111.inc
+++ b/data/scripts/maps/Route111.inc
@@ -5,7 +5,7 @@ Route111_MapScripts:: @ 814FF91
Route111_MapScript1_14FF9C:: @ 814FF9C
checkflag 228
- callif 0, Route111_EventScript_14FFA6
+ call_if 0, Route111_EventScript_14FFA6
end
Route111_EventScript_14FFA6:: @ 814FFA6
@@ -17,21 +17,21 @@ Route111_MapScript1_14FFB9:: @ 814FFB9
call Route111_EventScript_14FFCD
call Route111_EventScript_1AE313
checktrainerflag OPPONENT_VICKY
- jumpif 0, Route111_EventScript_15000D
+ goto_if 0, Route111_EventScript_15000D
end
Route111_EventScript_14FFCD:: @ 814FFCD
getplayerxy 0x4000, 0x4001
compare 0x4001, 34
- jumpif 0, Route111_EventScript_15000C
+ goto_if 0, Route111_EventScript_15000C
compare 0x4001, 107
- jumpif 2, Route111_EventScript_15000C
+ goto_if 2, Route111_EventScript_15000C
compare 0x4001, 72
- jumpif 2, Route111_EventScript_150009
+ goto_if 2, Route111_EventScript_150009
compare 0x4000, 2000
- jumpif 2, Route111_EventScript_15000C
+ goto_if 2, Route111_EventScript_15000C
compare 0x4000, 8
- jumpif 0, Route111_EventScript_15000C
+ goto_if 0, Route111_EventScript_15000C
Route111_EventScript_150009:: @ 8150009
setweather 8
@@ -53,7 +53,7 @@ Route111_EventScript_150023:: @ 8150023
lockall
msgbox Route111_Text_16FA54, 5
compare RESULT, 0
- jumpeq Route111_EventScript_15005F
+ goto_if_eq Route111_EventScript_15005F
giveitem ITEM_ROOT_FOSSIL
closebutton
setflag 963
@@ -75,7 +75,7 @@ Route111_EventScript_150069:: @ 8150069
lockall
msgbox Route111_Text_16FAED, 5
compare RESULT, 0
- jumpeq Route111_EventScript_1500A5
+ goto_if_eq Route111_EventScript_1500A5
giveitem ITEM_CLAW_FOSSIL
closebutton
setflag 964
@@ -122,11 +122,11 @@ Route111_EventScript_1500C5:: @ 81500C5
faceplayer
checkdailyflags
checkflag 2252
- jumpeq Route111_EventScript_150100
+ goto_if_eq Route111_EventScript_150100
msgbox Route111_Text_1C56F0, 4
giveitem ITEM_RAZZ_BERRY
compare RESULT, 0
- jumpeq Route111_EventScript_1A029B
+ goto_if_eq Route111_EventScript_1A029B
setflag 2252
special GetPlayerBigGuyGirlString
msgbox Route111_Text_1C5781, 4
@@ -165,7 +165,7 @@ Route111_EventScript_150122:: @ 8150122
Route111_EventScript_15013A:: @ 815013A
checkitem ITEM_GO_GOGGLES, 1
compare RESULT, 0
- jumpeq Route111_EventScript_150151
+ goto_if_eq Route111_EventScript_150151
setvar 0x4003, 1
releaseall
end
@@ -174,13 +174,13 @@ Route111_EventScript_150151:: @ 8150151
msgbox Route111_Text_1A0F93, 4
closebutton
compare 0x8004, 0
- callif 1, Route111_EventScript_150188
+ call_if 1, Route111_EventScript_150188
compare 0x8004, 1
- callif 1, Route111_EventScript_150193
+ call_if 1, Route111_EventScript_150193
compare 0x8004, 2
- callif 1, Route111_EventScript_15019E
+ call_if 1, Route111_EventScript_15019E
compare 0x8004, 3
- callif 1, Route111_EventScript_1501A9
+ call_if 1, Route111_EventScript_1501A9
releaseall
end
@@ -239,7 +239,7 @@ Route111_EventScript_1501D1:: @ 81501D1
setflag 2115
msgbox Route111_Text_16F705, 5
compare RESULT, 1
- jumpeq Route111_EventScript_1501F3
+ goto_if_eq Route111_EventScript_1501F3
msgbox Route111_Text_16F785, 4
release
end
@@ -394,7 +394,7 @@ Route111_EventScript_150403:: @ 8150403
trainerbattle 0, OPPONENT_DUSTY_1, 0, Route111_Text_1BAEC9, Route111_Text_1BAF14
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route111_EventScript_15042A
+ goto_if_eq Route111_EventScript_15042A
msgbox Route111_Text_1BAF5B, 6
end
@@ -422,7 +422,7 @@ Route111_EventScript_150486:: @ 8150486
trainerbattle 0, OPPONENT_WILTON_1, 0, Route111_Text_1BB2E3, Route111_Text_1BB313
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route111_EventScript_1504AD
+ goto_if_eq Route111_EventScript_1504AD
msgbox Route111_Text_1BB33E, 6
end
@@ -435,7 +435,7 @@ Route111_EventScript_1504C4:: @ 81504C4
trainerbattle 0, OPPONENT_BROOKE_1, 0, Route111_Text_1BB44F, Route111_Text_1BB49F
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route111_EventScript_1504EB
+ goto_if_eq Route111_EventScript_1504EB
msgbox Route111_Text_1BB4CE, 6
end
diff --git a/data/scripts/maps/Route111_OldLadysRestStop.inc b/data/scripts/maps/Route111_OldLadysRestStop.inc
index 107026a4b..a33b436dc 100644
--- a/data/scripts/maps/Route111_OldLadysRestStop.inc
+++ b/data/scripts/maps/Route111_OldLadysRestStop.inc
@@ -11,9 +11,9 @@ Route111_OldLadysRestStop_EventScript_15BFDB:: @ 815BFDB
faceplayer
msgbox Route111_OldLadysRestStop_Text_1923AF, 5
compare RESULT, 1
- jumpeq Route111_OldLadysRestStop_EventScript_15BFFC
+ goto_if_eq Route111_OldLadysRestStop_EventScript_15BFFC
compare RESULT, 0
- jumpeq Route111_OldLadysRestStop_EventScript_15C029
+ goto_if_eq Route111_OldLadysRestStop_EventScript_15C029
end
Route111_OldLadysRestStop_EventScript_15BFFC:: @ 815BFFC
@@ -22,9 +22,9 @@ Route111_OldLadysRestStop_EventScript_15BFFC:: @ 815BFFC
call Route111_OldLadysRestStop_EventScript_1A02CA
msgbox Route111_OldLadysRestStop_Text_19244D, 5
compare RESULT, 1
- jumpeq Route111_OldLadysRestStop_EventScript_15BFFC
+ goto_if_eq Route111_OldLadysRestStop_EventScript_15BFFC
compare RESULT, 0
- jumpeq Route111_OldLadysRestStop_EventScript_15C029
+ goto_if_eq Route111_OldLadysRestStop_EventScript_15C029
end
Route111_OldLadysRestStop_EventScript_15C029:: @ 815C029
diff --git a/data/scripts/maps/Route111_WinstrateFamilysHouse.inc b/data/scripts/maps/Route111_WinstrateFamilysHouse.inc
index 3fbaf7958..39fc62eaf 100644
--- a/data/scripts/maps/Route111_WinstrateFamilysHouse.inc
+++ b/data/scripts/maps/Route111_WinstrateFamilysHouse.inc
@@ -14,11 +14,11 @@ Route111_WinstrateFamilysHouse_EventScript_15BF3A:: @ 815BF3A
faceplayer
setvar 0x8008, 3
checkflag 277
- jumpeq Route111_WinstrateFamilysHouse_EventScript_15BF72
+ goto_if_eq Route111_WinstrateFamilysHouse_EventScript_15BF72
msgbox Route111_WinstrateFamilysHouse_Text_19208A, 4
giveitem ITEM_MACHO_BRACE
compare RESULT, 0
- jumpeq Route111_WinstrateFamilysHouse_EventScript_1A029B
+ goto_if_eq Route111_WinstrateFamilysHouse_EventScript_1A029B
setflag 277
goto Route111_WinstrateFamilysHouse_EventScript_15BFC4
end
@@ -41,7 +41,7 @@ Route111_WinstrateFamilysHouse_EventScript_15BF95:: @ 815BF95
faceplayer
setvar 0x8008, 4
checkflag 4
- jumpeq Route111_WinstrateFamilysHouse_EventScript_15BFB6
+ goto_if_eq Route111_WinstrateFamilysHouse_EventScript_15BFB6
msgbox Route111_WinstrateFamilysHouse_Text_192219, 4
setflag 4
goto Route111_WinstrateFamilysHouse_EventScript_15BFC4
diff --git a/data/scripts/maps/Route112.inc b/data/scripts/maps/Route112.inc
index 1c1e36838..22c055320 100644
--- a/data/scripts/maps/Route112.inc
+++ b/data/scripts/maps/Route112.inc
@@ -40,7 +40,7 @@ Route112_EventScript_150560:: @ 8150560
trainerbattle 0, OPPONENT_TRENT_1, 0, Route112_Text_1BB6A0, Route112_Text_1BB707
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route112_EventScript_150587
+ goto_if_eq Route112_EventScript_150587
msgbox Route112_Text_1BB721, 6
end
diff --git a/data/scripts/maps/Route112_CableCarStation.inc b/data/scripts/maps/Route112_CableCarStation.inc
index 016b868a8..c4ab89f23 100644
--- a/data/scripts/maps/Route112_CableCarStation.inc
+++ b/data/scripts/maps/Route112_CableCarStation.inc
@@ -6,7 +6,7 @@ Route112_CableCarStation_MapScripts:: @ 815C033
Route112_CableCarStation_MapScript1_15C03E:: @ 815C03E
warp6 Route112, 255, 28, 28
compare 0x40a3, 2
- callif 1, Route112_CableCarStation_EventScript_15C052
+ call_if 1, Route112_CableCarStation_EventScript_15C052
end
Route112_CableCarStation_EventScript_15C052:: @ 815C052
@@ -34,9 +34,9 @@ Route112_CableCarStation_EventScript_15C08C:: @ 815C08C
faceplayer
msgbox Route112_CableCarStation_Text_1924F5, 5
compare RESULT, 1
- jumpeq Route112_CableCarStation_EventScript_15C0AD
+ goto_if_eq Route112_CableCarStation_EventScript_15C0AD
compare RESULT, 0
- jumpeq Route112_CableCarStation_EventScript_15C0DC
+ goto_if_eq Route112_CableCarStation_EventScript_15C0DC
end
Route112_CableCarStation_EventScript_15C0AD:: @ 815C0AD
diff --git a/data/scripts/maps/Route113.inc b/data/scripts/maps/Route113.inc
index 1fc5a9345..67d28e6df 100644
--- a/data/scripts/maps/Route113.inc
+++ b/data/scripts/maps/Route113.inc
@@ -15,9 +15,9 @@ Route113_MapScript1_1505DA:: @ 81505DA
Route113_EventScript_1505E5:: @ 81505E5
getplayerxy 0x4000, 0x4001
compare 0x4000, 19
- jumpif 0, Route113_EventScript_150604
+ goto_if 0, Route113_EventScript_150604
compare 0x4000, 84
- jumpif 2, Route113_EventScript_150604
+ goto_if 2, Route113_EventScript_150604
setweather 7
return
@@ -62,7 +62,7 @@ Route113_EventScript_150669:: @ 8150669
trainerbattle 0, OPPONENT_MADELINE_1, 0, Route113_Text_1BBB27, Route113_Text_1BBB7A
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route113_EventScript_150690
+ goto_if_eq Route113_EventScript_150690
msgbox Route113_Text_1BBB9A, 6
end
@@ -75,7 +75,7 @@ Route113_EventScript_1506A7:: @ 81506A7
trainerbattle 0, OPPONENT_LAO_1, 0, Route113_Text_1BBC59, Route113_Text_1BBC90
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route113_EventScript_1506CE
+ goto_if_eq Route113_EventScript_1506CE
msgbox Route113_Text_1BBCAB, 6
end
diff --git a/data/scripts/maps/Route113_GlassWorkshop.inc b/data/scripts/maps/Route113_GlassWorkshop.inc
index 24f4803b2..2fec004e4 100644
--- a/data/scripts/maps/Route113_GlassWorkshop.inc
+++ b/data/scripts/maps/Route113_GlassWorkshop.inc
@@ -5,7 +5,7 @@ Route113_GlassWorkshop_MapScripts:: @ 816354A
Route113_GlassWorkshop_MapScript1_163550:: @ 8163550
setflag 2116
compare 0x40be, 1
- callif 1, Route113_GlassWorkshop_EventScript_16355F
+ call_if 1, Route113_GlassWorkshop_EventScript_16355F
end
Route113_GlassWorkshop_EventScript_16355F:: @ 816355F
@@ -16,11 +16,11 @@ Route113_GlassWorkshop_EventScript_163565:: @ 8163565
lock
faceplayer
compare 0x40be, 10
- jumpif 4, Route113_GlassWorkshop_EventScript_1638D2
+ goto_if 4, Route113_GlassWorkshop_EventScript_1638D2
compare 0x40be, 2
- jumpeq Route113_GlassWorkshop_EventScript_1635B5
+ goto_if_eq Route113_GlassWorkshop_EventScript_1635B5
compare 0x40be, 1
- jumpeq Route113_GlassWorkshop_EventScript_1635AB
+ goto_if_eq Route113_GlassWorkshop_EventScript_1635AB
msgbox Route113_GlassWorkshop_Text_19E4E6, 4
giveitem ITEM_SOOT_SACK
setvar 0x40be, 1
@@ -36,10 +36,10 @@ Route113_GlassWorkshop_EventScript_1635AB:: @ 81635AB
Route113_GlassWorkshop_EventScript_1635B5:: @ 81635B5
checkitem ITEM_SOOT_SACK, 1
compare RESULT, 0
- jumpeq Route113_GlassWorkshop_EventScript_1635E4
+ goto_if_eq Route113_GlassWorkshop_EventScript_1635E4
msgbox Route113_GlassWorkshop_Text_19E65B, 4
compare 0x4048, 250
- jumpif 0, Route113_GlassWorkshop_EventScript_163818
+ goto_if 0, Route113_GlassWorkshop_EventScript_163818
message Route113_GlassWorkshop_Text_19E757
waittext
goto Route113_GlassWorkshop_EventScript_1635EE
@@ -71,10 +71,10 @@ Route113_GlassWorkshop_EventScript_163660:: @ 8163660
bufferitem 0, 0x8008
setvar 0x800a, 250
compare 0x4048, 250
- jumpif 0, Route113_GlassWorkshop_EventScript_163830
+ goto_if 0, Route113_GlassWorkshop_EventScript_163830
msgbox Route113_GlassWorkshop_Text_19E7CD, 5
compare RESULT, 0
- jumpeq Route113_GlassWorkshop_EventScript_163845
+ goto_if_eq Route113_GlassWorkshop_EventScript_163845
setvar 0x40be, 10
subvar 0x4048, 250
goto Route113_GlassWorkshop_EventScript_163851
@@ -85,10 +85,10 @@ Route113_GlassWorkshop_EventScript_16369C:: @ 816369C
bufferitem 0, 0x8008
setvar 0x800a, 500
compare 0x4048, 500
- jumpif 0, Route113_GlassWorkshop_EventScript_163830
+ goto_if 0, Route113_GlassWorkshop_EventScript_163830
msgbox Route113_GlassWorkshop_Text_19E7CD, 5
compare RESULT, 0
- jumpeq Route113_GlassWorkshop_EventScript_163845
+ goto_if_eq Route113_GlassWorkshop_EventScript_163845
setvar 0x40be, 11
subvar 0x4048, 500
goto Route113_GlassWorkshop_EventScript_163851
@@ -99,10 +99,10 @@ Route113_GlassWorkshop_EventScript_1636D8:: @ 81636D8
bufferitem 0, 0x8008
setvar 0x800a, 500
compare 0x4048, 500
- jumpif 0, Route113_GlassWorkshop_EventScript_163830
+ goto_if 0, Route113_GlassWorkshop_EventScript_163830
msgbox Route113_GlassWorkshop_Text_19E7CD, 5
compare RESULT, 0
- jumpeq Route113_GlassWorkshop_EventScript_163845
+ goto_if_eq Route113_GlassWorkshop_EventScript_163845
setvar 0x40be, 12
subvar 0x4048, 500
goto Route113_GlassWorkshop_EventScript_163851
@@ -113,10 +113,10 @@ Route113_GlassWorkshop_EventScript_163714:: @ 8163714
bufferitem 0, 0x8008
setvar 0x800a, 1000
compare 0x4048, 1000
- jumpif 0, Route113_GlassWorkshop_EventScript_163830
+ goto_if 0, Route113_GlassWorkshop_EventScript_163830
msgbox Route113_GlassWorkshop_Text_19E7CD, 5
compare RESULT, 0
- jumpeq Route113_GlassWorkshop_EventScript_163845
+ goto_if_eq Route113_GlassWorkshop_EventScript_163845
setvar 0x40be, 13
subvar 0x4048, 1000
goto Route113_GlassWorkshop_EventScript_163851
@@ -127,10 +127,10 @@ Route113_GlassWorkshop_EventScript_163750:: @ 8163750
bufferitem 0, 0x8008
setvar 0x800a, 1000
compare 0x4048, 1000
- jumpif 0, Route113_GlassWorkshop_EventScript_163830
+ goto_if 0, Route113_GlassWorkshop_EventScript_163830
msgbox Route113_GlassWorkshop_Text_19E7CD, 5
compare RESULT, 0
- jumpeq Route113_GlassWorkshop_EventScript_163845
+ goto_if_eq Route113_GlassWorkshop_EventScript_163845
setvar 0x40be, 14
subvar 0x4048, 1000
goto Route113_GlassWorkshop_EventScript_163851
@@ -142,10 +142,10 @@ Route113_GlassWorkshop_EventScript_16378C:: @ 816378C
bufferdecor 0, 0x8008
setvar 0x800a, 6000
compare 0x4048, 6000
- jumpif 0, Route113_GlassWorkshop_EventScript_163830
+ goto_if 0, Route113_GlassWorkshop_EventScript_163830
msgbox Route113_GlassWorkshop_Text_19E7CD, 5
compare RESULT, 0
- jumpeq Route113_GlassWorkshop_EventScript_163845
+ goto_if_eq Route113_GlassWorkshop_EventScript_163845
setvar 0x40be, 15
subvar 0x4048, 6000
goto Route113_GlassWorkshop_EventScript_163851
@@ -157,10 +157,10 @@ Route113_GlassWorkshop_EventScript_1637CD:: @ 81637CD
bufferdecor 0, 0x8008
setvar 0x800a, 8000
compare 0x4048, 8000
- jumpif 0, Route113_GlassWorkshop_EventScript_163830
+ goto_if 0, Route113_GlassWorkshop_EventScript_163830
msgbox Route113_GlassWorkshop_Text_19E7CD, 5
compare RESULT, 0
- jumpeq Route113_GlassWorkshop_EventScript_163845
+ goto_if_eq Route113_GlassWorkshop_EventScript_163845
setvar 0x40be, 16
subvar 0x4048, 8000
goto Route113_GlassWorkshop_EventScript_163851
@@ -202,9 +202,9 @@ Route113_GlassWorkshop_EventScript_163851:: @ 8163851
fadescreen 0
msgbox Route113_GlassWorkshop_Text_19E9D7, 4
compare 0x8009, 0
- callif 1, Route113_GlassWorkshop_EventScript_163889
+ call_if 1, Route113_GlassWorkshop_EventScript_163889
compare 0x8009, 1
- callif 1, Route113_GlassWorkshop_EventScript_1638A1
+ call_if 1, Route113_GlassWorkshop_EventScript_1638A1
setvar 0x40be, 2
release
end
@@ -212,13 +212,13 @@ Route113_GlassWorkshop_EventScript_163851:: @ 8163851
Route113_GlassWorkshop_EventScript_163889:: @ 8163889
giveitem 0x8008
compare RESULT, 0
- jumpeq Route113_GlassWorkshop_EventScript_1638B4
+ goto_if_eq Route113_GlassWorkshop_EventScript_1638B4
return
Route113_GlassWorkshop_EventScript_1638A1:: @ 81638A1
givedecoration 0x8008
compare RESULT, 0
- jumpeq Route113_GlassWorkshop_EventScript_1638C3
+ goto_if_eq Route113_GlassWorkshop_EventScript_1638C3
return
Route113_GlassWorkshop_EventScript_1638B4:: @ 81638B4
@@ -296,9 +296,9 @@ Route113_GlassWorkshop_EventScript_16399D:: @ 816399D
Route113_GlassWorkshop_EventScript_1639B1:: @ 81639B1
msgbox Route113_GlassWorkshop_Text_19E9D7, 4
compare 0x8009, 0
- callif 1, Route113_GlassWorkshop_EventScript_163889
+ call_if 1, Route113_GlassWorkshop_EventScript_163889
compare 0x8009, 1
- callif 1, Route113_GlassWorkshop_EventScript_1638A1
+ call_if 1, Route113_GlassWorkshop_EventScript_1638A1
setvar 0x40be, 2
release
end
diff --git a/data/scripts/maps/Route114.inc b/data/scripts/maps/Route114.inc
index cfe1dfe7d..6d28b87a4 100644
--- a/data/scripts/maps/Route114.inc
+++ b/data/scripts/maps/Route114.inc
@@ -6,14 +6,14 @@ Route114_EventScript_150733:: @ 8150733
faceplayer
checkdailyflags
checkflag 2251
- jumpeq Route114_EventScript_150778
+ goto_if_eq Route114_EventScript_150778
msgbox Route114_Text_1C5803, 4
random 5
addvar RESULT, 15
addvar RESULT, 133
giveitem RESULT
compare RESULT, 0
- jumpeq Route114_EventScript_1A029B
+ goto_if_eq Route114_EventScript_1A029B
setflag 2251
msgbox Route114_Text_1C5861, 4
release
@@ -28,11 +28,11 @@ Route114_EventScript_150782:: @ 8150782
lock
faceplayer
checkflag 231
- jumpeq Route114_EventScript_1507B9
+ goto_if_eq Route114_EventScript_1507B9
msgbox Route114_Text_170154, 4
giveitem ITEM_TM05
compare RESULT, 0
- jumpeq Route114_EventScript_1A029B
+ goto_if_eq Route114_EventScript_1A029B
setflag 231
msgbox Route114_Text_1701C5, 4
release
@@ -89,7 +89,7 @@ Route114_EventScript_15084D:: @ 815084D
trainerbattle 0, OPPONENT_STEVE_1, 0, Route114_Text_1BC2F5, Route114_Text_1BC327
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route114_EventScript_150874
+ goto_if_eq Route114_EventScript_150874
msgbox Route114_Text_1BC337, 6
end
@@ -102,7 +102,7 @@ Route114_EventScript_15088B:: @ 815088B
trainerbattle 0, OPPONENT_BERNIE_1, 0, Route114_Text_1BC45A, Route114_Text_1BC499
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route114_EventScript_1508B2
+ goto_if_eq Route114_EventScript_1508B2
msgbox Route114_Text_1BC4B5, 6
end
diff --git a/data/scripts/maps/Route114_FossilManiacsHouse.inc b/data/scripts/maps/Route114_FossilManiacsHouse.inc
index 50305dc04..b217f24c4 100644
--- a/data/scripts/maps/Route114_FossilManiacsHouse.inc
+++ b/data/scripts/maps/Route114_FossilManiacsHouse.inc
@@ -10,11 +10,11 @@ Route114_FossilManiacsHouse_EventScript_15C1C3:: @ 815C1C3
lock
faceplayer
checkflag 261
- jumpeq Route114_FossilManiacsHouse_EventScript_15C1F2
+ goto_if_eq Route114_FossilManiacsHouse_EventScript_15C1F2
msgbox Route114_FossilManiacsHouse_Text_1925E1, 4
giveitem ITEM_TM28
compare RESULT, 0
- jumpeq Route114_FossilManiacsHouse_EventScript_1A029B
+ goto_if_eq Route114_FossilManiacsHouse_EventScript_1A029B
setflag 261
release
end
diff --git a/data/scripts/maps/Route114_FossilManiacsTunnel.inc b/data/scripts/maps/Route114_FossilManiacsTunnel.inc
index 7986a0436..13843f758 100644
--- a/data/scripts/maps/Route114_FossilManiacsTunnel.inc
+++ b/data/scripts/maps/Route114_FossilManiacsTunnel.inc
@@ -5,13 +5,13 @@ Route114_FossilManiacsTunnel_EventScript_15C20F:: @ 815C20F
lock
faceplayer
checkflag 267
- jumpeq Route114_FossilManiacsTunnel_EventScript_15C24E
+ goto_if_eq Route114_FossilManiacsTunnel_EventScript_15C24E
checkitem ITEM_ROOT_FOSSIL, 1
compare RESULT, 1
- jumpeq Route114_FossilManiacsTunnel_EventScript_15C244
+ goto_if_eq Route114_FossilManiacsTunnel_EventScript_15C244
checkitem ITEM_CLAW_FOSSIL, 1
compare RESULT, 1
- jumpeq Route114_FossilManiacsTunnel_EventScript_15C244
+ goto_if_eq Route114_FossilManiacsTunnel_EventScript_15C244
msgbox Route114_FossilManiacsTunnel_Text_192795, 4
release
end
diff --git a/data/scripts/maps/Route114_LanettesHouse.inc b/data/scripts/maps/Route114_LanettesHouse.inc
index ff8a1c565..e4334647c 100644
--- a/data/scripts/maps/Route114_LanettesHouse.inc
+++ b/data/scripts/maps/Route114_LanettesHouse.inc
@@ -10,7 +10,7 @@ Route114_LanettesHouse_EventScript_15C262:: @ 815C262
lock
faceplayer
checkflag 131
- jumpeq Route114_LanettesHouse_EventScript_15C28F
+ goto_if_eq Route114_LanettesHouse_EventScript_15C28F
setflag 2123
msgbox Route114_LanettesHouse_Text_192A0D, 4
.ifdef SAPPHIRE
@@ -19,7 +19,7 @@ Route114_LanettesHouse_EventScript_15C262:: @ 815C262
givedecoration 100
.endif
compare RESULT, 0
- jumpeq Route114_LanettesHouse_EventScript_1A02AE
+ goto_if_eq Route114_LanettesHouse_EventScript_1A02AE
setflag 131
release
end
@@ -33,7 +33,7 @@ Route114_LanettesHouse_EventScript_15C299:: @ 815C299
lockall
msgbox Route114_LanettesHouse_Text_192B4A, 5
compare RESULT, 1
- jumpeq Route114_LanettesHouse_EventScript_15C2B7
+ goto_if_eq Route114_LanettesHouse_EventScript_15C2B7
msgbox Route114_LanettesHouse_Text_192DA9, 4
releaseall
end
@@ -41,7 +41,7 @@ Route114_LanettesHouse_EventScript_15C299:: @ 815C299
Route114_LanettesHouse_EventScript_15C2B7:: @ 815C2B7
msgbox Route114_LanettesHouse_Text_192C01, 5
compare RESULT, 1
- callif 1, Route114_LanettesHouse_EventScript_15C2CC
+ call_if 1, Route114_LanettesHouse_EventScript_15C2CC
releaseall
end
diff --git a/data/scripts/maps/Route115.inc b/data/scripts/maps/Route115.inc
index 2b0d744ca..3bacb06d1 100644
--- a/data/scripts/maps/Route115.inc
+++ b/data/scripts/maps/Route115.inc
@@ -17,7 +17,7 @@ Route115_EventScript_150949:: @ 8150949
trainerbattle 0, OPPONENT_TIMOTHY_1, 0, Route115_Text_1BC9AC, Route115_Text_1BC9E6
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route115_EventScript_150970
+ goto_if_eq Route115_EventScript_150970
msgbox Route115_Text_1BCA0E, 6
end
@@ -35,7 +35,7 @@ Route115_EventScript_15099E:: @ 815099E
trainerbattle 0, OPPONENT_NOB_1, 0, Route115_Text_1BCB8A, Route115_Text_1BCBC1
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route115_EventScript_1509C5
+ goto_if_eq Route115_EventScript_1509C5
msgbox Route115_Text_1BCBDE, 6
end
@@ -48,7 +48,7 @@ Route115_EventScript_1509DC:: @ 81509DC
trainerbattle 0, OPPONENT_CYNDY_1, 0, Route115_Text_1BCCF4, Route115_Text_1BCD32
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route115_EventScript_150A03
+ goto_if_eq Route115_EventScript_150A03
msgbox Route115_Text_1BCD4C, 6
end
diff --git a/data/scripts/maps/Route116.inc b/data/scripts/maps/Route116.inc
index 7b9a5162f..94b7d25d6 100644
--- a/data/scripts/maps/Route116.inc
+++ b/data/scripts/maps/Route116.inc
@@ -4,7 +4,7 @@ Route116_MapScripts:: @ 8150A31
Route116_MapScript1_150A37:: @ 8150A37
checkflag 143
- callif 1, Route116_EventScript_150A41
+ call_if 1, Route116_EventScript_150A41
end
Route116_EventScript_150A41:: @ 8150A41
@@ -15,9 +15,9 @@ Route116_EventScript_150A49:: @ 8150A49
lock
faceplayer
checkflag 143
- jumpeq Route116_EventScript_150A67
+ goto_if_eq Route116_EventScript_150A67
checkflag 142
- jumpeq Route116_EventScript_150A71
+ goto_if_eq Route116_EventScript_150A71
msgbox Route116_Text_1703CF, 4
release
end
@@ -36,7 +36,7 @@ Route116_EventScript_150A7B:: @ 8150A7B
lock
faceplayer
checkflag 287
- jumpeq Route116_EventScript_150B04
+ goto_if_eq Route116_EventScript_150B04
msgbox Route116_Text_1705AE, 4
goto Route116_EventScript_150A94
end
@@ -45,17 +45,17 @@ Route116_EventScript_150A94:: @ 8150A94
setflag 287
giveitem ITEM_REPEAT_BALL
compare RESULT, 0
- jumpeq Route116_EventScript_150B12
+ goto_if_eq Route116_EventScript_150B12
msgbox Route116_Text_1707B8, 4
closebutton
compare FACING, 2
- callif 1, Route116_EventScript_150AEE
+ call_if 1, Route116_EventScript_150AEE
compare FACING, 1
- callif 1, Route116_EventScript_150AEE
+ call_if 1, Route116_EventScript_150AEE
compare FACING, 3
- callif 1, Route116_EventScript_150AEE
+ call_if 1, Route116_EventScript_150AEE
compare FACING, 4
- callif 1, Route116_EventScript_150AF9
+ call_if 1, Route116_EventScript_150AF9
disappear LAST_TALKED
clearflag 949
setflag 256
@@ -149,10 +149,10 @@ Route116_EventScript_150B8F:: @ 8150B8F
faceplayer
checkitem ITEM_BLACK_GLASSES, 1
compare RESULT, 1
- jumpeq Route116_EventScript_150BCA
+ goto_if_eq Route116_EventScript_150BCA
specialval RESULT, sub_810F828
compare RESULT, 1
- jumpeq Route116_EventScript_150BBB
+ goto_if_eq Route116_EventScript_150BBB
msgbox Route116_Text_1708EE, 4
release
end
@@ -168,7 +168,7 @@ Route116_EventScript_150BCA:: @ 8150BCA
msgbox Route116_Text_170921, 4
specialval RESULT, sub_810F828
compare RESULT, 1
- jumpeq Route116_EventScript_150BF4
+ goto_if_eq Route116_EventScript_150BF4
msgbox Route116_Text_170A03, 4
release
end
@@ -182,13 +182,13 @@ Route116_EventScript_150BF4:: @ 8150BF4
Route116_EventScript_150C03:: @ 8150C03
pause 20
compare FACING, 2
- callif 1, Route116_EventScript_150C37
+ call_if 1, Route116_EventScript_150C37
compare FACING, 1
- callif 1, Route116_EventScript_150C37
+ call_if 1, Route116_EventScript_150C37
compare FACING, 3
- callif 1, Route116_EventScript_150C37
+ call_if 1, Route116_EventScript_150C37
compare FACING, 4
- callif 1, Route116_EventScript_150C42
+ call_if 1, Route116_EventScript_150C42
disappear LAST_TALKED
release
end
@@ -242,7 +242,7 @@ Route116_EventScript_150C90:: @ 8150C90
trainerbattle 0, OPPONENT_JERRY_1, 0, Route116_Text_1BD1C0, Route116_Text_1BD21A
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route116_EventScript_150CB7
+ goto_if_eq Route116_EventScript_150CB7
msgbox Route116_Text_1BD248, 6
end
@@ -265,7 +265,7 @@ Route116_EventScript_150CFC:: @ 8150CFC
trainerbattle 0, OPPONENT_KAREN_1, 0, Route116_Text_1BD377, Route116_Text_1BD3AC
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route116_EventScript_150D23
+ goto_if_eq Route116_EventScript_150D23
msgbox Route116_Text_1BD3C3, 6
end
diff --git a/data/scripts/maps/Route116_TunnelersRestHouse.inc b/data/scripts/maps/Route116_TunnelersRestHouse.inc
index d141fae37..10991c38c 100644
--- a/data/scripts/maps/Route116_TunnelersRestHouse.inc
+++ b/data/scripts/maps/Route116_TunnelersRestHouse.inc
@@ -18,7 +18,7 @@ Route116_TunnelersRestHouse_EventScript_15C2FA:: @ 815C2FA
lock
faceplayer
checkflag 199
- jumpeq Route116_TunnelersRestHouse_EventScript_15C30F
+ goto_if_eq Route116_TunnelersRestHouse_EventScript_15C30F
msgbox Route116_TunnelersRestHouse_Text_193135, 4
release
end
diff --git a/data/scripts/maps/Route117.inc b/data/scripts/maps/Route117.inc
index 61dbf6a30..a84d1eaf8 100644
--- a/data/scripts/maps/Route117.inc
+++ b/data/scripts/maps/Route117.inc
@@ -8,7 +8,7 @@ Route117_MapScript1_150D40:: @ 8150D40
Route117_EventScript_150D46:: @ 8150D46
checkflag 134
- jumpif 0, Route117_EventScript_150D56
+ goto_if 0, Route117_EventScript_150D56
movespriteperm 3, 47, 6
Route117_EventScript_150D56:: @ 8150D56
@@ -42,7 +42,7 @@ Route117_EventScript_150D8D:: @ 8150D8D
trainerbattle 0, OPPONENT_ISAAC_1, 0, Route117_Text_1BD49E, Route117_Text_1BD4D9
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route117_EventScript_150DB4
+ goto_if_eq Route117_EventScript_150DB4
msgbox Route117_Text_1BD4F9, 6
end
@@ -55,7 +55,7 @@ Route117_EventScript_150DCB:: @ 8150DCB
trainerbattle 0, OPPONENT_LYDIA_1, 0, Route117_Text_1BD634, Route117_Text_1BD67B
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route117_EventScript_150DF2
+ goto_if_eq Route117_EventScript_150DF2
msgbox Route117_Text_1BD69B, 6
end
@@ -68,7 +68,7 @@ Route117_EventScript_150E09:: @ 8150E09
trainerbattle 0, OPPONENT_DYLAN_1, 0, Route117_Text_1BD79A, Route117_Text_1BD7E0
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route117_EventScript_150E30
+ goto_if_eq Route117_EventScript_150E30
msgbox Route117_Text_1BD7F5, 6
end
@@ -81,7 +81,7 @@ Route117_EventScript_150E47:: @ 8150E47
trainerbattle 0, OPPONENT_MARIA_1, 0, Route117_Text_1BD914, Route117_Text_1BD965
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route117_EventScript_150E6E
+ goto_if_eq Route117_EventScript_150E6E
msgbox Route117_Text_1BD98F, 6
end
@@ -99,7 +99,7 @@ Route117_EventScript_150E9C:: @ 8150E9C
trainerbattle 4, OPPONENT_ANNA_AND_MEG_1, 0, Route117_Text_1BDBC3, Route117_Text_1BDC07, Route117_Text_1BDC96
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route117_EventScript_150EC7
+ goto_if_eq Route117_EventScript_150EC7
msgbox Route117_Text_1BDC44, 6
end
@@ -112,7 +112,7 @@ Route117_EventScript_150EE2:: @ 8150EE2
trainerbattle 4, OPPONENT_ANNA_AND_MEG_1, 0, Route117_Text_1BDCD2, Route117_Text_1BDD1E, Route117_Text_1BDD8B
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route117_EventScript_150F0D
+ goto_if_eq Route117_EventScript_150F0D
msgbox Route117_Text_1BDD4E, 6
end
diff --git a/data/scripts/maps/Route118.inc b/data/scripts/maps/Route118.inc
index a28352c94..7d4109f59 100644
--- a/data/scripts/maps/Route118.inc
+++ b/data/scripts/maps/Route118.inc
@@ -10,12 +10,12 @@ Route118_EventScript_150F34:: @ 8150F34
lock
faceplayer
checkflag 227
- jumpeq Route118_EventScript_150F89
+ goto_if_eq Route118_EventScript_150F89
msgbox Route118_Text_170F12, 5
compare RESULT, 1
- jumpeq Route118_EventScript_150F5E
+ goto_if_eq Route118_EventScript_150F5E
compare RESULT, 0
- jumpeq Route118_EventScript_150F7F
+ goto_if_eq Route118_EventScript_150F7F
end
Route118_EventScript_150F5E:: @ 8150F5E
@@ -84,11 +84,11 @@ Route118_EventScript_151004:: @ 8151004
msgbox Route118_Text_170D66, 4
closebutton
compare 0x8008, 0
- callif 1, Route118_EventScript_151048
+ call_if 1, Route118_EventScript_151048
compare 0x8008, 1
- callif 1, Route118_EventScript_151053
+ call_if 1, Route118_EventScript_151053
compare 0x8008, 2
- callif 1, Route118_EventScript_15105E
+ call_if 1, Route118_EventScript_15105E
setvar 0x4071, 1
disappear 19
releaseall
@@ -163,7 +163,7 @@ Route118_EventScript_15108F:: @ 815108F
trainerbattle 0, OPPONENT_ROSE_1, 0, Route118_Text_1BDFF4, Route118_Text_1BE03C
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route118_EventScript_1510B6
+ goto_if_eq Route118_EventScript_1510B6
msgbox Route118_Text_1BE05E, 6
end
@@ -186,7 +186,7 @@ Route118_EventScript_1510FB:: @ 81510FB
trainerbattle 0, OPPONENT_DALTON_1, 0, Route118_Text_1BE3E8, Route118_Text_1BE406
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route118_EventScript_151122
+ goto_if_eq Route118_EventScript_151122
msgbox Route118_Text_1BE413, 6
end
diff --git a/data/scripts/maps/Route119.inc b/data/scripts/maps/Route119.inc
index bd73bbf31..0d71ac056 100644
--- a/data/scripts/maps/Route119.inc
+++ b/data/scripts/maps/Route119.inc
@@ -5,14 +5,14 @@ Route119_MapScripts:: @ 8151167
Route119_MapScript1_151172:: @ 8151172
checkflag 2145
- callif 1, Route119_EventScript_15117C
+ call_if 1, Route119_EventScript_15117C
end
Route119_EventScript_15117C:: @ 815117C
compare 0x8004, 6
- callif 1, Route119_EventScript_151193
+ call_if 1, Route119_EventScript_151193
compare 0x8004, 7
- callif 1, Route119_EventScript_151197
+ call_if 1, Route119_EventScript_151197
return
Route119_EventScript_151193:: @ 8151193
@@ -28,7 +28,7 @@ Route119_MapScript1_15119B:: @ 815119B
call Route119_EventScript_1A0172
call Route119_EventScript_1A0196
compare 0x40b3, 1
- callif 1, Route119_EventScript_1511B9
+ call_if 1, Route119_EventScript_1511B9
special SetRoute119Weather
end
@@ -53,29 +53,29 @@ Route119_EventScript_1511DB:: @ 81511DB
reappear 25
checkgender
compare RESULT, 0
- callif 1, Route119_EventScript_151254
+ call_if 1, Route119_EventScript_151254
compare RESULT, 1
- callif 1, Route119_EventScript_151259
+ call_if 1, Route119_EventScript_151259
pause 65
compare 0x4001, 1
- callif 1, Route119_EventScript_1513A6
+ call_if 1, Route119_EventScript_1513A6
compare 0x4001, 2
- callif 1, Route119_EventScript_1513B1
+ call_if 1, Route119_EventScript_1513B1
move 255, Route119_Movement_1A0845
waitmove 0
pause 30
compare 0x4001, 1
- callif 1, Route119_EventScript_1513D2
+ call_if 1, Route119_EventScript_1513D2
compare 0x4001, 2
- callif 1, Route119_EventScript_1513E1
+ call_if 1, Route119_EventScript_1513E1
disappear 25
reappear 16
pause 30
checkgender
compare RESULT, 0
- jumpeq Route119_EventScript_15125E
+ goto_if_eq Route119_EventScript_15125E
compare RESULT, 1
- jumpeq Route119_EventScript_1512D8
+ goto_if_eq Route119_EventScript_1512D8
releaseall
end
@@ -155,16 +155,16 @@ Route119_EventScript_151352:: @ 8151352
Route119_EventScript_151362:: @ 8151362
closebutton
compare 0x4001, 1
- callif 1, Route119_EventScript_1513D2
+ call_if 1, Route119_EventScript_1513D2
compare 0x4001, 2
- callif 1, Route119_EventScript_1513E1
+ call_if 1, Route119_EventScript_1513E1
disappear 16
reappear 25
pause 30
compare 0x4001, 1
- callif 1, Route119_EventScript_1513BC
+ call_if 1, Route119_EventScript_1513BC
compare 0x4001, 2
- callif 1, Route119_EventScript_1513C7
+ call_if 1, Route119_EventScript_1513C7
disappear 25
setvar 0x4072, 1
playmusicbattle 0
@@ -298,7 +298,7 @@ Route119_EventScript_1514BF:: @ 81514BF
trainerbattle 0, OPPONENT_JACKSON_1, 0, Route119_Text_1BE8BB, Route119_Text_1BE90E
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route119_EventScript_1514E6
+ goto_if_eq Route119_EventScript_1514E6
msgbox Route119_Text_1BE937, 6
end
@@ -311,7 +311,7 @@ Route119_EventScript_1514FD:: @ 81514FD
trainerbattle 0, OPPONENT_CATHERINE_1, 0, Route119_Text_1BEA3A, Route119_Text_1BEA88
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route119_EventScript_151524
+ goto_if_eq Route119_EventScript_151524
msgbox Route119_Text_1BEAB3, 6
end
diff --git a/data/scripts/maps/Route119_WeatherInstitute_1F.inc b/data/scripts/maps/Route119_WeatherInstitute_1F.inc
index 95ec39d61..762a6c299 100644
--- a/data/scripts/maps/Route119_WeatherInstitute_1F.inc
+++ b/data/scripts/maps/Route119_WeatherInstitute_1F.inc
@@ -5,7 +5,7 @@ Route119_WeatherInstitute_1F_MapScripts:: @ 8163C2A
Route119_WeatherInstitute_1F_MapScript1_163C30:: @ 8163C30
call Route119_WeatherInstitute_1F_EventScript_1A0196
compare 0x40b3, 0
- callif 1, Route119_WeatherInstitute_1F_EventScript_163C41
+ call_if 1, Route119_WeatherInstitute_1F_EventScript_163C41
end
Route119_WeatherInstitute_1F_EventScript_163C41:: @ 8163C41
@@ -18,7 +18,7 @@ Route119_WeatherInstitute_1F_EventScript_163C4D:: @ 8163C4D
faceplayer
special GetPlayerBigGuyGirlString
compare 0x40b3, 0
- jumpeq Route119_WeatherInstitute_1F_EventScript_163C67
+ goto_if_eq Route119_WeatherInstitute_1F_EventScript_163C67
msgbox Route119_WeatherInstitute_1F_Text_19ED22, 4
release
end
diff --git a/data/scripts/maps/Route119_WeatherInstitute_2F.inc b/data/scripts/maps/Route119_WeatherInstitute_2F.inc
index f88b97cfe..35e547f79 100644
--- a/data/scripts/maps/Route119_WeatherInstitute_2F.inc
+++ b/data/scripts/maps/Route119_WeatherInstitute_2F.inc
@@ -5,9 +5,9 @@ Route119_WeatherInstitute_2F_MapScripts:: @ 8163CC2
Route119_WeatherInstitute_2F_MapScript1_163CC8:: @ 8163CC8
call Route119_WeatherInstitute_2F_EventScript_1A0196
compare 0x40b3, 0
- callif 1, Route119_WeatherInstitute_2F_EventScript_163CE4
+ call_if 1, Route119_WeatherInstitute_2F_EventScript_163CE4
compare 0x40b3, 1
- callif 1, Route119_WeatherInstitute_2F_EventScript_163CF0
+ call_if 1, Route119_WeatherInstitute_2F_EventScript_163CF0
end
Route119_WeatherInstitute_2F_EventScript_163CE4:: @ 8163CE4
@@ -57,7 +57,7 @@ Route119_WeatherInstitute_2F_EventScript_163D7A:: @ 8163D7A
msgbox Route119_WeatherInstitute_2F_Text_19F1CF, 4
countpokemon
compare RESULT, 6
- jumpeq Route119_WeatherInstitute_2F_EventScript_163DB4
+ goto_if_eq Route119_WeatherInstitute_2F_EventScript_163DB4
fanfare 370
message Route119_WeatherInstitute_2F_Text_19F267
waitfanfare
@@ -88,6 +88,6 @@ Route119_WeatherInstitute_2F_EventScript_163DCC:: @ 8163DCC
lock
faceplayer
checkflag 151
- jumpeq Route119_WeatherInstitute_2F_EventScript_163DBE
+ goto_if_eq Route119_WeatherInstitute_2F_EventScript_163DBE
goto Route119_WeatherInstitute_2F_EventScript_163D7A
end
diff --git a/data/scripts/maps/Route120.inc b/data/scripts/maps/Route120.inc
index 74250fd0f..f0179d317 100644
--- a/data/scripts/maps/Route120.inc
+++ b/data/scripts/maps/Route120.inc
@@ -6,22 +6,22 @@ Route120_MapScripts:: @ 815160E
Route120_MapScript1_15161E:: @ 815161E
checkflag 2145
- callif 1, Route120_EventScript_151628
+ call_if 1, Route120_EventScript_151628
end
Route120_EventScript_151628:: @ 8151628
compare 0x8004, 0
- callif 1, Route120_EventScript_15166B
+ call_if 1, Route120_EventScript_15166B
compare 0x8004, 1
- callif 1, Route120_EventScript_151672
+ call_if 1, Route120_EventScript_151672
compare 0x8004, 2
- callif 1, Route120_EventScript_151676
+ call_if 1, Route120_EventScript_151676
compare 0x8004, 3
- callif 1, Route120_EventScript_15167A
+ call_if 1, Route120_EventScript_15167A
compare 0x8004, 4
- callif 1, Route120_EventScript_15167E
+ call_if 1, Route120_EventScript_15167E
compare 0x8004, 5
- callif 1, Route120_EventScript_151682
+ call_if 1, Route120_EventScript_151682
return
Route120_EventScript_15166B:: @ 815166B
@@ -51,11 +51,11 @@ Route120_EventScript_151682:: @ 8151682
Route120_MapScript1_151686:: @ 8151686
checkflag 228
- callif 0, Route120_EventScript_1516A2
+ call_if 0, Route120_EventScript_1516A2
checkflag 285
- callif 1, Route120_EventScript_1516B5
+ call_if 1, Route120_EventScript_1516B5
checkflag 285
- callif 0, Route120_EventScript_1516DA
+ call_if 0, Route120_EventScript_1516DA
end
Route120_EventScript_1516A2:: @ 81516A2
@@ -82,11 +82,11 @@ Route120_MapScript1_1516DF:: @ 81516DF
Route120_EventScript_1516EA:: @ 81516EA
getplayerxy 0x4000, 0x4001
compare 0x4001, 14
- jumpif 3, Route120_EventScript_151715
+ goto_if 3, Route120_EventScript_151715
compare 0x4001, 60
- jumpif 3, Route120_EventScript_151719
+ goto_if 3, Route120_EventScript_151719
compare 0x4001, 61
- jumpif 4, Route120_EventScript_151711
+ goto_if 4, Route120_EventScript_151711
return
Route120_EventScript_151711:: @ 8151711
@@ -99,9 +99,9 @@ Route120_EventScript_151715:: @ 8151715
Route120_EventScript_151719:: @ 8151719
compare 0x4000, 7
- jumpif 3, Route120_EventScript_151735
+ goto_if 3, Route120_EventScript_151735
compare 0x4000, 19
- jumpif 3, Route120_EventScript_151715
+ goto_if 3, Route120_EventScript_151715
goto Route120_EventScript_151735
end
@@ -114,12 +114,12 @@ Route120_EventScript_151739:: @ 8151739
faceplayer
checkdailyflags
checkflag 2254
- jumpeq Route120_EventScript_151837
+ goto_if_eq Route120_EventScript_151837
msgbox Route120_Text_1C58F1, 5
compare RESULT, 1
- callif 1, Route120_EventScript_151841
+ call_if 1, Route120_EventScript_151841
compare RESULT, 0
- callif 1, Route120_EventScript_15184A
+ call_if 1, Route120_EventScript_15184A
specialval RESULT, GetPlayerTrainerIdOnesDigit
switch RESULT
case 0, Route120_EventScript_1517DC
@@ -162,7 +162,7 @@ Route120_EventScript_151808:: @ 8151808
Route120_EventScript_151813:: @ 8151813
giveitem 0x8004
compare RESULT, 0
- jumpeq Route120_EventScript_1A029B
+ goto_if_eq Route120_EventScript_1A029B
setflag 2254
msgbox Route120_Text_1C5A0B, 4
release
@@ -185,10 +185,10 @@ Route120_EventScript_151853:: @ 8151853
lock
faceplayer
checkflag 290
- jumpeq Route120_EventScript_151884
+ goto_if_eq Route120_EventScript_151884
msgbox Route120_Text_171827, 5
compare RESULT, 0
- jumpeq Route120_EventScript_151877
+ goto_if_eq Route120_EventScript_151877
goto Route120_EventScript_15189D
end
@@ -201,7 +201,7 @@ Route120_EventScript_151877:: @ 8151877
Route120_EventScript_151884:: @ 8151884
msgbox Route120_Text_17196F, 5
compare RESULT, 0
- jumpeq Route120_EventScript_151877
+ goto_if_eq Route120_EventScript_151877
goto Route120_EventScript_15189D
end
@@ -209,9 +209,9 @@ Route120_EventScript_15189D:: @ 815189D
msgbox Route120_Text_1719A0, 4
closebutton
compare FACING, 2
- callif 1, Route120_EventScript_15197F
+ call_if 1, Route120_EventScript_15197F
compare FACING, 3
- callif 1, Route120_EventScript_15198A
+ call_if 1, Route120_EventScript_15198A
move 31, Route120_Movement_1A083F
waitmove 0
pause 20
@@ -294,7 +294,7 @@ Route120_EventScript_1519CA:: @ 81519CA
trainerbattle 0, OPPONENT_ROBERT_1, 0, Route120_Text_1BF07E, Route120_Text_1BF0A5
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route120_EventScript_1519F1
+ goto_if_eq Route120_EventScript_1519F1
msgbox Route120_Text_1BF0C3, 6
end
@@ -317,7 +317,7 @@ Route120_EventScript_151A36:: @ 8151A36
trainerbattle 0, OPPONENT_BRANDON_1, 0, Route120_Text_1BF32B, Route120_Text_1BF36B
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route120_EventScript_151A5D
+ goto_if_eq Route120_EventScript_151A5D
msgbox Route120_Text_1BF38D, 6
end
diff --git a/data/scripts/maps/Route121.inc b/data/scripts/maps/Route121.inc
index e1aaec716..c87774cb8 100644
--- a/data/scripts/maps/Route121.inc
+++ b/data/scripts/maps/Route121.inc
@@ -75,7 +75,7 @@ Route121_EventScript_151B89:: @ 8151B89
trainerbattle 0, OPPONENT_WALTER_1, 0, Route121_Text_1BFA1B, Route121_Text_1BFA8C
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route121_EventScript_151BB0
+ goto_if_eq Route121_EventScript_151BB0
msgbox Route121_Text_1BFA9D, 6
end
@@ -103,7 +103,7 @@ Route121_EventScript_151C14:: @ 8151C14
trainerbattle 0, OPPONENT_JESSICA_1, 0, Route121_Text_1BFE51, Route121_Text_1BFE80
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route121_EventScript_151C3B
+ goto_if_eq Route121_EventScript_151C3B
msgbox Route121_Text_1BFEAE, 6
end
diff --git a/data/scripts/maps/Route121_SafariZoneEntrance.inc b/data/scripts/maps/Route121_SafariZoneEntrance.inc
index 6850cdeb2..3724e9aeb 100644
--- a/data/scripts/maps/Route121_SafariZoneEntrance.inc
+++ b/data/scripts/maps/Route121_SafariZoneEntrance.inc
@@ -35,7 +35,7 @@ Route121_SafariZoneEntrance_EventScript_15C35A:: @ 815C35A
faceplayer
msgbox Route121_SafariZoneEntrance_Text_1C3704, 5
compare RESULT, 1
- jumpeq Route121_SafariZoneEntrance_EventScript_15C379
+ goto_if_eq Route121_SafariZoneEntrance_EventScript_15C379
msgbox Route121_SafariZoneEntrance_Text_1C373C, 4
release
end
@@ -53,7 +53,7 @@ Route121_SafariZoneEntrance_EventScript_15C383:: @ 815C383
nop
msgbox Route121_SafariZoneEntrance_Text_1C3832, 5
compare RESULT, 1
- jumpeq Route121_SafariZoneEntrance_EventScript_15C3B3
+ goto_if_eq Route121_SafariZoneEntrance_EventScript_15C3B3
msgbox Route121_SafariZoneEntrance_Text_1C3895, 4
goto Route121_SafariZoneEntrance_EventScript_15C46C
end
@@ -61,11 +61,11 @@ Route121_SafariZoneEntrance_EventScript_15C383:: @ 815C383
Route121_SafariZoneEntrance_EventScript_15C3B3:: @ 815C3B3
checkitem ITEM_POKEBLOCK_CASE, 1
compare RESULT, 0
- jumpeq Route121_SafariZoneEntrance_EventScript_15C450
+ goto_if_eq Route121_SafariZoneEntrance_EventScript_15C450
call Route121_SafariZoneEntrance_EventScript_15C425
checkmoney 0x1f4, 0
compare RESULT, 0
- jumpeq Route121_SafariZoneEntrance_EventScript_15C45E
+ goto_if_eq Route121_SafariZoneEntrance_EventScript_15C45E
msgbox Route121_SafariZoneEntrance_Text_1C38D9, 4
paymoney 0x1f4, 0
updatemoney 0, 0
@@ -89,10 +89,10 @@ Route121_SafariZoneEntrance_EventScript_15C3B3:: @ 815C3B3
Route121_SafariZoneEntrance_EventScript_15C425:: @ 815C425
countpokemon
compare RESULT, 6
- jumpif 5, Route121_SafariZoneEntrance_EventScript_15C44F
+ goto_if 5, Route121_SafariZoneEntrance_EventScript_15C44F
specialval RESULT, CheckFreePokemonStorageSpace
compare RESULT, 1
- jumpeq Route121_SafariZoneEntrance_EventScript_15C44F
+ goto_if_eq Route121_SafariZoneEntrance_EventScript_15C44F
msgbox Route121_SafariZoneEntrance_Text_1C39A3, 4
goto Route121_SafariZoneEntrance_EventScript_15C46C
end
diff --git a/data/scripts/maps/Route123.inc b/data/scripts/maps/Route123.inc
index 891a395f0..395eaa7c3 100644
--- a/data/scripts/maps/Route123.inc
+++ b/data/scripts/maps/Route123.inc
@@ -10,15 +10,15 @@ Route123_EventScript_151C5D:: @ 8151C5D
lock
faceplayer
checkflag 232
- jumpeq Route123_EventScript_151CAC
+ goto_if_eq Route123_EventScript_151CAC
msgbox Route123_Text_171D83, 4
special IsGrassTypeInParty
compare RESULT, 0
- jumpeq Route123_EventScript_151CAA
+ goto_if_eq Route123_EventScript_151CAA
msgbox Route123_Text_171DC2, 4
giveitem ITEM_TM19
compare RESULT, 0
- jumpeq Route123_EventScript_1A029B
+ goto_if_eq Route123_EventScript_1A029B
setflag 232
msgbox Route123_Text_171E34, 4
release
@@ -64,7 +64,7 @@ Route123_EventScript_151D16:: @ 8151D16
trainerbattle 0, OPPONENT_CAMERON_1, 0, Route123_Text_1C013F, Route123_Text_1C01A3
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route123_EventScript_151D3D
+ goto_if_eq Route123_EventScript_151D3D
msgbox Route123_Text_1C01B1, 6
end
@@ -77,7 +77,7 @@ Route123_EventScript_151D54:: @ 8151D54
trainerbattle 0, OPPONENT_JACKI_1, 0, Route123_Text_1C028C, Route123_Text_1C0303
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route123_EventScript_151D7B
+ goto_if_eq Route123_EventScript_151D7B
msgbox Route123_Text_1C030F, 6
end
diff --git a/data/scripts/maps/Route123_BerryMastersHouse.inc b/data/scripts/maps/Route123_BerryMastersHouse.inc
index 18e94034d..4f7bad5f9 100644
--- a/data/scripts/maps/Route123_BerryMastersHouse.inc
+++ b/data/scripts/maps/Route123_BerryMastersHouse.inc
@@ -11,14 +11,14 @@ Route123_BerryMastersHouse_EventScript_1639E9:: @ 81639E9
faceplayer
checkdailyflags
checkflag 2253
- jumpeq Route123_BerryMastersHouse_EventScript_163A5A
+ goto_if_eq Route123_BerryMastersHouse_EventScript_163A5A
msgbox Route123_BerryMastersHouse_Text_1C5BC4, 4
random 10
addvar RESULT, 20
addvar RESULT, 133
giveitem RESULT
compare RESULT, 0
- jumpeq Route123_BerryMastersHouse_EventScript_1A029B
+ goto_if_eq Route123_BerryMastersHouse_EventScript_1A029B
setflag 2253
msgbox Route123_BerryMastersHouse_Text_1C5C66, 4
random 10
@@ -26,7 +26,7 @@ Route123_BerryMastersHouse_EventScript_1639E9:: @ 81639E9
addvar RESULT, 133
giveitem RESULT
compare RESULT, 0
- jumpeq Route123_BerryMastersHouse_EventScript_1A029B
+ goto_if_eq Route123_BerryMastersHouse_EventScript_1A029B
msgbox Route123_BerryMastersHouse_Text_1C5C83, 4
release
end
@@ -41,16 +41,16 @@ Route123_BerryMastersHouse_EventScript_163A64:: @ 8163A64
faceplayer
checkdailyflags
checkflag 2257
- jumpeq Route123_BerryMastersHouse_EventScript_163C13
+ goto_if_eq Route123_BerryMastersHouse_EventScript_163C13
msgbox Route123_BerryMastersHouse_Text_1C5D24, 4
setvar 0x8004, 13
call Route123_BerryMastersHouse_EventScript_1A00F3
lock
faceplayer
compare RESULT, 1
- jumpeq Route123_BerryMastersHouse_EventScript_163AAD
+ goto_if_eq Route123_BerryMastersHouse_EventScript_163AAD
compare RESULT, 0
- jumpeq Route123_BerryMastersHouse_EventScript_163A9B
+ goto_if_eq Route123_BerryMastersHouse_EventScript_163A9B
end
Route123_BerryMastersHouse_EventScript_163A9B:: @ 8163A9B
@@ -61,17 +61,17 @@ Route123_BerryMastersHouse_EventScript_163A9B:: @ 8163A9B
Route123_BerryMastersHouse_EventScript_163AAD:: @ 8163AAD
compare 0x8004, 0
- jumpeq Route123_BerryMastersHouse_EventScript_163AF0
+ goto_if_eq Route123_BerryMastersHouse_EventScript_163AF0
compare 0x8004, 1
- jumpeq Route123_BerryMastersHouse_EventScript_163B1E
+ goto_if_eq Route123_BerryMastersHouse_EventScript_163B1E
compare 0x8004, 2
- jumpeq Route123_BerryMastersHouse_EventScript_163B4F
+ goto_if_eq Route123_BerryMastersHouse_EventScript_163B4F
compare 0x8004, 3
- jumpeq Route123_BerryMastersHouse_EventScript_163B80
+ goto_if_eq Route123_BerryMastersHouse_EventScript_163B80
compare 0x8004, 4
- jumpeq Route123_BerryMastersHouse_EventScript_163BB1
+ goto_if_eq Route123_BerryMastersHouse_EventScript_163BB1
compare 0x8004, 5
- jumpeq Route123_BerryMastersHouse_EventScript_163BE2
+ goto_if_eq Route123_BerryMastersHouse_EventScript_163BE2
end
Route123_BerryMastersHouse_EventScript_163AF0:: @ 8163AF0
@@ -80,62 +80,62 @@ Route123_BerryMastersHouse_EventScript_163AF0:: @ 8163AF0
addvar RESULT, 133
giveitem RESULT
compare RESULT, 0
- jumpeq Route123_BerryMastersHouse_EventScript_1A029B
+ goto_if_eq Route123_BerryMastersHouse_EventScript_1A029B
goto Route123_BerryMastersHouse_EventScript_163C1D
release
end
Route123_BerryMastersHouse_EventScript_163B1E:: @ 8163B1E
checkflag 248
- jumpeq Route123_BerryMastersHouse_EventScript_163AF0
+ goto_if_eq Route123_BerryMastersHouse_EventScript_163AF0
msgbox Route123_BerryMastersHouse_Text_1C5DC1, 4
giveitem ITEM_SPELON_BERRY
compare RESULT, 0
- jumpeq Route123_BerryMastersHouse_EventScript_1A029B
+ goto_if_eq Route123_BerryMastersHouse_EventScript_1A029B
setflag 248
goto Route123_BerryMastersHouse_EventScript_163C1D
end
Route123_BerryMastersHouse_EventScript_163B4F:: @ 8163B4F
checkflag 249
- jumpeq Route123_BerryMastersHouse_EventScript_163AF0
+ goto_if_eq Route123_BerryMastersHouse_EventScript_163AF0
msgbox Route123_BerryMastersHouse_Text_1C5DC1, 4
giveitem ITEM_PAMTRE_BERRY
compare RESULT, 0
- jumpeq Route123_BerryMastersHouse_EventScript_1A029B
+ goto_if_eq Route123_BerryMastersHouse_EventScript_1A029B
setflag 249
goto Route123_BerryMastersHouse_EventScript_163C1D
end
Route123_BerryMastersHouse_EventScript_163B80:: @ 8163B80
checkflag 250
- jumpeq Route123_BerryMastersHouse_EventScript_163AF0
+ goto_if_eq Route123_BerryMastersHouse_EventScript_163AF0
msgbox Route123_BerryMastersHouse_Text_1C5DC1, 4
giveitem ITEM_WATMEL_BERRY
compare RESULT, 0
- jumpeq Route123_BerryMastersHouse_EventScript_1A029B
+ goto_if_eq Route123_BerryMastersHouse_EventScript_1A029B
setflag 250
goto Route123_BerryMastersHouse_EventScript_163C1D
end
Route123_BerryMastersHouse_EventScript_163BB1:: @ 8163BB1
checkflag 251
- jumpeq Route123_BerryMastersHouse_EventScript_163AF0
+ goto_if_eq Route123_BerryMastersHouse_EventScript_163AF0
msgbox Route123_BerryMastersHouse_Text_1C5DC1, 4
giveitem ITEM_DURIN_BERRY
compare RESULT, 0
- jumpeq Route123_BerryMastersHouse_EventScript_1A029B
+ goto_if_eq Route123_BerryMastersHouse_EventScript_1A029B
setflag 251
goto Route123_BerryMastersHouse_EventScript_163C1D
end
Route123_BerryMastersHouse_EventScript_163BE2:: @ 8163BE2
checkflag 252
- jumpeq Route123_BerryMastersHouse_EventScript_163AF0
+ goto_if_eq Route123_BerryMastersHouse_EventScript_163AF0
msgbox Route123_BerryMastersHouse_Text_1C5DC1, 4
giveitem ITEM_BELUE_BERRY
compare RESULT, 0
- jumpeq Route123_BerryMastersHouse_EventScript_1A029B
+ goto_if_eq Route123_BerryMastersHouse_EventScript_1A029B
setflag 252
goto Route123_BerryMastersHouse_EventScript_163C1D
end
diff --git a/data/scripts/maps/Route124.inc b/data/scripts/maps/Route124.inc
index 68f17b12a..a60b29b99 100644
--- a/data/scripts/maps/Route124.inc
+++ b/data/scripts/maps/Route124.inc
@@ -4,7 +4,7 @@ Route124_MapScripts:: @ 8151DDF
Route124_MapScript1_151DE5:: @ 8151DE5
checkflag 2090
- callif 1, Route124_EventScript_1A02C1
+ call_if 1, Route124_EventScript_1A02C1
end
Route124_EventScript_151DEF:: @ 8151DEF
@@ -25,7 +25,7 @@ Route124_EventScript_151E26:: @ 8151E26
trainerbattle 0, OPPONENT_JENNY_1, 0, Route124_Text_1C07B4, Route124_Text_1C07F9
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route124_EventScript_151E4D
+ goto_if_eq Route124_EventScript_151E4D
msgbox Route124_Text_1C080E, 6
end
@@ -48,7 +48,7 @@ Route124_EventScript_151E92:: @ 8151E92
trainerbattle 4, OPPONENT_RITA_AND_SAM_1, 0, Route124_Text_1C0ABD, Route124_Text_1C0B36, Route124_Text_1C0BC8
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route124_EventScript_151EBD
+ goto_if_eq Route124_EventScript_151EBD
msgbox Route124_Text_1C0B72, 6
end
@@ -61,7 +61,7 @@ Route124_EventScript_151ED8:: @ 8151ED8
trainerbattle 4, OPPONENT_RITA_AND_SAM_1, 0, Route124_Text_1C0C0E, Route124_Text_1C0C4F, Route124_Text_1C0CE0
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route124_EventScript_151F03
+ goto_if_eq Route124_EventScript_151F03
msgbox Route124_Text_1C0C7F, 6
end
diff --git a/data/scripts/maps/Route124_DivingTreasureHuntersHouse.inc b/data/scripts/maps/Route124_DivingTreasureHuntersHouse.inc
index 2d0d624c0..b3e91e43c 100644
--- a/data/scripts/maps/Route124_DivingTreasureHuntersHouse.inc
+++ b/data/scripts/maps/Route124_DivingTreasureHuntersHouse.inc
@@ -10,7 +10,7 @@ Route124_DivingTreasureHuntersHouse_EventScript_163E04:: @ 8163E04
lock
faceplayer
checkflag 217
- jumpeq Route124_DivingTreasureHuntersHouse_EventScript_163E20
+ goto_if_eq Route124_DivingTreasureHuntersHouse_EventScript_163E20
msgbox Route124_DivingTreasureHuntersHouse_Text_19F416, 4
setflag 217
goto Route124_DivingTreasureHuntersHouse_EventScript_163E2E
@@ -24,7 +24,7 @@ Route124_DivingTreasureHuntersHouse_EventScript_163E20:: @ 8163E20
Route124_DivingTreasureHuntersHouse_EventScript_163E2E:: @ 8163E2E
call Route124_DivingTreasureHuntersHouse_EventScript_163E44
compare 0x4001, 0
- jumpeq Route124_DivingTreasureHuntersHouse_EventScript_164329
+ goto_if_eq Route124_DivingTreasureHuntersHouse_EventScript_164329
goto Route124_DivingTreasureHuntersHouse_EventScript_163EA2
end
@@ -32,16 +32,16 @@ Route124_DivingTreasureHuntersHouse_EventScript_163E44:: @ 8163E44
setvar 0x4001, 0
checkitem ITEM_RED_SHARD, 1
compare RESULT, 1
- callif 1, Route124_DivingTreasureHuntersHouse_EventScript_163E8A
+ call_if 1, Route124_DivingTreasureHuntersHouse_EventScript_163E8A
checkitem ITEM_YELLOW_SHARD, 1
compare RESULT, 1
- callif 1, Route124_DivingTreasureHuntersHouse_EventScript_163E90
+ call_if 1, Route124_DivingTreasureHuntersHouse_EventScript_163E90
checkitem ITEM_BLUE_SHARD, 1
compare RESULT, 1
- callif 1, Route124_DivingTreasureHuntersHouse_EventScript_163E96
+ call_if 1, Route124_DivingTreasureHuntersHouse_EventScript_163E96
checkitem ITEM_GREEN_SHARD, 1
compare RESULT, 1
- callif 1, Route124_DivingTreasureHuntersHouse_EventScript_163E9C
+ call_if 1, Route124_DivingTreasureHuntersHouse_EventScript_163E9C
return
Route124_DivingTreasureHuntersHouse_EventScript_163E8A:: @ 8163E8A
@@ -248,13 +248,13 @@ Route124_DivingTreasureHuntersHouse_EventScript_164292:: @ 8164292
bufferitem 1, 0x8009
msgbox Route124_DivingTreasureHuntersHouse_Text_19F5E0, 5
compare RESULT, 0
- jumpeq Route124_DivingTreasureHuntersHouse_EventScript_16431F
+ goto_if_eq Route124_DivingTreasureHuntersHouse_EventScript_16431F
checkitemspace 0x8009, 1
compare RESULT, 1
- jumpeq Route124_DivingTreasureHuntersHouse_EventScript_1642D3
+ goto_if_eq Route124_DivingTreasureHuntersHouse_EventScript_1642D3
checkitem 0x8008, 2
compare RESULT, 0
- jumpeq Route124_DivingTreasureHuntersHouse_EventScript_1642D3
+ goto_if_eq Route124_DivingTreasureHuntersHouse_EventScript_1642D3
goto Route124_DivingTreasureHuntersHouse_EventScript_164315
end
@@ -264,10 +264,10 @@ Route124_DivingTreasureHuntersHouse_EventScript_1642D3:: @ 81642D3
msgbox Route124_DivingTreasureHuntersHouse_Text_19F606, 4
call Route124_DivingTreasureHuntersHouse_EventScript_163E44
compare 0x4001, 0
- jumpeq Route124_DivingTreasureHuntersHouse_EventScript_164333
+ goto_if_eq Route124_DivingTreasureHuntersHouse_EventScript_164333
msgbox Route124_DivingTreasureHuntersHouse_Text_19F629, 5
compare RESULT, 1
- jumpeq Route124_DivingTreasureHuntersHouse_EventScript_163EB0
+ goto_if_eq Route124_DivingTreasureHuntersHouse_EventScript_163EB0
goto Route124_DivingTreasureHuntersHouse_EventScript_16431F
end
diff --git a/data/scripts/maps/Route125.inc b/data/scripts/maps/Route125.inc
index a5d2457d5..045a55a11 100644
--- a/data/scripts/maps/Route125.inc
+++ b/data/scripts/maps/Route125.inc
@@ -4,7 +4,7 @@ Route125_MapScripts:: @ 8151F1E
Route125_MapScript1_151F24:: @ 8151F24
checkflag 2090
- callif 1, Route125_EventScript_1A02C1
+ call_if 1, Route125_EventScript_1A02C1
end
Route125_EventScript_151F2E:: @ 8151F2E
@@ -31,7 +31,7 @@ Route125_EventScript_151F8A:: @ 8151F8A
trainerbattle 0, OPPONENT_ERNEST_1, 0, Route125_Text_1C11AF, Route125_Text_1C11ED
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route125_EventScript_151FB1
+ goto_if_eq Route125_EventScript_151FB1
msgbox Route125_Text_1C1208, 6
end
diff --git a/data/scripts/maps/Route126.inc b/data/scripts/maps/Route126.inc
index f3d1a77f9..729922681 100644
--- a/data/scripts/maps/Route126.inc
+++ b/data/scripts/maps/Route126.inc
@@ -4,7 +4,7 @@ Route126_MapScripts:: @ 8151FFE
Route126_MapScript1_152004:: @ 8152004
checkflag 2090
- callif 1, Route126_EventScript_1A02C1
+ call_if 1, Route126_EventScript_1A02C1
end
Route126_EventScript_15200E:: @ 815200E
diff --git a/data/scripts/maps/Route127.inc b/data/scripts/maps/Route127.inc
index b4461b253..284d1fbd4 100644
--- a/data/scripts/maps/Route127.inc
+++ b/data/scripts/maps/Route127.inc
@@ -4,7 +4,7 @@ Route127_MapScripts:: @ 815206A
Route127_MapScript1_152070:: @ 8152070
checkflag 2090
- callif 1, Route127_EventScript_1A02C1
+ call_if 1, Route127_EventScript_1A02C1
end
Route127_EventScript_15207A:: @ 815207A
diff --git a/data/scripts/maps/Route128.inc b/data/scripts/maps/Route128.inc
index 011591400..7db99f7b3 100644
--- a/data/scripts/maps/Route128.inc
+++ b/data/scripts/maps/Route128.inc
@@ -5,7 +5,7 @@ Route128_MapScripts:: @ 815211B
Route128_MapScript1_152126:: @ 8152126
checkflag 2090
- callif 1, Route128_EventScript_1A02C1
+ call_if 1, Route128_EventScript_1A02C1
call Route128_EventScript_1A0196
end
@@ -184,7 +184,7 @@ Route128_EventScript_1522A4:: @ 81522A4
trainerbattle 0, OPPONENT_ISAIAH_1, 0, Route128_Text_1C1C67, Route128_Text_1C1C95
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route128_EventScript_1522CB
+ goto_if_eq Route128_EventScript_1522CB
msgbox Route128_Text_1C1CC3, 6
end
@@ -197,7 +197,7 @@ Route128_EventScript_1522E2:: @ 81522E2
trainerbattle 0, OPPONENT_KATELYN_1, 0, Route128_Text_1C1DB0, Route128_Text_1C1E25
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq Route128_EventScript_152309
+ goto_if_eq Route128_EventScript_152309
msgbox Route128_Text_1C1E4A, 6
end
diff --git a/data/scripts/maps/Route130.inc b/data/scripts/maps/Route130.inc
index bac6728a7..2c93c1bd6 100644
--- a/data/scripts/maps/Route130.inc
+++ b/data/scripts/maps/Route130.inc
@@ -5,7 +5,7 @@ Route130_MapScripts:: @ 81523C2
Route130_MapScript1_1523C8:: @ 81523C8
specialval RESULT, IsMirageIslandPresent
compare RESULT, 1
- jumpeq Route130_EventScript_15240C
+ goto_if_eq Route130_EventScript_15240C
setflag 17
setflag 18
setflag 19
diff --git a/data/scripts/maps/Route131.inc b/data/scripts/maps/Route131.inc
index 81cb7dc02..124788a17 100644
--- a/data/scripts/maps/Route131.inc
+++ b/data/scripts/maps/Route131.inc
@@ -4,7 +4,7 @@ Route131_MapScripts:: @ 815243E
Route131_MapScript1_152444:: @ 8152444
checkflag 2052
- callif 1, Route131_EventScript_15244E
+ call_if 1, Route131_EventScript_15244E
end
Route131_EventScript_15244E:: @ 815244E
diff --git a/data/scripts/maps/RustboroCity.inc b/data/scripts/maps/RustboroCity.inc
index 77f0a5f6f..13a4ce265 100644
--- a/data/scripts/maps/RustboroCity.inc
+++ b/data/scripts/maps/RustboroCity.inc
@@ -12,7 +12,7 @@ RustboroCity_EventScript_14C386:: @ 814C386
lock
faceplayer
checkflag 142
- jumpeq RustboroCity_EventScript_14C39B
+ goto_if_eq RustboroCity_EventScript_14C39B
msgbox RustboroCity_Text_16689D, 4
release
end
@@ -37,7 +37,7 @@ RustboroCity_EventScript_14C3BA:: @ 814C3BA
lock
faceplayer
checkflag 2055
- jumpeq RustboroCity_EventScript_14C3CF
+ goto_if_eq RustboroCity_EventScript_14C3CF
msgbox RustboroCity_Text_16696D, 4
release
end
@@ -51,7 +51,7 @@ RustboroCity_EventScript_14C3D9:: @ 814C3D9
lock
faceplayer
checkflag 188
- jumpeq RustboroCity_EventScript_14C3EE
+ goto_if_eq RustboroCity_EventScript_14C3EE
msgbox RustboroCity_Text_166B86, 4
release
end
@@ -327,7 +327,7 @@ RustboroCity_EventScript_14C5FF:: @ 814C5FF
lock
faceplayer
checkflag 143
- jumpeq RustboroCity_EventScript_14C614
+ goto_if_eq RustboroCity_EventScript_14C614
msgbox RustboroCity_Text_166F6B, 4
release
end
@@ -364,13 +364,13 @@ RustboroCity_EventScript_14C644:: @ 814C644
RustboroCity_EventScript_14C650:: @ 814C650
compare 0x4001, 0
- callif 1, RustboroCity_EventScript_14C691
+ call_if 1, RustboroCity_EventScript_14C691
compare 0x4001, 1
- callif 1, RustboroCity_EventScript_14C6BD
+ call_if 1, RustboroCity_EventScript_14C6BD
compare 0x4001, 2
- callif 1, RustboroCity_EventScript_14C6E9
+ call_if 1, RustboroCity_EventScript_14C6E9
compare 0x4001, 3
- callif 1, RustboroCity_EventScript_14C715
+ call_if 1, RustboroCity_EventScript_14C715
setflag 159
setvar 0x405a, 3
moveoffscreen 9
@@ -458,19 +458,19 @@ RustboroCity_EventScript_14C771:: @ 814C771
RustboroCity_EventScript_14C77D:: @ 814C77D
compare 0x4001, 0
- callif 1, RustboroCity_EventScript_14C7FE
+ call_if 1, RustboroCity_EventScript_14C7FE
compare 0x4001, 1
- callif 1, RustboroCity_EventScript_14C82A
+ call_if 1, RustboroCity_EventScript_14C82A
compare 0x4001, 2
- callif 1, RustboroCity_EventScript_14C856
+ call_if 1, RustboroCity_EventScript_14C856
compare 0x4001, 3
- callif 1, RustboroCity_EventScript_14C882
+ call_if 1, RustboroCity_EventScript_14C882
compare 0x4001, 4
- callif 1, RustboroCity_EventScript_14C8B8
+ call_if 1, RustboroCity_EventScript_14C8B8
msgbox RustboroCity_Text_166FB4, 4
giveitem ITEM_GREAT_BALL
compare RESULT, 0
- callif 1, RustboroCity_EventScript_14C7F5
+ call_if 1, RustboroCity_EventScript_14C7F5
msgbox RustboroCity_Text_16707F, 4
closebutton
setflag 144
@@ -550,12 +550,12 @@ RustboroCity_EventScript_14C8DA:: @ 814C8DA
lock
faceplayer
checkflag 288
- jumpeq RustboroCity_EventScript_14C917
+ goto_if_eq RustboroCity_EventScript_14C917
checkgender
compare RESULT, 0
- jumpeq RustboroCity_EventScript_14C8FD
+ goto_if_eq RustboroCity_EventScript_14C8FD
compare RESULT, 1
- jumpeq RustboroCity_EventScript_14C90A
+ goto_if_eq RustboroCity_EventScript_14C90A
end
RustboroCity_EventScript_14C8FD:: @ 814C8FD
@@ -573,9 +573,9 @@ RustboroCity_EventScript_14C90A:: @ 814C90A
RustboroCity_EventScript_14C917:: @ 814C917
checkgender
compare RESULT, 0
- jumpeq RustboroCity_EventScript_14C92F
+ goto_if_eq RustboroCity_EventScript_14C92F
compare RESULT, 1
- jumpeq RustboroCity_EventScript_14C939
+ goto_if_eq RustboroCity_EventScript_14C939
end
RustboroCity_EventScript_14C92F:: @ 814C92F
diff --git a/data/scripts/maps/RustboroCity_CuttersHouse.inc b/data/scripts/maps/RustboroCity_CuttersHouse.inc
index d400de1ef..3e98746f3 100644
--- a/data/scripts/maps/RustboroCity_CuttersHouse.inc
+++ b/data/scripts/maps/RustboroCity_CuttersHouse.inc
@@ -5,7 +5,7 @@ RustboroCity_CuttersHouse_EventScript_157D27:: @ 8157D27
lock
faceplayer
checkflag 137
- jumpeq RustboroCity_CuttersHouse_EventScript_157D53
+ goto_if_eq RustboroCity_CuttersHouse_EventScript_157D53
msgbox RustboroCity_CuttersHouse_Text_18509C, 4
giveitem ITEM_HM01
setflag 137
diff --git a/data/scripts/maps/RustboroCity_DevonCorp_1F.inc b/data/scripts/maps/RustboroCity_DevonCorp_1F.inc
index 97a59257f..f5fb02c93 100644
--- a/data/scripts/maps/RustboroCity_DevonCorp_1F.inc
+++ b/data/scripts/maps/RustboroCity_DevonCorp_1F.inc
@@ -4,7 +4,7 @@ RustboroCity_DevonCorp_1F_MapScripts:: @ 8157406
RustboroCity_DevonCorp_1F_MapScript1_15740C:: @ 815740C
checkflag 144
- callif 0, RustboroCity_DevonCorp_1F_EventScript_157416
+ call_if 0, RustboroCity_DevonCorp_1F_EventScript_157416
end
RustboroCity_DevonCorp_1F_EventScript_157416:: @ 8157416
@@ -16,9 +16,9 @@ RustboroCity_DevonCorp_1F_EventScript_157422:: @ 8157422
lock
faceplayer
checkflag 144
- jumpeq RustboroCity_DevonCorp_1F_EventScript_15744A
+ goto_if_eq RustboroCity_DevonCorp_1F_EventScript_15744A
checkflag 142
- jumpeq RustboroCity_DevonCorp_1F_EventScript_157440
+ goto_if_eq RustboroCity_DevonCorp_1F_EventScript_157440
msgbox RustboroCity_DevonCorp_1F_Text_1829A4, 4
release
end
@@ -37,11 +37,11 @@ RustboroCity_DevonCorp_1F_EventScript_157454:: @ 8157454
lock
faceplayer
checkflag 144
- jumpeq RustboroCity_DevonCorp_1F_EventScript_15747B
+ goto_if_eq RustboroCity_DevonCorp_1F_EventScript_15747B
checkflag 143
- jumpeq RustboroCity_DevonCorp_1F_EventScript_157485
+ goto_if_eq RustboroCity_DevonCorp_1F_EventScript_157485
checkflag 142
- jumpeq RustboroCity_DevonCorp_1F_EventScript_157485
+ goto_if_eq RustboroCity_DevonCorp_1F_EventScript_157485
msgbox RustboroCity_DevonCorp_1F_Text_182AF0, 4
release
end
@@ -60,11 +60,11 @@ RustboroCity_DevonCorp_1F_EventScript_15748F:: @ 815748F
lock
faceplayer
checkflag 144
- jumpeq RustboroCity_DevonCorp_1F_EventScript_1574B6
+ goto_if_eq RustboroCity_DevonCorp_1F_EventScript_1574B6
checkflag 143
- jumpeq RustboroCity_DevonCorp_1F_EventScript_1574C0
+ goto_if_eq RustboroCity_DevonCorp_1F_EventScript_1574C0
checkflag 142
- jumpeq RustboroCity_DevonCorp_1F_EventScript_1574C0
+ goto_if_eq RustboroCity_DevonCorp_1F_EventScript_1574C0
msgbox RustboroCity_DevonCorp_1F_Text_1828EE, 4
release
end
diff --git a/data/scripts/maps/RustboroCity_DevonCorp_2F.inc b/data/scripts/maps/RustboroCity_DevonCorp_2F.inc
index e35015b3e..0c604c513 100644
--- a/data/scripts/maps/RustboroCity_DevonCorp_2F.inc
+++ b/data/scripts/maps/RustboroCity_DevonCorp_2F.inc
@@ -4,7 +4,7 @@ RustboroCity_DevonCorp_2F_MapScripts:: @ 81574CA
RustboroCity_DevonCorp_2F_MapScript1_1574D0:: @ 81574D0
compare 0x40c4, 1
- callif 1, RustboroCity_DevonCorp_2F_EventScript_1574DC
+ call_if 1, RustboroCity_DevonCorp_2F_EventScript_1574DC
end
RustboroCity_DevonCorp_2F_EventScript_1574DC:: @ 81574DC
@@ -15,7 +15,7 @@ RustboroCity_DevonCorp_2F_EventScript_1574E2:: @ 81574E2
lock
faceplayer
compare 0x40c4, 1
- callif 1, RustboroCity_DevonCorp_2F_EventScript_1574DC
+ call_if 1, RustboroCity_DevonCorp_2F_EventScript_1574DC
msgbox RustboroCity_DevonCorp_2F_Text_182B81, 4
release
end
@@ -24,9 +24,9 @@ RustboroCity_DevonCorp_2F_EventScript_1574F9:: @ 81574F9
lock
faceplayer
compare 0x40c4, 1
- callif 1, RustboroCity_DevonCorp_2F_EventScript_1574DC
+ call_if 1, RustboroCity_DevonCorp_2F_EventScript_1574DC
checkflag 287
- jumpeq RustboroCity_DevonCorp_2F_EventScript_157519
+ goto_if_eq RustboroCity_DevonCorp_2F_EventScript_157519
msgbox RustboroCity_DevonCorp_2F_Text_182BD8, 4
release
end
@@ -40,9 +40,9 @@ RustboroCity_DevonCorp_2F_EventScript_157523:: @ 8157523
lock
faceplayer
compare 0x40c4, 1
- callif 1, RustboroCity_DevonCorp_2F_EventScript_1574DC
+ call_if 1, RustboroCity_DevonCorp_2F_EventScript_1574DC
checkflag 188
- jumpeq RustboroCity_DevonCorp_2F_EventScript_157543
+ goto_if_eq RustboroCity_DevonCorp_2F_EventScript_157543
msgbox RustboroCity_DevonCorp_2F_Text_182D2A, 4
release
end
@@ -56,7 +56,7 @@ RustboroCity_DevonCorp_2F_EventScript_15754D:: @ 815754D
lock
faceplayer
compare 0x40c4, 1
- callif 1, RustboroCity_DevonCorp_2F_EventScript_1574DC
+ call_if 1, RustboroCity_DevonCorp_2F_EventScript_1574DC
msgbox RustboroCity_DevonCorp_2F_Text_182E6B, 4
release
end
@@ -65,16 +65,16 @@ RustboroCity_DevonCorp_2F_EventScript_157564:: @ 8157564
lock
faceplayer
compare 0x40c4, 2
- jumpeq RustboroCity_DevonCorp_2F_EventScript_15764A
+ goto_if_eq RustboroCity_DevonCorp_2F_EventScript_15764A
compare 0x40c4, 1
- jumpeq RustboroCity_DevonCorp_2F_EventScript_157640
+ goto_if_eq RustboroCity_DevonCorp_2F_EventScript_157640
msgbox RustboroCity_DevonCorp_2F_Text_182ED5, 4
checkitem ITEM_ROOT_FOSSIL, 1
compare RESULT, 1
- jumpeq RustboroCity_DevonCorp_2F_EventScript_1575A6
+ goto_if_eq RustboroCity_DevonCorp_2F_EventScript_1575A6
checkitem ITEM_CLAW_FOSSIL, 1
compare RESULT, 1
- jumpeq RustboroCity_DevonCorp_2F_EventScript_1575EE
+ goto_if_eq RustboroCity_DevonCorp_2F_EventScript_1575EE
release
end
@@ -87,7 +87,7 @@ RustboroCity_DevonCorp_2F_EventScript_1575A6:: @ 81575A6
waitmove 0
msgbox RustboroCity_DevonCorp_2F_Text_182F35, 5
compare RESULT, 0
- jumpeq RustboroCity_DevonCorp_2F_EventScript_157636
+ goto_if_eq RustboroCity_DevonCorp_2F_EventScript_157636
bufferitem 0, ITEM_ROOT_FOSSIL
msgbox RustboroCity_DevonCorp_2F_Text_183023, 4
removeitem ITEM_ROOT_FOSSIL, 1
@@ -105,7 +105,7 @@ RustboroCity_DevonCorp_2F_EventScript_1575EE:: @ 81575EE
waitmove 0
msgbox RustboroCity_DevonCorp_2F_Text_182F35, 5
compare RESULT, 0
- jumpeq RustboroCity_DevonCorp_2F_EventScript_157636
+ goto_if_eq RustboroCity_DevonCorp_2F_EventScript_157636
bufferitem 0, ITEM_CLAW_FOSSIL
msgbox RustboroCity_DevonCorp_2F_Text_183023, 4
removeitem ITEM_CLAW_FOSSIL, 1
@@ -126,9 +126,9 @@ RustboroCity_DevonCorp_2F_EventScript_157640:: @ 8157640
RustboroCity_DevonCorp_2F_EventScript_15764A:: @ 815764A
compare 0x40c5, 1
- jumpeq RustboroCity_DevonCorp_2F_EventScript_157661
+ goto_if_eq RustboroCity_DevonCorp_2F_EventScript_157661
compare 0x40c5, 2
- jumpeq RustboroCity_DevonCorp_2F_EventScript_1576B4
+ goto_if_eq RustboroCity_DevonCorp_2F_EventScript_1576B4
end
RustboroCity_DevonCorp_2F_EventScript_157661:: @ 8157661
@@ -136,7 +136,7 @@ RustboroCity_DevonCorp_2F_EventScript_157661:: @ 8157661
msgbox RustboroCity_DevonCorp_2F_Text_183124, 4
countpokemon
compare RESULT, 6
- jumpeq RustboroCity_DevonCorp_2F_EventScript_157707
+ goto_if_eq RustboroCity_DevonCorp_2F_EventScript_157707
copyvar 0x8004, RESULT
setvar 0x40c4, 0
setflag 267
@@ -147,7 +147,7 @@ RustboroCity_DevonCorp_2F_EventScript_157661:: @ 8157661
givepokemon SPECIES_LILEEP, 20, ITEM_NONE, 0x0, 0x0, 0
msgbox RustboroCity_DevonCorp_2F_Text_1A1102, 5
compare RESULT, 1
- callif 1, RustboroCity_DevonCorp_2F_EventScript_1A0678
+ call_if 1, RustboroCity_DevonCorp_2F_EventScript_1A0678
release
end
@@ -156,7 +156,7 @@ RustboroCity_DevonCorp_2F_EventScript_1576B4:: @ 81576B4
msgbox RustboroCity_DevonCorp_2F_Text_183124, 4
countpokemon
compare RESULT, 6
- jumpeq RustboroCity_DevonCorp_2F_EventScript_157707
+ goto_if_eq RustboroCity_DevonCorp_2F_EventScript_157707
copyvar 0x8004, RESULT
setvar 0x40c4, 0
setflag 267
@@ -167,7 +167,7 @@ RustboroCity_DevonCorp_2F_EventScript_1576B4:: @ 81576B4
givepokemon SPECIES_ANORITH, 20, ITEM_NONE, 0x0, 0x0, 0
msgbox RustboroCity_DevonCorp_2F_Text_1A1102, 5
compare RESULT, 1
- callif 1, RustboroCity_DevonCorp_2F_EventScript_1A0678
+ call_if 1, RustboroCity_DevonCorp_2F_EventScript_1A0678
release
end
diff --git a/data/scripts/maps/RustboroCity_DevonCorp_3F.inc b/data/scripts/maps/RustboroCity_DevonCorp_3F.inc
index 2b749c873..fe39af9c4 100644
--- a/data/scripts/maps/RustboroCity_DevonCorp_3F.inc
+++ b/data/scripts/maps/RustboroCity_DevonCorp_3F.inc
@@ -6,7 +6,7 @@ RustboroCity_DevonCorp_3F_MapScripts:: @ 8157711
RustboroCity_DevonCorp_3F_MapScript1_157721:: @ 8157721
compare 0x408f, 0
- callif 1, RustboroCity_DevonCorp_3F_EventScript_15772D
+ call_if 1, RustboroCity_DevonCorp_3F_EventScript_15772D
end
RustboroCity_DevonCorp_3F_EventScript_15772D:: @ 815772D
@@ -147,9 +147,9 @@ RustboroCity_DevonCorp_3F_EventScript_15783B:: @ 815783B
lock
faceplayer
checkflag 272
- jumpeq RustboroCity_DevonCorp_3F_EventScript_15789B
+ goto_if_eq RustboroCity_DevonCorp_3F_EventScript_15789B
checkflag 189
- jumpeq RustboroCity_DevonCorp_3F_EventScript_157864
+ goto_if_eq RustboroCity_DevonCorp_3F_EventScript_157864
msgbox RustboroCity_DevonCorp_3F_Text_18351E, 4
closebutton
move LAST_TALKED, RustboroCity_DevonCorp_3F_Movement_1A083D
@@ -161,7 +161,7 @@ RustboroCity_DevonCorp_3F_EventScript_157864:: @ 8157864
msgbox RustboroCity_DevonCorp_3F_Text_18353E, 4
giveitem ITEM_EXP_SHARE
compare RESULT, 0
- jumpeq RustboroCity_DevonCorp_3F_EventScript_1A029B
+ goto_if_eq RustboroCity_DevonCorp_3F_EventScript_1A029B
setflag 272
msgbox RustboroCity_DevonCorp_3F_Text_1835B3, 4
closebutton
@@ -182,7 +182,7 @@ RustboroCity_DevonCorp_3F_EventScript_1578B0:: @ 81578B0
lock
faceplayer
checkflag 256
- jumpeq RustboroCity_DevonCorp_3F_EventScript_1578C5
+ goto_if_eq RustboroCity_DevonCorp_3F_EventScript_1578C5
msgbox RustboroCity_DevonCorp_3F_Text_18395C, 4
release
end
diff --git a/data/scripts/maps/RustboroCity_Flat2_2F.inc b/data/scripts/maps/RustboroCity_Flat2_2F.inc
index d6e0c92b3..0dfec5cfa 100644
--- a/data/scripts/maps/RustboroCity_Flat2_2F.inc
+++ b/data/scripts/maps/RustboroCity_Flat2_2F.inc
@@ -9,11 +9,11 @@ RustboroCity_Flat2_2F_EventScript_157DA0:: @ 8157DA0
lock
faceplayer
checkflag 213
- jumpeq RustboroCity_Flat2_2F_EventScript_157DCF
+ goto_if_eq RustboroCity_Flat2_2F_EventScript_157DCF
msgbox RustboroCity_Flat2_2F_Text_185461, 4
giveitem ITEM_PREMIER_BALL
compare RESULT, 0
- jumpeq RustboroCity_Flat2_2F_EventScript_1A029B
+ goto_if_eq RustboroCity_Flat2_2F_EventScript_1A029B
setflag 213
release
end
diff --git a/data/scripts/maps/RustboroCity_Gym.inc b/data/scripts/maps/RustboroCity_Gym.inc
index 776cb5c0a..6bb33b4dc 100644
--- a/data/scripts/maps/RustboroCity_Gym.inc
+++ b/data/scripts/maps/RustboroCity_Gym.inc
@@ -4,7 +4,7 @@ RustboroCity_Gym_MapScripts:: @ 81578D8
RustboroCity_Gym_EventScript_1578D9:: @ 81578D9
trainerbattle 1, OPPONENT_ROXANNE, 0, RustboroCity_Gym_Text_183EE5, RustboroCity_Gym_Text_183FC4, RustboroCity_Gym_EventScript_1578FE
checkflag 165
- jumpif 0, RustboroCity_Gym_EventScript_15793C
+ goto_if 0, RustboroCity_Gym_EventScript_15793C
msgbox RustboroCity_Gym_Text_184252, 4
release
end
@@ -21,14 +21,14 @@ RustboroCity_Gym_EventScript_1578FE:: @ 81578FE
setvar 0x8008, 1
call RustboroCity_Gym_EventScript_1A01C0
compare 0x4085, 6
- callif 1, RustboroCity_Gym_EventScript_1A00FB
+ call_if 1, RustboroCity_Gym_EventScript_1A00FB
goto RustboroCity_Gym_EventScript_15793C
end
RustboroCity_Gym_EventScript_15793C:: @ 815793C
giveitem ITEM_TM39
compare RESULT, 0
- jumpeq RustboroCity_Gym_EventScript_1A029B
+ goto_if_eq RustboroCity_Gym_EventScript_1A029B
setflag 165
msgbox RustboroCity_Gym_Text_184170, 4
release
@@ -48,7 +48,7 @@ RustboroCity_Gym_EventScript_15798E:: @ 815798E
lock
faceplayer
checkflag 1201
- jumpeq RustboroCity_Gym_EventScript_1579A3
+ goto_if_eq RustboroCity_Gym_EventScript_1579A3
msgbox RustboroCity_Gym_Text_183A4B, 4
release
end
@@ -61,14 +61,14 @@ RustboroCity_Gym_EventScript_1579A3:: @ 81579A3
RustboroCity_Gym_EventScript_1579AD:: @ 81579AD
lockall
checkflag 2055
- jumpeq RustboroCity_Gym_EventScript_1579CD
+ goto_if_eq RustboroCity_Gym_EventScript_1579CD
goto RustboroCity_Gym_EventScript_1579D7
end
RustboroCity_Gym_EventScript_1579BD:: @ 81579BD
lockall
checkflag 2055
- jumpeq RustboroCity_Gym_EventScript_1579CD
+ goto_if_eq RustboroCity_Gym_EventScript_1579CD
goto RustboroCity_Gym_EventScript_1579D7
end
diff --git a/data/scripts/maps/RustboroCity_House1.inc b/data/scripts/maps/RustboroCity_House1.inc
index 402fff1d3..e45bf2080 100644
--- a/data/scripts/maps/RustboroCity_House1.inc
+++ b/data/scripts/maps/RustboroCity_House1.inc
@@ -5,24 +5,24 @@ RustboroCity_House1_EventScript_157C7D:: @ 8157C7D
lock
faceplayer
checkflag 153
- jumpeq RustboroCity_House1_EventScript_157D13
+ goto_if_eq RustboroCity_House1_EventScript_157D13
setvar 0x8008, 0
copyvar 0x8004, 0x8008
specialval RESULT, sub_804D89C
copyvar 0x8009, RESULT
msgbox RustboroCity_House1_Text_184EBA, 5
compare RESULT, 0
- jumpeq RustboroCity_House1_EventScript_157CFB
+ goto_if_eq RustboroCity_House1_EventScript_157CFB
special sub_80F9A0C
waitstate
copyvar 0x800a, 0x8004
compare 0x8004, 255
- jumpeq RustboroCity_House1_EventScript_157CFB
+ goto_if_eq RustboroCity_House1_EventScript_157CFB
copyvar 0x8005, 0x800a
specialval RESULT, sub_804DB2C
copyvar 0x800b, RESULT
comparevars RESULT, 0x8009
- jumpif 5, RustboroCity_House1_EventScript_157D05
+ goto_if 5, RustboroCity_House1_EventScript_157D05
copyvar 0x8004, 0x8008
copyvar 0x8005, 0x800a
special sub_804DB68
diff --git a/data/scripts/maps/RustboroCity_Mart.inc b/data/scripts/maps/RustboroCity_Mart.inc
index 6b4ff3a77..7ee528ade 100644
--- a/data/scripts/maps/RustboroCity_Mart.inc
+++ b/data/scripts/maps/RustboroCity_Mart.inc
@@ -7,9 +7,9 @@ RustboroCity_Mart_EventScript_157BD4:: @ 8157BD4
message RustboroCity_Mart_Text_1A0BE4
waittext
checkflag 287
- jumpif 0, RustboroCity_Mart_EventScript_157BEF
+ goto_if 0, RustboroCity_Mart_EventScript_157BEF
checkflag 287
- jumpeq RustboroCity_Mart_EventScript_157C18
+ goto_if_eq RustboroCity_Mart_EventScript_157C18
end
RustboroCity_Mart_EventScript_157BEF:: @ 8157BEF
diff --git a/data/scripts/maps/RustboroCity_PokemonSchool.inc b/data/scripts/maps/RustboroCity_PokemonSchool.inc
index 168c0aaa2..e5a9622fb 100644
--- a/data/scripts/maps/RustboroCity_PokemonSchool.inc
+++ b/data/scripts/maps/RustboroCity_PokemonSchool.inc
@@ -78,15 +78,15 @@ RustboroCity_PokemonSchool_EventScript_157ACE:: @ 8157ACE
lock
faceplayer
checkflag 275
- jumpeq RustboroCity_PokemonSchool_EventScript_157B34
+ goto_if_eq RustboroCity_PokemonSchool_EventScript_157B34
compare FACING, 4
- callif 1, RustboroCity_PokemonSchool_EventScript_157B1E
+ call_if 1, RustboroCity_PokemonSchool_EventScript_157B1E
compare FACING, 3
- callif 1, RustboroCity_PokemonSchool_EventScript_157B29
+ call_if 1, RustboroCity_PokemonSchool_EventScript_157B29
msgbox RustboroCity_PokemonSchool_Text_1846A2, 4
giveitem ITEM_QUICK_CLAW
compare RESULT, 0
- jumpeq RustboroCity_PokemonSchool_EventScript_1A029B
+ goto_if_eq RustboroCity_PokemonSchool_EventScript_1A029B
closebutton
move LAST_TALKED, RustboroCity_PokemonSchool_Movement_1A0845
waitmove 0
diff --git a/data/scripts/maps/RusturfTunnel.inc b/data/scripts/maps/RusturfTunnel.inc
index 129bef7c9..bcc612511 100644
--- a/data/scripts/maps/RusturfTunnel.inc
+++ b/data/scripts/maps/RusturfTunnel.inc
@@ -11,7 +11,7 @@ RusturfTunnel_MapScript2_15C750:: @ 815C750
RusturfTunnel_MapScript1_15C762:: @ 815C762
call RusturfTunnel_EventScript_1A0196
compare 0x409a, 2
- callif 1, RusturfTunnel_EventScript_15C773
+ call_if 1, RusturfTunnel_EventScript_15C773
end
RusturfTunnel_EventScript_15C773:: @ 815C773
@@ -33,7 +33,7 @@ RusturfTunnel_EventScript_15C799:: @ 815C799
lock
faceplayer
checkflag 1
- jumpeq RusturfTunnel_EventScript_15C7BC
+ goto_if_eq RusturfTunnel_EventScript_15C7BC
setflag 1
msgbox RusturfTunnel_Text_1944C5, 4
closebutton
@@ -53,35 +53,35 @@ RusturfTunnel_EventScript_15C7BC:: @ 815C7BC
RusturfTunnel_EventScript_15C7D1:: @ 815C7D1
lockall
compare 0x4001, 1
- callif 1, RusturfTunnel_EventScript_15C8CA
+ call_if 1, RusturfTunnel_EventScript_15C8CA
compare 0x4001, 2
- callif 1, RusturfTunnel_EventScript_15C8DF
+ call_if 1, RusturfTunnel_EventScript_15C8DF
compare 0x4001, 3
- callif 1, RusturfTunnel_EventScript_15C8EA
+ call_if 1, RusturfTunnel_EventScript_15C8EA
call RusturfTunnel_EventScript_15C92D
msgbox RusturfTunnel_Text_19461D, 4
compare 0x4001, 2
- callif 1, RusturfTunnel_EventScript_15C8EB
+ call_if 1, RusturfTunnel_EventScript_15C8EB
compare 0x4001, 3
- callif 1, RusturfTunnel_EventScript_15C8EB
+ call_if 1, RusturfTunnel_EventScript_15C8EB
giveitem ITEM_HM04
setflag 106
msgbox RusturfTunnel_Text_194693, 4
closebutton
compare 0x4001, 1
- callif 1, RusturfTunnel_EventScript_15C880
+ call_if 1, RusturfTunnel_EventScript_15C880
compare 0x4001, 2
- callif 1, RusturfTunnel_EventScript_15C892
+ call_if 1, RusturfTunnel_EventScript_15C892
compare 0x4001, 3
- callif 1, RusturfTunnel_EventScript_15C8AE
+ call_if 1, RusturfTunnel_EventScript_15C8AE
msgbox RusturfTunnel_Text_194706, 4
closebutton
compare 0x4001, 1
- callif 1, RusturfTunnel_EventScript_15C8F7
+ call_if 1, RusturfTunnel_EventScript_15C8F7
compare 0x4001, 2
- callif 1, RusturfTunnel_EventScript_15C909
+ call_if 1, RusturfTunnel_EventScript_15C909
compare 0x4001, 3
- callif 1, RusturfTunnel_EventScript_15C91B
+ call_if 1, RusturfTunnel_EventScript_15C91B
call RusturfTunnel_EventScript_1A0442
releaseall
end
diff --git a/data/scripts/maps/SSTidalCorridor.inc b/data/scripts/maps/SSTidalCorridor.inc
index a301bb6fe..d076510dc 100644
--- a/data/scripts/maps/SSTidalCorridor.inc
+++ b/data/scripts/maps/SSTidalCorridor.inc
@@ -42,9 +42,9 @@ SSTidalRooms_EventScript_15FCF9:: @ 815FCF9
gUnknown_0815FD0D:: @ 815FD0D
compare 0x40B4, 2
- jumpeq SSTidalCorridor_EventScript_15FD24
+ goto_if_eq SSTidalCorridor_EventScript_15FD24
compare 0x40B4, 7
- jumpeq SSTidalCorridor_EventScript_15FD3A
+ goto_if_eq SSTidalCorridor_EventScript_15FD3A
end
SSTidalCorridor_EventScript_15FD24:: @ 815FD24
@@ -114,9 +114,9 @@ SSTidalCorridor_EventScript_15FDD6:: @ 815FDD6
lock
faceplayer
compare 0x40b4, 4
- jumpeq SSTidalCorridor_EventScript_15FDF8
+ goto_if_eq SSTidalCorridor_EventScript_15FDF8
compare 0x40b4, 8
- jumpeq SSTidalCorridor_EventScript_15FE17
+ goto_if_eq SSTidalCorridor_EventScript_15FE17
msgbox SSTidalCorridor_Text_19913B, 4
release
end
@@ -125,7 +125,7 @@ SSTidalCorridor_EventScript_15FDF8:: @ 815FDF8
sethealplace 8
msgbox SSTidalCorridor_Text_1991F4, 4
checkflag 260
- callif 1, SSTidalCorridor_EventScript_15FE36
+ call_if 1, SSTidalCorridor_EventScript_15FE36
warp LilycoveCity_Harbor, 255, 8, 11
waitstate
release
@@ -135,7 +135,7 @@ SSTidalCorridor_EventScript_15FE17:: @ 815FE17
sethealplace 4
msgbox SSTidalCorridor_Text_1991F4, 4
checkflag 260
- callif 1, SSTidalCorridor_EventScript_15FE36
+ call_if 1, SSTidalCorridor_EventScript_15FE36
warp SlateportCity_Harbor, 255, 8, 11
waitstate
release
@@ -148,9 +148,9 @@ SSTidalCorridor_EventScript_15FE36:: @ 815FE36
SSTidalCorridor_EventScript_15FE3A:: @ 815FE3A
lockall
compare 0x40b4, 2
- jumpeq SSTidalCorridor_EventScript_15FE5B
+ goto_if_eq SSTidalCorridor_EventScript_15FE5B
compare 0x40b4, 7
- jumpeq SSTidalCorridor_EventScript_15FE5B
+ goto_if_eq SSTidalCorridor_EventScript_15FE5B
msgbox SSTidalCorridor_Text_199268, 4
releaseall
end
@@ -164,7 +164,7 @@ SSTidalCorridor_EventScript_15FE60:: @ 815FE60
lock
faceplayer
checkflag 247
- jumpeq SSTidalCorridor_EventScript_15FE7A
+ goto_if_eq SSTidalCorridor_EventScript_15FE7A
call SSTidalCorridor_EventScript_15FE84
msgbox SSTidalCorridor_Text_199203, 4
release
@@ -177,21 +177,21 @@ SSTidalCorridor_EventScript_15FE7A:: @ 815FE7A
SSTidalCorridor_EventScript_15FE84:: @ 815FE84
checktrainerflag OPPONENT_PHILLIP
- jumpif 0, SSTidalCorridor_EventScript_15FED5
+ goto_if 0, SSTidalCorridor_EventScript_15FED5
checktrainerflag OPPONENT_LEONARD
- jumpif 0, SSTidalCorridor_EventScript_15FED5
+ goto_if 0, SSTidalCorridor_EventScript_15FED5
checktrainerflag OPPONENT_COLTON
- jumpif 0, SSTidalCorridor_EventScript_15FED5
+ goto_if 0, SSTidalCorridor_EventScript_15FED5
checktrainerflag OPPONENT_TUCKER
- jumpif 0, SSTidalCorridor_EventScript_15FED5
+ goto_if 0, SSTidalCorridor_EventScript_15FED5
checktrainerflag OPPONENT_THOMAS
- jumpif 0, SSTidalCorridor_EventScript_15FED5
+ goto_if 0, SSTidalCorridor_EventScript_15FED5
checktrainerflag OPPONENT_LEA_AND_JED
- jumpif 0, SSTidalCorridor_EventScript_15FED5
+ goto_if 0, SSTidalCorridor_EventScript_15FED5
checktrainerflag OPPONENT_GARRET
- jumpif 0, SSTidalCorridor_EventScript_15FED5
+ goto_if 0, SSTidalCorridor_EventScript_15FED5
checktrainerflag OPPONENT_ANETTE
- jumpif 0, SSTidalCorridor_EventScript_15FED5
+ goto_if 0, SSTidalCorridor_EventScript_15FED5
setflag 247
goto SSTidalCorridor_EventScript_15FE7A
return
diff --git a/data/scripts/maps/SSTidalRooms.inc b/data/scripts/maps/SSTidalRooms.inc
index 4d588cd46..aa84b6b48 100644
--- a/data/scripts/maps/SSTidalRooms.inc
+++ b/data/scripts/maps/SSTidalRooms.inc
@@ -5,11 +5,11 @@ SSTidalRooms_EventScript_15FF06:: @ 815FF06
lock
faceplayer
checkflag 260
- jumpeq SSTidalRooms_EventScript_15FF3D
+ goto_if_eq SSTidalRooms_EventScript_15FF3D
msgbox SSTidalRooms_Text_199B65, 4
giveitem ITEM_TM49
compare RESULT, 0
- jumpeq SSTidalRooms_EventScript_1A029B
+ goto_if_eq SSTidalRooms_EventScript_1A029B
setflag 260
msgbox SSTidalRooms_Text_199C1A, 4
release
diff --git a/data/scripts/maps/SafariZone_Southeast.inc b/data/scripts/maps/SafariZone_Southeast.inc
index f0529fbec..9005bef3b 100644
--- a/data/scripts/maps/SafariZone_Southeast.inc
+++ b/data/scripts/maps/SafariZone_Southeast.inc
@@ -21,7 +21,7 @@ SafariZone_Southeast_EventScript_16004B:: @ 816004B
SafariZone_Southeast_MapScript1_160073:: @ 8160073
compare 0x40a4, 2
- callif 1, SafariZone_Southeast_EventScript_16007F
+ call_if 1, SafariZone_Southeast_EventScript_16007F
end
SafariZone_Southeast_EventScript_16007F:: @ 816007F
@@ -53,10 +53,10 @@ SafariZone_Southeast_EventScript_1600A7:: @ 81600A7
lock
faceplayer
compare 0x4001, 0
- jumpeq SafariZone_Southeast_EventScript_1600D1
+ goto_if_eq SafariZone_Southeast_EventScript_1600D1
msgbox SafariZone_Southeast_Text_1C3A56, 5
compare RESULT, 1
- jumpeq SafariZone_Southeast_EventScript_1600E0
+ goto_if_eq SafariZone_Southeast_EventScript_1600E0
msgbox SafariZone_Southeast_Text_1C3A9C, 4
release
end
diff --git a/data/scripts/maps/SealedChamber_InnerRoom.inc b/data/scripts/maps/SealedChamber_InnerRoom.inc
index 76a930dc0..091db022c 100644
--- a/data/scripts/maps/SealedChamber_InnerRoom.inc
+++ b/data/scripts/maps/SealedChamber_InnerRoom.inc
@@ -7,10 +7,10 @@ SealedChamber_InnerRoom_EventScript_15F1E8:: @ 815F1E8
waitbutton
hidebox 0, 0, 29, 19
checkflag 228
- jumpeq SealedChamber_InnerRoom_EventScript_15F247
+ goto_if_eq SealedChamber_InnerRoom_EventScript_15F247
specialval RESULT, CheckRelicanthWailord
compare RESULT, 0
- jumpeq SealedChamber_InnerRoom_EventScript_15F247
+ goto_if_eq SealedChamber_InnerRoom_EventScript_15F247
fadeout 0
playsfx 49
special DoSealedChamberShakingEffect1
diff --git a/data/scripts/maps/SealedChamber_OuterRoom.inc b/data/scripts/maps/SealedChamber_OuterRoom.inc
index 83ca4e4df..dfa4777fa 100644
--- a/data/scripts/maps/SealedChamber_OuterRoom.inc
+++ b/data/scripts/maps/SealedChamber_OuterRoom.inc
@@ -15,7 +15,7 @@ SealedChamber_OuterRoom_MapScript1_15F0E7:: @ 815F0E7
SealedChamber_OuterRoom_MapScript1_15F0EB:: @ 815F0EB
checkflag 2127
- callif 0, SealedChamber_OuterRoom_EventScript_15F0F5
+ call_if 0, SealedChamber_OuterRoom_EventScript_15F0F5
end
SealedChamber_OuterRoom_EventScript_15F0F5:: @ 815F0F5
@@ -110,7 +110,7 @@ SealedChamber_OuterRoom_EventScript_15F1AA:: @ 815F1AA
SealedChamber_OuterRoom_EventScript_15F1B8:: @ 815F1B8
lockall
checkflag 2127
- jumpeq SealedChamber_OuterRoom_EventScript_15F1CF
+ goto_if_eq SealedChamber_OuterRoom_EventScript_15F1CF
braillemsg SealedChamber_OuterRoom_Braille_1C53B1
waitbutton
hidebox 0, 0, 29, 19
diff --git a/data/scripts/maps/ShoalCave_LowTideEntranceRoom.inc b/data/scripts/maps/ShoalCave_LowTideEntranceRoom.inc
index 6238e7f4a..dc2b107e3 100644
--- a/data/scripts/maps/ShoalCave_LowTideEntranceRoom.inc
+++ b/data/scripts/maps/ShoalCave_LowTideEntranceRoom.inc
@@ -5,7 +5,7 @@ ShoalCave_LowTideEntranceRoom_MapScripts:: @ 815E057
ShoalCave_LowTideEntranceRoom_MapScript1_15E05D:: @ 815E05D
special UpdateShoalTideFlag
checkflag 2106
- jumpeq ShoalCave_LowTideEntranceRoom_EventScript_15E06E
+ goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_15E06E
goto ShoalCave_LowTideEntranceRoom_EventScript_15E072
ShoalCave_LowTideEntranceRoom_EventScript_15E06E:: @ 815E06E
@@ -21,27 +21,27 @@ ShoalCave_LowTideEntranceRoom_EventScript_15E076:: @ 815E076
faceplayer
checkdailyflags
checkflag 2143
- callif 1, ShoalCave_LowTideEntranceRoom_EventScript_15E176
+ call_if 1, ShoalCave_LowTideEntranceRoom_EventScript_15E176
checkitem ITEM_SHOAL_SALT, 4
compare RESULT, 0
- jumpeq ShoalCave_LowTideEntranceRoom_EventScript_15E138
+ goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_15E138
checkitem ITEM_SHOAL_SHELL, 4
compare RESULT, 0
- jumpeq ShoalCave_LowTideEntranceRoom_EventScript_15E138
+ goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_15E138
msgbox ShoalCave_LowTideEntranceRoom_Text_1C6793, 5
compare RESULT, 0
- jumpeq ShoalCave_LowTideEntranceRoom_EventScript_15E16C
+ goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_15E16C
checkitemspace ITEM_SHELL_BELL, 1
compare RESULT, 0
- callif 1, ShoalCave_LowTideEntranceRoom_EventScript_15E106
+ call_if 1, ShoalCave_LowTideEntranceRoom_EventScript_15E106
compare RESULT, 2
- jumpeq ShoalCave_LowTideEntranceRoom_EventScript_15E12E
+ goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_15E12E
msgbox ShoalCave_LowTideEntranceRoom_Text_1C6808, 4
removeitem ITEM_SHOAL_SALT, 4
removeitem ITEM_SHOAL_SHELL, 4
giveitem ITEM_SHELL_BELL
compare RESULT, 0
- jumpeq ShoalCave_LowTideEntranceRoom_EventScript_1A029B
+ goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_1A029B
msgbox ShoalCave_LowTideEntranceRoom_Text_1C688E, 4
setflag 2
release
@@ -50,13 +50,13 @@ ShoalCave_LowTideEntranceRoom_EventScript_15E076:: @ 815E076
ShoalCave_LowTideEntranceRoom_EventScript_15E106:: @ 815E106
checkitem ITEM_SHOAL_SALT, 5
compare RESULT, 1
- jumpeq ShoalCave_LowTideEntranceRoom_EventScript_15E117
+ goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_15E117
return
ShoalCave_LowTideEntranceRoom_EventScript_15E117:: @ 815E117
checkitem ITEM_SHOAL_SHELL, 5
compare RESULT, 1
- jumpeq ShoalCave_LowTideEntranceRoom_EventScript_15E128
+ goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_15E128
return
ShoalCave_LowTideEntranceRoom_EventScript_15E128:: @ 815E128
@@ -71,10 +71,10 @@ ShoalCave_LowTideEntranceRoom_EventScript_15E12E:: @ 815E12E
ShoalCave_LowTideEntranceRoom_EventScript_15E138:: @ 815E138
checkitem ITEM_SHOAL_SALT, 1
compare RESULT, 1
- jumpeq ShoalCave_LowTideEntranceRoom_EventScript_15E162
+ goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_15E162
checkitem ITEM_SHOAL_SHELL, 1
compare RESULT, 1
- jumpeq ShoalCave_LowTideEntranceRoom_EventScript_15E162
+ goto_if_eq ShoalCave_LowTideEntranceRoom_EventScript_15E162
msgbox ShoalCave_LowTideEntranceRoom_Text_1C6668, 4
release
end
diff --git a/data/scripts/maps/ShoalCave_LowTideInnerRoom.inc b/data/scripts/maps/ShoalCave_LowTideInnerRoom.inc
index bed2d7b21..05fc6a315 100644
--- a/data/scripts/maps/ShoalCave_LowTideInnerRoom.inc
+++ b/data/scripts/maps/ShoalCave_LowTideInnerRoom.inc
@@ -5,7 +5,7 @@ ShoalCave_LowTideInnerRoom_MapScripts:: @ 815E192
ShoalCave_LowTideInnerRoom_MapScript1_15E19D:: @ 815E19D
checkflag 2106
- jumpeq ShoalCave_LowTideInnerRoom_EventScript_15E1AB
+ goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_15E1AB
goto ShoalCave_LowTideInnerRoom_EventScript_15E1AF
ShoalCave_LowTideInnerRoom_EventScript_15E1AB:: @ 815E1AB
@@ -22,46 +22,46 @@ ShoalCave_LowTideInnerRoom_MapScript1_15E1B3:: @ 815E1B3
ShoalCave_LowTideInnerRoom_EventScript_15E1B9:: @ 815E1B9
checkflag 952
- jumpeq ShoalCave_LowTideInnerRoom_EventScript_15E1DA
+ goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_15E1DA
checkflag 2106
- jumpeq ShoalCave_LowTideInnerRoom_EventScript_15E1DA
+ goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_15E1DA
setmaptile 31, 8, 856, 1
goto ShoalCave_LowTideInnerRoom_EventScript_15E1DA
end
ShoalCave_LowTideInnerRoom_EventScript_15E1DA:: @ 815E1DA
checkflag 953
- jumpeq ShoalCave_LowTideInnerRoom_EventScript_15E1FB
+ goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_15E1FB
checkflag 2106
- jumpeq ShoalCave_LowTideInnerRoom_EventScript_15E1FB
+ goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_15E1FB
setmaptile 14, 26, 856, 1
goto ShoalCave_LowTideInnerRoom_EventScript_15E1FB
end
ShoalCave_LowTideInnerRoom_EventScript_15E1FB:: @ 815E1FB
checkflag 956
- jumpeq ShoalCave_LowTideInnerRoom_EventScript_15E213
+ goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_15E213
setmaptile 41, 20, 857, 1
goto ShoalCave_LowTideInnerRoom_EventScript_15E213
end
ShoalCave_LowTideInnerRoom_EventScript_15E213:: @ 815E213
checkflag 957
- jumpeq ShoalCave_LowTideInnerRoom_EventScript_15E22B
+ goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_15E22B
setmaptile 41, 10, 857, 1
goto ShoalCave_LowTideInnerRoom_EventScript_15E22B
end
ShoalCave_LowTideInnerRoom_EventScript_15E22B:: @ 815E22B
checkflag 958
- jumpeq ShoalCave_LowTideInnerRoom_EventScript_15E243
+ goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_15E243
setmaptile 6, 9, 857, 1
goto ShoalCave_LowTideInnerRoom_EventScript_15E243
end
ShoalCave_LowTideInnerRoom_EventScript_15E243:: @ 815E243
checkflag 959
- jumpeq ShoalCave_LowTideInnerRoom_EventScript_15E256
+ goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_15E256
setmaptile 16, 13, 857, 1
return
@@ -71,10 +71,10 @@ ShoalCave_LowTideInnerRoom_EventScript_15E256:: @ 815E256
ShoalCave_LowTideInnerRoom_EventScript_15E257:: @ 815E257
lockall
checkflag 956
- jumpeq ShoalCave_LowTideInnerRoom_EventScript_15E289
+ goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_15E289
giveitem ITEM_SHOAL_SHELL
compare RESULT, 0
- jumpeq ShoalCave_LowTideInnerRoom_EventScript_1A029B
+ goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_1A029B
setmaptile 41, 20, 859, 0
special DrawWholeMapView
setflag 956
@@ -89,10 +89,10 @@ ShoalCave_LowTideInnerRoom_EventScript_15E289:: @ 815E289
ShoalCave_LowTideInnerRoom_EventScript_15E293:: @ 815E293
lockall
checkflag 957
- jumpeq ShoalCave_LowTideInnerRoom_EventScript_15E289
+ goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_15E289
giveitem ITEM_SHOAL_SHELL
compare RESULT, 0
- jumpeq ShoalCave_LowTideInnerRoom_EventScript_1A029B
+ goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_1A029B
setmaptile 41, 10, 859, 0
special DrawWholeMapView
setflag 957
@@ -102,10 +102,10 @@ ShoalCave_LowTideInnerRoom_EventScript_15E293:: @ 815E293
ShoalCave_LowTideInnerRoom_EventScript_15E2C5:: @ 815E2C5
lockall
checkflag 958
- jumpeq ShoalCave_LowTideInnerRoom_EventScript_15E289
+ goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_15E289
giveitem ITEM_SHOAL_SHELL
compare RESULT, 0
- jumpeq ShoalCave_LowTideInnerRoom_EventScript_1A029B
+ goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_1A029B
setmaptile 6, 9, 859, 0
special DrawWholeMapView
setflag 958
@@ -115,10 +115,10 @@ ShoalCave_LowTideInnerRoom_EventScript_15E2C5:: @ 815E2C5
ShoalCave_LowTideInnerRoom_EventScript_15E2F7:: @ 815E2F7
lockall
checkflag 959
- jumpeq ShoalCave_LowTideInnerRoom_EventScript_15E289
+ goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_15E289
giveitem ITEM_SHOAL_SHELL
compare RESULT, 0
- jumpeq ShoalCave_LowTideInnerRoom_EventScript_1A029B
+ goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_1A029B
setmaptile 16, 13, 859, 0
special DrawWholeMapView
setflag 959
@@ -128,10 +128,10 @@ ShoalCave_LowTideInnerRoom_EventScript_15E2F7:: @ 815E2F7
ShoalCave_LowTideInnerRoom_EventScript_15E329:: @ 815E329
lockall
checkflag 952
- jumpeq ShoalCave_LowTideInnerRoom_EventScript_15E35B
+ goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_15E35B
giveitem ITEM_SHOAL_SALT
compare RESULT, 0
- jumpeq ShoalCave_LowTideInnerRoom_EventScript_1A029B
+ goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_1A029B
setmaptile 31, 8, 858, 0
special DrawWholeMapView
setflag 952
@@ -146,10 +146,10 @@ ShoalCave_LowTideInnerRoom_EventScript_15E35B:: @ 815E35B
ShoalCave_LowTideInnerRoom_EventScript_15E365:: @ 815E365
lockall
checkflag 953
- jumpeq ShoalCave_LowTideInnerRoom_EventScript_15E35B
+ goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_15E35B
giveitem ITEM_SHOAL_SALT
compare RESULT, 0
- jumpeq ShoalCave_LowTideInnerRoom_EventScript_1A029B
+ goto_if_eq ShoalCave_LowTideInnerRoom_EventScript_1A029B
setmaptile 14, 26, 858, 0
special DrawWholeMapView
setflag 953
diff --git a/data/scripts/maps/ShoalCave_LowTideLowerRoom.inc b/data/scripts/maps/ShoalCave_LowTideLowerRoom.inc
index 67de2676f..db5779efe 100644
--- a/data/scripts/maps/ShoalCave_LowTideLowerRoom.inc
+++ b/data/scripts/maps/ShoalCave_LowTideLowerRoom.inc
@@ -8,7 +8,7 @@ ShoalCave_LowTideLowerRoom_MapScript1_15E3F9:: @ 815E3F9
ShoalCave_LowTideLowerRoom_EventScript_15E3FF:: @ 815E3FF
checkflag 955
- jumpeq ShoalCave_LowTideLowerRoom_EventScript_15E412
+ goto_if_eq ShoalCave_LowTideLowerRoom_EventScript_15E412
setmaptile 18, 2, 856, 1
return
@@ -18,10 +18,10 @@ ShoalCave_LowTideLowerRoom_EventScript_15E412:: @ 815E412
ShoalCave_LowTideLowerRoom_EventScript_15E413:: @ 815E413
lockall
checkflag 955
- jumpeq ShoalCave_LowTideLowerRoom_EventScript_15E445
+ goto_if_eq ShoalCave_LowTideLowerRoom_EventScript_15E445
giveitem ITEM_SHOAL_SALT
compare RESULT, 0
- jumpeq ShoalCave_LowTideLowerRoom_EventScript_1A029B
+ goto_if_eq ShoalCave_LowTideLowerRoom_EventScript_1A029B
setmaptile 18, 2, 858, 0
special DrawWholeMapView
setflag 955
@@ -37,11 +37,11 @@ ShoalCave_LowTideLowerRoom_EventScript_15E44F:: @ 815E44F
lock
faceplayer
checkflag 283
- jumpeq ShoalCave_LowTideLowerRoom_EventScript_15E47E
+ goto_if_eq ShoalCave_LowTideLowerRoom_EventScript_15E47E
msgbox ShoalCave_LowTideLowerRoom_Text_198200, 4
giveitem ITEM_FOCUS_BAND
compare RESULT, 0
- jumpeq ShoalCave_LowTideLowerRoom_EventScript_1A029B
+ goto_if_eq ShoalCave_LowTideLowerRoom_EventScript_1A029B
setflag 283
release
end
diff --git a/data/scripts/maps/ShoalCave_LowTideStairsRoom.inc b/data/scripts/maps/ShoalCave_LowTideStairsRoom.inc
index c46a2cb2d..bffb7bd49 100644
--- a/data/scripts/maps/ShoalCave_LowTideStairsRoom.inc
+++ b/data/scripts/maps/ShoalCave_LowTideStairsRoom.inc
@@ -8,7 +8,7 @@ ShoalCave_LowTideStairsRoom_MapScript1_15E39D:: @ 815E39D
ShoalCave_LowTideStairsRoom_EventScript_15E3A3:: @ 815E3A3
checkflag 954
- jumpeq ShoalCave_LowTideStairsRoom_EventScript_15E3B6
+ goto_if_eq ShoalCave_LowTideStairsRoom_EventScript_15E3B6
setmaptile 11, 11, 856, 1
return
@@ -18,10 +18,10 @@ ShoalCave_LowTideStairsRoom_EventScript_15E3B6:: @ 815E3B6
ShoalCave_LowTideStairsRoom_EventScript_15E3B7:: @ 815E3B7
lockall
checkflag 954
- jumpeq ShoalCave_LowTideStairsRoom_EventScript_15E3E9
+ goto_if_eq ShoalCave_LowTideStairsRoom_EventScript_15E3E9
giveitem ITEM_SHOAL_SALT
compare RESULT, 0
- jumpeq ShoalCave_LowTideStairsRoom_EventScript_1A029B
+ goto_if_eq ShoalCave_LowTideStairsRoom_EventScript_1A029B
setmaptile 11, 11, 858, 0
special DrawWholeMapView
setflag 954
diff --git a/data/scripts/maps/SkyPillar_Top.inc b/data/scripts/maps/SkyPillar_Top.inc
index d659a23c1..e41d579c0 100644
--- a/data/scripts/maps/SkyPillar_Top.inc
+++ b/data/scripts/maps/SkyPillar_Top.inc
@@ -4,7 +4,7 @@ SkyPillar_Top_MapScripts:: @ 815F302
SkyPillar_Top_MapScript1_15F308:: @ 815F308
checkflag 2145
- callif 1, SkyPillar_Top_EventScript_15F312
+ call_if 1, SkyPillar_Top_EventScript_15F312
end
SkyPillar_Top_EventScript_15F312:: @ 815F312
diff --git a/data/scripts/maps/SlateportCity.inc b/data/scripts/maps/SlateportCity.inc
index e156f8948..4b11b2f8d 100644
--- a/data/scripts/maps/SlateportCity.inc
+++ b/data/scripts/maps/SlateportCity.inc
@@ -13,7 +13,7 @@ SlateportCity_MapScript1_14BA3C:: @ 814BA3C
setvar 0x40aa, 0
call SlateportCity_EventScript_14BA5C
compare 0x4058, 1
- callif 1, SlateportCity_EventScript_14BA68
+ call_if 1, SlateportCity_EventScript_14BA68
end
SlateportCity_EventScript_14BA5C:: @ 814BA5C
@@ -68,10 +68,10 @@ SlateportCity_EventScript_14BAE0:: @ 814BAE0
msgbox SlateportCity_Text_164682, 4
specialval RESULT, LeadMonHasEffortRibbon
compare RESULT, 1
- callif 1, SlateportCity_EventScript_14BB35
+ call_if 1, SlateportCity_EventScript_14BB35
specialval RESULT, ScrSpecial_AreLeadMonEVsMaxedOut
compare RESULT, 0
- callif 1, SlateportCity_EventScript_14BB2B
+ call_if 1, SlateportCity_EventScript_14BB2B
msgbox SlateportCity_Text_164691, 4
fanfare 370
message SlateportCity_Text_1646DD
@@ -96,7 +96,7 @@ SlateportCity_EventScript_14BB3F:: @ 814BB3F
lock
faceplayer
compare 0x4058, 1
- callif 1, SlateportCity_EventScript_14BB56
+ call_if 1, SlateportCity_EventScript_14BB56
msgbox SlateportCity_Text_164814, 4
release
end
@@ -110,7 +110,7 @@ SlateportCity_EventScript_14BB60:: @ 814BB60
lock
faceplayer
compare 0x4058, 1
- callif 1, SlateportCity_EventScript_14BB77
+ call_if 1, SlateportCity_EventScript_14BB77
msgbox SlateportCity_Text_1648A0, 4
release
end
@@ -124,9 +124,9 @@ SlateportCity_EventScript_14BB81:: @ 814BB81
lock
faceplayer
compare 0x4058, 1
- callif 1, SlateportCity_EventScript_14BBA1
+ call_if 1, SlateportCity_EventScript_14BBA1
checkflag 96
- jumpeq SlateportCity_EventScript_14BBAB
+ goto_if_eq SlateportCity_EventScript_14BBAB
msgbox SlateportCity_Text_164937, 4
release
end
@@ -145,7 +145,7 @@ SlateportCity_EventScript_14BBB5:: @ 814BBB5
lock
faceplayer
compare 0x4058, 1
- callif 1, SlateportCity_EventScript_14BBCC
+ call_if 1, SlateportCity_EventScript_14BBCC
msgbox SlateportCity_Text_164A30, 4
release
end
@@ -157,7 +157,7 @@ SlateportCity_EventScript_14BBCC:: @ 814BBCC
SlateportCity_EventScript_14BBD6:: @ 814BBD6
compare 0x4058, 1
- jumpeq SlateportCity_EventScript_14BBEA
+ goto_if_eq SlateportCity_EventScript_14BBEA
msgbox SlateportCity_Text_164AA9, 2
end
@@ -169,7 +169,7 @@ SlateportCity_EventScript_14BBF3:: @ 814BBF3
lock
faceplayer
compare 0x4058, 1
- callif 1, SlateportCity_EventScript_14BC0A
+ call_if 1, SlateportCity_EventScript_14BC0A
msgbox SlateportCity_Text_164B34, 4
release
end
@@ -183,7 +183,7 @@ SlateportCity_EventScript_14BC14:: @ 814BC14
lock
faceplayer
checkflag 148
- jumpeq SlateportCity_EventScript_14BC29
+ goto_if_eq SlateportCity_EventScript_14BC29
msgbox SlateportCity_Text_164BBF, 4
release
end
@@ -200,9 +200,9 @@ SlateportCity_EventScript_14BC33:: @ 814BC33
SlateportCity_EventScript_14BC3C:: @ 814BC3C
lockall
checkflag 2052
- jumpeq SlateportCity_EventScript_14BC63
+ goto_if_eq SlateportCity_EventScript_14BC63
checkflag 2061
- jumpeq SlateportCity_EventScript_14BC59
+ goto_if_eq SlateportCity_EventScript_14BC59
msgbox SlateportCity_Text_1658A0, 4
releaseall
end
@@ -236,7 +236,7 @@ SlateportCity_EventScript_14BC88:: @ 814BC88
SlateportCity_EventScript_14BC91:: @ 814BC91
lockall
checkflag 2052
- jumpeq SlateportCity_EventScript_14BCA5
+ goto_if_eq SlateportCity_EventScript_14BCA5
msgbox SlateportCity_Text_165A8B, 4
releaseall
end
@@ -254,7 +254,7 @@ SlateportCity_EventScript_14BCB8:: @ 814BCB8
lock
faceplayer
compare 0x4058, 1
- callif 1, SlateportCity_EventScript_14BCCF
+ call_if 1, SlateportCity_EventScript_14BCCF
msgbox SlateportCity_Text_164F9E, 4
release
end
@@ -289,9 +289,9 @@ SlateportCity_EventScript_14BD06:: @ 814BD06
faceplayer
msgbox SlateportCity_Text_1650F1, 5
compare RESULT, 1
- callif 1, SlateportCity_EventScript_14BD28
+ call_if 1, SlateportCity_EventScript_14BD28
compare RESULT, 0
- callif 1, SlateportCity_EventScript_14BD31
+ call_if 1, SlateportCity_EventScript_14BD31
release
end
@@ -411,7 +411,7 @@ SlateportCity_EventScript_14BE20:: @ 814BE20
lock
faceplayer
checkflag 96
- jumpif 0, SlateportCity_EventScript_14BE16
+ goto_if 0, SlateportCity_EventScript_14BE16
message SlateportCity_Text_1A0BE4
waittext
pokemartdecor SlateportCity_Decorations2
@@ -443,7 +443,7 @@ SlateportCity_Decorations2:: @ 814BE40
lock
faceplayer
checkflag 96
- jumpif 0, SlateportCity_EventScript_14BE16
+ goto_if 0, SlateportCity_EventScript_14BE16
message SlateportCity_Text_1A0BE4
waittext
pokemartdecor SlateportCity_Decorations3
diff --git a/data/scripts/maps/SlateportCity_ContestHall.inc b/data/scripts/maps/SlateportCity_ContestHall.inc
index 559719583..b2963098c 100644
--- a/data/scripts/maps/SlateportCity_ContestHall.inc
+++ b/data/scripts/maps/SlateportCity_ContestHall.inc
@@ -13,11 +13,11 @@ SlateportCity_ContestHall_EventScript_15555E:: @ 815555E
lock
faceplayer
checkflag 265
- jumpeq SlateportCity_ContestHall_EventScript_155595
+ goto_if_eq SlateportCity_ContestHall_EventScript_155595
msgbox SlateportCity_ContestHall_Text_17CCE2, 4
giveitem ITEM_TM41
compare RESULT, 0
- jumpeq SlateportCity_ContestHall_EventScript_1A029B
+ goto_if_eq SlateportCity_ContestHall_EventScript_1A029B
setflag 265
msgbox SlateportCity_ContestHall_Text_17CE28, 4
release
diff --git a/data/scripts/maps/SlateportCity_ContestLobby.inc b/data/scripts/maps/SlateportCity_ContestLobby.inc
index b1ce50815..b541fb0e8 100644
--- a/data/scripts/maps/SlateportCity_ContestLobby.inc
+++ b/data/scripts/maps/SlateportCity_ContestLobby.inc
@@ -102,7 +102,7 @@ SlateportCity_ContestLobby_EventScript_1554F0:: @ 81554F0
SlateportCity_ContestLobby_EventScript_1554F9:: @ 81554F9
lockall
checkflag 95
- jumpeq SlateportCity_ContestLobby_EventScript_155526
+ goto_if_eq SlateportCity_ContestLobby_EventScript_155526
move 7, SlateportCity_ContestLobby_Movement_1A0839
waitmove 0
msgbox SlateportCity_ContestLobby_Text_17CA67, 4
diff --git a/data/scripts/maps/SlateportCity_Harbor.inc b/data/scripts/maps/SlateportCity_Harbor.inc
index d7769eb81..33a99b2a4 100644
--- a/data/scripts/maps/SlateportCity_Harbor.inc
+++ b/data/scripts/maps/SlateportCity_Harbor.inc
@@ -6,9 +6,9 @@ SlateportCity_Harbor_MapScript1_155F63:: @ 8155F63
warp6 SlateportCity, 255, 28, 13
setvar 0x4001, 0
compare 0x40a0, 1
- callif 1, SlateportCity_Harbor_EventScript_155F89
+ call_if 1, SlateportCity_Harbor_EventScript_155F89
checkflag 2052
- callif 1, SlateportCity_Harbor_EventScript_155F85
+ call_if 1, SlateportCity_Harbor_EventScript_155F85
end
SlateportCity_Harbor_EventScript_155F85:: @ 8155F85
@@ -64,13 +64,13 @@ SlateportCity_Harbor_EventScript_155FD5:: @ 8155FD5
disappear 8
setvar 0x40a0, 2
compare 0x8008, 0
- callif 1, SlateportCity_Harbor_EventScript_15605C
+ call_if 1, SlateportCity_Harbor_EventScript_15605C
compare 0x8008, 1
- callif 1, SlateportCity_Harbor_EventScript_156071
+ call_if 1, SlateportCity_Harbor_EventScript_156071
compare 0x8008, 2
- callif 1, SlateportCity_Harbor_EventScript_156086
+ call_if 1, SlateportCity_Harbor_EventScript_156086
compare 0x8008, 3
- callif 1, SlateportCity_Harbor_EventScript_156086
+ call_if 1, SlateportCity_Harbor_EventScript_156086
msgbox SlateportCity_Harbor_Text_17FE60, 4
closebutton
setflag 821
@@ -160,7 +160,7 @@ SlateportCity_Harbor_EventScript_1560C4:: @ 81560C4
lock
faceplayer
checkflag 2052
- jumpeq SlateportCity_Harbor_EventScript_1560D9
+ goto_if_eq SlateportCity_Harbor_EventScript_1560D9
msgbox SlateportCity_Harbor_Text_17FA0A, 4
release
end
@@ -169,7 +169,7 @@ SlateportCity_Harbor_EventScript_1560D9:: @ 81560D9
msgbox SlateportCity_Harbor_Text_17FA73, 4
checkitem ITEM_SS_TICKET, 1
compare RESULT, 0
- jumpeq SlateportCity_Harbor_EventScript_156135
+ goto_if_eq SlateportCity_Harbor_EventScript_156135
message SlateportCity_Harbor_Text_17FB0A
waittext
goto SlateportCity_Harbor_EventScript_1560FD
@@ -192,7 +192,7 @@ SlateportCity_Harbor_EventScript_156135:: @ 8156135
SlateportCity_Harbor_EventScript_15613F:: @ 815613F
msgbox SlateportCity_Harbor_Text_17FB81, 5
compare RESULT, 0
- jumpeq SlateportCity_Harbor_EventScript_15618A
+ goto_if_eq SlateportCity_Harbor_EventScript_15618A
setvar 0x40b4, 1
call SlateportCity_Harbor_EventScript_156196
warp SSTidalCorridor, 255, 1, 10
@@ -203,7 +203,7 @@ SlateportCity_Harbor_EventScript_15613F:: @ 815613F
SlateportCity_Harbor_EventScript_156167:: @ 8156167
msgbox SlateportCity_Harbor_Text_17FB9C, 5
compare RESULT, 0
- jumpeq SlateportCity_Harbor_EventScript_15618A
+ goto_if_eq SlateportCity_Harbor_EventScript_15618A
call SlateportCity_Harbor_EventScript_156196
warp BattleTower_Outside, 255, 19, 23
waitstate
@@ -224,9 +224,9 @@ SlateportCity_Harbor_EventScript_156196:: @ 8156196
pause 30
spriteinvisible LAST_TALKED, 9, 8
compare FACING, 2
- callif 1, SlateportCity_Harbor_EventScript_1561EF
+ call_if 1, SlateportCity_Harbor_EventScript_1561EF
compare FACING, 4
- callif 1, SlateportCity_Harbor_EventScript_1561E4
+ call_if 1, SlateportCity_Harbor_EventScript_1561E4
pause 30
spriteinvisible 255, 0, 0
setvar 0x8004, 5
@@ -269,13 +269,13 @@ SlateportCity_Harbor_EventScript_156211:: @ 8156211
lock
faceplayer
checkflag 2061
- jumpeq SlateportCity_Harbor_EventScript_15626F
+ goto_if_eq SlateportCity_Harbor_EventScript_15626F
checkflag 271
- jumpeq SlateportCity_Harbor_EventScript_156265
+ goto_if_eq SlateportCity_Harbor_EventScript_156265
checkflag 112
- jumpeq SlateportCity_Harbor_EventScript_156258
+ goto_if_eq SlateportCity_Harbor_EventScript_156258
compare 0x40a0, 2
- jumpeq SlateportCity_Harbor_EventScript_15624E
+ goto_if_eq SlateportCity_Harbor_EventScript_15624E
msgbox SlateportCity_Harbor_Text_17FD1C, 4
closebutton
move LAST_TALKED, SlateportCity_Harbor_Movement_1A083D
@@ -301,12 +301,12 @@ SlateportCity_Harbor_EventScript_156265:: @ 8156265
SlateportCity_Harbor_EventScript_15626F:: @ 815626F
compare 0x4001, 1
- jumpeq SlateportCity_Harbor_EventScript_156380
+ goto_if_eq SlateportCity_Harbor_EventScript_156380
checkitem ITEM_SCANNER, 1
compare RESULT, 1
- jumpeq SlateportCity_Harbor_EventScript_1562A7
+ goto_if_eq SlateportCity_Harbor_EventScript_1562A7
checkflag 2052
- jumpeq SlateportCity_Harbor_EventScript_15629D
+ goto_if_eq SlateportCity_Harbor_EventScript_15629D
msgbox SlateportCity_Harbor_Text_18017B, 4
release
end
@@ -334,10 +334,10 @@ SlateportCity_Harbor_EventScript_1562B3:: @ 81562B3
SlateportCity_Harbor_EventScript_1562EA:: @ 81562EA
msgbox SlateportCity_Harbor_Text_1803DD, 5
compare RESULT, 0
- jumpeq SlateportCity_Harbor_EventScript_156374
+ goto_if_eq SlateportCity_Harbor_EventScript_156374
giveitem ITEM_DEEP_SEA_TOOTH
compare RESULT, 0
- jumpeq SlateportCity_Harbor_EventScript_1A029B
+ goto_if_eq SlateportCity_Harbor_EventScript_1A029B
removeitem ITEM_SCANNER, 1
msgbox SlateportCity_Harbor_Text_18046B, 4
setflag 294
@@ -347,10 +347,10 @@ SlateportCity_Harbor_EventScript_1562EA:: @ 81562EA
SlateportCity_Harbor_EventScript_15632A:: @ 815632A
msgbox SlateportCity_Harbor_Text_180412, 5
compare RESULT, 0
- jumpeq SlateportCity_Harbor_EventScript_156374
+ goto_if_eq SlateportCity_Harbor_EventScript_156374
giveitem ITEM_DEEP_SEA_SCALE
compare RESULT, 0
- jumpeq SlateportCity_Harbor_EventScript_1A029B
+ goto_if_eq SlateportCity_Harbor_EventScript_1A029B
removeitem ITEM_SCANNER, 1
msgbox SlateportCity_Harbor_Text_18046B, 4
setflag 294
diff --git a/data/scripts/maps/SlateportCity_House1.inc b/data/scripts/maps/SlateportCity_House1.inc
index 4161889e1..f9ffba65f 100644
--- a/data/scripts/maps/SlateportCity_House1.inc
+++ b/data/scripts/maps/SlateportCity_House1.inc
@@ -6,9 +6,9 @@ SlateportCity_House1_EventScript_15567B:: @ 815567B
faceplayer
msgbox SlateportCity_House1_Text_17D46A, 5
compare RESULT, 1
- jumpeq SlateportCity_House1_EventScript_15569C
+ goto_if_eq SlateportCity_House1_EventScript_15569C
compare RESULT, 0
- jumpeq SlateportCity_House1_EventScript_1556BF
+ goto_if_eq SlateportCity_House1_EventScript_1556BF
end
SlateportCity_House1_EventScript_15569C:: @ 815569C
@@ -16,9 +16,9 @@ SlateportCity_House1_EventScript_15569C:: @ 815569C
special sub_80F9A0C
waitstate
compare 0x8004, 255
- jumpif 5, SlateportCity_House1_EventScript_1556C9
+ goto_if 5, SlateportCity_House1_EventScript_1556C9
compare 0x8004, 255
- jumpeq SlateportCity_House1_EventScript_1556BF
+ goto_if_eq SlateportCity_House1_EventScript_1556BF
end
SlateportCity_House1_EventScript_1556BF:: @ 81556BF
@@ -29,20 +29,20 @@ SlateportCity_House1_EventScript_1556BF:: @ 81556BF
SlateportCity_House1_EventScript_1556C9:: @ 81556C9
specialval RESULT, ScriptGetPartyMonSpecies
compare RESULT, SPECIES_EGG
- jumpeq SlateportCity_House1_EventScript_15571C
+ goto_if_eq SlateportCity_House1_EventScript_15571C
special sub_80BFAE0
special sub_80BFB10
compare RESULT, 1
- jumpeq SlateportCity_House1_EventScript_155726
+ goto_if_eq SlateportCity_House1_EventScript_155726
specialval RESULT, sub_810F96C
special sub_80BFAE0
compare RESULT, 1
- jumpeq SlateportCity_House1_EventScript_155726
+ goto_if_eq SlateportCity_House1_EventScript_155726
msgbox SlateportCity_House1_Text_17D505, 5
compare RESULT, 1
- jumpeq SlateportCity_House1_EventScript_155730
+ goto_if_eq SlateportCity_House1_EventScript_155730
compare RESULT, 0
- jumpeq SlateportCity_House1_EventScript_1556BF
+ goto_if_eq SlateportCity_House1_EventScript_1556BF
end
SlateportCity_House1_EventScript_15571C:: @ 815571C
@@ -61,7 +61,7 @@ SlateportCity_House1_EventScript_155730:: @ 8155730
specialval RESULT, sub_80BF9B4
special sub_80BFAE0
compare RESULT, 1
- jumpeq SlateportCity_House1_EventScript_15575A
+ goto_if_eq SlateportCity_House1_EventScript_15575A
msgbox SlateportCity_House1_Text_17D63A, 4
release
end
diff --git a/data/scripts/maps/SlateportCity_House2.inc b/data/scripts/maps/SlateportCity_House2.inc
index 2d50f0851..934fae153 100644
--- a/data/scripts/maps/SlateportCity_House2.inc
+++ b/data/scripts/maps/SlateportCity_House2.inc
@@ -10,7 +10,7 @@ SlateportCity_House2_EventScript_156399:: @ 8156399
faceplayer
checkitem ITEM_CONTEST_PASS, 1
compare RESULT, 1
- jumpeq SlateportCity_House2_EventScript_1563B5
+ goto_if_eq SlateportCity_House2_EventScript_1563B5
msgbox SlateportCity_House2_Text_180567, 4
release
end
diff --git a/data/scripts/maps/SlateportCity_OceanicMuseum_1F.inc b/data/scripts/maps/SlateportCity_OceanicMuseum_1F.inc
index 83cac24ef..45b69dff2 100644
--- a/data/scripts/maps/SlateportCity_OceanicMuseum_1F.inc
+++ b/data/scripts/maps/SlateportCity_OceanicMuseum_1F.inc
@@ -35,7 +35,7 @@ SlateportCity_OceanicMuseum_1F_EventScript_155B06:: @ 8155B06
nop
msgbox SlateportCity_OceanicMuseum_1F_Text_17E18D, 5
compare RESULT, 1
- jumpeq SlateportCity_OceanicMuseum_1F_EventScript_155B2D
+ goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_155B2D
closebutton
hidemoney 0, 0
move 255, SlateportCity_OceanicMuseum_1F_Movement_155B8D
@@ -46,7 +46,7 @@ SlateportCity_OceanicMuseum_1F_EventScript_155B06:: @ 8155B06
SlateportCity_OceanicMuseum_1F_EventScript_155B2D:: @ 8155B2D
checkmoney 0x32, 0
compare RESULT, 0
- jumpeq SlateportCity_OceanicMuseum_1F_EventScript_155B5A
+ goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_155B5A
paymoney 0x32, 0
updatemoney 0, 0
nop
@@ -58,7 +58,7 @@ SlateportCity_OceanicMuseum_1F_EventScript_155B2D:: @ 8155B2D
SlateportCity_OceanicMuseum_1F_EventScript_155B5A:: @ 8155B5A
checkflag 149
- jumpif 0, SlateportCity_OceanicMuseum_1F_EventScript_155B7B
+ goto_if 0, SlateportCity_OceanicMuseum_1F_EventScript_155B7B
msgbox SlateportCity_OceanicMuseum_1F_Text_17E1F5, 4
closebutton
hidemoney 0, 0
@@ -166,14 +166,14 @@ SlateportCity_OceanicMuseum_1F_EventScript_155C3A:: @ 8155C3A
msgbox SlateportCity_OceanicMuseum_1F_Text_17E582, 4
giveitem ITEM_TM46
compare RESULT, 0
- jumpeq SlateportCity_OceanicMuseum_1F_EventScript_155CC2
+ goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_155CC2
setflag 269
msgbox SlateportCity_OceanicMuseum_1F_Text_17E606, 4
closebutton
compare FACING, 2
- jumpeq SlateportCity_OceanicMuseum_1F_EventScript_155C98
+ goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_155C98
compare FACING, 2
- jumpif 5, SlateportCity_OceanicMuseum_1F_EventScript_155CAD
+ goto_if 5, SlateportCity_OceanicMuseum_1F_EventScript_155CAD
end
SlateportCity_OceanicMuseum_1F_EventScript_155C98:: @ 8155C98
diff --git a/data/scripts/maps/SlateportCity_OceanicMuseum_2F.inc b/data/scripts/maps/SlateportCity_OceanicMuseum_2F.inc
index 57bfbbd03..136054947 100644
--- a/data/scripts/maps/SlateportCity_OceanicMuseum_2F.inc
+++ b/data/scripts/maps/SlateportCity_OceanicMuseum_2F.inc
@@ -22,21 +22,21 @@ SlateportCity_OceanicMuseum_2F_EventScript_155CE6:: @ 8155CE6
move 4, SlateportCity_OceanicMuseum_2F_Movement_155EC5
waitmove 0
compare FACING, 1
- callif 1, SlateportCity_OceanicMuseum_2F_EventScript_155E62
+ call_if 1, SlateportCity_OceanicMuseum_2F_EventScript_155E62
compare FACING, 4
- callif 1, SlateportCity_OceanicMuseum_2F_EventScript_155E62
+ call_if 1, SlateportCity_OceanicMuseum_2F_EventScript_155E62
msgbox SlateportCity_OceanicMuseum_2F_Text_17EDAE, 4
compare FACING, 4
- callif 5, SlateportCity_OceanicMuseum_2F_EventScript_155E6D
+ call_if 5, SlateportCity_OceanicMuseum_2F_EventScript_155E6D
msgbox SlateportCity_OceanicMuseum_2F_Text_17EDD7, 4
msgbox SlateportCity_OceanicMuseum_2F_Text_17EE01, 4
closebutton
move 4, SlateportCity_OceanicMuseum_2F_Movement_155EB2
waitmove 0
compare FACING, 1
- callif 1, SlateportCity_OceanicMuseum_2F_EventScript_155E78
+ call_if 1, SlateportCity_OceanicMuseum_2F_EventScript_155E78
compare FACING, 3
- callif 1, SlateportCity_OceanicMuseum_2F_EventScript_155E83
+ call_if 1, SlateportCity_OceanicMuseum_2F_EventScript_155E83
trainerbattle 3, OPPONENT_MUSEUM_2F_GRUNT_1, 0, SlateportCity_OceanicMuseum_2F_Text_17EE4E
msgbox SlateportCity_OceanicMuseum_2F_Text_17EE66, 4
closebutton
diff --git a/data/scripts/maps/SlateportCity_PokemonFanClub.inc b/data/scripts/maps/SlateportCity_PokemonFanClub.inc
index fa2aae4ab..6656e58a4 100644
--- a/data/scripts/maps/SlateportCity_PokemonFanClub.inc
+++ b/data/scripts/maps/SlateportCity_PokemonFanClub.inc
@@ -24,19 +24,19 @@ SlateportCity_PokemonFanClub_EventScript_155795:: @ 8155795
SlateportCity_PokemonFanClub_EventScript_1557A8:: @ 81557A8
setvar 0x4002, 0
checkflag 204
- callif 1, SlateportCity_PokemonFanClub_EventScript_155893
+ call_if 1, SlateportCity_PokemonFanClub_EventScript_155893
checkflag 203
- callif 1, SlateportCity_PokemonFanClub_EventScript_155893
+ call_if 1, SlateportCity_PokemonFanClub_EventScript_155893
checkflag 202
- callif 1, SlateportCity_PokemonFanClub_EventScript_155893
+ call_if 1, SlateportCity_PokemonFanClub_EventScript_155893
checkflag 201
- callif 1, SlateportCity_PokemonFanClub_EventScript_155893
+ call_if 1, SlateportCity_PokemonFanClub_EventScript_155893
checkflag 200
- callif 1, SlateportCity_PokemonFanClub_EventScript_155893
+ call_if 1, SlateportCity_PokemonFanClub_EventScript_155893
compare 0x4002, 5
- callif 1, SlateportCity_PokemonFanClub_EventScript_15588D
+ call_if 1, SlateportCity_PokemonFanClub_EventScript_15588D
compare 0x40b7, 2
- jumpeq SlateportCity_PokemonFanClub_EventScript_1557FE
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_1557FE
msgbox SlateportCity_PokemonFanClub_Text_17DA14, 4
goto SlateportCity_PokemonFanClub_EventScript_155808
end
@@ -50,15 +50,15 @@ SlateportCity_PokemonFanClub_EventScript_155808:: @ 8155808
msgbox SlateportCity_PokemonFanClub_Text_17DA49, 4
setvar 0x4001, 0
checkflag 204
- callif 0, SlateportCity_PokemonFanClub_EventScript_1559FE
+ call_if 0, SlateportCity_PokemonFanClub_EventScript_1559FE
checkflag 203
- callif 0, SlateportCity_PokemonFanClub_EventScript_1559E7
+ call_if 0, SlateportCity_PokemonFanClub_EventScript_1559E7
checkflag 202
- callif 0, SlateportCity_PokemonFanClub_EventScript_1559D0
+ call_if 0, SlateportCity_PokemonFanClub_EventScript_1559D0
checkflag 201
- callif 0, SlateportCity_PokemonFanClub_EventScript_1559B9
+ call_if 0, SlateportCity_PokemonFanClub_EventScript_1559B9
checkflag 200
- callif 0, SlateportCity_PokemonFanClub_EventScript_1559A2
+ call_if 0, SlateportCity_PokemonFanClub_EventScript_1559A2
bufferfirstpoke 0
switch 0x4001
case 0, SlateportCity_PokemonFanClub_EventScript_155899
@@ -86,7 +86,7 @@ SlateportCity_PokemonFanClub_EventScript_155899:: @ 8155899
SlateportCity_PokemonFanClub_EventScript_1558A3:: @ 81558A3
checkitemspace ITEM_RED_SCARF, 1
compare RESULT, 0
- jumpeq SlateportCity_PokemonFanClub_EventScript_155998
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_155998
msgbox SlateportCity_PokemonFanClub_Text_17DB89, 4
setflag 200
giveitem ITEM_RED_SCARF
@@ -97,7 +97,7 @@ SlateportCity_PokemonFanClub_EventScript_1558A3:: @ 81558A3
SlateportCity_PokemonFanClub_EventScript_1558D4:: @ 81558D4
checkitemspace ITEM_BLUE_SCARF, 1
compare RESULT, 0
- jumpeq SlateportCity_PokemonFanClub_EventScript_155998
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_155998
msgbox SlateportCity_PokemonFanClub_Text_17DB89, 4
setflag 201
giveitem ITEM_BLUE_SCARF
@@ -108,7 +108,7 @@ SlateportCity_PokemonFanClub_EventScript_1558D4:: @ 81558D4
SlateportCity_PokemonFanClub_EventScript_155905:: @ 8155905
checkitemspace ITEM_PINK_SCARF, 1
compare RESULT, 0
- jumpeq SlateportCity_PokemonFanClub_EventScript_155998
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_155998
msgbox SlateportCity_PokemonFanClub_Text_17DB89, 4
setflag 202
giveitem ITEM_PINK_SCARF
@@ -119,7 +119,7 @@ SlateportCity_PokemonFanClub_EventScript_155905:: @ 8155905
SlateportCity_PokemonFanClub_EventScript_155936:: @ 8155936
checkitemspace ITEM_GREEN_SCARF, 1
compare RESULT, 0
- jumpeq SlateportCity_PokemonFanClub_EventScript_155998
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_155998
msgbox SlateportCity_PokemonFanClub_Text_17DB89, 4
setflag 203
giveitem ITEM_GREEN_SCARF
@@ -130,7 +130,7 @@ SlateportCity_PokemonFanClub_EventScript_155936:: @ 8155936
SlateportCity_PokemonFanClub_EventScript_155967:: @ 8155967
checkitemspace ITEM_YELLOW_SCARF, 1
compare RESULT, 0
- jumpeq SlateportCity_PokemonFanClub_EventScript_155998
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_155998
msgbox SlateportCity_PokemonFanClub_Text_17DB89, 4
setflag 204
giveitem ITEM_YELLOW_SCARF
@@ -146,7 +146,7 @@ SlateportCity_PokemonFanClub_EventScript_155998:: @ 8155998
SlateportCity_PokemonFanClub_EventScript_1559A2:: @ 81559A2
specialval RESULT, CheckLeadMonCool
compare RESULT, 1
- callif 1, SlateportCity_PokemonFanClub_EventScript_1559B3
+ call_if 1, SlateportCity_PokemonFanClub_EventScript_1559B3
return
SlateportCity_PokemonFanClub_EventScript_1559B3:: @ 81559B3
@@ -156,7 +156,7 @@ SlateportCity_PokemonFanClub_EventScript_1559B3:: @ 81559B3
SlateportCity_PokemonFanClub_EventScript_1559B9:: @ 81559B9
specialval RESULT, CheckLeadMonBeauty
compare RESULT, 1
- callif 1, SlateportCity_PokemonFanClub_EventScript_1559CA
+ call_if 1, SlateportCity_PokemonFanClub_EventScript_1559CA
return
SlateportCity_PokemonFanClub_EventScript_1559CA:: @ 81559CA
@@ -166,7 +166,7 @@ SlateportCity_PokemonFanClub_EventScript_1559CA:: @ 81559CA
SlateportCity_PokemonFanClub_EventScript_1559D0:: @ 81559D0
specialval RESULT, CheckLeadMonCute
compare RESULT, 1
- callif 1, SlateportCity_PokemonFanClub_EventScript_1559E1
+ call_if 1, SlateportCity_PokemonFanClub_EventScript_1559E1
return
SlateportCity_PokemonFanClub_EventScript_1559E1:: @ 81559E1
@@ -176,7 +176,7 @@ SlateportCity_PokemonFanClub_EventScript_1559E1:: @ 81559E1
SlateportCity_PokemonFanClub_EventScript_1559E7:: @ 81559E7
specialval RESULT, CheckLeadMonSmart
compare RESULT, 1
- callif 1, SlateportCity_PokemonFanClub_EventScript_1559F8
+ call_if 1, SlateportCity_PokemonFanClub_EventScript_1559F8
return
SlateportCity_PokemonFanClub_EventScript_1559F8:: @ 81559F8
@@ -186,7 +186,7 @@ SlateportCity_PokemonFanClub_EventScript_1559F8:: @ 81559F8
SlateportCity_PokemonFanClub_EventScript_1559FE:: @ 81559FE
specialval RESULT, CheckLeadMonTough
compare RESULT, 1
- callif 1, SlateportCity_PokemonFanClub_EventScript_155A0F
+ call_if 1, SlateportCity_PokemonFanClub_EventScript_155A0F
return
SlateportCity_PokemonFanClub_EventScript_155A0F:: @ 8155A0F
@@ -197,11 +197,11 @@ SlateportCity_PokemonFanClub_EventScript_155A15:: @ 8155A15
lock
faceplayer
checkflag 278
- jumpeq SlateportCity_PokemonFanClub_EventScript_155A75
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_155A75
msgbox SlateportCity_PokemonFanClub_Text_17DE6B, 4
specialval RESULT, GetLeadMonFriendshipScore
compare RESULT, 4
- jumpif 4, SlateportCity_PokemonFanClub_EventScript_155A3A
+ goto_if 4, SlateportCity_PokemonFanClub_EventScript_155A3A
release
end
@@ -214,7 +214,7 @@ SlateportCity_PokemonFanClub_EventScript_155A3A:: @ 8155A3A
msgbox SlateportCity_PokemonFanClub_Text_17DF57, 4
giveitem ITEM_SOOTHE_BELL
compare RESULT, 0
- jumpeq SlateportCity_PokemonFanClub_EventScript_1A029B
+ goto_if_eq SlateportCity_PokemonFanClub_EventScript_1A029B
setflag 278
release
end
diff --git a/data/scripts/maps/SlateportCity_SternsShipyard_1F.inc b/data/scripts/maps/SlateportCity_SternsShipyard_1F.inc
index 4c0596d29..d585fb94c 100644
--- a/data/scripts/maps/SlateportCity_SternsShipyard_1F.inc
+++ b/data/scripts/maps/SlateportCity_SternsShipyard_1F.inc
@@ -4,13 +4,13 @@ SlateportCity_SternsShipyard_1F_MapScripts:: @ 8155335
SlateportCity_SternsShipyard_1F_EventScript_155336:: @ 8155336
lockall
checkflag 2052
- jumpeq SlateportCity_SternsShipyard_1F_EventScript_155388
+ goto_if_eq SlateportCity_SternsShipyard_1F_EventScript_155388
checkflag 2061
- jumpeq SlateportCity_SternsShipyard_1F_EventScript_15539C
+ goto_if_eq SlateportCity_SternsShipyard_1F_EventScript_15539C
checkflag 149
- jumpeq SlateportCity_SternsShipyard_1F_EventScript_1553CF
+ goto_if_eq SlateportCity_SternsShipyard_1F_EventScript_1553CF
checkflag 148
- jumpeq SlateportCity_SternsShipyard_1F_EventScript_1553B0
+ goto_if_eq SlateportCity_SternsShipyard_1F_EventScript_1553B0
msgbox SlateportCity_SternsShipyard_1F_Text_17C14B, 4
move 1, SlateportCity_SternsShipyard_1F_Movement_1A0839
waitmove 0
diff --git a/data/scripts/maps/SootopolisCity.inc b/data/scripts/maps/SootopolisCity.inc
index 0c22fbc37..d718fed6e 100644
--- a/data/scripts/maps/SootopolisCity.inc
+++ b/data/scripts/maps/SootopolisCity.inc
@@ -6,9 +6,9 @@ SootopolisCity_MapScripts:: @ 814D07D
SootopolisCity_MapScript1_14D08D:: @ 814D08D
checkflag 129
- callif 0, SootopolisCity_EventScript_14D0A0
+ call_if 0, SootopolisCity_EventScript_14D0A0
checkflag 129
- callif 1, SootopolisCity_EventScript_14D0B1
+ call_if 1, SootopolisCity_EventScript_14D0B1
end
SootopolisCity_EventScript_14D0A0:: @ 814D0A0
@@ -18,7 +18,7 @@ SootopolisCity_EventScript_14D0A0:: @ 814D0A0
SootopolisCity_EventScript_14D0B1:: @ 814D0B1
checkflag 113
- callif 0, SootopolisCity_EventScript_14D0BB
+ call_if 0, SootopolisCity_EventScript_14D0BB
return
SootopolisCity_EventScript_14D0BB:: @ 814D0BB
@@ -36,9 +36,9 @@ SootopolisCity_EventScript_14D0BB:: @ 814D0BB
SootopolisCity_MapScript1_14D10D:: @ 814D10D
setflag 2077
checkflag 113
- callif 1, SootopolisCity_EventScript_14D159
+ call_if 1, SootopolisCity_EventScript_14D159
checkflag 2090
- callif 1, SootopolisCity_EventScript_14D123
+ call_if 1, SootopolisCity_EventScript_14D123
end
SootopolisCity_EventScript_14D123:: @ 814D123
@@ -46,7 +46,7 @@ SootopolisCity_EventScript_14D123:: @ 814D123
movespriteperm 1, 29, 19
movespriteperm 2, 33, 19
compare 0x405e, 1
- callif 1, SootopolisCity_EventScript_14D142
+ call_if 1, SootopolisCity_EventScript_14D142
return
SootopolisCity_EventScript_14D142:: @ 814D142
@@ -69,7 +69,7 @@ SootopolisCity_EventScript_14D16E:: @ 814D16E
lock
faceplayer
checkflag 113
- jumpeq SootopolisCity_EventScript_14D183
+ goto_if_eq SootopolisCity_EventScript_14D183
msgbox SootopolisCity_Text_1696A4, 4
release
end
@@ -93,27 +93,27 @@ SootopolisCity_EventScript_14D19F:: @ 814D19F
checkdailyflags
special GetPlayerBigGuyGirlString
checkflag 2258
- jumpeq SootopolisCity_EventScript_14D241
+ goto_if_eq SootopolisCity_EventScript_14D241
msgbox SootopolisCity_Text_1C63F2, 4
random 10
addvar RESULT, 20
addvar RESULT, 133
giveitem RESULT
compare RESULT, 0
- jumpeq SootopolisCity_EventScript_1A029B
+ goto_if_eq SootopolisCity_EventScript_1A029B
setflag 2258
msgbox SootopolisCity_Text_1C64D0, 4
random 2
compare RESULT, 0
- jumpeq SootopolisCity_EventScript_14D1FF
+ goto_if_eq SootopolisCity_EventScript_14D1FF
compare RESULT, 1
- jumpeq SootopolisCity_EventScript_14D220
+ goto_if_eq SootopolisCity_EventScript_14D220
end
SootopolisCity_EventScript_14D1FF:: @ 814D1FF
giveitem ITEM_FIGY_BERRY
compare RESULT, 0
- jumpeq SootopolisCity_EventScript_1A029B
+ goto_if_eq SootopolisCity_EventScript_1A029B
msgbox SootopolisCity_Text_1C650B, 4
release
end
@@ -121,7 +121,7 @@ SootopolisCity_EventScript_14D1FF:: @ 814D1FF
SootopolisCity_EventScript_14D220:: @ 814D220
giveitem ITEM_IAPAPA_BERRY
compare RESULT, 0
- jumpeq SootopolisCity_EventScript_1A029B
+ goto_if_eq SootopolisCity_EventScript_1A029B
msgbox SootopolisCity_Text_1C650B, 4
release
end
@@ -129,7 +129,7 @@ SootopolisCity_EventScript_14D220:: @ 814D220
SootopolisCity_EventScript_14D241:: @ 814D241
msgbox SootopolisCity_Text_1C6540, 5
compare RESULT, 1
- jumpeq SootopolisCity_EventScript_14D25E
+ goto_if_eq SootopolisCity_EventScript_14D25E
msgbox SootopolisCity_Text_1C6626, 4
release
end
@@ -143,7 +143,7 @@ SootopolisCity_EventScript_14D268:: @ 814D268
lock
faceplayer
checkflag 1236
- jumpeq SootopolisCity_EventScript_14D27D
+ goto_if_eq SootopolisCity_EventScript_14D27D
msgbox SootopolisCity_Text_16A4D6, 4
release
end
@@ -157,7 +157,7 @@ SootopolisCity_EventScript_14D287:: @ 814D287
lock
faceplayer
checkflag 113
- jumpeq SootopolisCity_EventScript_14D29C
+ goto_if_eq SootopolisCity_EventScript_14D29C
msgbox SootopolisCity_Text_169813, 4
release
end
@@ -171,7 +171,7 @@ SootopolisCity_EventScript_14D2A6:: @ 814D2A6
lock
faceplayer
checkflag 113
- jumpeq SootopolisCity_EventScript_14D2BB
+ goto_if_eq SootopolisCity_EventScript_14D2BB
msgbox SootopolisCity_Text_1698A0, 4
release
end
@@ -185,7 +185,7 @@ SootopolisCity_EventScript_14D2C5:: @ 814D2C5
lock
faceplayer
checkflag 113
- jumpeq SootopolisCity_EventScript_14D2DA
+ goto_if_eq SootopolisCity_EventScript_14D2DA
msgbox SootopolisCity_Text_1697A7, 4
release
end
@@ -446,7 +446,7 @@ SootopolisCity_EventScript_14D498:: @ 814D498
lock
faceplayer
checkflag 113
- jumpeq SootopolisCity_EventScript_14D4AD
+ goto_if_eq SootopolisCity_EventScript_14D4AD
.ifdef SAPPHIRE
msgbox SootopolisCity_Text_169DA6, 4
.else
diff --git a/data/scripts/maps/SootopolisCity_Gym_1F.inc b/data/scripts/maps/SootopolisCity_Gym_1F.inc
index 9fe6da43d..d776e8ecf 100644
--- a/data/scripts/maps/SootopolisCity_Gym_1F.inc
+++ b/data/scripts/maps/SootopolisCity_Gym_1F.inc
@@ -20,11 +20,11 @@ SootopolisCity_Gym_1F_MapScript1_15AF25:: @ 815AF25
SootopolisCity_Gym_1F_EventScript_15AF2E:: @ 815AF2E
compare 0x4022, 8
- jumpif 0, SootopolisCity_Gym_1F_EventScript_15AF85
+ goto_if 0, SootopolisCity_Gym_1F_EventScript_15AF85
compare 0x4022, 28
- jumpif 0, SootopolisCity_Gym_1F_EventScript_15AF73
+ goto_if 0, SootopolisCity_Gym_1F_EventScript_15AF73
compare 0x4022, 69
- jumpif 0, SootopolisCity_Gym_1F_EventScript_15AF61
+ goto_if 0, SootopolisCity_Gym_1F_EventScript_15AF61
setmaptile 8, 4, 519, 0
setmaptile 8, 5, 519, 0
@@ -88,9 +88,9 @@ SootopolisCity_Gym_1F_Movement_15AFFD:: @ 815AFFD
SootopolisCity_Gym_1F_EventScript_15AFFF:: @ 815AFFF
trainerbattle 1, OPPONENT_WALLACE, 0, SootopolisCity_Gym_1F_Text_18F0CA, SootopolisCity_Gym_1F_Text_18F282, SootopolisCity_Gym_1F_EventScript_15B02D
checkflag 172
- jumpif 0, SootopolisCity_Gym_1F_EventScript_15B056
+ goto_if 0, SootopolisCity_Gym_1F_EventScript_15B056
checkflag 2060
- jumpif 0, SootopolisCity_Gym_1F_EventScript_15B07A
+ goto_if 0, SootopolisCity_Gym_1F_EventScript_15B07A
msgbox SootopolisCity_Gym_1F_Text_18F4D7, 4
release
end
@@ -110,7 +110,7 @@ SootopolisCity_Gym_1F_EventScript_15B02D:: @ 815B02D
SootopolisCity_Gym_1F_EventScript_15B056:: @ 815B056
giveitem ITEM_TM03
compare RESULT, 0
- jumpeq SootopolisCity_Gym_1F_EventScript_1A029B
+ goto_if_eq SootopolisCity_Gym_1F_EventScript_1A029B
msgbox SootopolisCity_Gym_1F_Text_18F466, 4
setflag 172
release
@@ -125,7 +125,7 @@ SootopolisCity_Gym_1F_EventScript_15B084:: @ 815B084
lock
faceplayer
checkflag 1236
- jumpeq SootopolisCity_Gym_1F_EventScript_15B099
+ goto_if_eq SootopolisCity_Gym_1F_EventScript_15B099
msgbox SootopolisCity_Gym_1F_Text_18E8A5, 4
release
end
@@ -138,14 +138,14 @@ SootopolisCity_Gym_1F_EventScript_15B099:: @ 815B099
SootopolisCity_Gym_1F_EventScript_15B0A3:: @ 815B0A3
lockall
checkflag 2062
- jumpeq SootopolisCity_Gym_1F_EventScript_15B0C3
+ goto_if_eq SootopolisCity_Gym_1F_EventScript_15B0C3
goto SootopolisCity_Gym_1F_EventScript_15B0CD
end
SootopolisCity_Gym_1F_EventScript_15B0B3:: @ 815B0B3
lockall
checkflag 2062
- jumpeq SootopolisCity_Gym_1F_EventScript_15B0C3
+ goto_if_eq SootopolisCity_Gym_1F_EventScript_15B0C3
goto SootopolisCity_Gym_1F_EventScript_15B0CD
end
diff --git a/data/scripts/maps/SootopolisCity_House1.inc b/data/scripts/maps/SootopolisCity_House1.inc
index 604f04c4f..e01a00d97 100644
--- a/data/scripts/maps/SootopolisCity_House1.inc
+++ b/data/scripts/maps/SootopolisCity_House1.inc
@@ -5,7 +5,7 @@ SootopolisCity_House1_EventScript_15B29B:: @ 815B29B
lock
faceplayer
checkflag 121
- jumpeq SootopolisCity_House1_EventScript_15B2C7
+ goto_if_eq SootopolisCity_House1_EventScript_15B2C7
msgbox SootopolisCity_House1_Text_18F991, 4
giveitem ITEM_TM31
setflag 121
diff --git a/data/scripts/maps/SootopolisCity_House2.inc b/data/scripts/maps/SootopolisCity_House2.inc
index 409a871a8..011806291 100644
--- a/data/scripts/maps/SootopolisCity_House2.inc
+++ b/data/scripts/maps/SootopolisCity_House2.inc
@@ -6,9 +6,9 @@ SootopolisCity_House2_EventScript_15B2E5:: @ 815B2E5
faceplayer
msgbox SootopolisCity_House2_Text_18FA66, 5
compare RESULT, 1
- callif 1, SootopolisCity_House2_EventScript_15B307
+ call_if 1, SootopolisCity_House2_EventScript_15B307
compare RESULT, 0
- callif 1, SootopolisCity_House2_EventScript_15B310
+ call_if 1, SootopolisCity_House2_EventScript_15B310
release
end
diff --git a/data/scripts/maps/SootopolisCity_House3.inc b/data/scripts/maps/SootopolisCity_House3.inc
index 88e35730e..f1bf0bf19 100644
--- a/data/scripts/maps/SootopolisCity_House3.inc
+++ b/data/scripts/maps/SootopolisCity_House3.inc
@@ -6,7 +6,7 @@ SootopolisCity_House3_EventScript_15B31A:: @ 815B31A
faceplayer
msgbox SootopolisCity_House3_Text_18FB36, 5
compare RESULT, 1
- jumpeq SootopolisCity_House3_EventScript_15B339
+ goto_if_eq SootopolisCity_House3_EventScript_15B339
msgbox SootopolisCity_House3_Text_18FBC0, 4
release
end
diff --git a/data/scripts/maps/SootopolisCity_House6.inc b/data/scripts/maps/SootopolisCity_House6.inc
index cccfa78ee..1e1b53956 100644
--- a/data/scripts/maps/SootopolisCity_House6.inc
+++ b/data/scripts/maps/SootopolisCity_House6.inc
@@ -5,14 +5,14 @@ SootopolisCity_House6_EventScript_15B386:: @ 815B386
lock
faceplayer
checkflag 245
- jumpeq SootopolisCity_House6_EventScript_15B3CD
+ goto_if_eq SootopolisCity_House6_EventScript_15B3CD
msgbox SootopolisCity_House6_Text_18FEA1, 5
compare RESULT, 0
- callif 1, SootopolisCity_House6_EventScript_15B3C3
+ call_if 1, SootopolisCity_House6_EventScript_15B3C3
msgbox SootopolisCity_House6_Text_18FF12, 4
givedecoration 117
compare RESULT, 0
- jumpeq SootopolisCity_House6_EventScript_15B3D7
+ goto_if_eq SootopolisCity_House6_EventScript_15B3D7
setflag 245
release
end
diff --git a/data/scripts/maps/SootopolisCity_House8.inc b/data/scripts/maps/SootopolisCity_House8.inc
index 9d7618316..662117741 100644
--- a/data/scripts/maps/SootopolisCity_House8.inc
+++ b/data/scripts/maps/SootopolisCity_House8.inc
@@ -10,14 +10,14 @@ SootopolisCity_House8_EventScript_15B401:: @ 815B401
waitstate
copyvar RESULT, 0x8004
compare RESULT, 255
- jumpeq SootopolisCity_House8_EventScript_15B448
+ goto_if_eq SootopolisCity_House8_EventScript_15B448
special CompareShroomishSize
compare RESULT, 1
- jumpeq SootopolisCity_House8_EventScript_15B452
+ goto_if_eq SootopolisCity_House8_EventScript_15B452
compare RESULT, 2
- jumpeq SootopolisCity_House8_EventScript_15B45C
+ goto_if_eq SootopolisCity_House8_EventScript_15B45C
compare RESULT, 3
- jumpeq SootopolisCity_House8_EventScript_15B466
+ goto_if_eq SootopolisCity_House8_EventScript_15B466
release
end
@@ -40,7 +40,7 @@ SootopolisCity_House8_EventScript_15B466:: @ 815B466
msgbox SootopolisCity_House8_Text_19021D, 4
giveitem ITEM_ELIXIR
compare RESULT, 0
- jumpeq SootopolisCity_House8_EventScript_15B488
+ goto_if_eq SootopolisCity_House8_EventScript_15B488
closebutton
release
end
@@ -59,14 +59,14 @@ SootopolisCity_House8_EventScript_15B492:: @ 815B492
waitstate
copyvar RESULT, 0x8004
compare RESULT, 255
- jumpeq SootopolisCity_House8_EventScript_15B4D9
+ goto_if_eq SootopolisCity_House8_EventScript_15B4D9
special CompareBarboachSize
compare RESULT, 1
- jumpeq SootopolisCity_House8_EventScript_15B4E3
+ goto_if_eq SootopolisCity_House8_EventScript_15B4E3
compare RESULT, 2
- jumpeq SootopolisCity_House8_EventScript_15B4ED
+ goto_if_eq SootopolisCity_House8_EventScript_15B4ED
compare RESULT, 3
- jumpeq SootopolisCity_House8_EventScript_15B4F7
+ goto_if_eq SootopolisCity_House8_EventScript_15B4F7
release
end
@@ -89,7 +89,7 @@ SootopolisCity_House8_EventScript_15B4F7:: @ 815B4F7
msgbox SootopolisCity_House8_Text_190536, 4
giveitem ITEM_ELIXIR
compare RESULT, 0
- jumpeq SootopolisCity_House8_EventScript_15B519
+ goto_if_eq SootopolisCity_House8_EventScript_15B519
closebutton
release
end
diff --git a/data/scripts/maps/SootopolisCity_Mart.inc b/data/scripts/maps/SootopolisCity_Mart.inc
index 9f37f9d0b..6cfb2ff79 100644
--- a/data/scripts/maps/SootopolisCity_Mart.inc
+++ b/data/scripts/maps/SootopolisCity_Mart.inc
@@ -30,9 +30,9 @@ SootopolisCity_Mart_EventScript_15B24A:: @ 815B24A
lock
faceplayer
checkflag 113
- jumpeq SootopolisCity_Mart_EventScript_15B268
+ goto_if_eq SootopolisCity_Mart_EventScript_15B268
checkflag 129
- jumpif 0, SootopolisCity_Mart_EventScript_15B268
+ goto_if 0, SootopolisCity_Mart_EventScript_15B268
msgbox SootopolisCity_Mart_Text_18F8D7, 4
release
end
@@ -46,9 +46,9 @@ SootopolisCity_Mart_EventScript_15B272:: @ 815B272
lock
faceplayer
checkflag 113
- jumpeq SootopolisCity_Mart_EventScript_15B290
+ goto_if_eq SootopolisCity_Mart_EventScript_15B290
checkflag 129
- jumpif 0, SootopolisCity_Mart_EventScript_15B290
+ goto_if 0, SootopolisCity_Mart_EventScript_15B290
msgbox SootopolisCity_Mart_Text_18F96B, 4
release
end
diff --git a/data/scripts/maps/SootopolisCity_PokemonCenter_1F.inc b/data/scripts/maps/SootopolisCity_PokemonCenter_1F.inc
index 29cc06584..00c9d3310 100644
--- a/data/scripts/maps/SootopolisCity_PokemonCenter_1F.inc
+++ b/data/scripts/maps/SootopolisCity_PokemonCenter_1F.inc
@@ -18,9 +18,9 @@ SootopolisCity_PokemonCenter_1F_EventScript_15B1A8:: @ 815B1A8
lock
faceplayer
checkflag 113
- jumpeq SootopolisCity_PokemonCenter_1F_EventScript_15B1C6
+ goto_if_eq SootopolisCity_PokemonCenter_1F_EventScript_15B1C6
checkflag 129
- jumpif 0, SootopolisCity_PokemonCenter_1F_EventScript_15B1C6
+ goto_if 0, SootopolisCity_PokemonCenter_1F_EventScript_15B1C6
msgbox SootopolisCity_PokemonCenter_1F_Text_18F770, 4
release
end
@@ -34,9 +34,9 @@ SootopolisCity_PokemonCenter_1F_EventScript_15B1D0:: @ 815B1D0
lock
faceplayer
checkflag 113
- jumpeq SootopolisCity_PokemonCenter_1F_EventScript_15B1EE
+ goto_if_eq SootopolisCity_PokemonCenter_1F_EventScript_15B1EE
checkflag 129
- jumpif 0, SootopolisCity_PokemonCenter_1F_EventScript_15B1EE
+ goto_if 0, SootopolisCity_PokemonCenter_1F_EventScript_15B1EE
msgbox SootopolisCity_PokemonCenter_1F_Text_18F860, 4
release
end
diff --git a/data/scripts/maps/SouthernIsland_Exterior.inc b/data/scripts/maps/SouthernIsland_Exterior.inc
index 9723647cd..fc7d811c4 100644
--- a/data/scripts/maps/SouthernIsland_Exterior.inc
+++ b/data/scripts/maps/SouthernIsland_Exterior.inc
@@ -11,7 +11,7 @@ SouthernIsland_Exterior_EventScript_160AE0:: @ 8160AE0
faceplayer
msgbox SouthernIsland_Exterior_Text_1C5215, 5
compare RESULT, 0
- jumpeq SouthernIsland_Exterior_EventScript_160B25
+ goto_if_eq SouthernIsland_Exterior_EventScript_160B25
msgbox SouthernIsland_Exterior_Text_1C5281, 4
closebutton
move LAST_TALKED, SouthernIsland_Exterior_Movement_1A0845
diff --git a/data/scripts/maps/SouthernIsland_Interior.inc b/data/scripts/maps/SouthernIsland_Interior.inc
index f341f5aeb..84e6b93c5 100644
--- a/data/scripts/maps/SouthernIsland_Interior.inc
+++ b/data/scripts/maps/SouthernIsland_Interior.inc
@@ -5,7 +5,7 @@ SouthernIsland_Interior_MapScripts:: @ 8160B53
SouthernIsland_Interior_MapScript1_160B5E:: @ 8160B5E
checkflag 2145
- callif 1, SouthernIsland_Interior_EventScript_160B68
+ call_if 1, SouthernIsland_Interior_EventScript_160B68
end
SouthernIsland_Interior_EventScript_160B68:: @ 8160B68
@@ -24,9 +24,9 @@ SouthernIsland_Interior_MapScript1_160B6C:: @ 8160B6C
SouthernIsland_Interior_EventScript_160B77:: @ 8160B77
checkgender
compare RESULT, 0
- jumpeq SouthernIsland_Interior_EventScript_160B8F
+ goto_if_eq SouthernIsland_Interior_EventScript_160B8F
compare RESULT, 1
- jumpeq SouthernIsland_Interior_EventScript_160B95
+ goto_if_eq SouthernIsland_Interior_EventScript_160B95
end
SouthernIsland_Interior_EventScript_160B8F:: @ 8160B8F
@@ -45,9 +45,9 @@ SouthernIsland_Interior_EventScript_160B9B:: @ 8160B9B
SouthernIsland_Interior_EventScript_160BA7:: @ 8160BA7
checkflag 206
- jumpeq SouthernIsland_Interior_EventScript_160C08
+ goto_if_eq SouthernIsland_Interior_EventScript_160C08
checkflag 2131
- jumpif 0, SouthernIsland_Interior_EventScript_160C08
+ goto_if 0, SouthernIsland_Interior_EventScript_160C08
setflag 206
special SpawnCameraDummy
move 127, SouthernIsland_Interior_Movement_160C12
diff --git a/data/scripts/maps/Underwater_SeafloorCavern.inc b/data/scripts/maps/Underwater_SeafloorCavern.inc
index c879ec609..8ef61d0f0 100644
--- a/data/scripts/maps/Underwater_SeafloorCavern.inc
+++ b/data/scripts/maps/Underwater_SeafloorCavern.inc
@@ -7,7 +7,7 @@ Underwater_SeafloorCavern_MapScripts:: @ 815D99E
Underwater_SeafloorCavern_MapScript1_15D9AE:: @ 815D9AE
setflag 2119
checkflag 129
- jumpeq Underwater_SeafloorCavern_EventScript_15D9BB
+ goto_if_eq Underwater_SeafloorCavern_EventScript_15D9BB
end
Underwater_SeafloorCavern_EventScript_15D9BB:: @ 815D9BB
@@ -16,7 +16,7 @@ Underwater_SeafloorCavern_EventScript_15D9BB:: @ 815D9BB
Underwater_SeafloorCavern_MapScript1_15D9BF:: @ 815D9BF
checkflag 129
- callif 1, Underwater_SeafloorCavern_EventScript_15D9C9
+ call_if 1, Underwater_SeafloorCavern_EventScript_15D9C9
end
Underwater_SeafloorCavern_EventScript_15D9C9:: @ 815D9C9
diff --git a/data/scripts/maps/Underwater_SealedChamber.inc b/data/scripts/maps/Underwater_SealedChamber.inc
index bbd0db9d9..4e2895166 100644
--- a/data/scripts/maps/Underwater_SealedChamber.inc
+++ b/data/scripts/maps/Underwater_SealedChamber.inc
@@ -5,9 +5,9 @@ Underwater_SealedChamber_MapScripts:: @ 815F080
Underwater_SealedChamber_MapScript1_15F086:: @ 815F086
getplayerxy 0x8004, 0x8005
compare 0x8004, 12
- jumpif 5, Underwater_SealedChamber_EventScript_15F0A6
+ goto_if 5, Underwater_SealedChamber_EventScript_15F0A6
compare 0x8005, 44
- jumpif 5, Underwater_SealedChamber_EventScript_15F0A6
+ goto_if 5, Underwater_SealedChamber_EventScript_15F0A6
goto Underwater_SealedChamber_EventScript_15F0AF
Underwater_SealedChamber_EventScript_15F0A6:: @ 815F0A6
diff --git a/data/scripts/maps/UnknownMap_25_34.inc b/data/scripts/maps/UnknownMap_25_34.inc
index cbd782f35..52aca6d12 100644
--- a/data/scripts/maps/UnknownMap_25_34.inc
+++ b/data/scripts/maps/UnknownMap_25_34.inc
@@ -14,15 +14,15 @@ LinkContestRoom1_MapScript1_15F595:: @ 815F595
LinkContestRoom1_EventScript_15F5A5:: @ 815F5A5
special ScriptGetMultiplayerId
compare RESULT, 0
- callif 1, LinkContestRoom1_EventScript_15F5E0
+ call_if 1, LinkContestRoom1_EventScript_15F5E0
compare RESULT, 1
- callif 1, LinkContestRoom1_EventScript_15F5E4
+ call_if 1, LinkContestRoom1_EventScript_15F5E4
compare RESULT, 2
- callif 1, LinkContestRoom1_EventScript_15F5E8
+ call_if 1, LinkContestRoom1_EventScript_15F5E8
compare RESULT, 3
- callif 1, LinkContestRoom1_EventScript_15F5EC
+ call_if 1, LinkContestRoom1_EventScript_15F5EC
compare RESULT, 4
- callif 1, LinkContestRoom1_EventScript_15F5F0
+ call_if 1, LinkContestRoom1_EventScript_15F5F0
return
LinkContestRoom1_EventScript_15F5E0:: @ 815F5E0
@@ -47,7 +47,7 @@ LinkContestRoom1_EventScript_15F5F0:: @ 815F5F0
LinkContestRoom1_MapScript1_15F5F4:: @ 815F5F4
compare 0x4009, 1
- callif 1, LinkContestRoom1_EventScript_15F600
+ call_if 1, LinkContestRoom1_EventScript_15F600
end
LinkContestRoom1_EventScript_15F600:: @ 815F600
@@ -76,7 +76,7 @@ LinkContestRoom1_EventScript_15F630:: @ 815F630
call LinkContestRoom1_EventScript_15F6E6
call LinkContestRoom1_EventScript_15F646
compare 0x4000, 8
- jumpif 0, LinkContestRoom1_EventScript_15F630
+ goto_if 0, LinkContestRoom1_EventScript_15F630
return
LinkContestRoom1_EventScript_15F646:: @ 815F646
@@ -415,9 +415,9 @@ SlateportCity_ContestLobby_EventScript_15FBDB:: @ 815FBDB
VerdanturfTown_ContestLobby_EventScript_15FBDB:: @ 815FBDB
checkgender
compare RESULT, 0
- jumpeq FallarborTown_ContestLobby_EventScript_15FBF3
+ goto_if_eq FallarborTown_ContestLobby_EventScript_15FBF3
compare RESULT, 1
- jumpeq FallarborTown_ContestLobby_EventScript_15FBF9
+ goto_if_eq FallarborTown_ContestLobby_EventScript_15FBF9
return
FallarborTown_ContestLobby_EventScript_15FBF3:: @ 815FBF3
diff --git a/data/scripts/maps/VerdanturfTown.inc b/data/scripts/maps/VerdanturfTown.inc
index 610643823..66aa080ba 100644
--- a/data/scripts/maps/VerdanturfTown.inc
+++ b/data/scripts/maps/VerdanturfTown.inc
@@ -12,7 +12,7 @@ VerdanturfTown_EventScript_14E866:: @ 814E866
lock
faceplayer
checkflag 199
- jumpeq VerdanturfTown_EventScript_14E885
+ goto_if_eq VerdanturfTown_EventScript_14E885
msgbox VerdanturfTown_Text_16CAEB, 4
move 2, VerdanturfTown_Movement_1A083D
waitmove 0
@@ -38,7 +38,7 @@ VerdanturfTown_EventScript_14E8AB:: @ 814E8AB
lock
faceplayer
checkflag 199
- jumpeq VerdanturfTown_EventScript_14E8C0
+ goto_if_eq VerdanturfTown_EventScript_14E8C0
msgbox VerdanturfTown_Text_16CD4D, 4
release
end
diff --git a/data/scripts/maps/VerdanturfTown_ContestLobby.inc b/data/scripts/maps/VerdanturfTown_ContestLobby.inc
index 8fd4016d1..00454133d 100644
--- a/data/scripts/maps/VerdanturfTown_ContestLobby.inc
+++ b/data/scripts/maps/VerdanturfTown_ContestLobby.inc
@@ -102,11 +102,11 @@ VerdanturfTown_ContestLobby_EventScript_153E47:: @ 8153E47
lock
faceplayer
checkflag 235
- jumpeq VerdanturfTown_ContestLobby_EventScript_153E76
+ goto_if_eq VerdanturfTown_ContestLobby_EventScript_153E76
msgbox VerdanturfTown_ContestLobby_Text_177DEC, 4
giveitem ITEM_TM45
compare RESULT, 0
- jumpeq VerdanturfTown_ContestLobby_EventScript_1A029B
+ goto_if_eq VerdanturfTown_ContestLobby_EventScript_1A029B
setflag 235
release
end
diff --git a/data/scripts/maps/VerdanturfTown_WandasHouse.inc b/data/scripts/maps/VerdanturfTown_WandasHouse.inc
index 80bd6151d..fad64292b 100644
--- a/data/scripts/maps/VerdanturfTown_WandasHouse.inc
+++ b/data/scripts/maps/VerdanturfTown_WandasHouse.inc
@@ -5,7 +5,7 @@ VerdanturfTown_WandasHouse_EventScript_153F5B:: @ 8153F5B
lock
faceplayer
checkflag 193
- jumpeq VerdanturfTown_WandasHouse_EventScript_153F73
+ goto_if_eq VerdanturfTown_WandasHouse_EventScript_153F73
msgbox VerdanturfTown_WandasHouse_Text_1783F6, 4
setflag 193
release
@@ -20,9 +20,9 @@ VerdanturfTown_WandasHouse_EventScript_153F7D:: @ 8153F7D
lock
faceplayer
checkflag 126
- jumpeq VerdanturfTown_WandasHouse_EventScript_153FA5
+ goto_if_eq VerdanturfTown_WandasHouse_EventScript_153FA5
checkflag 1213
- jumpeq VerdanturfTown_WandasHouse_EventScript_153F9B
+ goto_if_eq VerdanturfTown_WandasHouse_EventScript_153F9B
msgbox VerdanturfTown_WandasHouse_Text_17859A, 4
release
end
@@ -45,9 +45,9 @@ VerdanturfTown_WandasHouse_EventScript_153FB8:: @ 8153FB8
lock
faceplayer
checkflag 1213
- jumpeq VerdanturfTown_WandasHouse_EventScript_153FE0
+ goto_if_eq VerdanturfTown_WandasHouse_EventScript_153FE0
checkflag 190
- jumpeq VerdanturfTown_WandasHouse_EventScript_153FD6
+ goto_if_eq VerdanturfTown_WandasHouse_EventScript_153FD6
msgbox VerdanturfTown_WandasHouse_Text_1787FB, 4
release
end
@@ -66,11 +66,11 @@ VerdanturfTown_WandasHouse_EventScript_153FEA:: @ 8153FEA
lock
faceplayer
checkflag 126
- jumpeq VerdanturfTown_WandasHouse_EventScript_154025
+ goto_if_eq VerdanturfTown_WandasHouse_EventScript_154025
checkflag 1213
- jumpeq VerdanturfTown_WandasHouse_EventScript_15401B
+ goto_if_eq VerdanturfTown_WandasHouse_EventScript_15401B
checkflag 199
- jumpeq VerdanturfTown_WandasHouse_EventScript_154011
+ goto_if_eq VerdanturfTown_WandasHouse_EventScript_154011
msgbox VerdanturfTown_WandasHouse_Text_1788B1, 4
release
end
diff --git a/data/scripts/maps/VictoryRoad_1F.inc b/data/scripts/maps/VictoryRoad_1F.inc
index 3eae03f37..7ea560d0d 100644
--- a/data/scripts/maps/VictoryRoad_1F.inc
+++ b/data/scripts/maps/VictoryRoad_1F.inc
@@ -4,7 +4,7 @@ VictoryRoad_1F_MapScripts:: @ 815DE83
VictoryRoad_1F_MapScript1_15DE89:: @ 815DE89
checkflag 126
- callif 1, VictoryRoad_1F_EventScript_15DE93
+ call_if 1, VictoryRoad_1F_EventScript_15DE93
end
VictoryRoad_1F_EventScript_15DE93:: @ 815DE93
@@ -95,7 +95,7 @@ VictoryRoad_1F_EventScript_15DF31:: @ 815DF31
trainerbattle 0, OPPONENT_WALLY_3, 0, VictoryRoad_1F_Text_1979BA, VictoryRoad_1F_Text_197A23
specialval RESULT, sub_8082C68
compare RESULT, 1
- jumpeq VictoryRoad_1F_EventScript_15DF58
+ goto_if_eq VictoryRoad_1F_EventScript_15DF58
msgbox VictoryRoad_1F_Text_197A47, 6
end
diff --git a/data/scripts/mauville_man.inc b/data/scripts/mauville_man.inc
index 38378eb2e..6202a8acf 100644
--- a/data/scripts/mauville_man.inc
+++ b/data/scripts/mauville_man.inc
@@ -27,9 +27,9 @@ SpeakToBard:
faceplayer
msgbox gTextBard_HiImTheBard, MSGBOX_YESNO
compare RESULT, YES
- jumpeq yes_hear_song
+ goto_if_eq yes_hear_song
compare RESULT, NO
- jumpeq dont_hear_song
+ goto_if_eq dont_hear_song
end
yes_hear_song:
@@ -40,7 +40,7 @@ yes_hear_song:
special ScrSpecial_HasBardSongBeenChanged
compare RESULT, FALSE
@ Prompt new lyrics only if song hasn't been changed
- jumpeq prompt_write_lyrics
+ goto_if_eq prompt_write_lyrics
msgbox gTextBard_OhWhatAMovingSong, 4
release
end
@@ -53,9 +53,9 @@ dont_hear_song:
prompt_write_lyrics:
msgbox gTextBard_SoHowDoYouLikeMySong, MSGBOX_YESNO
compare RESULT, YES
- jumpeq write_lyrics
+ goto_if_eq write_lyrics
compare RESULT, NO
- jumpeq dont_write_lyrics
+ goto_if_eq dont_write_lyrics
end
write_lyrics:
@@ -64,7 +64,7 @@ write_lyrics:
lock
faceplayer
compare RESULT, NO
- jumpeq dont_write_lyrics
+ goto_if_eq dont_write_lyrics
msgbox gTextBard_ThankYouKindly, 4
setvar 0x8004, 1
@ Give the player ear rape again
@@ -72,7 +72,7 @@ write_lyrics:
pause 60
msgbox gTextBard_WasThatHowYouWanted, MSGBOX_YESNO
compare RESULT, NO
- jumpeq write_lyrics @ Keep looping until player responds YES
+ goto_if_eq write_lyrics @ Keep looping until player responds YES
special ScrSpecial_SaveBardSongLyrics
msgbox gTextBard_OkayThatsIt, 4
release
@@ -95,7 +95,7 @@ SpeakToHipster:
msgbox gTextHipster_TheyCallMeTheHipster, 4
special ScrSpecial_GetHipsterSpokenFlag
compare RESULT, FALSE
- jumpeq hipster_first_time
+ goto_if_eq hipster_first_time
msgbox gTextHipster_TaughtYouAlready, 4
release
end
@@ -103,7 +103,7 @@ SpeakToHipster:
hipster_first_time:
special ScrSpecial_HipsterTeachWord
compare RESULT, TRUE @ TRUE if player learned a new word
- jumpeq teach_new_word
+ goto_if_eq teach_new_word
msgbox gTextHipster_YouAlreadyKnowALot, 4
release
end
@@ -126,10 +126,10 @@ SpeakToTrader:
faceplayer
msgbox gTextTrader_Introduction, MSGBOX_YESNO
compare RESULT, NO
- jumpeq dont_want_to_trade
+ goto_if_eq dont_want_to_trade
special ScrSpecial_GetTraderTradedFlag
compare RESULT, TRUE
- jumpeq already_traded
+ goto_if_eq already_traded
message gTextTrader_MenuPrompt
waittext
goto do_trader_menu_get
@@ -147,15 +147,15 @@ do_trader_menu_get:
special ScrSpecial_TraderMenuGetDecoration
waitstate
compare 0x8004, 0
- jumpeq cancelled_get_menu
+ goto_if_eq cancelled_get_menu
compare 0x8004, 65535
- jumpeq rare_item_cant_trade_away
+ goto_if_eq rare_item_cant_trade_away
msgbox gTextTrader_ItemOnceBelongedTo, MSGBOX_YESNO
compare RESULT, NO
- jumpeq dont_want_item
+ goto_if_eq dont_want_item
special ScrSpecial_DoesPlayerHaveNoDecorations
compare RESULT, TRUE
- jumpeq player_has_no_decorations
+ goto_if_eq player_has_no_decorations
goto do_trader_menu_give
end
@@ -184,15 +184,15 @@ do_trader_menu_give:
special ScrSpecial_TraderMenuGiveDecoration
waitstate
compare 0x8006, 0
- jumpeq cancelled_give_menu
+ goto_if_eq cancelled_give_menu
compare 0x8006, 65535
- jumpeq decoration_is_in_use
+ goto_if_eq decoration_is_in_use
special ScrSpecial_IsDecorationFull
compare RESULT, 1
- jumpeq decorations_full
+ goto_if_eq decorations_full
msgbox gTextTrader_SoWellTrade, MSGBOX_YESNO
compare RESULT, NO
- jumpeq do_trader_menu_give
+ goto_if_eq do_trader_menu_give
special ScrSpecial_TraderDoDecorationTrade
msgbox gTextTrader_ThenWellTrade, 2
end
@@ -226,51 +226,51 @@ SpeakToStoryteller:
faceplayer
msgbox gTextStoryteller_Introduction, MSGBOX_YESNO
compare RESULT, NO
- jumpeq dont_hear_story
+ goto_if_eq dont_hear_story
specialval RESULT, ScrSpecial_StorytellerGetFreeStorySlot
compare RESULT, 0 @ If slot is 0, then the list is empty
- jumpeq no_stories_recorded
+ goto_if_eq no_stories_recorded
choose_story:
message gTextStoryteller_WhichTale
waittext
special ScrSpecial_StorytellerStoryListMenu
waitstate
compare RESULT, FALSE
- jumpeq cancel_story_menu
+ goto_if_eq cancel_story_menu
setvar 0x8008, 1
special ScrSpecial_StorytellerDisplayStory
waittext
waitbutton
specialval RESULT, ScrSpecial_StorytellerUpdateStat
compare RESULT, FALSE
- jumpeq no_stat_update
+ goto_if_eq no_stat_update
goto stat_update
cancel_story_menu:
compare 0x8008, 0
- jumpeq dont_hear_story
+ goto_if_eq dont_hear_story
goto yes_hear_story
no_stat_update:
msgbox gTextStoryteller_CouldThereBeOtherTrainers, 4
msgbox gTextStoryteller_HearAnotherLegendaryTale, MSGBOX_YESNO
compare RESULT, YES
- jumpeq choose_story
+ goto_if_eq choose_story
yes_hear_story:
specialval RESULT, ScrSpecial_HasStorytellerAlreadyRecorded
compare RESULT, TRUE
- jumpeq cant_record_story @ already recorded story
+ goto_if_eq cant_record_story @ already recorded story
specialval RESULT, ScrSpecial_StorytellerGetFreeStorySlot
compare RESULT, 4
- jumpeq cant_record_story @ story list is full
+ goto_if_eq cant_record_story @ story list is full
goto prompt_record_story
no_stories_recorded:
msgbox gTextStoryteller_ButIKnowOfNoLegendaryTrainers, 4
prompt_record_story:
msgbox gTextStoryteller_HaveYouAnyTales, MSGBOX_YESNO
compare RESULT, NO
- jumpeq dont_hear_story
+ goto_if_eq dont_hear_story
specialval RESULT, ScrSpecial_StorytellerInitializeRandomStat
compare RESULT, TRUE
- jumpeq stat_update
+ goto_if_eq stat_update
msgbox gTextStoryteller_ImNotSatisfied, 4
closebutton
release
@@ -306,25 +306,25 @@ SpeakToGiddy:
faceplayer
msgbox gTextGiddy_Introduction, MSGBOX_YESNO
compare RESULT, YES
- jumpeq yes_hear_giddy
+ goto_if_eq yes_hear_giddy
compare RESULT, NO
- jumpeq dont_hear_giddy
+ goto_if_eq dont_hear_giddy
end
yes_hear_giddy:
special ScrSpecial_GiddyShouldTellAnotherTale
compare RESULT, TRUE
- jumpeq tell_giddy_tale
+ goto_if_eq tell_giddy_tale
compare RESULT, FALSE
- jumpeq bye_bye
+ goto_if_eq bye_bye
end
tell_another_giddy_tale:
special ScrSpecial_GiddyShouldTellAnotherTale
compare RESULT, TRUE
- jumpeq also_i_was_thinking
+ goto_if_eq also_i_was_thinking
compare RESULT, FALSE
- jumpeq bye_bye
+ goto_if_eq bye_bye
end
also_i_was_thinking:
@@ -338,9 +338,9 @@ tell_giddy_tale:
waittext
yesnobox 20, 8
compare RESULT, 1
- jumpeq tell_another_giddy_tale
+ goto_if_eq tell_another_giddy_tale
compare RESULT, 0
- jumpeq tell_another_giddy_tale
+ goto_if_eq tell_another_giddy_tale
end
dont_hear_giddy:
diff --git a/data/scripts/mystery_event_club.inc b/data/scripts/mystery_event_club.inc
index e3577debf..97adca508 100644
--- a/data/scripts/mystery_event_club.inc
+++ b/data/scripts/mystery_event_club.inc
@@ -2,7 +2,7 @@ PetalburgCity_PokemonCenter_1F_EventScript_1B1B14:: @ 81B1B14
lock
faceplayer
checkflag 2053
- jumpeq PetalburgCity_PokemonCenter_1F_EventScript_1B1BDB
+ goto_if_eq PetalburgCity_PokemonCenter_1F_EventScript_1B1BDB
msgbox PetalburgCity_PokemonCenter_1F_Text_1B1C97, 4
goto PetalburgCity_PokemonCenter_1F_EventScript_1B1B2D
end
@@ -30,11 +30,11 @@ PetalburgCity_PokemonCenter_1F_EventScript_1B1B7A:: @ 81B1B7A
lock
faceplayer
compare 0x8004, 1
- callif 1, PetalburgCity_PokemonCenter_1F_EventScript_1B1C77
+ call_if 1, PetalburgCity_PokemonCenter_1F_EventScript_1B1C77
compare RESULT, 0
- jumpeq PetalburgCity_PokemonCenter_1F_EventScript_1B1BB1
+ goto_if_eq PetalburgCity_PokemonCenter_1F_EventScript_1B1BB1
compare RESULT, 1
- jumpeq PetalburgCity_PokemonCenter_1F_EventScript_1B1BBB
+ goto_if_eq PetalburgCity_PokemonCenter_1F_EventScript_1B1BBB
end
PetalburgCity_PokemonCenter_1F_EventScript_1B1BB1:: @ 81B1BB1
@@ -84,11 +84,11 @@ PetalburgCity_PokemonCenter_1F_EventScript_1B1C36:: @ 81B1C36
lock
faceplayer
compare 0x8004, 1
- callif 1, PetalburgCity_PokemonCenter_1F_EventScript_1B1C77
+ call_if 1, PetalburgCity_PokemonCenter_1F_EventScript_1B1C77
compare RESULT, 0
- jumpeq PetalburgCity_PokemonCenter_1F_EventScript_1B1BB1
+ goto_if_eq PetalburgCity_PokemonCenter_1F_EventScript_1B1BB1
compare RESULT, 1
- jumpeq PetalburgCity_PokemonCenter_1F_EventScript_1B1BBB
+ goto_if_eq PetalburgCity_PokemonCenter_1F_EventScript_1B1BBB
end
PetalburgCity_PokemonCenter_1F_EventScript_1B1C6D:: @ 81B1C6D
@@ -98,9 +98,9 @@ PetalburgCity_PokemonCenter_1F_EventScript_1B1C6D:: @ 81B1C6D
PetalburgCity_PokemonCenter_1F_EventScript_1B1C77:: @ 81B1C77
checkflag 2059
- jumpif 0, PetalburgCity_PokemonCenter_1F_EventScript_1B1C96
+ goto_if 0, PetalburgCity_PokemonCenter_1F_EventScript_1B1C96
checkflag 2124
- jumpeq PetalburgCity_PokemonCenter_1F_EventScript_1B1C96
+ goto_if_eq PetalburgCity_PokemonCenter_1F_EventScript_1B1C96
setflag 2124
msgbox PetalburgCity_PokemonCenter_1F_Text_1B21CC, 3
release
diff --git a/data/scripts/players_house.inc b/data/scripts/players_house.inc
index 776ba0a8b..bbbc0952d 100644
--- a/data/scripts/players_house.inc
+++ b/data/scripts/players_house.inc
@@ -9,9 +9,9 @@ LittlerootTown_MaysHouse_1F_EventScript_1B6956:: @ 81B6956
move 0x8004, LittlerootTown_BrendansHouse_1F_Movement_1A0839
waitmove 0
compare 0x8005, 0
- callif 1, LittlerootTown_BrendansHouse_1F_EventScript_1B699F
+ call_if 1, LittlerootTown_BrendansHouse_1F_EventScript_1B699F
compare 0x8005, 1
- callif 1, LittlerootTown_BrendansHouse_1F_EventScript_1B69AA
+ call_if 1, LittlerootTown_BrendansHouse_1F_EventScript_1B69AA
msgbox LittlerootTown_BrendansHouse_1F_Text_172453, 4
closebutton
setvar 0x4092, 4
@@ -60,7 +60,7 @@ LittlerootTown_MaysHouse_2F_EventScript_1B69DF:: @ 81B69DF
LittlerootTown_BrendansHouse_2F_EventScript_1B69EB:: @ 81B69EB
LittlerootTown_MaysHouse_2F_EventScript_1B69EB:: @ 81B69EB
checkflag 81
- jumpeq LittlerootTown_BrendansHouse_2F_EventScript_1B6A91
+ goto_if_eq LittlerootTown_BrendansHouse_2F_EventScript_1B6A91
msgbox LittlerootTown_BrendansHouse_2F_Text_172E18, 4
call LittlerootTown_BrendansHouse_2F_EventScript_1B6A9B
pause 30
@@ -70,9 +70,9 @@ LittlerootTown_MaysHouse_2F_EventScript_1B69EB:: @ 81B69EB
setflag 755
checkgender
compare RESULT, 0
- callif 1, LittlerootTown_BrendansHouse_2F_EventScript_1B6A31
+ call_if 1, LittlerootTown_BrendansHouse_2F_EventScript_1B6A31
compare RESULT, 1
- callif 1, LittlerootTown_BrendansHouse_2F_EventScript_1B6A61
+ call_if 1, LittlerootTown_BrendansHouse_2F_EventScript_1B6A61
playsfx 9
disappear 0x8008
releaseall
@@ -253,17 +253,17 @@ LittlerootTown_MaysHouse_1F_EventScript_1B6BE9:: @ 81B6BE9
lock
faceplayer
compare 0x4082, 4
- jumpeq LittlerootTown_BrendansHouse_1F_EventScript_1B6C33
+ goto_if_eq LittlerootTown_BrendansHouse_1F_EventScript_1B6C33
compare 0x408c, 4
- jumpeq LittlerootTown_BrendansHouse_1F_EventScript_1B6C33
+ goto_if_eq LittlerootTown_BrendansHouse_1F_EventScript_1B6C33
checkflag 2059
- jumpeq LittlerootTown_BrendansHouse_1F_EventScript_1B6C3D
+ goto_if_eq LittlerootTown_BrendansHouse_1F_EventScript_1B6C3D
checkflag 82
- jumpeq LittlerootTown_BrendansHouse_1F_EventScript_1B6C72
+ goto_if_eq LittlerootTown_BrendansHouse_1F_EventScript_1B6C72
compare 0x4001, 1
- jumpeq LittlerootTown_BrendansHouse_1F_EventScript_1B6C80
+ goto_if_eq LittlerootTown_BrendansHouse_1F_EventScript_1B6C80
compare 0x4092, 7
- jumpif 4, LittlerootTown_BrendansHouse_1F_EventScript_1B6C9C
+ goto_if 4, LittlerootTown_BrendansHouse_1F_EventScript_1B6C9C
msgbox LittlerootTown_BrendansHouse_1F_Text_172429, 4
release
end
@@ -275,11 +275,11 @@ LittlerootTown_BrendansHouse_1F_EventScript_1B6C33:: @ 81B6C33
LittlerootTown_BrendansHouse_1F_EventScript_1B6C3D:: @ 81B6C3D
checkflag 133
- jumpeq LittlerootTown_BrendansHouse_1F_EventScript_1B6C72
+ goto_if_eq LittlerootTown_BrendansHouse_1F_EventScript_1B6C72
msgbox LittlerootTown_BrendansHouse_1F_Text_172782, 4
giveitem ITEM_AMULET_COIN
compare RESULT, 0
- jumpeq LittlerootTown_BrendansHouse_1F_EventScript_1A029B
+ goto_if_eq LittlerootTown_BrendansHouse_1F_EventScript_1A029B
msgbox LittlerootTown_BrendansHouse_1F_Text_1727CD, 4
setflag 133
release
@@ -363,13 +363,13 @@ LittlerootTown_MaysHouse_1F_EventScript_1B6CDE:: @ 81B6CDE
lockall
checkgender
compare RESULT, 0
- callif 1, LittlerootTown_BrendansHouse_1F_EventScript_1B6DAD
+ call_if 1, LittlerootTown_BrendansHouse_1F_EventScript_1B6DAD
compare RESULT, 1
- callif 1, LittlerootTown_BrendansHouse_1F_EventScript_1B6DBD
+ call_if 1, LittlerootTown_BrendansHouse_1F_EventScript_1B6DBD
compare 0x8008, 0
- callif 1, LittlerootTown_BrendansHouse_1F_EventScript_1B6E1D
+ call_if 1, LittlerootTown_BrendansHouse_1F_EventScript_1B6E1D
compare 0x8008, 1
- callif 1, LittlerootTown_BrendansHouse_1F_EventScript_1B6E28
+ call_if 1, LittlerootTown_BrendansHouse_1F_EventScript_1B6E28
move 0x8009, LittlerootTown_BrendansHouse_1F_Movement_1A0839
waitmove 0
playsfx 21
@@ -379,23 +379,23 @@ LittlerootTown_MaysHouse_1F_EventScript_1B6CDE:: @ 81B6CDE
waitmove 0
pause 20
compare 0x8008, 0
- callif 1, LittlerootTown_BrendansHouse_1F_EventScript_1B6DCD
+ call_if 1, LittlerootTown_BrendansHouse_1F_EventScript_1B6DCD
compare 0x8008, 1
- callif 1, LittlerootTown_BrendansHouse_1F_EventScript_1B6DD8
+ call_if 1, LittlerootTown_BrendansHouse_1F_EventScript_1B6DD8
msgbox LittlerootTown_BrendansHouse_1F_Text_17298B, 4
giveitem ITEM_SS_TICKET
msgbox LittlerootTown_BrendansHouse_1F_Text_172A7D, 4
closebutton
compare 0x8008, 0
- callif 1, LittlerootTown_BrendansHouse_1F_EventScript_1B6DE3
+ call_if 1, LittlerootTown_BrendansHouse_1F_EventScript_1B6DE3
compare 0x8008, 1
- callif 1, LittlerootTown_BrendansHouse_1F_EventScript_1B6DEE
+ call_if 1, LittlerootTown_BrendansHouse_1F_EventScript_1B6DEE
msgbox LittlerootTown_BrendansHouse_1F_Text_172B5E, 4
closebutton
compare 0x8008, 0
- callif 1, LittlerootTown_BrendansHouse_1F_EventScript_1B6DF9
+ call_if 1, LittlerootTown_BrendansHouse_1F_EventScript_1B6DF9
compare 0x8008, 1
- callif 1, LittlerootTown_BrendansHouse_1F_EventScript_1B6E0B
+ call_if 1, LittlerootTown_BrendansHouse_1F_EventScript_1B6E0B
playsfx 8
disappear 0x8009
setflag 291
diff --git a/data/scripts/pokeblocks.inc b/data/scripts/pokeblocks.inc
index 05f91a3aa..0cf3163fd 100644
--- a/data/scripts/pokeblocks.inc
+++ b/data/scripts/pokeblocks.inc
@@ -40,24 +40,24 @@ VerdanturfTown_ContestLobby_EventScript_1B7681:: @ 81B7681
lockall
msgbox FallarborTown_ContestLobby_Text_1B6E63, 5
compare RESULT, 1
- jumpeq FallarborTown_ContestLobby_EventScript_1B76A1
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1B76A1
compare RESULT, 0
- jumpeq FallarborTown_ContestLobby_EventScript_1B76E5
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1B76E5
end
FallarborTown_ContestLobby_EventScript_1B76A1:: @ 81B76A1
checkitem ITEM_POKEBLOCK_CASE, 1
compare RESULT, 0
- jumpeq FallarborTown_ContestLobby_EventScript_1B7780
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1B7780
specialval RESULT, PlayerHasBerries
compare RESULT, 0
- jumpeq FallarborTown_ContestLobby_EventScript_1B770E
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1B770E
msgbox FallarborTown_ContestLobby_Text_1B6E9D, 4
specialval RESULT, sub_810CA00
compare RESULT, 65535
- jumpif 5, FallarborTown_ContestLobby_EventScript_1B76EF
+ goto_if 5, FallarborTown_ContestLobby_EventScript_1B76EF
compare RESULT, 65535
- jumpeq FallarborTown_ContestLobby_EventScript_1B7776
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1B7776
end
FallarborTown_ContestLobby_EventScript_1B76E5:: @ 81B76E5
@@ -68,16 +68,16 @@ FallarborTown_ContestLobby_EventScript_1B76E5:: @ 81B76E5
FallarborTown_ContestLobby_EventScript_1B76EF:: @ 81B76EF
msgbox FallarborTown_ContestLobby_Text_1B6ED0, 5
compare RESULT, 1
- jumpeq FallarborTown_ContestLobby_EventScript_1B7734
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1B7734
compare RESULT, 0
- jumpeq FallarborTown_ContestLobby_EventScript_1B7726
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1B7726
end
FallarborTown_ContestLobby_EventScript_1B770E:: @ 81B770E
msgbox FallarborTown_ContestLobby_Text_1B6FF0, 4
checkdailyflags
checkflag 2241
- jumpeq FallarborTown_ContestLobby_EventScript_1B774F
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1B774F
goto FallarborTown_ContestLobby_EventScript_1B7759
end
@@ -150,9 +150,9 @@ VerdanturfTown_ContestLobby_EventScript_1B77B6:: @ 81B77B6
msgbox FallarborTown_ContestLobby_Text_1B742F, 4
specialval RESULT, PlayerHasBerries
compare RESULT, 1
- jumpeq FallarborTown_ContestLobby_EventScript_1B77DC
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1B77DC
compare RESULT, 0
- jumpeq FallarborTown_ContestLobby_EventScript_1B77E6
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1B77E6
end
FallarborTown_ContestLobby_EventScript_1B77DC:: @ 81B77DC
@@ -163,7 +163,7 @@ FallarborTown_ContestLobby_EventScript_1B77DC:: @ 81B77DC
FallarborTown_ContestLobby_EventScript_1B77E6:: @ 81B77E6
checkdailyflags
checkflag 2241
- jumpeq FallarborTown_ContestLobby_EventScript_1B77F6
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1B77F6
goto FallarborTown_ContestLobby_EventScript_1B7800
end
@@ -210,23 +210,23 @@ VerdanturfTown_ContestLobby_EventScript_1B783B:: @ 81B783B
lockall
specialval RESULT, PlayerHasBerries
compare RESULT, 0
- jumpeq FallarborTown_ContestLobby_EventScript_1B7897
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1B7897
checkitem ITEM_POKEBLOCK_CASE, 1
compare RESULT, 0
- jumpeq FallarborTown_ContestLobby_EventScript_1B7942
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1B7942
specialval RESULT, sub_810CA00
compare RESULT, 65535
- jumpif 5, FallarborTown_ContestLobby_EventScript_1B7878
+ goto_if 5, FallarborTown_ContestLobby_EventScript_1B7878
compare RESULT, 65535
- jumpeq FallarborTown_ContestLobby_EventScript_1B7938
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1B7938
end
FallarborTown_ContestLobby_EventScript_1B7878:: @ 81B7878
msgbox FallarborTown_ContestLobby_Text_1B727C, 5
compare RESULT, 1
- jumpeq FallarborTown_ContestLobby_EventScript_1B78A1
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1B78A1
compare RESULT, 0
- jumpeq FallarborTown_ContestLobby_EventScript_1B7936
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1B7936
end
FallarborTown_ContestLobby_EventScript_1B7897:: @ 81B7897
@@ -237,21 +237,21 @@ FallarborTown_ContestLobby_EventScript_1B7897:: @ 81B7897
FallarborTown_ContestLobby_EventScript_1B78A1:: @ 81B78A1
call S_DoSaveDialog
compare RESULT, 0
- jumpeq FallarborTown_ContestLobby_EventScript_1B7936
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1B7936
message FallarborTown_ContestLobby_Text_1B7304
waittext
special sub_8083614
waitstate
compare RESULT, 1
- jumpeq FallarborTown_ContestLobby_EventScript_1B7980
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1B7980
compare RESULT, 2
- jumpeq FallarborTown_ContestLobby_EventScript_1B794C
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1B794C
compare RESULT, 3
- jumpeq FallarborTown_ContestLobby_EventScript_1B7959
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1B7959
compare RESULT, 5
- jumpeq FallarborTown_ContestLobby_EventScript_1B7966
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1B7966
compare RESULT, 6
- jumpeq FallarborTown_ContestLobby_EventScript_1B7973
+ goto_if_eq FallarborTown_ContestLobby_EventScript_1B7973
end
FallarborTown_ContestLobby_EventScript_1B78F3:: @ 81B78F3
diff --git a/data/scripts/safari_zone.inc b/data/scripts/safari_zone.inc
index 0394329ee..6098c7dce 100644
--- a/data/scripts/safari_zone.inc
+++ b/data/scripts/safari_zone.inc
@@ -15,7 +15,7 @@ gUnknown_081C342D:: @ 81C342D
lockall
msgbox UnknownString_81C34B2, 5
compare RESULT, 1
- jumpeq EventScript_1C3443
+ goto_if_eq EventScript_1C3443
releaseall
end
@@ -44,10 +44,10 @@ gUnknown_081C346A:: @ 81C346A
lockall
special SafariZoneGetPokeblockNameInFeeder
compare RESULT, -1
- jumpif 5, EventScript_1C34A9
+ goto_if 5, EventScript_1C34A9
msgbox UnknownString_81C354E, 5
compare RESULT, 1
- jumpeq EventScript_1C348E
+ goto_if_eq EventScript_1C348E
releaseall
end
@@ -56,7 +56,7 @@ EventScript_1C348E:
special sub_810BAF4
waitstate
compare RESULT, -1
- jumpif 5, EventScript_1C34A0
+ goto_if 5, EventScript_1C34A0
end
EventScript_1C34A0:
diff --git a/data/scripts/secret_power_tm.inc b/data/scripts/secret_power_tm.inc
index 629125030..eae7db0c0 100644
--- a/data/scripts/secret_power_tm.inc
+++ b/data/scripts/secret_power_tm.inc
@@ -3,7 +3,7 @@ Route111_EventScript_1A3858:: @ 81A3858
faceplayer
msgbox Route111_Text_1A3520, 5
compare RESULT, 1
- jumpeq Route111_EventScript_1A3877
+ goto_if_eq Route111_EventScript_1A3877
msgbox Route111_Text_1A37B5, 4
release
end
@@ -11,17 +11,17 @@ Route111_EventScript_1A3858:: @ 81A3858
Route111_EventScript_1A3877:: @ 81A3877
giveitem ITEM_TM43
compare RESULT, 0
- jumpeq Route111_EventScript_1A38D9
+ goto_if_eq Route111_EventScript_1A38D9
msgbox Route111_Text_1A35C5, 4
closebutton
setflag 96
clearflag 948
compare FACING, 3
- callif 1, Route111_EventScript_1A38C3
+ call_if 1, Route111_EventScript_1A38C3
compare FACING, 4
- callif 1, Route111_EventScript_1A38C3
+ call_if 1, Route111_EventScript_1A38C3
compare FACING, 2
- callif 1, Route111_EventScript_1A38CE
+ call_if 1, Route111_EventScript_1A38CE
disappear LAST_TALKED
release
end
diff --git a/data/scripts/tv.inc b/data/scripts/tv.inc
index f91295e49..66a923c5e 100644
--- a/data/scripts/tv.inc
+++ b/data/scripts/tv.inc
@@ -4,30 +4,30 @@ Event_TV:: @ 81A6E72
special sub_80C2014
specialval RESULT, CheckForBigMovieOrEmergencyNewsOnTV
compare RESULT, 2
- jumpeq EventScript_1A6F01
+ goto_if_eq EventScript_1A6F01
compare RESULT, 1
- jumpeq EventScript_1A6F0B
+ goto_if_eq EventScript_1A6F0B
checkflag 2098
- jumpif 0, EventScript_1A6EF1
+ goto_if 0, EventScript_1A6EF1
checkflag 2097
- jumpeq EventScript_1A6EF1
+ goto_if_eq EventScript_1A6EF1
specialval RESULT, IsTVShowInSearchOfTrainersAiring
compare RESULT, 1
- jumpeq EventScript_1A6F66
+ goto_if_eq EventScript_1A6F66
goto EventScript_1A6F50
end
EventScript_1A6EBB:
specialval 0x8004, special_0x44
compare 0x8004, 255
- jumpeq EventScript_1A6F3F
+ goto_if_eq EventScript_1A6F3F
specialval RESULT, special_0x4a
compare RESULT, 255
- jumpeq EventScript_1A6F3F
+ goto_if_eq EventScript_1A6F3F
copyvar 0x8004, RESULT
specialval RESULT, sub_80BDA0C
compare RESULT, 0
- jumpif 5, EventScript_1A6F21
+ goto_if 5, EventScript_1A6F21
end
EventScript_1A6EF1:
@@ -60,7 +60,7 @@ EventScript_1A6F21:
waittext
waitbutton
compare RESULT, 1
- jumpif 5, EventScript_1A6F21
+ goto_if 5, EventScript_1A6F21
goto EventScript_1A6F37
end
@@ -79,7 +79,7 @@ EventScript_1A6F3F:
EventScript_1A6F50:
special sub_80BECE8
compare RESULT, 0
- jumpeq EventScript_1A6EBB
+ goto_if_eq EventScript_1A6EBB
waittext
waitbutton
goto EventScript_1A6F37
@@ -90,6 +90,6 @@ EventScript_1A6F66:
waittext
waitbutton
compare RESULT, 0
- jumpeq EventScript_1A6F66
+ goto_if_eq EventScript_1A6F66
goto EventScript_1A6F37
end