summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcamthesaxman <cameronghall@cox.net>2017-09-24 17:36:39 -0500
committercamthesaxman <cameronghall@cox.net>2017-09-24 17:36:39 -0500
commit207f8e6a76f6b13855780bb2608be9d8c1f14b15 (patch)
treecbf6a37ec9bbd3c9d10f33550617e645a2725915
parent1e2601a0287fdacfb8f0d680fbe82a274414ea65 (diff)
more script command renaming
-rw-r--r--asm/macros/event.inc56
-rw-r--r--data-de/event_scripts.s104
-rw-r--r--data-de/field_move_scripts.inc2
-rw-r--r--data/event_scripts.s104
-rw-r--r--data/field_move_scripts.inc2
-rw-r--r--data/scripts/berry_tree.inc4
-rw-r--r--data/scripts/cable_club.inc12
-rw-r--r--data/scripts/contest_hall.inc80
-rw-r--r--data/scripts/day_care.inc38
-rw-r--r--data/scripts/gabby_and_ty.inc6
-rw-r--r--data/scripts/magma_chimney.inc4
-rw-r--r--data/scripts/maps/AbandonedShip_Corridors_B1F.inc4
-rw-r--r--data/scripts/maps/AbandonedShip_HiddenFloorCorridors.inc10
-rw-r--r--data/scripts/maps/AbandonedShip_HiddenFloorRooms.inc24
-rw-r--r--data/scripts/maps/AbandonedShip_Rooms2_1F.inc4
-rw-r--r--data/scripts/maps/AbandonedShip_Rooms_B1F.inc2
-rw-r--r--data/scripts/maps/AbandonedShip_Underwater1.inc2
-rw-r--r--data/scripts/maps/AbandonedShip_Underwater2.inc2
-rw-r--r--data/scripts/maps/AncientTomb.inc4
-rw-r--r--data/scripts/maps/AquaHideout_B2F.inc6
-rw-r--r--data/scripts/maps/BattleTower_BattleRoom.inc8
-rw-r--r--data/scripts/maps/BattleTower_Elevator.inc2
-rw-r--r--data/scripts/maps/BattleTower_Lobby.inc24
-rw-r--r--data/scripts/maps/BattleTower_Outside.inc2
-rw-r--r--data/scripts/maps/CaveOfOrigin_B4F.inc12
-rw-r--r--data/scripts/maps/DesertRuins.inc4
-rw-r--r--data/scripts/maps/DewfordTown_Gym.inc8
-rw-r--r--data/scripts/maps/DewfordTown_House1.inc2
-rw-r--r--data/scripts/maps/EverGrandeCity_ChampionsRoom.inc26
-rw-r--r--data/scripts/maps/EverGrandeCity_DrakesRoom.inc2
-rw-r--r--data/scripts/maps/EverGrandeCity_GlaciasRoom.inc2
-rw-r--r--data/scripts/maps/EverGrandeCity_HallOfFame.inc6
-rw-r--r--data/scripts/maps/EverGrandeCity_PhoebesRoom.inc2
-rw-r--r--data/scripts/maps/EverGrandeCity_PokemonLeague.inc8
-rw-r--r--data/scripts/maps/EverGrandeCity_SidneysRoom.inc2
-rw-r--r--data/scripts/maps/FallarborTown.inc2
-rw-r--r--data/scripts/maps/FallarborTown_ContestLobby.inc6
-rw-r--r--data/scripts/maps/FallarborTown_Mart.inc2
-rw-r--r--data/scripts/maps/FallarborTown_PokemonCenter_1F.inc2
-rw-r--r--data/scripts/maps/FortreeCity.inc4
-rw-r--r--data/scripts/maps/FortreeCity_House1.inc6
-rw-r--r--data/scripts/maps/FortreeCity_House4.inc2
-rw-r--r--data/scripts/maps/FortreeCity_House5.inc2
-rw-r--r--data/scripts/maps/GraniteCave_B1F.inc2
-rw-r--r--data/scripts/maps/GraniteCave_StevensRoom.inc2
-rw-r--r--data/scripts/maps/InsideOfTruck.inc4
-rw-r--r--data/scripts/maps/IslandCave.inc6
-rw-r--r--data/scripts/maps/JaggedPass.inc4
-rw-r--r--data/scripts/maps/LavaridgeTown.inc14
-rw-r--r--data/scripts/maps/LavaridgeTown_House.inc2
-rw-r--r--data/scripts/maps/LilycoveCity.inc24
-rw-r--r--data/scripts/maps/LilycoveCity_ContestHall.inc2
-rw-r--r--data/scripts/maps/LilycoveCity_ContestLobby.inc42
-rw-r--r--data/scripts/maps/LilycoveCity_CoveLilyMotel_1F.inc2
-rw-r--r--data/scripts/maps/LilycoveCity_CoveLilyMotel_2F.inc4
-rw-r--r--data/scripts/maps/LilycoveCity_DepartmentStoreElevator.inc10
-rw-r--r--data/scripts/maps/LilycoveCity_DepartmentStoreRooftop.inc6
-rw-r--r--data/scripts/maps/LilycoveCity_DepartmentStore_1F.inc10
-rw-r--r--data/scripts/maps/LilycoveCity_Harbor.inc14
-rw-r--r--data/scripts/maps/LilycoveCity_House1.inc2
-rw-r--r--data/scripts/maps/LilycoveCity_LilycoveMuseum_2F.inc2
-rw-r--r--data/scripts/maps/LilycoveCity_MoveDeletersHouse.inc2
-rw-r--r--data/scripts/maps/LilycoveCity_PokemonTrainerFanClub.inc64
-rw-r--r--data/scripts/maps/LittlerootTown.inc14
-rw-r--r--data/scripts/maps/LittlerootTown_BrendansHouse_1F.inc2
-rw-r--r--data/scripts/maps/LittlerootTown_BrendansHouse_2F.inc4
-rw-r--r--data/scripts/maps/LittlerootTown_MaysHouse_1F.inc2
-rw-r--r--data/scripts/maps/LittlerootTown_MaysHouse_2F.inc14
-rw-r--r--data/scripts/maps/LittlerootTown_ProfessorBirchsLab.inc4
-rw-r--r--data/scripts/maps/MauvilleCity.inc6
-rw-r--r--data/scripts/maps/MauvilleCity_GameCorner.inc46
-rw-r--r--data/scripts/maps/MauvilleCity_Gym.inc4
-rw-r--r--data/scripts/maps/MauvilleCity_House2.inc2
-rw-r--r--data/scripts/maps/MeteorFalls_1F_1R.inc4
-rw-r--r--data/scripts/maps/MeteorFalls_1F_2R.inc6
-rw-r--r--data/scripts/maps/MossdeepCity_Gym.inc2
-rw-r--r--data/scripts/maps/MossdeepCity_House1.inc2
-rw-r--r--data/scripts/maps/MossdeepCity_House2.inc2
-rw-r--r--data/scripts/maps/MossdeepCity_House4.inc2
-rw-r--r--data/scripts/maps/MossdeepCity_SpaceCenter_1F.inc4
-rw-r--r--data/scripts/maps/MossdeepCity_StevensHouse.inc6
-rw-r--r--data/scripts/maps/MtChimney.inc2
-rw-r--r--data/scripts/maps/MtPyre_2F.inc2
-rw-r--r--data/scripts/maps/MtPyre_6F.inc2
-rw-r--r--data/scripts/maps/MtPyre_Summit.inc10
-rw-r--r--data/scripts/maps/NewMauville_Entrance.inc2
-rw-r--r--data/scripts/maps/NewMauville_Inside.inc16
-rw-r--r--data/scripts/maps/OldaleTown.inc6
-rw-r--r--data/scripts/maps/PacifidlogTown_House2.inc14
-rw-r--r--data/scripts/maps/PacifidlogTown_House3.inc4
-rw-r--r--data/scripts/maps/PacifidlogTown_House5.inc2
-rw-r--r--data/scripts/maps/PetalburgCity.inc10
-rw-r--r--data/scripts/maps/PetalburgCity_Gym.inc16
-rw-r--r--data/scripts/maps/PetalburgCity_PokemonCenter_1F.inc2
-rw-r--r--data/scripts/maps/PetalburgWoods.inc6
-rw-r--r--data/scripts/maps/Route101.inc2
-rw-r--r--data/scripts/maps/Route102.inc2
-rw-r--r--data/scripts/maps/Route103.inc18
-rw-r--r--data/scripts/maps/Route104.inc6
-rw-r--r--data/scripts/maps/Route104_MrBrineysHouse.inc2
-rw-r--r--data/scripts/maps/Route104_PrettyPetalFlowerShop.inc2
-rw-r--r--data/scripts/maps/Route104_Prototype.inc4
-rw-r--r--data/scripts/maps/Route106.inc2
-rw-r--r--data/scripts/maps/Route107.inc2
-rw-r--r--data/scripts/maps/Route109.inc6
-rw-r--r--data/scripts/maps/Route110.inc30
-rw-r--r--data/scripts/maps/Route110_SeasideCyclingRoadNorthEntrance.inc2
-rw-r--r--data/scripts/maps/Route110_SeasideCyclingRoadSouthEntrance.inc2
-rw-r--r--data/scripts/maps/Route110_TrickHouseEnd.inc14
-rw-r--r--data/scripts/maps/Route110_TrickHouseEntrance.inc34
-rw-r--r--data/scripts/maps/Route110_TrickHousePuzzle2.inc8
-rw-r--r--data/scripts/maps/Route110_TrickHousePuzzle3.inc2
-rw-r--r--data/scripts/maps/Route110_TrickHousePuzzle5.inc18
-rw-r--r--data/scripts/maps/Route110_TrickHousePuzzle7.inc20
-rw-r--r--data/scripts/maps/Route111.inc16
-rw-r--r--data/scripts/maps/Route112.inc2
-rw-r--r--data/scripts/maps/Route113.inc4
-rw-r--r--data/scripts/maps/Route113_GlassWorkshop.inc4
-rw-r--r--data/scripts/maps/Route114.inc8
-rw-r--r--data/scripts/maps/Route115.inc6
-rw-r--r--data/scripts/maps/Route116.inc10
-rw-r--r--data/scripts/maps/Route117.inc12
-rw-r--r--data/scripts/maps/Route118.inc8
-rw-r--r--data/scripts/maps/Route119.inc20
-rw-r--r--data/scripts/maps/Route119_House.inc2
-rw-r--r--data/scripts/maps/Route119_WeatherInstitute_2F.inc4
-rw-r--r--data/scripts/maps/Route120.inc18
-rw-r--r--data/scripts/maps/Route121.inc4
-rw-r--r--data/scripts/maps/Route121_SafariZoneEntrance.inc4
-rw-r--r--data/scripts/maps/Route123.inc4
-rw-r--r--data/scripts/maps/Route123_BerryMastersHouse.inc4
-rw-r--r--data/scripts/maps/Route124.inc6
-rw-r--r--data/scripts/maps/Route125.inc2
-rw-r--r--data/scripts/maps/Route128.inc14
-rw-r--r--data/scripts/maps/Route130.inc2
-rw-r--r--data/scripts/maps/Route134.inc2
-rw-r--r--data/scripts/maps/RustboroCity.inc22
-rw-r--r--data/scripts/maps/RustboroCity_DevonCorp_2F.inc8
-rw-r--r--data/scripts/maps/RustboroCity_DevonCorp_3F.inc8
-rw-r--r--data/scripts/maps/RustboroCity_Flat2_1F.inc2
-rw-r--r--data/scripts/maps/RustboroCity_House1.inc4
-rw-r--r--data/scripts/maps/RustboroCity_House3.inc2
-rw-r--r--data/scripts/maps/RusturfTunnel.inc10
-rw-r--r--data/scripts/maps/SSTidalCorridor.inc16
-rw-r--r--data/scripts/maps/SafariZone_Southeast.inc2
-rw-r--r--data/scripts/maps/SeafloorCavern_Entrance.inc2
-rw-r--r--data/scripts/maps/SeafloorCavern_Room9.inc22
-rw-r--r--data/scripts/maps/SealedChamber_InnerRoom.inc22
-rw-r--r--data/scripts/maps/SealedChamber_OuterRoom.inc2
-rw-r--r--data/scripts/maps/ShoalCave_LowTideEntranceRoom.inc2
-rw-r--r--data/scripts/maps/SkyPillar_2F.inc2
-rw-r--r--data/scripts/maps/SkyPillar_4F.inc2
-rw-r--r--data/scripts/maps/SkyPillar_Top.inc4
-rw-r--r--data/scripts/maps/SlateportCity.inc14
-rw-r--r--data/scripts/maps/SlateportCity_ContestLobby.inc6
-rw-r--r--data/scripts/maps/SlateportCity_Harbor.inc6
-rw-r--r--data/scripts/maps/SlateportCity_House1.inc6
-rw-r--r--data/scripts/maps/SlateportCity_OceanicMuseum_1F.inc8
-rw-r--r--data/scripts/maps/SlateportCity_OceanicMuseum_2F.inc10
-rw-r--r--data/scripts/maps/SlateportCity_PokemonFanClub.inc20
-rw-r--r--data/scripts/maps/SootopolisCity.inc18
-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_House4.inc2
-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_Route134.inc2
-rw-r--r--data/scripts/maps/Underwater_SeafloorCavern.inc2
-rw-r--r--data/scripts/maps/Underwater_SealedChamber.inc4
-rw-r--r--data/scripts/maps/Underwater_SootopolisCity.inc2
-rw-r--r--data/scripts/maps/UnknownMap_25_34.inc10
-rw-r--r--data/scripts/maps/VerdanturfTown_ContestLobby.inc6
-rw-r--r--data/scripts/maps/VerdanturfTown_FriendshipRatersHouse.inc4
-rw-r--r--data/scripts/maps/VictoryRoad_1F.inc2
-rw-r--r--data/scripts/mauville_man.inc14
-rw-r--r--data/scripts/mystery_event_club.inc2
-rw-r--r--data/scripts/players_house.inc24
-rw-r--r--data/scripts/pokeblocks.inc16
-rw-r--r--data/scripts/safari_zone.inc6
-rw-r--r--data/scripts/tv.inc10
180 files changed, 868 insertions, 866 deletions
diff --git a/asm/macros/event.inc b/asm/macros/event.inc
index 685e53363..7e3408dfb 100644
--- a/asm/macros/event.inc
+++ b/asm/macros/event.inc
@@ -226,16 +226,16 @@
.2byte \var2
.endm
- @ Calls the ASM routine stored at code. Script execution is blocked until the ASM returns (bx lr, mov pc, lr, etc.). Remember to add 1 to the offset when calling THUMB code.
- .macro callasm code
+ @ Calls the native C function stored at `func`.
+ .macro callnative func
.byte 0x23
- .4byte \code
+ .4byte \func
.endm
- @ Replaces a pointer in the script engine RAM with asm_pointer.
- .macro jumpasm asm_pointer
+ @ Replaces the script with the function stored at `func`. Execution returns to the bytecode script when func returns TRUE.
+ .macro gotonative func
.byte 0x24
- .4byte \asm_pointer
+ .4byte \func
.endm
@ Calls a special function; that is, a piece of ASM code designed for use by scripts and listed in a table of pointers.
@@ -245,7 +245,7 @@
.endm
@ Calls a special function. That function's output (if any) will be written to the variable you specify.
- .macro specialval output, function
+ .macro specialvar output, function
.byte 0x26
.2byte \output
.2byte SPECIAL_\function
@@ -257,7 +257,7 @@
.endm
@ Blocks script execution for time (frames? milliseconds?).
- .macro pause time
+ .macro delay time
.byte 0x28
.2byte \time
.endm
@@ -281,33 +281,35 @@
.endm
@ In FireRed, this command is a nop.
- .macro compareflags
+ .macro initclock hour minute
.byte 0x2c
+ .byte \hour
+ .byte \minute
.endm
@ In FireRed, this command is a nop.
- .macro checkdailyflags
+ .macro dodailyevents
.byte 0x2d
.endm
@ Resets the values of variables 0x8000, 0x8001, and 0x8002. Related to RTC in RSE?
- .macro resetvars
+ .macro gettime
.byte 0x2e
.endm
@ Plays the specified (sound_number) sound. Only one sound may play at a time, with newer ones interrupting older ones.
- .macro playsfx sound_number
+ .macro playse sound_number
.byte 0x2f
.2byte \sound_number
.endm
@ Blocks script execution until the currently-playing sound (triggered by sound) finishes playing.
- .macro checksound
+ .macro waitse
.byte 0x30
.endm
@ Plays the specified (fanfare_number) fanfare.
- .macro fanfare fanfare_number
+ .macro playfanfare fanfare_number
.byte 0x31
.2byte \fanfare_number
.endm
@@ -318,37 +320,37 @@
.endm
@ Plays the specified (song_number) song. The byte is apparently supposed to be 0x00.
- .macro playmusic song_number, unknown
+ .macro playbgm song_number, unknown
.byte 0x33
.2byte \song_number
.byte \unknown
.endm
@ Plays the specified (song_number) song.
- .macro playmusicbattle song_number
+ .macro savebgm song_number
.byte 0x34
.2byte \song_number
.endm
@ Crossfades the currently-playing song into the map's default song.
- .macro fadedefault
+ .macro fadedefaultbgm
.byte 0x35
.endm
@ Crossfades the currently-playng song into the specified (song_number) song.
- .macro fademusic song_number
+ .macro fadenewbgm song_number
.byte 0x36
.2byte \song_number
.endm
@ Fades out the currently-playing song.
- .macro fadeout speed
+ .macro fadeoutbgm speed
.byte 0x37
.byte \speed
.endm
@ Fades the currently-playing song back in.
- .macro fadein speed
+ .macro fadeinbgm speed
.byte 0x38
.byte \speed
.endm
@@ -363,7 +365,7 @@
.endm
@ Clone of warp that does not play a sound effect.
- .macro warpmuted map, warp, X, Y
+ .macro warpsilent map, warp, X, Y
.byte 0x3a
map \map
.byte \warp
@@ -372,7 +374,7 @@
.endm
@ Clone of warp that uses "a walking effect".
- .macro warpwalk map, warp, X, Y
+ .macro warpdoor map, warp, X, Y
.byte 0x3b
map \map
.byte \warp
@@ -396,7 +398,7 @@
.endm
@ Clone of warp. Used by an (unused?) Safari Zone script to return the player to the gatehouse and end the Safari Game.
- .macro warp3 map, warp, X, Y
+ .macro setwarp map, warp, X, Y
.byte 0x3e
map \map
.byte \warp
@@ -405,7 +407,7 @@
.endm
@ Sets a default warp place. If a warp tries to send the player to Warp 127 on Map 127.127, they will instead be sent here. Useful when a map has warps that need to go to script-controlled locations (i.e. elevators).
- .macro warpplace map, warp, X, Y
+ .macro setdynamicwarp map, warp, X, Y
.byte 0x3f
map \map
.byte \warp
@@ -414,7 +416,7 @@
.endm
@ Clone of warp3, except that this writes data to different offsets...
- .macro warp4 map, warp, X, Y
+ .macro setdivewarp map, warp, X, Y
.byte 0x40
map \map
.byte \warp
@@ -423,7 +425,7 @@
.endm
@ Clone of warp3, except that this writes data to different offsets...
- .macro warp5 map, warp, X, Y
+ .macro setholewarp map, warp, X, Y
.byte 0x41
map \map
.byte \warp
@@ -504,7 +506,7 @@
.endm
@ In FireRed, this command is a nop. (The argument is read, but not used for anything.)
- .macro testdecor a
+ .macro hasdecor a
.byte 0x4d
.2byte \a
.endm
diff --git a/data-de/event_scripts.s b/data-de/event_scripts.s
index 59d69d8bd..4277f1e6d 100644
--- a/data-de/event_scripts.s
+++ b/data-de/event_scripts.s
@@ -386,13 +386,13 @@ gStdScripts_End::
gUnknown_0815F36C:: @ 815F36C
lockall
- playsfx 2
+ playse 2
message UnknownString_81A3A72
doanimation 61
waitstate
waittext
waitbutton
- playsfx 5
+ playse 5
goto EventScript_15F384
end
@@ -448,12 +448,12 @@ EventScript_15F436:
gUnknown_0815F43A:: @ 815F43A
lockall
message UnknownString_81A3A72
- playsfx 2
+ playse 2
doanimation 61
waitstate
waittext
waitbutton
- playsfx 5
+ playse 5
goto EventScript_15F452
end
@@ -941,7 +941,7 @@ gUnknown_0819F818:: @ 819F818
faceplayer
move LAST_TALKED, Movement_19F8F0
waitmove 0
- specialval RESULT, ScrSpecial_HasTrainerBeenFought
+ specialvar RESULT, ScrSpecial_HasTrainerBeenFought
compare_var_to_imm RESULT, 0
goto_if 5, EventScript_19F83F
special PlayTrainerEncounterMusic
@@ -955,7 +955,7 @@ gUnknown_0819F840:: @ 819F840
lock
faceplayer
call EventScript_19F8E5
- specialval RESULT, ScrSpecial_HasTrainerBeenFought
+ specialvar RESULT, ScrSpecial_HasTrainerBeenFought
compare_var_to_imm RESULT, 0
goto_if 5, EventScript_19F877
special CheckForAlivePartyMons
@@ -984,7 +984,7 @@ gUnknown_0819F878:: @ 819F878
gUnknown_0819F887:: @ 819F887
call EventScript_19F8E5
- specialval RESULT, ScrSpecial_GetTrainerEyeRematchFlag
+ specialvar RESULT, ScrSpecial_GetTrainerEyeRematchFlag
compare_var_to_imm RESULT, 0
goto_if_eq EventScript_19F8AD
special PlayTrainerEncounterMusic
@@ -1001,7 +1001,7 @@ EventScript_19F8AD:
endtrainerbattle
gUnknown_0819F8AE:: @ 819F8AE
- specialval RESULT, ScrSpecial_GetTrainerEyeRematchFlag
+ specialvar RESULT, ScrSpecial_GetTrainerEyeRematchFlag
compare_var_to_imm RESULT, 0
goto_if_eq EventScript_19F8DD
special CheckForAlivePartyMons
@@ -1041,7 +1041,7 @@ EventScript_19F8F2:
waittext
waitbutton
reptrainerbattle
- specialval RESULT, ScrSpecial_GetTrainerBattleMode
+ specialvar RESULT, ScrSpecial_GetTrainerBattleMode
compare_var_to_imm RESULT, 0
goto_if_eq EventScript_19F934
compare_var_to_imm RESULT, 2
@@ -1476,7 +1476,7 @@ OldaleTown_PokemonCenter_1F_EventScript_19FDC7:: @ 819FDC7
return
OldaleTown_PokemonCenter_1F_EventScript_19FDCE:: @ 819FDCE
- specialval RESULT, IsPokerusInParty
+ specialvar RESULT, IsPokerusInParty
compare_var_to_imm RESULT, 1
goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_19FDEA
compare_var_to_imm RESULT, 0
@@ -1562,11 +1562,11 @@ Std_ObtainItem_Fail: @ 819FECC
return
PlayGetItemFanfare:
- fanfare 0x172
+ playfanfare 0x172
return
PlayGetTMHMFanfare:
- fanfare 0x174
+ playfanfare 0x174
return
Std_ObtainDecoration: @ 819FEDA
@@ -1584,7 +1584,7 @@ Std_ObtainDecoration_: @ 819FEE8
return
Std_ObtainDecoration_Success: @ 819FF03
- fanfare 0x172
+ playfanfare 0x172
message Message_ObtainedDecoration
waitfanfare
waittext
@@ -1599,7 +1599,7 @@ Std_ObtainDecoration_Fail: @ 819FF1B
Std_FindItem: @ 819FF21
lock
faceplayer
- checksound
+ waitse
additem 0x8000, 0x8001
copyvar 0x8007, RESULT
bufferitem 1, 0x8000
@@ -1628,7 +1628,7 @@ Std_FindItem_Fail: @ 819FF65
HiddenItemScript:: @ 819FF7B
lockall
- checksound
+ waitse
additem 0x8005, 1
copyvar 0x8007, RESULT
bufferitem 0x1, 0x8005
@@ -1681,7 +1681,7 @@ gUnknown_081A0009:: @ 81A0009
lockall
setvar 0x8004, 0
special DoPCTurnOnEffect
- playsfx 4
+ playse 4
msgbox UnknownString_81A09EC, 4
goto EventScript_1A0023
end
@@ -1704,7 +1704,7 @@ EventScript_1A0033:
end
EventScript_1A0070:
- playsfx 2
+ playse 2
msgbox UnknownString_81A0A54, 4
special PlayerPC
waitstate
@@ -1712,7 +1712,7 @@ EventScript_1A0070:
end
EventScript_1A0085:
- playsfx 2
+ playse 2
checkflag 2123
call_if 0, EventScript_1A00AC
checkflag 2123
@@ -1733,7 +1733,7 @@ EventScript_1A00B5:
EventScript_1A00BE:
setvar 0x8004, 0
- playsfx 3
+ playse 3
special DoPCTurnOffEffect
releaseall
end
@@ -1741,7 +1741,7 @@ EventScript_1A00BE:
EventScript_1A00CB:
checkflag 2052
goto_if 0, EventScript_1A00BE
- playsfx 2
+ playse 2
special AccessHallOfFamePC
waitstate
goto EventScript_1A0033
@@ -1803,7 +1803,7 @@ RustboroCity_Gym_EventScript_1A00FB:: @ 81A00FB
DewfordTown_EventScript_1A0102:: @ 81A0102
DewfordTown_Hall_EventScript_1A0102:: @ 81A0102
- checkdailyflags
+ dodailyevents
setvar 0x8004, 0
special sub_80FA5BC
return
@@ -2101,7 +2101,7 @@ MossdeepCity_Gym_EventScript_1A02C5:: @ 81A02C5
PetalburgCity_Gym_EventScript_1A02C5:: @ 81A02C5
RustboroCity_Gym_EventScript_1A02C5:: @ 81A02C5
SootopolisCity_Gym_1F_EventScript_1A02C5:: @ 81A02C5
- fanfare 369
+ playfanfare 369
waitfanfare
return
@@ -2110,7 +2110,7 @@ Route111_OldLadysRestStop_EventScript_1A02CA:: @ 81A02CA
Route119_WeatherInstitute_1F_EventScript_1A02CA:: @ 81A02CA
SSTidalRooms_EventScript_1A02CA:: @ 81A02CA
fadescreen 1
- fanfare 368
+ playfanfare 368
waitfanfare
special ScrSpecial_HealPlayerParty
fadescreen 0
@@ -2129,14 +2129,14 @@ DewfordTown_EventScript_1A02E7:: @ 81A02E7
Route104_EventScript_1A02E7:: @ 81A02E7
Route109_EventScript_1A02E7:: @ 81A02E7
setflag 0x4001
- playmusic 431, 0
+ playbgm 431, 0
return
DewfordTown_EventScript_1A02EF:: @ 81A02EF
Route104_EventScript_1A02EF:: @ 81A02EF
Route109_EventScript_1A02EF:: @ 81A02EF
clearflag 0x4001
- fadedefault
+ fadedefaultbgm
return
LittlerootTown_ProfessorBirchsLab_EventScript_1A02F4:: @ 81A02F4
@@ -2210,7 +2210,7 @@ Route101_EventScript_1A03A5:: @ 81A03A5
EverGrandeCity_ChampionsRoom_EventScript_1A03B0:: @ 81A03B0
Route101_EventScript_1A03B0:: @ 81A03B0
setvar 0x8004, 0
- specialval RESULT, ScriptGetPokedexInfo
+ specialvar RESULT, ScriptGetPokedexInfo
copyvar 0x8008, 0x8005
copyvar 0x8009, 0x8006
copyvar 0x800a, RESULT
@@ -2221,7 +2221,7 @@ Route101_EventScript_1A03B0:: @ 81A03B0
compare_var_to_imm 0x800a, 0
goto_if_eq Route101_EventScript_1A14DC
setvar 0x8004, 1
- specialval RESULT, ScriptGetPokedexInfo
+ specialvar RESULT, ScriptGetPokedexInfo
copyvar 0x8008, 0x8005
copyvar 0x8009, 0x8006
buffernum 0, 0x8008
@@ -2232,7 +2232,7 @@ Route101_EventScript_1A03B0:: @ 81A03B0
BattleTower_Outside_EventScript_1A040E:: @ 81A040E
LilycoveCity_Harbor_EventScript_1A040E:: @ 81A040E
SlateportCity_Harbor_EventScript_1A040E:: @ 81A040E
- pause 60
+ delay 60
move 0x8004, SlateportCity_Harbor_Movement_1A041C
waitmove 0
return
@@ -2269,14 +2269,14 @@ RusturfTunnel_EventScript_1A0442:: @ 81A0442
return
EventScript_1A0457: @ unreferenced?
- pause 30
+ delay 30
move 255, SlateportCity_OceanicMuseum_2F_Movement_1A0841
waitmove 0
spritevisible 255, 0, 0
- pause 30
+ delay 30
move 255, Movement_1A047A
waitmove 0
- pause 30
+ delay 30
return
Movement_1A047A:
@@ -2289,14 +2289,14 @@ SouthernIsland_Exterior_EventScript_1A047C:: @ 81A047C
call_if 1, BattleTower_Outside_EventScript_160B2F
compare_var_to_imm FACING, 3
call_if 1, BattleTower_Outside_EventScript_160B3A
- pause 30
+ delay 30
spriteinvisible 255, 0, 0
call BattleTower_Outside_EventScript_1A040E
return
CaveOfOrigin_B4F_EventScript_1A04A0:: @ 81A04A0
lockall
- checksound
+ waitse
pokecry SPECIES_GROUDON_OR_KYOGRE, 2
waitpokecry
setvar 0x4005, 1
@@ -2351,9 +2351,9 @@ MagmaHideout_B1F_EventScript_1A04FD:: @ 81A04FD
lock
faceplayer
setwildbattle SPECIES_ELECTRODE, 30, ITEM_NONE
- checksound
+ waitse
pokecry SPECIES_ELECTRODE, 2
- pause 40
+ delay 40
waitpokecry
setflag 977
setflag 2145
@@ -2367,9 +2367,9 @@ MagmaHideout_B1F_EventScript_1A051B:: @ 81A051B
lock
faceplayer
setwildbattle SPECIES_ELECTRODE, 30, ITEM_NONE
- checksound
+ waitse
pokecry SPECIES_ELECTRODE, 2
- pause 40
+ delay 40
waitpokecry
setflag 978
setflag 2145
@@ -2450,9 +2450,9 @@ Route119_EventScript_1A05C3:: @ 81A05C3
waitmove 0
move LAST_TALKED, Route119_Movement_1A0662
waitmove 0
- checksound
+ waitse
pokecry SPECIES_KECLEON, 2
- pause 40
+ delay 40
waitpokecry
setwildbattle SPECIES_KECLEON, 30, ITEM_NONE
compare_var_to_imm 0x8004, 1
@@ -2543,7 +2543,7 @@ GraniteCave_StevensRoom_EventScript_1A067F:: @ 81A067F
MtPyre_Summit_EventScript_1A067F:: @ 81A067F
SlateportCity_OceanicMuseum_2F_EventScript_1A067F:: @ 81A067F
bufferitem 0, 0x8004
- fanfare 372
+ playfanfare 372
message FallarborTown_House1_Text_1A1498
waittext
waitfanfare
@@ -2556,7 +2556,7 @@ EverGrandeCity_PhoebesRoom_EventScript_1A0693:: @ 81A0693
EverGrandeCity_SidneysRoom_EventScript_1A0693:: @ 81A0693
move 255, EverGrandeCity_SidneysRoom_Movement_1A0853
waitmove 0
- playsfx 8
+ playse 8
setmaptile 6, 1, 836, 0
setmaptile 6, 2, 837, 0
setmaptile 0, 2, 734, 1
@@ -2578,7 +2578,7 @@ EverGrandeCity_PhoebesRoom_EventScript_1A0710:: @ 81A0710
EverGrandeCity_SidneysRoom_EventScript_1A0710:: @ 81A0710
move 255, EverGrandeCity_SidneysRoom_Movement_1A0847
waitmove 0
- playsfx 52
+ playse 52
setmaptile 5, 12, 518, 1
setmaptile 6, 12, 518, 1
setmaptile 7, 12, 518, 1
@@ -3732,7 +3732,7 @@ EventScript_1A2DAA:
EventScript_1A2DB8:
closebutton
- playsfx 9
+ playse 9
setvar 0x4097, 0
setflag 173
special sub_80BB8CC
@@ -3752,7 +3752,7 @@ SecretBase_RedCave1_EventScript_1A2DDE:: @ 81A2DDE
compare_var_to_imm RESULT, 1
goto_if_eq SecretBase_RedCave1_EventScript_1A2E08
closebutton
- playsfx 9
+ playse 9
special sub_80BC440
end
@@ -3771,7 +3771,7 @@ SecretBase_RedCave1_Movement_1A2E11:: @ 81A2E11
gUnknown_081A2E14:: @ 81A2E14
lockall
setvar 0x4097, 1
- playsfx 9
+ playse 9
special sub_80BC114
compare_var_to_imm RESULT, 0
goto_if_eq EventScript_1A2E38
@@ -4512,7 +4512,7 @@ SlateportCity_OceanicMuseum_1F_EventScript_1ADF96:: @ 81ADF96
SlateportCity_PokemonFanClub_EventScript_1ADFA0:: @ 81ADFA0
lock
faceplayer
- specialval RESULT, sub_80BF544
+ specialvar RESULT, sub_80BF544
compare_var_to_imm RESULT, 0
goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADE4D
setvar 0x8005, 3
@@ -4902,22 +4902,22 @@ SkyPillar_4F_MapScript1_1C6BBF:: @ 81C6BBF
S_FallDownHole:: @ 81C6BC5
lockall
- pause 20
+ delay 20
move 255, GraniteCave_B1F_Movement_1C6BF7
waitmove 0
- playsfx 43
- pause 60
+ playse 43
+ delay 60
warphole UNDEFINED
waitstate
end
gUnknown_081C6BDE:: @ 81C6BDE
lockall
- pause 20
+ delay 20
move 255, GraniteCave_B1F_Movement_1C6BF7
waitmove 0
- playsfx 43
- pause 60
+ playse 43
+ delay 60
special sp13F_fall_to_last_warp
waitstate
end
diff --git a/data-de/field_move_scripts.inc b/data-de/field_move_scripts.inc
index c5dae9c50..503aa53e5 100644
--- a/data-de/field_move_scripts.inc
+++ b/data-de/field_move_scripts.inc
@@ -90,7 +90,7 @@ DoRockSmashMovement: @ 81B0F0C
move LAST_TALKED, RockSmashMovement
waitmove 0
disappear LAST_TALKED
- specialval RESULT, sub_810F5BC
+ specialvar RESULT, sub_810F5BC
compare_var_to_imm RESULT, 1
goto_if_eq DoRockSmashMovement_Done
special ScrSpecial_RockSmashWildEncounter
diff --git a/data/event_scripts.s b/data/event_scripts.s
index dae57cfd6..bd14ae5d3 100644
--- a/data/event_scripts.s
+++ b/data/event_scripts.s
@@ -386,13 +386,13 @@ gStdScripts_End::
gUnknown_0815F36C:: @ 815F36C
lockall
- playsfx 2
+ playse 2
message UnknownString_81A3A72
doanimation 61
waitstate
waittext
waitbutton
- playsfx 5
+ playse 5
goto EventScript_15F384
end
@@ -448,12 +448,12 @@ EventScript_15F436:
gUnknown_0815F43A:: @ 815F43A
lockall
message UnknownString_81A3A72
- playsfx 2
+ playse 2
doanimation 61
waitstate
waittext
waitbutton
- playsfx 5
+ playse 5
goto EventScript_15F452
end
@@ -935,7 +935,7 @@ gUnknown_0819F818:: @ 819F818
faceplayer
move LAST_TALKED, Movement_19F8F0
waitmove 0
- specialval RESULT, ScrSpecial_HasTrainerBeenFought
+ specialvar RESULT, ScrSpecial_HasTrainerBeenFought
compare_var_to_imm RESULT, 0
goto_if 5, EventScript_19F83F
special PlayTrainerEncounterMusic
@@ -949,7 +949,7 @@ gUnknown_0819F840:: @ 819F840
lock
faceplayer
call EventScript_19F8E5
- specialval RESULT, ScrSpecial_HasTrainerBeenFought
+ specialvar RESULT, ScrSpecial_HasTrainerBeenFought
compare_var_to_imm RESULT, 0
goto_if 5, EventScript_19F877
special CheckForAlivePartyMons
@@ -978,7 +978,7 @@ gUnknown_0819F878:: @ 819F878
gUnknown_0819F887:: @ 819F887
call EventScript_19F8E5
- specialval RESULT, ScrSpecial_GetTrainerEyeRematchFlag
+ specialvar RESULT, ScrSpecial_GetTrainerEyeRematchFlag
compare_var_to_imm RESULT, 0
goto_if_eq EventScript_19F8AD
special PlayTrainerEncounterMusic
@@ -995,7 +995,7 @@ EventScript_19F8AD:
endtrainerbattle
gUnknown_0819F8AE:: @ 819F8AE
- specialval RESULT, ScrSpecial_GetTrainerEyeRematchFlag
+ specialvar RESULT, ScrSpecial_GetTrainerEyeRematchFlag
compare_var_to_imm RESULT, 0
goto_if_eq EventScript_19F8DD
special CheckForAlivePartyMons
@@ -1035,7 +1035,7 @@ EventScript_19F8F2:
waittext
waitbutton
reptrainerbattle
- specialval RESULT, ScrSpecial_GetTrainerBattleMode
+ specialvar RESULT, ScrSpecial_GetTrainerBattleMode
compare_var_to_imm RESULT, 0
goto_if_eq EventScript_19F934
compare_var_to_imm RESULT, 2
@@ -1470,7 +1470,7 @@ dont_heal_party:: @ 819FDC7
return
OldaleTown_PokemonCenter_1F_EventScript_19FDCE:: @ 819FDCE
- specialval RESULT, IsPokerusInParty
+ specialvar RESULT, IsPokerusInParty
compare_var_to_imm RESULT, 1
goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_19FDEA
compare_var_to_imm RESULT, 0
@@ -1556,11 +1556,11 @@ Std_ObtainItem_Fail: @ 819FECC
return
PlayGetItemFanfare:
- fanfare 0x172
+ playfanfare 0x172
return
PlayGetTMHMFanfare:
- fanfare 0x174
+ playfanfare 0x174
return
Std_ObtainDecoration: @ 819FEDA
@@ -1578,7 +1578,7 @@ Std_ObtainDecoration_: @ 819FEE8
return
Std_ObtainDecoration_Success: @ 819FF03
- fanfare 0x172
+ playfanfare 0x172
message Message_ObtainedDecoration
waitfanfare
waittext
@@ -1593,7 +1593,7 @@ Std_ObtainDecoration_Fail: @ 819FF1B
Std_FindItem: @ 819FF21
lock
faceplayer
- checksound
+ waitse
additem 0x8000, 0x8001
copyvar 0x8007, RESULT
bufferitem 1, 0x8000
@@ -1622,7 +1622,7 @@ Std_FindItem_Fail: @ 819FF65
HiddenItemScript:: @ 819FF7B
lockall
- checksound
+ waitse
additem 0x8005, 1
copyvar 0x8007, RESULT
bufferitem 0x1, 0x8005
@@ -1675,7 +1675,7 @@ gUnknown_081A0009:: @ 81A0009
lockall
setvar 0x8004, 0
special DoPCTurnOnEffect
- playsfx 4
+ playse 4
msgbox UnknownString_81A09EC, 4
goto EventScript_1A0023
end
@@ -1698,7 +1698,7 @@ EventScript_1A0033:
end
EventScript_1A0070:
- playsfx 2
+ playse 2
msgbox UnknownString_81A0A54, 4
special PlayerPC
waitstate
@@ -1706,7 +1706,7 @@ EventScript_1A0070:
end
EventScript_1A0085:
- playsfx 2
+ playse 2
checkflag 2123
call_if 0, EventScript_1A00AC
checkflag 2123
@@ -1727,7 +1727,7 @@ EventScript_1A00B5:
EventScript_1A00BE:
setvar 0x8004, 0
- playsfx 3
+ playse 3
special DoPCTurnOffEffect
releaseall
end
@@ -1735,7 +1735,7 @@ EventScript_1A00BE:
EventScript_1A00CB:
checkflag 2052
goto_if 0, EventScript_1A00BE
- playsfx 2
+ playse 2
special AccessHallOfFamePC
waitstate
goto EventScript_1A0033
@@ -1797,7 +1797,7 @@ RustboroCity_Gym_EventScript_1A00FB:: @ 81A00FB
DewfordTown_EventScript_1A0102:: @ 81A0102
DewfordTown_Hall_EventScript_1A0102:: @ 81A0102
- checkdailyflags
+ dodailyevents
setvar 0x8004, 0
special sub_80FA5BC
return
@@ -2095,7 +2095,7 @@ MossdeepCity_Gym_EventScript_1A02C5:: @ 81A02C5
PetalburgCity_Gym_EventScript_1A02C5:: @ 81A02C5
RustboroCity_Gym_EventScript_1A02C5:: @ 81A02C5
SootopolisCity_Gym_1F_EventScript_1A02C5:: @ 81A02C5
- fanfare 369
+ playfanfare 369
waitfanfare
return
@@ -2104,7 +2104,7 @@ Route111_OldLadysRestStop_EventScript_1A02CA:: @ 81A02CA
Route119_WeatherInstitute_1F_EventScript_1A02CA:: @ 81A02CA
SSTidalRooms_EventScript_1A02CA:: @ 81A02CA
fadescreen 1
- fanfare 368
+ playfanfare 368
waitfanfare
special ScrSpecial_HealPlayerParty
fadescreen 0
@@ -2123,14 +2123,14 @@ DewfordTown_EventScript_1A02E7:: @ 81A02E7
Route104_EventScript_1A02E7:: @ 81A02E7
Route109_EventScript_1A02E7:: @ 81A02E7
setflag 0x4001
- playmusic 431, 0
+ playbgm 431, 0
return
DewfordTown_EventScript_1A02EF:: @ 81A02EF
Route104_EventScript_1A02EF:: @ 81A02EF
Route109_EventScript_1A02EF:: @ 81A02EF
clearflag 0x4001
- fadedefault
+ fadedefaultbgm
return
LittlerootTown_ProfessorBirchsLab_EventScript_1A02F4:: @ 81A02F4
@@ -2204,7 +2204,7 @@ Route101_EventScript_1A03A5:: @ 81A03A5
EverGrandeCity_ChampionsRoom_EventScript_1A03B0:: @ 81A03B0
Route101_EventScript_1A03B0:: @ 81A03B0
setvar 0x8004, 0
- specialval RESULT, ScriptGetPokedexInfo
+ specialvar RESULT, ScriptGetPokedexInfo
copyvar 0x8008, 0x8005
copyvar 0x8009, 0x8006
copyvar 0x800a, RESULT
@@ -2215,7 +2215,7 @@ Route101_EventScript_1A03B0:: @ 81A03B0
compare_var_to_imm 0x800a, 0
goto_if_eq Route101_EventScript_1A14DC
setvar 0x8004, 1
- specialval RESULT, ScriptGetPokedexInfo
+ specialvar RESULT, ScriptGetPokedexInfo
copyvar 0x8008, 0x8005
copyvar 0x8009, 0x8006
buffernum 0, 0x8008
@@ -2226,7 +2226,7 @@ Route101_EventScript_1A03B0:: @ 81A03B0
BattleTower_Outside_EventScript_1A040E:: @ 81A040E
LilycoveCity_Harbor_EventScript_1A040E:: @ 81A040E
SlateportCity_Harbor_EventScript_1A040E:: @ 81A040E
- pause 60
+ delay 60
move 0x8004, SlateportCity_Harbor_Movement_1A041C
waitmove 0
return
@@ -2263,14 +2263,14 @@ RusturfTunnel_EventScript_1A0442:: @ 81A0442
return
EventScript_1A0457: @ unreferenced?
- pause 30
+ delay 30
move 255, SlateportCity_OceanicMuseum_2F_Movement_1A0841
waitmove 0
spritevisible 255, 0, 0
- pause 30
+ delay 30
move 255, Movement_1A047A
waitmove 0
- pause 30
+ delay 30
return
Movement_1A047A:
@@ -2283,14 +2283,14 @@ SouthernIsland_Exterior_EventScript_1A047C:: @ 81A047C
call_if 1, BattleTower_Outside_EventScript_160B2F
compare_var_to_imm FACING, 3
call_if 1, BattleTower_Outside_EventScript_160B3A
- pause 30
+ delay 30
spriteinvisible 255, 0, 0
call BattleTower_Outside_EventScript_1A040E
return
CaveOfOrigin_B4F_EventScript_1A04A0:: @ 81A04A0
lockall
- checksound
+ waitse
pokecry SPECIES_GROUDON_OR_KYOGRE, 2
waitpokecry
setvar 0x4005, 1
@@ -2345,9 +2345,9 @@ MagmaHideout_B1F_EventScript_1A04FD:: @ 81A04FD
lock
faceplayer
setwildbattle SPECIES_ELECTRODE, 30, ITEM_NONE
- checksound
+ waitse
pokecry SPECIES_ELECTRODE, 2
- pause 40
+ delay 40
waitpokecry
setflag 977
setflag 2145
@@ -2361,9 +2361,9 @@ MagmaHideout_B1F_EventScript_1A051B:: @ 81A051B
lock
faceplayer
setwildbattle SPECIES_ELECTRODE, 30, ITEM_NONE
- checksound
+ waitse
pokecry SPECIES_ELECTRODE, 2
- pause 40
+ delay 40
waitpokecry
setflag 978
setflag 2145
@@ -2444,9 +2444,9 @@ Route119_EventScript_1A05C3:: @ 81A05C3
waitmove 0
move LAST_TALKED, Route119_Movement_1A0662
waitmove 0
- checksound
+ waitse
pokecry SPECIES_KECLEON, 2
- pause 40
+ delay 40
waitpokecry
setwildbattle SPECIES_KECLEON, 30, ITEM_NONE
compare_var_to_imm 0x8004, 1
@@ -2537,7 +2537,7 @@ GraniteCave_StevensRoom_EventScript_1A067F:: @ 81A067F
MtPyre_Summit_EventScript_1A067F:: @ 81A067F
SlateportCity_OceanicMuseum_2F_EventScript_1A067F:: @ 81A067F
bufferitem 0, 0x8004
- fanfare 372
+ playfanfare 372
message FallarborTown_House1_Text_1A1498
waittext
waitfanfare
@@ -2550,7 +2550,7 @@ EverGrandeCity_PhoebesRoom_EventScript_1A0693:: @ 81A0693
EverGrandeCity_SidneysRoom_EventScript_1A0693:: @ 81A0693
move 255, EverGrandeCity_SidneysRoom_Movement_1A0853
waitmove 0
- playsfx 8
+ playse 8
setmaptile 6, 1, 836, 0
setmaptile 6, 2, 837, 0
setmaptile 0, 2, 734, 1
@@ -2572,7 +2572,7 @@ EverGrandeCity_PhoebesRoom_EventScript_1A0710:: @ 81A0710
EverGrandeCity_SidneysRoom_EventScript_1A0710:: @ 81A0710
move 255, EverGrandeCity_SidneysRoom_Movement_1A0847
waitmove 0
- playsfx 52
+ playse 52
setmaptile 5, 12, 518, 1
setmaptile 6, 12, 518, 1
setmaptile 7, 12, 518, 1
@@ -3711,7 +3711,7 @@ EventScript_1A2DAA:
EventScript_1A2DB8:
closebutton
- playsfx 9
+ playse 9
setvar 0x4097, 0
setflag 173
special sub_80BB8CC
@@ -3731,7 +3731,7 @@ SecretBase_RedCave1_EventScript_1A2DDE:: @ 81A2DDE
compare_var_to_imm RESULT, 1
goto_if_eq SecretBase_RedCave1_EventScript_1A2E08
closebutton
- playsfx 9
+ playse 9
special sub_80BC440
end
@@ -3750,7 +3750,7 @@ SecretBase_RedCave1_Movement_1A2E11:: @ 81A2E11
gUnknown_081A2E14:: @ 81A2E14
lockall
setvar 0x4097, 1
- playsfx 9
+ playse 9
special sub_80BC114
compare_var_to_imm RESULT, 0
goto_if_eq EventScript_1A2E38
@@ -4480,7 +4480,7 @@ SlateportCity_OceanicMuseum_1F_EventScript_1ADF96:: @ 81ADF96
SlateportCity_PokemonFanClub_EventScript_1ADFA0:: @ 81ADFA0
lock
faceplayer
- specialval RESULT, sub_80BF544
+ specialvar RESULT, sub_80BF544
compare_var_to_imm RESULT, 0
goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADE4D
setvar 0x8005, 3
@@ -4870,22 +4870,22 @@ SkyPillar_4F_MapScript1_1C6BBF:: @ 81C6BBF
S_FallDownHole:: @ 81C6BC5
lockall
- pause 20
+ delay 20
move 255, GraniteCave_B1F_Movement_1C6BF7
waitmove 0
- playsfx 43
- pause 60
+ playse 43
+ delay 60
warphole UNDEFINED
waitstate
end
gUnknown_081C6BDE:: @ 81C6BDE
lockall
- pause 20
+ delay 20
move 255, GraniteCave_B1F_Movement_1C6BF7
waitmove 0
- playsfx 43
- pause 60
+ playse 43
+ delay 60
special sp13F_fall_to_last_warp
waitstate
end
diff --git a/data/field_move_scripts.inc b/data/field_move_scripts.inc
index 3716eab3c..ad87919b5 100644
--- a/data/field_move_scripts.inc
+++ b/data/field_move_scripts.inc
@@ -87,7 +87,7 @@ DoRockSmashMovement: @ 81B0F0C
move LAST_TALKED, RockSmashMovement
waitmove 0
disappear LAST_TALKED
- specialval RESULT, sub_810F5BC
+ specialvar RESULT, sub_810F5BC
compare_var_to_imm RESULT, 1
goto_if_eq DoRockSmashMovement_Done
special ScrSpecial_RockSmashWildEncounter
diff --git a/data/scripts/berry_tree.inc b/data/scripts/berry_tree.inc
index 92c5f83b3..573144019 100644
--- a/data/scripts/berry_tree.inc
+++ b/data/scripts/berry_tree.inc
@@ -21,7 +21,7 @@ Route102_EventScript_1A1533:: @ 81A1533
Route102_EventScript_1A153D:: @ 81A153D
lock
faceplayer
- specialval RESULT, PlayerHasBerries
+ specialvar RESULT, PlayerHasBerries
compare_var_to_imm RESULT, 1
goto_if_eq Route102_EventScript_1A1558
message Route102_Text_1A16B6
@@ -113,7 +113,7 @@ Route102_EventScript_1A161D:: @ 81A161D
goto_if_eq Route102_EventScript_1A1642
special FieldObjectInteractionRemoveBerryTree
message Route102_Text_1A17FD
- fanfare 387
+ playfanfare 387
waittext
waitfanfare
waitbutton
diff --git a/data/scripts/cable_club.inc b/data/scripts/cable_club.inc
index a93a5f044..937ede6cf 100644
--- a/data/scripts/cable_club.inc
+++ b/data/scripts/cable_club.inc
@@ -136,7 +136,7 @@ OldaleTown_PokemonCenter_2F_EventScript_1A3E30:: @ 81A3E30
waitmove 0
message OldaleTown_PokemonCenter_2F_Text_1A4E50
waittext
- playsfx 21
+ playse 21
message OldaleTown_PokemonCenter_2F_Text_1A4E79
waittext
move 255, OldaleTown_PokemonCenter_2F_Movement_1A4358
@@ -223,7 +223,7 @@ OldaleTown_PokemonCenter_2F_EventScript_1A3F5E:: @ 81A3F5E
waittext
setmaptile 5, 3, 514, 0
special DrawWholeMapView
- pause 60
+ delay 60
move LAST_TALKED, OldaleTown_PokemonCenter_2F_Movement_1A4356
waitmove 0
closebutton
@@ -388,7 +388,7 @@ OldaleTown_PokemonCenter_2F_EventScript_1A4166:: @ 81A4166
waittext
setmaptile 8, 3, 514, 0
special DrawWholeMapView
- pause 60
+ delay 60
move LAST_TALKED, OldaleTown_PokemonCenter_2F_Movement_1A4356
waitmove 0
closebutton
@@ -405,10 +405,10 @@ OldaleTown_PokemonCenter_2F_EventScript_1A4166:: @ 81A4166
goto OldaleTown_PokemonCenter_2F_EventScript_1A4325
OldaleTown_PokemonCenter_2F_EventScript_1A41BB:: @ 81A41BB
- specialval RESULT, CalculatePlayerPartyCount
+ specialvar RESULT, CalculatePlayerPartyCount
compare_var_to_imm RESULT, 2
goto_if 0, OldaleTown_PokemonCenter_2F_EventScript_1A41E1
- specialval RESULT, GetNameOfEnigmaBerryInPlayerParty
+ specialvar RESULT, GetNameOfEnigmaBerryInPlayerParty
compare_var_to_imm RESULT, 1
goto_if_eq OldaleTown_PokemonCenter_2F_EventScript_1A41EE
setvar RESULT, 1
@@ -486,7 +486,7 @@ OldaleTown_PokemonCenter_2F_EventScript_1A4294:: @ 81A4294
waittext
setmaptile 11, 3, 514, 0
special DrawWholeMapView
- pause 60
+ delay 60
move LAST_TALKED, OldaleTown_PokemonCenter_2F_Movement_1A4356
waitmove 0
closebutton
diff --git a/data/scripts/contest_hall.inc b/data/scripts/contest_hall.inc
index afac5e6ed..3588aff89 100644
--- a/data/scripts/contest_hall.inc
+++ b/data/scripts/contest_hall.inc
@@ -345,13 +345,13 @@ LinkContestRoom1_EventScript_1A5323:: @ 81A5323
waitmove 0
releaseall
reappear 13
- playsfx 10
+ playse 10
lockall
move 0x800b, LinkContestRoom1_Movement_1A5D9C
waitmove 0
releaseall
addvar 0x8006, -1
- playsfx 15
+ playse 15
special ShowContestEntryMonPic
call LinkContestRoom1_EventScript_1A535E
return
@@ -371,14 +371,14 @@ LinkContestRoom1_EventScript_1A5370:: @ 81A5370
LinkContestRoom1_EventScript_1A5377:: @ 81A5377
call LinkContestRoom1_EventScript_1A53B3
call LinkContestRoom1_EventScript_1A53CE
- playsfx 223
+ playse 223
waittext
call LinkContestRoom1_EventScript_1A5A90
move 1, LinkContestRoom1_Movement_1A5D9F
waitmove 0
move 2, LinkContestRoom1_Movement_1A5DA1
waitmove 0
- pause 20
+ delay 20
move 1, LinkContestRoom1_Movement_1A5D8F
move 2, LinkContestRoom1_Movement_1A5D8F
waitmove 0
@@ -408,7 +408,7 @@ LinkContestRoom1_EventScript_1A53DF:: @ 81A53DF
LinkContestRoom1_EventScript_1A53E5:: @ 81A53E5
move 1, LinkContestRoom1_Movement_1A5DAF
waitmove 0
- playsfx 223
+ playse 223
call LinkContestRoom1_EventScript_1A5AE4
move 9, LinkContestRoom1_Movement_1A5DB7
move 12, LinkContestRoom1_Movement_1A5DBB
@@ -621,8 +621,8 @@ LinkContestRoom1_EventScript_1A5760:: @ 81A5760
compare_var_to_imm 0x4001, 1
goto_if_eq LinkContestRoom1_EventScript_1A5783
move 6, LinkContestRoom1_Movement_1A5D8D
- playsfx 21
- pause 14
+ playse 21
+ delay 14
setvar 0x4001, 1
addvar 0x4000, 65535
return
@@ -634,8 +634,8 @@ LinkContestRoom1_EventScript_1A5784:: @ 81A5784
compare_var_to_imm 0x4002, 1
goto_if_eq LinkContestRoom1_EventScript_1A57A7
move 12, LinkContestRoom1_Movement_1A5D8D
- playsfx 21
- pause 14
+ playse 21
+ delay 14
setvar 0x4002, 1
addvar 0x4000, 65535
return
@@ -647,8 +647,8 @@ LinkContestRoom1_EventScript_1A57A8:: @ 81A57A8
compare_var_to_imm 0x4003, 1
goto_if_eq LinkContestRoom1_EventScript_1A57CB
move 7, LinkContestRoom1_Movement_1A5D8D
- playsfx 21
- pause 14
+ playse 21
+ delay 14
setvar 0x4003, 1
addvar 0x4000, 65535
return
@@ -660,8 +660,8 @@ LinkContestRoom1_EventScript_1A57CC:: @ 81A57CC
compare_var_to_imm 0x4004, 1
goto_if_eq LinkContestRoom1_EventScript_1A57EF
move 8, LinkContestRoom1_Movement_1A5D8D
- playsfx 21
- pause 14
+ playse 21
+ delay 14
setvar 0x4004, 1
addvar 0x4000, 65535
return
@@ -673,8 +673,8 @@ LinkContestRoom1_EventScript_1A57F0:: @ 81A57F0
compare_var_to_imm 0x4005, 1
goto_if_eq LinkContestRoom1_EventScript_1A5813
move 9, LinkContestRoom1_Movement_1A5D8D
- playsfx 21
- pause 14
+ playse 21
+ delay 14
setvar 0x4005, 1
addvar 0x4000, 65535
return
@@ -686,8 +686,8 @@ LinkContestRoom1_EventScript_1A5814:: @ 81A5814
compare_var_to_imm 0x4006, 1
goto_if_eq LinkContestRoom1_EventScript_1A5837
move 10, LinkContestRoom1_Movement_1A5D8D
- playsfx 21
- pause 14
+ playse 21
+ delay 14
setvar 0x4006, 1
addvar 0x4000, 65535
return
@@ -699,8 +699,8 @@ LinkContestRoom1_EventScript_1A5838:: @ 81A5838
compare_var_to_imm 0x4007, 1
goto_if_eq LinkContestRoom1_EventScript_1A585B
move 11, LinkContestRoom1_Movement_1A5D8D
- playsfx 21
- pause 14
+ playse 21
+ delay 14
setvar 0x4007, 1
addvar 0x4000, 65535
return
@@ -712,8 +712,8 @@ LinkContestRoom1_EventScript_1A585C:: @ 81A585C
compare_var_to_imm 0x4008, 1
goto_if_eq LinkContestRoom1_EventScript_1A587F
move 15, LinkContestRoom1_Movement_1A5D8D
- playsfx 21
- pause 14
+ playse 21
+ delay 14
setvar 0x4008, 1
addvar 0x4000, 65535
return
@@ -805,7 +805,7 @@ LinkContestRoom1_EventScript_1A594A:: @ 81A594A
setvar 0x4009, 1
showcontestresults
setvar 0x4009, 0
- playmusic 439, 0
+ playbgm 439, 0
return
LinkContestRoom1_EventScript_1A5984:: @ 81A5984
@@ -817,7 +817,7 @@ LinkContestRoom1_EventScript_1A5984:: @ 81A5984
LinkContestRoom1_EventScript_1A5998:: @ 81A5998
message2 LinkContestRoom1_Text_1A6C06
waittext
- pause 30
+ delay 30
return
LinkContestRoom1_EventScript_1A59A2:: @ 81A59A2
@@ -829,7 +829,7 @@ LinkContestRoom1_EventScript_1A59A2:: @ 81A59A2
LinkContestRoom1_EventScript_1A59B6:: @ 81A59B6
message2 LinkContestRoom1_Text_1A6C21
waittext
- pause 30
+ delay 30
return
LinkContestRoom1_EventScript_1A59C0:: @ 81A59C0
@@ -841,7 +841,7 @@ LinkContestRoom1_EventScript_1A59C0:: @ 81A59C0
LinkContestRoom1_EventScript_1A59D4:: @ 81A59D4
message2 LinkContestRoom1_Text_1A6C9D
waittext
- pause 30
+ delay 30
return
LinkContestRoom1_EventScript_1A59DE:: @ 81A59DE
@@ -853,7 +853,7 @@ LinkContestRoom1_EventScript_1A59DE:: @ 81A59DE
LinkContestRoom1_EventScript_1A59F2:: @ 81A59F2
message2 LinkContestRoom1_Text_1A6D16
waittext
- pause 30
+ delay 30
return
LinkContestRoom1_EventScript_1A59FC:: @ 81A59FC
@@ -890,7 +890,7 @@ LinkContestRoom1_EventScript_1A5A49:: @ 81A5A49
call LinkContestRoom1_EventScript_1A5A75
move 0x4003, LinkContestRoom1_Movement_1A5D99
waitmove 0
- playsfx 223
+ playse 223
setvar 0x4001, 0
return
@@ -913,14 +913,14 @@ LinkContestRoom1_EventScript_1A5A90:: @ 81A5A90
move 9, LinkContestRoom1_Movement_1A5DB7
move 12, LinkContestRoom1_Movement_1A5DBB
move 7, LinkContestRoom1_Movement_1A5DB7
- pause 30
+ delay 30
move 10, LinkContestRoom1_Movement_1A5DAF
move 11, LinkContestRoom1_Movement_1A5DBB
move 6, LinkContestRoom1_Movement_1A5DB3
move 8, LinkContestRoom1_Movement_1A5DAF
compare_var_to_imm 0x4001, 4
goto_if 5, LinkContestRoom1_EventScript_1A5A90
- pause 30
+ delay 30
return
LinkContestRoom1_EventScript_1A5AE4:: @ 81A5AE4
@@ -939,7 +939,7 @@ LinkContestRoom1_EventScript_1A5AE4:: @ 81A5AE4
vspriteface 25, 4
vspriteface 27, 3
vspriteface 28, 4
- pause 10
+ delay 10
vspriteface 0, 4
vspriteface 2, 4
vspriteface 4, 4
@@ -955,7 +955,7 @@ LinkContestRoom1_EventScript_1A5AE4:: @ 81A5AE4
vspriteface 25, 2
vspriteface 27, 2
vspriteface 28, 2
- pause 10
+ delay 10
vspriteface 1, 2
vspriteface 3, 2
vspriteface 5, 2
@@ -972,7 +972,7 @@ LinkContestRoom1_EventScript_1A5AE4:: @ 81A5AE4
vspriteface 26, 4
vspriteface 29, 3
vspriteface 30, 3
- pause 10
+ delay 10
vspriteface 1, 4
vspriteface 3, 4
vspriteface 5, 4
@@ -989,7 +989,7 @@ LinkContestRoom1_EventScript_1A5AE4:: @ 81A5AE4
vspriteface 26, 2
vspriteface 29, 2
vspriteface 30, 2
- pause 10
+ delay 10
return
LinkContestRoom1_EventScript_1A5BAB:: @ 81A5BAB
@@ -1002,10 +1002,10 @@ LinkContestRoom1_EventScript_1A5BAB:: @ 81A5BAB
waittext
call LinkContestRoom1_EventScript_1A5C7F
call LinkContestRoom1_EventScript_1A5CE5
- playsfx 223
+ playse 223
setvar 0x4001, 0
call LinkContestRoom1_EventScript_1A5A90
- pause 30
+ delay 30
special sub_80C4CF8
compare_var_to_imm 0x8004, 1
goto_if_eq LinkContestRoom1_EventScript_1A5C46
@@ -1014,14 +1014,14 @@ LinkContestRoom1_EventScript_1A5BAB:: @ 81A5BAB
LinkContestRoom1_EventScript_1A5BF6:: @ 81A5BF6
inccounter GAME_STAT_WON_CONTEST
msgbox LinkContestRoom1_Text_1A6DF1, 3
- pause 90
+ delay 90
special sub_80C4CF8
compare_var_to_imm 0x8004, 1
goto_if_eq LinkContestRoom1_EventScript_1A5C46
return
LinkContestRoom1_EventScript_1A5C12:: @ 81A5C12
- specialval RESULT, sub_80C4440
+ specialvar RESULT, sub_80C4440
compare_var_to_imm RESULT, 1
goto_if_eq LinkContestRoom1_EventScript_1A5C23
return
@@ -1050,7 +1050,7 @@ LinkContestRoom1_EventScript_1A5C46:: @ 81A5C46
return
LinkContestRoom1_EventScript_1A5C4C:: @ 81A5C4C
- pause 60
+ delay 60
call LinkContestRoom1_EventScript_1A5C6A
special sub_80C4CF8
compare_var_to_imm 0x8004, 1
@@ -1120,7 +1120,7 @@ LinkContestRoom1_EventScript_1A5CFC:: @ 81A5CFC
compare_var_to_imm 0x4088, 2
call_if 1, LinkContestRoom1_EventScript_1A5C42
inccounter GAME_STAT_WON_CONTEST
- specialval RESULT, sub_80C4440
+ specialvar RESULT, sub_80C4440
compare_var_to_imm RESULT, 0
goto_if_eq LinkContestRoom1_EventScript_1A5D5B
compare_var_to_imm CONTEST_RANK, 3
@@ -1146,7 +1146,7 @@ LinkContestRoom1_EventScript_1A5D5B:: @ 81A5D5B
setflag 2107
lockall
msgbox LinkContestRoom1_Text_1A6D6A, 4
- fanfare 370
+ playfanfare 370
msgbox LinkContestRoom1_Text_1A6D96, 4
waitfanfare
special sub_80C4858
diff --git a/data/scripts/day_care.inc b/data/scripts/day_care.inc
index acb87170a..b2d83196e 100644
--- a/data/scripts/day_care.inc
+++ b/data/scripts/day_care.inc
@@ -2,7 +2,7 @@ Route117_EventScript_1B222D:: @ 81B222D
lock
faceplayer
special sp0B5_daycare
- specialval RESULT, sp0B6_daycare
+ specialvar RESULT, sp0B6_daycare
compare_var_to_imm RESULT, 1
goto_if_eq Route117_EventScript_1B2262
compare_var_to_imm RESULT, 2
@@ -27,7 +27,7 @@ Route117_EventScript_1B2262:: @ 81B2262
end
Route117_EventScript_1B2298:: @ 81B2298
- specialval RESULT, CalculatePlayerPartyCount
+ specialvar RESULT, CalculatePlayerPartyCount
compare_var_to_imm RESULT, 6
goto_if 5, Route117_EventScript_1B22B2
msgbox Route117_Text_1B2766, 4
@@ -36,7 +36,7 @@ Route117_EventScript_1B2298:: @ 81B2298
Route117_EventScript_1B22B2:: @ 81B22B2
message Route117_Text_1B27A2
- fanfare 367
+ playfanfare 367
waitfanfare
waittext
waitbutton
@@ -47,7 +47,7 @@ Route117_EventScript_1B22B2:: @ 81B22B2
end
Route117_EventScript_1B22CD:: @ 81B22CD
- specialval RESULT, sub_8042B4C
+ specialvar RESULT, sub_8042B4C
compare_var_to_imm RESULT, 1
call_if 1, Route117_EventScript_1B22DE
return
@@ -81,7 +81,7 @@ Route117_EventScript_1B22FE:: @ 81B22FE
Route117_PokemonDayCare_EventScript_1B2327:: @ 81B2327
lock
faceplayer
- specialval RESULT, sp0B6_daycare
+ specialvar RESULT, sp0B6_daycare
compare_var_to_imm RESULT, 1
goto_if_eq Route117_PokemonDayCare_EventScript_1B2407
compare_var_to_imm RESULT, 2
@@ -96,7 +96,7 @@ Route117_PokemonDayCare_EventScript_1B2327:: @ 81B2327
end
Route117_PokemonDayCare_EventScript_1B236C:: @ 81B236C
- specialval RESULT, sub_8095B6C
+ specialvar RESULT, sub_8095B6C
compare_var_to_imm RESULT, 1
goto_if_eq Route117_PokemonDayCare_EventScript_1B23F3
msgbox Route117_PokemonDayCare_Text_1B2947, 4
@@ -105,17 +105,17 @@ Route117_PokemonDayCare_EventScript_1B236C:: @ 81B236C
waitstate
compare_var_to_imm 0x8004, 255
goto_if_eq Route117_PokemonDayCare_EventScript_1B23D0
- specialval RESULT, sub_8095C10
+ specialvar RESULT, sub_8095C10
compare_var_to_imm RESULT, 0
goto_if_eq Route117_PokemonDayCare_EventScript_1B23FD
- specialval 0x8005, sub_8042328
- checksound
+ specialvar 0x8005, sub_8042328
+ waitse
pokecry 0x8005, 0
msgbox Route117_PokemonDayCare_Text_1B296E, 4
waitpokecry
special Daycare_SendPokemon_Special
inccounter GAME_STAT_USED_DAYCARE
- specialval RESULT, sp0B6_daycare
+ specialvar RESULT, sp0B6_daycare
compare_var_to_imm RESULT, 2
goto_if_eq Route117_PokemonDayCare_EventScript_1B23DA
release
@@ -153,7 +153,7 @@ Route117_PokemonDayCare_EventScript_1B2411:: @ 81B2411
return
Route117_PokemonDayCare_EventScript_1B241A:: @ 81B241A
- specialval RESULT, sub_80417B8
+ specialvar RESULT, sub_80417B8
compare_var_to_imm RESULT, 0
call_if 5, Route117_PokemonDayCare_EventScript_1B2411
return
@@ -172,10 +172,10 @@ Route117_PokemonDayCare_EventScript_1B242B:: @ 81B242B
end
Route117_PokemonDayCare_EventScript_1B2469:: @ 81B2469
- specialval RESULT, CalculatePlayerPartyCount
+ specialvar RESULT, CalculatePlayerPartyCount
compare_var_to_imm RESULT, 6
goto_if_eq Route117_PokemonDayCare_EventScript_1B2539
- specialval RESULT, sp0B6_daycare
+ specialvar RESULT, sp0B6_daycare
setvar 0x8004, 0
compare_var_to_imm RESULT, 2
goto_if_eq Route117_PokemonDayCare_EventScript_1B24A8
@@ -196,7 +196,7 @@ Route117_PokemonDayCare_EventScript_1B24A8:: @ 81B24A8
end
Route117_PokemonDayCare_EventScript_1B24C4:: @ 81B24C4
- specialval RESULT, sub_80B7CE8
+ specialvar RESULT, sub_80B7CE8
compare_var_to_imm RESULT, 1
goto_if_eq Route117_PokemonDayCare_EventScript_1B24DE
msgbox Route117_PokemonDayCare_Text_1B2A30, 4
@@ -206,15 +206,15 @@ Route117_PokemonDayCare_EventScript_1B24C4:: @ 81B24C4
Route117_PokemonDayCare_EventScript_1B24DE:: @ 81B24DE
move 1, Route117_PokemonDayCare_Movement_1B2543
waitmove 0
- specialval RESULT, sub_8041648
+ specialvar RESULT, sub_8041648
special sub_80B7D0C
- playsfx 95
+ playse 95
msgbox Route117_PokemonDayCare_Text_1B2B75, 4
- checksound
+ waitse
pokecry RESULT, 0
msgbox Route117_PokemonDayCare_Text_1B2B93, 4
waitpokecry
- specialval RESULT, sp0B6_daycare
+ specialvar RESULT, sp0B6_daycare
compare_var_to_imm RESULT, 2
goto_if_eq Route117_PokemonDayCare_EventScript_1B2520
goto Route117_PokemonDayCare_EventScript_1B23D0
@@ -276,7 +276,7 @@ Route117_PokemonDayCare_EventScript_1B2558:: @ 81B2558
compare_var_to_imm RESULT, 2
goto_if_eq Route117_PokemonDayCare_EventScript_1B23D0
copyvar 0x8004, RESULT
- specialval RESULT, sub_8041648
+ specialvar RESULT, sub_8041648
msgbox Route117_PokemonDayCare_Text_1B2B75, 4
msgbox Route117_PokemonDayCare_Text_1B2A76, 4
release
diff --git a/data/scripts/gabby_and_ty.inc b/data/scripts/gabby_and_ty.inc
index a2bae7c46..69580a835 100644
--- a/data/scripts/gabby_and_ty.inc
+++ b/data/scripts/gabby_and_ty.inc
@@ -2,7 +2,7 @@ Route111_EventScript_1AE313:: @ 81AE313
Route118_EventScript_1AE313:: @ 81AE313
Route120_EventScript_1AE313:: @ 81AE313
settrainerflag OPPONENT_GABBY_AND_TY_6
- specialval RESULT, GabbyAndTyGetBattleNum
+ specialvar RESULT, GabbyAndTyGetBattleNum
switch RESULT
case 0, Route111_EventScript_1AE384
case 1, Route111_EventScript_1AE38A
@@ -244,11 +244,11 @@ Route120_EventScript_1AE60F:: @ 81AE60F
call_if 1, Route111_EventScript_1AE5FD
checkflag 1
goto_if_eq Route111_EventScript_1AE73A
- specialval RESULT, GabbyAndTyGetLastQuote
+ specialvar RESULT, GabbyAndTyGetLastQuote
compare_var_to_imm RESULT, 0
goto_if_eq Route111_EventScript_1AE69F
msgbox Route111_Text_1AC10A, 4
- specialval RESULT, sub_80BDD18
+ specialvar RESULT, sub_80BDD18
switch RESULT
case 0, Route111_EventScript_1AE6AD
case 1, Route111_EventScript_1AE6BB
diff --git a/data/scripts/magma_chimney.inc b/data/scripts/magma_chimney.inc
index 248c9622e..2b3bd61df 100644
--- a/data/scripts/magma_chimney.inc
+++ b/data/scripts/magma_chimney.inc
@@ -37,7 +37,7 @@ MtChimney_EventScript_1B2CCB:: @ 81B2CCB
.endif
move 2, MtChimney_Movement_1A0839
waitmove 0
- playsfx 21
+ playse 21
move 2, MtChimney_Movement_1A0833
waitmove 0
move 2, MtChimney_Movement_1A0835
@@ -58,7 +58,7 @@ MtChimney_EventScript_1B2CCB:: @ 81B2CCB
msgbox MtChimney_Text_1B3A90, 4
.endif
closebutton
- pause 30
+ delay 30
fadescreen 1
disappear 2
disappear 3
diff --git a/data/scripts/maps/AbandonedShip_Corridors_B1F.inc b/data/scripts/maps/AbandonedShip_Corridors_B1F.inc
index c2f813e88..85531be99 100644
--- a/data/scripts/maps/AbandonedShip_Corridors_B1F.inc
+++ b/data/scripts/maps/AbandonedShip_Corridors_B1F.inc
@@ -4,7 +4,7 @@ AbandonedShip_Corridors_B1F_MapScripts:: @ 815E98F
.byte 0
AbandonedShip_Corridors_B1F_MapScript1_15E99A:: @ 815E99A
- warp4 AbandonedShip_Underwater1, 255, 5, 4
+ setdivewarp AbandonedShip_Underwater1, 255, 5, 4
end
AbandonedShip_Corridors_B1F_MapScript1_15E9A3:: @ 815E9A3
@@ -34,7 +34,7 @@ AbandonedShip_Corridors_B1F_EventScript_15E9D3:: @ 815E9D3
compare_var_to_imm RESULT, 0
goto_if_eq AbandonedShip_Corridors_B1F_EventScript_15EA0A
msgbox AbandonedShip_Corridors_B1F_Text_198692, 4
- playsfx 21
+ playse 21
removeitem ITEM_STORAGE_KEY, 1
setflag 239
call AbandonedShip_Corridors_B1F_EventScript_15E9C0
diff --git a/data/scripts/maps/AbandonedShip_HiddenFloorCorridors.inc b/data/scripts/maps/AbandonedShip_HiddenFloorCorridors.inc
index c3a48f55d..fe833b47c 100644
--- a/data/scripts/maps/AbandonedShip_HiddenFloorCorridors.inc
+++ b/data/scripts/maps/AbandonedShip_HiddenFloorCorridors.inc
@@ -4,7 +4,7 @@ AbandonedShip_HiddenFloorCorridors_MapScripts:: @ 815EB46
.byte 0
AbandonedShip_HiddenFloorCorridors_MapScript1_15EB51:: @ 815EB51
- warp4 AbandonedShip_Underwater1, 255, 5, 4
+ setdivewarp AbandonedShip_Underwater1, 255, 5, 4
end
AbandonedShip_HiddenFloorCorridors_MapScript1_15EB5A:: @ 815EB5A
@@ -66,7 +66,7 @@ AbandonedShip_HiddenFloorCorridors_EventScript_15EBF3:: @ 815EBF3
compare_var_to_imm RESULT, 0
goto_if_eq AbandonedShip_HiddenFloorCorridors_EventScript_15ECCF
msgbox AbandonedShip_HiddenFloorCorridors_Text_198E90, 4
- playsfx 21
+ playse 21
removeitem ITEM_ROOM_1_KEY, 1
setflag 240
call AbandonedShip_HiddenFloorCorridors_EventScript_15EBA3
@@ -82,7 +82,7 @@ AbandonedShip_HiddenFloorCorridors_EventScript_15EC2A:: @ 815EC2A
compare_var_to_imm RESULT, 0
goto_if_eq AbandonedShip_HiddenFloorCorridors_EventScript_15ECD9
msgbox AbandonedShip_HiddenFloorCorridors_Text_198E90, 4
- playsfx 21
+ playse 21
removeitem ITEM_ROOM_2_KEY, 1
setflag 241
call AbandonedShip_HiddenFloorCorridors_EventScript_15EBAD
@@ -98,7 +98,7 @@ AbandonedShip_HiddenFloorCorridors_EventScript_15EC61:: @ 815EC61
compare_var_to_imm RESULT, 0
goto_if_eq AbandonedShip_HiddenFloorCorridors_EventScript_15ECE3
msgbox AbandonedShip_HiddenFloorCorridors_Text_198E90, 4
- playsfx 21
+ playse 21
removeitem ITEM_ROOM_4_KEY, 1
setflag 242
call AbandonedShip_HiddenFloorCorridors_EventScript_15EBB7
@@ -114,7 +114,7 @@ AbandonedShip_HiddenFloorCorridors_EventScript_15EC98:: @ 815EC98
compare_var_to_imm RESULT, 0
goto_if_eq AbandonedShip_HiddenFloorCorridors_EventScript_15ECED
msgbox AbandonedShip_HiddenFloorCorridors_Text_198E90, 4
- playsfx 21
+ playse 21
removeitem ITEM_ROOM_6_KEY, 1
setflag 243
call AbandonedShip_HiddenFloorCorridors_EventScript_15EBC1
diff --git a/data/scripts/maps/AbandonedShip_HiddenFloorRooms.inc b/data/scripts/maps/AbandonedShip_HiddenFloorRooms.inc
index bda0e9603..4f3e0f099 100644
--- a/data/scripts/maps/AbandonedShip_HiddenFloorRooms.inc
+++ b/data/scripts/maps/AbandonedShip_HiddenFloorRooms.inc
@@ -38,37 +38,37 @@ AbandonedShip_HiddenFloorRooms_EventScript_15ED95:: @ 815ED95
return
AbandonedShip_HiddenFloorRooms_EventScript_15ED9B:: @ 815ED9B
- pause 20
+ delay 20
setanimation 0, 10
setanimation 1, 10
setanimation 2, 0
doanimation 54
- specialval RESULT, sub_810F4D4
+ specialvar RESULT, sub_810F4D4
compare_var_to_imm RESULT, 0
call_if 1, AbandonedShip_HiddenFloorRooms_EventScript_15EE8B
checkanimation 54
- pause 10
+ delay 10
end
AbandonedShip_HiddenFloorRooms_EventScript_15EDC4:: @ 815EDC4
end
AbandonedShip_HiddenFloorRooms_EventScript_15EDC5:: @ 815EDC5
- specialval RESULT, sub_810F488
+ specialvar RESULT, sub_810F488
compare_var_to_imm RESULT, 1
goto_if_eq AbandonedShip_HiddenFloorRooms_EventScript_15EDEA
- pause 20
+ delay 20
compare_var_to_imm RESULT, 0
call_if 1, AbandonedShip_HiddenFloorRooms_EventScript_15EE6B
checkanimation 54
- pause 10
+ delay 10
end
AbandonedShip_HiddenFloorRooms_EventScript_15EDEA:: @ 815EDEA
end
AbandonedShip_HiddenFloorRooms_EventScript_15EDEB:: @ 815EDEB
- pause 20
+ delay 20
setanimation 0, 8
setanimation 1, 5
setanimation 2, 0
@@ -77,15 +77,15 @@ AbandonedShip_HiddenFloorRooms_EventScript_15EDEB:: @ 815EDEB
setanimation 1, 3
setanimation 2, 0
doanimation 54
- specialval RESULT, sub_810F4FC
+ specialvar RESULT, sub_810F4FC
compare_var_to_imm RESULT, 0
call_if 1, AbandonedShip_HiddenFloorRooms_EventScript_15EE9B
checkanimation 54
- pause 10
+ delay 10
end
AbandonedShip_HiddenFloorRooms_EventScript_15EE23:: @ 815EE23
- pause 20
+ delay 20
setanimation 0, 16
setanimation 1, 3
setanimation 2, 0
@@ -98,11 +98,11 @@ AbandonedShip_HiddenFloorRooms_EventScript_15EE23:: @ 815EE23
setanimation 1, 6
setanimation 2, 0
doanimation 54
- specialval RESULT, sub_810F4B0
+ specialvar RESULT, sub_810F4B0
compare_var_to_imm RESULT, 0
call_if 1, AbandonedShip_HiddenFloorRooms_EventScript_15EE7B
checkanimation 54
- pause 10
+ delay 10
end
AbandonedShip_HiddenFloorRooms_EventScript_15EE6A:: @ 815EE6A
diff --git a/data/scripts/maps/AbandonedShip_Rooms2_1F.inc b/data/scripts/maps/AbandonedShip_Rooms2_1F.inc
index 0c223cbaa..4feecded6 100644
--- a/data/scripts/maps/AbandonedShip_Rooms2_1F.inc
+++ b/data/scripts/maps/AbandonedShip_Rooms2_1F.inc
@@ -3,7 +3,7 @@ AbandonedShip_Rooms2_1F_MapScripts:: @ 815EA67
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
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq AbandonedShip_Rooms2_1F_EventScript_15EA93
msgbox AbandonedShip_Rooms2_1F_Text_198835, 6
@@ -16,7 +16,7 @@ AbandonedShip_Rooms2_1F_EventScript_15EA93:: @ 815EA93
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
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq AbandonedShip_Rooms2_1F_EventScript_15EAD9
msgbox AbandonedShip_Rooms2_1F_Text_198934, 6
diff --git a/data/scripts/maps/AbandonedShip_Rooms_B1F.inc b/data/scripts/maps/AbandonedShip_Rooms_B1F.inc
index 44b8c5f20..218f1a2ca 100644
--- a/data/scripts/maps/AbandonedShip_Rooms_B1F.inc
+++ b/data/scripts/maps/AbandonedShip_Rooms_B1F.inc
@@ -3,7 +3,7 @@ AbandonedShip_Rooms_B1F_MapScripts:: @ 815EA35
.byte 0
AbandonedShip_Rooms_B1F_MapScript1_15EA3B:: @ 815EA3B
- warp4 AbandonedShip_Underwater2, 255, 17, 4
+ setdivewarp AbandonedShip_Underwater2, 255, 17, 4
end
AbandonedShip_Rooms_B1F_EventScript_15EA44:: @ 815EA44
diff --git a/data/scripts/maps/AbandonedShip_Underwater1.inc b/data/scripts/maps/AbandonedShip_Underwater1.inc
index 71d903682..afac470ea 100644
--- a/data/scripts/maps/AbandonedShip_Underwater1.inc
+++ b/data/scripts/maps/AbandonedShip_Underwater1.inc
@@ -3,5 +3,5 @@ AbandonedShip_Underwater1_MapScripts:: @ 815EA57
.byte 0
AbandonedShip_Underwater1_MapScript1_15EA5D:: @ 815EA5D
- warp4 AbandonedShip_HiddenFloorCorridors, 255, 0, 10
+ setdivewarp AbandonedShip_HiddenFloorCorridors, 255, 0, 10
end
diff --git a/data/scripts/maps/AbandonedShip_Underwater2.inc b/data/scripts/maps/AbandonedShip_Underwater2.inc
index f7b434c07..b8facc4ec 100644
--- a/data/scripts/maps/AbandonedShip_Underwater2.inc
+++ b/data/scripts/maps/AbandonedShip_Underwater2.inc
@@ -3,5 +3,5 @@ AbandonedShip_Underwater2_MapScripts:: @ 815EB37
.byte 0
AbandonedShip_Underwater2_MapScript1_15EB3D:: @ 815EB3D
- warp4 AbandonedShip_Rooms_B1F, 255, 13, 7
+ setdivewarp AbandonedShip_Rooms_B1F, 255, 13, 7
end
diff --git a/data/scripts/maps/AncientTomb.inc b/data/scripts/maps/AncientTomb.inc
index deed30c5b..a0f00e877 100644
--- a/data/scripts/maps/AncientTomb.inc
+++ b/data/scripts/maps/AncientTomb.inc
@@ -57,9 +57,9 @@ AncientTomb_EventScript_15F042:: @ 815F042
AncientTomb_EventScript_15F050:: @ 815F050
lock
faceplayer
- checksound
+ waitse
pokecry SPECIES_REGISTEEL, 2
- pause 40
+ delay 40
waitpokecry
setwildbattle SPECIES_REGISTEEL, 40, ITEM_NONE
setflag 937
diff --git a/data/scripts/maps/AquaHideout_B2F.inc b/data/scripts/maps/AquaHideout_B2F.inc
index 845b755b7..9ed2d102c 100644
--- a/data/scripts/maps/AquaHideout_B2F.inc
+++ b/data/scripts/maps/AquaHideout_B2F.inc
@@ -10,7 +10,7 @@ AquaHideout_B2F_EventScript_15D8BD:: @ 815D8BD
MagmaHideout_B2F_EventScript_15D8BD:: @ 815D8BD
lockall
setvar 0x8008, 1
- playsfx 21
+ playse 21
move 0x8008, AquaHideout_B2F_Movement_1A0833
waitmove 0
.ifdef SAPPHIRE
@@ -43,7 +43,7 @@ AquaHideout_B2F_EventScript_15D8FD:: @ 815D8FD
move 0x8008, AquaHideout_B2F_Movement_1A0843
.endif
waitmove 0
- pause 20
+ delay 20
move 0x8008, AquaHideout_B2F_Movement_1A0839
waitmove 0
msgbox AquaHideout_B2F_Text_197162, 4
@@ -60,7 +60,7 @@ AquaHideout_B2F_EventScript_15D8FD:: @ 815D8FD
.endif
waitmove 0
disappear 0x8009
- pause 20
+ delay 20
move 0x8008, AquaHideout_B2F_Movement_1A0839
waitmove 0
msgbox AquaHideout_B2F_Text_1971AE, 4
diff --git a/data/scripts/maps/BattleTower_BattleRoom.inc b/data/scripts/maps/BattleTower_BattleRoom.inc
index 750c64b74..60685adad 100644
--- a/data/scripts/maps/BattleTower_BattleRoom.inc
+++ b/data/scripts/maps/BattleTower_BattleRoom.inc
@@ -54,7 +54,7 @@ BattleTower_BattleRoom_EventScript_160961:: @ 8160961
special LoadPlayerParty
special SavePlayerParty
special sub_8135A14
- fanfare 368
+ playfanfare 368
waitfanfare
special ScrSpecial_HealPlayerParty
@@ -108,10 +108,10 @@ BattleTower_BattleRoom_EventScript_160A94:: @ 8160A94
setvar 0x8004, 2
special sub_8135BA0
message BattleTower_BattleRoom_Text_1C6CE1
- pause 60
+ delay 60
waittext
- playsfx 55
- checksound
+ playse 55
+ waitse
msgbox BattleTower_BattleRoom_Text_1C6D05, 4
BattleTower_BattleRoom_EventScript_160AB1:: @ 8160AB1
diff --git a/data/scripts/maps/BattleTower_Elevator.inc b/data/scripts/maps/BattleTower_Elevator.inc
index 408e7485e..2c9f12a6e 100644
--- a/data/scripts/maps/BattleTower_Elevator.inc
+++ b/data/scripts/maps/BattleTower_Elevator.inc
@@ -14,7 +14,7 @@ BattleTower_Elevator_EventScript_1607E4:: @ 81607E4
waitmove 0
special sub_810EBEC
waitstate
- pause 64
+ delay 64
move 1, BattleTower_Elevator_Movement_16083D
move 255, BattleTower_Elevator_Movement_160841
waitmove 0
diff --git a/data/scripts/maps/BattleTower_Lobby.inc b/data/scripts/maps/BattleTower_Lobby.inc
index 4caffb405..c4ffe4c32 100644
--- a/data/scripts/maps/BattleTower_Lobby.inc
+++ b/data/scripts/maps/BattleTower_Lobby.inc
@@ -17,7 +17,7 @@ BattleTower_Lobby_EventScript_16029C:: @ 816029C
goto_if_eq BattleTower_Lobby_EventScript_1602E4
checkflag 237
goto_if_eq BattleTower_Lobby_EventScript_1602CD
- specialval 0x8007, sub_810F404
+ specialvar 0x8007, sub_810F404
compare_var_to_imm 0x8007, 50
goto_if 0, BattleTower_Lobby_EventScript_1602E4
clearflag 941
@@ -25,7 +25,7 @@ BattleTower_Lobby_EventScript_16029C:: @ 816029C
return
BattleTower_Lobby_EventScript_1602CD:: @ 81602CD
- specialval 0x8007, sub_810F404
+ specialvar 0x8007, sub_810F404
compare_var_to_imm 0x8007, 100
goto_if 0, BattleTower_Lobby_EventScript_1602E4
clearflag 941
@@ -84,7 +84,7 @@ BattleTower_Lobby_EventScript_160342:: @ 8160342
goto_if_eq BattleTower_Lobby_EventScript_16037D
message BattleTower_Lobby_Text_19A6BE
waittext
- fanfare 370
+ playfanfare 370
waitfanfare
msgbox BattleTower_Lobby_Text_19A719, 4
@@ -100,8 +100,8 @@ BattleTower_Lobby_EventScript_16037D:: @ 816037D
special sub_8135D84
setvar 0x8004, 3
special sub_8135BA0
- playsfx 55
- checksound
+ playse 55
+ waitse
BattleTower_Lobby_EventScript_1603AD:: @ 81603AD
setvar 0x8004, 0
@@ -114,7 +114,7 @@ BattleTower_Lobby_EventScript_1603AD:: @ 81603AD
case 0, BattleTower_Lobby_EventScript_160408
message BattleTower_Lobby_Text_19A506
waittext
- fanfare 370
+ playfanfare 370
waitfanfare
setvar 0x8004, 9
special sub_81358A4
@@ -148,8 +148,8 @@ BattleTower_Lobby_EventScript_160419:: @ 8160419
special sub_8135668
setvar 0x8004, 0
special sub_8135BA0
- playsfx 55
- checksound
+ playse 55
+ waitse
msgbox BattleTower_Lobby_Text_199FA9, 4
closebutton
setvar 0x4000, 5
@@ -166,8 +166,8 @@ BattleTower_Lobby_EventScript_16044B:: @ 816044B
waittext
setvar 0x8004, 1
special sub_8135BA0
- playsfx 55
- checksound
+ playse 55
+ waitse
setvar 0x8004, 8
setvar 0x8005, 0
special sub_8135668
@@ -241,7 +241,7 @@ BattleTower_Lobby_EventScript_160587:: @ 8160587
special sub_8135668
special LoadPlayerParty
closebutton
- pause 2
+ delay 2
call S_DoSaveDialog
setvar 0x4000, 5
hidebox 0, 0, 15, 10
@@ -402,7 +402,7 @@ BattleTower_Lobby_EventScript_160733:: @ 8160733
end
BattleTower_Lobby_EventScript_160773:: @ 8160773
- specialval RESULT, sub_810F404
+ specialvar RESULT, sub_810F404
compare_var_to_imm RESULT, 100
goto_if 0, BattleTower_Lobby_EventScript_1607C5
msgbox BattleTower_Lobby_Text_19AAC4, 4
diff --git a/data/scripts/maps/BattleTower_Outside.inc b/data/scripts/maps/BattleTower_Outside.inc
index beb9ed690..8ef5dc0ad 100644
--- a/data/scripts/maps/BattleTower_Outside.inc
+++ b/data/scripts/maps/BattleTower_Outside.inc
@@ -66,7 +66,7 @@ BattleTower_Outside_EventScript_160232:: @ 8160232
closebutton
move LAST_TALKED, BattleTower_Outside_Movement_1A0845
waitmove 0
- pause 30
+ delay 30
spriteinvisible 5, 26, 4
setvar 0x8004, 4
call BattleTower_Outside_EventScript_1A047C
diff --git a/data/scripts/maps/CaveOfOrigin_B4F.inc b/data/scripts/maps/CaveOfOrigin_B4F.inc
index e79dfb3ff..aad189887 100644
--- a/data/scripts/maps/CaveOfOrigin_B4F.inc
+++ b/data/scripts/maps/CaveOfOrigin_B4F.inc
@@ -37,7 +37,7 @@ CaveOfOrigin_B4F_EventScript_15DDD7:: @ 815DDD7
doweather
special WaitWeather
waitstate
- playsfx 209
+ playse 209
setanimation 0, 9
setanimation 1, 13
setanimation 2, 0
@@ -48,24 +48,24 @@ CaveOfOrigin_B4F_EventScript_15DDD7:: @ 815DDD7
.else
setvar RESULT, 2
.endif
- playsfx 107
+ playse 107
special sub_80818A4
waitstate
special sub_80818FC
waitstate
move 1, CaveOfOrigin_B4F_Movement_15DE7D
waitmove 0
- pause 60
+ delay 60
setwildbattle SPECIES_GROUDON_OR_KYOGRE, 45, ITEM_NONE
- checksound
+ waitse
pokecry SPECIES_GROUDON_OR_KYOGRE, 2
- pause 40
+ delay 40
waitpokecry
setflag 2145
special ScrSpecial_StartGroudonKyogreBattle
waitstate
clearflag 2145
- specialval RESULT, sub_810E300
+ specialvar RESULT, sub_810E300
compare_var_to_imm RESULT, 1
call_if 1, CaveOfOrigin_B4F_EventScript_15DE73
setflag 816
diff --git a/data/scripts/maps/DesertRuins.inc b/data/scripts/maps/DesertRuins.inc
index ab094c824..d63398d78 100644
--- a/data/scripts/maps/DesertRuins.inc
+++ b/data/scripts/maps/DesertRuins.inc
@@ -57,9 +57,9 @@ DesertRuins_EventScript_15CB77:: @ 815CB77
DesertRuins_EventScript_15CB85:: @ 815CB85
lock
faceplayer
- checksound
+ waitse
pokecry SPECIES_REGIROCK, 2
- pause 40
+ delay 40
waitpokecry
setwildbattle SPECIES_REGIROCK, 40, ITEM_NONE
setflag 935
diff --git a/data/scripts/maps/DewfordTown_Gym.inc b/data/scripts/maps/DewfordTown_Gym.inc
index 4168acd0c..8f57e549a 100644
--- a/data/scripts/maps/DewfordTown_Gym.inc
+++ b/data/scripts/maps/DewfordTown_Gym.inc
@@ -56,25 +56,25 @@ DewfordTown_Gym_EventScript_1530F5:: @ 81530F5
return
DewfordTown_Gym_EventScript_1530F6:: @ 81530F6
- playsfx 35
+ playse 35
lighten 3
call DewfordTown_Gym_EventScript_153071
return
DewfordTown_Gym_EventScript_153101:: @ 8153101
- playsfx 35
+ playse 35
lighten 2
call DewfordTown_Gym_EventScript_153071
return
DewfordTown_Gym_EventScript_15310C:: @ 815310C
- playsfx 35
+ playse 35
lighten 1
call DewfordTown_Gym_EventScript_153071
return
DewfordTown_Gym_EventScript_153117:: @ 8153117
- playsfx 35
+ playse 35
lighten 0
call DewfordTown_Gym_EventScript_153071
return
diff --git a/data/scripts/maps/DewfordTown_House1.inc b/data/scripts/maps/DewfordTown_House1.inc
index 40e06357c..321e376bd 100644
--- a/data/scripts/maps/DewfordTown_House1.inc
+++ b/data/scripts/maps/DewfordTown_House1.inc
@@ -12,7 +12,7 @@ DewfordTown_House1_EventScript_152FF8:: @ 8152FF8
DewfordTown_House1_EventScript_153001:: @ 8153001
lock
faceplayer
- checksound
+ waitse
pokecry SPECIES_ZIGZAGOON, 0
msgbox DewfordTown_House1_Text_174CC8, 4
waitpokecry
diff --git a/data/scripts/maps/EverGrandeCity_ChampionsRoom.inc b/data/scripts/maps/EverGrandeCity_ChampionsRoom.inc
index be3557c22..6726686ca 100644
--- a/data/scripts/maps/EverGrandeCity_ChampionsRoom.inc
+++ b/data/scripts/maps/EverGrandeCity_ChampionsRoom.inc
@@ -24,7 +24,7 @@ EverGrandeCity_ChampionsRoom_EventScript_15B7DE:: @ 815B7DE
lockall
move 255, EverGrandeCity_ChampionsRoom_Movement_1A084E
waitmove 0
- pause 40
+ delay 40
move 255, EverGrandeCity_ChampionsRoom_Movement_15B802
waitmove 0
setvar 0x4001, 1
@@ -38,20 +38,20 @@ EverGrandeCity_ChampionsRoom_Movement_15B802:: @ 815B802
step_end
EverGrandeCity_ChampionsRoom_EventScript_15B805:: @ 815B805
- playmusic 454, 0
+ playbgm 454, 0
msgbox EverGrandeCity_ChampionsRoom_Text_190F9C, 4
trainerbattle 3, OPPONENT_STEVEN, 0, EverGrandeCity_ChampionsRoom_Text_1910A0
goto EverGrandeCity_ChampionsRoom_EventScript_15B821
end
EverGrandeCity_ChampionsRoom_EventScript_15B821:: @ 815B821
- playsfx 8
+ playse 8
setmaptile 6, 1, 838, 0
setmaptile 6, 2, 839, 0
special DrawWholeMapView
msgbox EverGrandeCity_ChampionsRoom_Text_1910FE, 4
closebutton
- playsfx 8
+ playse 8
checkgender
compare_var_to_imm RESULT, 0
call_if 1, EverGrandeCity_ChampionsRoom_EventScript_15B87C
@@ -67,17 +67,17 @@ EverGrandeCity_ChampionsRoom_EventScript_15B821:: @ 815B821
end
EverGrandeCity_ChampionsRoom_EventScript_15B87C:: @ 815B87C
- playmusic 415, 0
+ playbgm 415, 0
return
EverGrandeCity_ChampionsRoom_EventScript_15B881:: @ 815B881
- playmusic 421, 0
+ playbgm 421, 0
return
EverGrandeCity_ChampionsRoom_EventScript_15B886:: @ 815B886
msgbox EverGrandeCity_ChampionsRoom_Text_191225, 4
- pause 40
- playsfx 21
+ delay 40
+ playse 21
move 2, EverGrandeCity_ChampionsRoom_Movement_1A0833
waitmove 0
move 2, EverGrandeCity_ChampionsRoom_Movement_1A0835
@@ -89,8 +89,8 @@ EverGrandeCity_ChampionsRoom_EventScript_15B886:: @ 815B886
EverGrandeCity_ChampionsRoom_EventScript_15B8BB:: @ 815B8BB
msgbox EverGrandeCity_ChampionsRoom_Text_1912B3, 4
- pause 40
- playsfx 21
+ delay 40
+ playse 21
move 2, EverGrandeCity_ChampionsRoom_Movement_1A0833
waitmove 0
move 2, EverGrandeCity_ChampionsRoom_Movement_1A0835
@@ -112,18 +112,18 @@ EverGrandeCity_ChampionsRoom_EventScript_15B8F0:: @ 815B8F0
msgbox EverGrandeCity_ChampionsRoom_Text_1914C6, 4
move 1, EverGrandeCity_ChampionsRoom_Movement_1A0841
waitmove 0
- pause 20
+ delay 20
move 1, EverGrandeCity_ChampionsRoom_Movement_1A0845
waitmove 0
msgbox EverGrandeCity_ChampionsRoom_Text_191512, 4
closebutton
- pause 30
+ delay 30
move 1, EverGrandeCity_ChampionsRoom_Movement_15B9FB
move 255, EverGrandeCity_ChampionsRoom_Movement_15B9DD
move 3, EverGrandeCity_ChampionsRoom_Movement_1A0841
move 2, EverGrandeCity_ChampionsRoom_Movement_15B9F8
waitmove 0
- pause 20
+ delay 20
move 255, EverGrandeCity_ChampionsRoom_Movement_1A0845
waitmove 0
msgbox EverGrandeCity_ChampionsRoom_Text_191546, 4
diff --git a/data/scripts/maps/EverGrandeCity_DrakesRoom.inc b/data/scripts/maps/EverGrandeCity_DrakesRoom.inc
index 1e32394d9..a283c4c2a 100644
--- a/data/scripts/maps/EverGrandeCity_DrakesRoom.inc
+++ b/data/scripts/maps/EverGrandeCity_DrakesRoom.inc
@@ -43,7 +43,7 @@ EverGrandeCity_DrakesRoom_EventScript_15B764:: @ 815B764
faceplayer
checkflag 1248
goto_if_eq EverGrandeCity_DrakesRoom_EventScript_15B78B
- playmusic 450, 0
+ playbgm 450, 0
msgbox EverGrandeCity_DrakesRoom_Text_190CEB, 4
trainerbattle 3, OPPONENT_DRAKE, 0, EverGrandeCity_DrakesRoom_Text_190E42
goto EverGrandeCity_DrakesRoom_EventScript_15B795
diff --git a/data/scripts/maps/EverGrandeCity_GlaciasRoom.inc b/data/scripts/maps/EverGrandeCity_GlaciasRoom.inc
index 71e80287b..f00f82f2e 100644
--- a/data/scripts/maps/EverGrandeCity_GlaciasRoom.inc
+++ b/data/scripts/maps/EverGrandeCity_GlaciasRoom.inc
@@ -43,7 +43,7 @@ EverGrandeCity_GlaciasRoom_EventScript_15B6CA:: @ 815B6CA
faceplayer
checkflag 1247
goto_if_eq EverGrandeCity_GlaciasRoom_EventScript_15B6F1
- playmusic 450, 0
+ playbgm 450, 0
msgbox EverGrandeCity_GlaciasRoom_Text_190AF9, 4
trainerbattle 3, OPPONENT_GLACIA, 0, EverGrandeCity_GlaciasRoom_Text_190C01
goto EverGrandeCity_GlaciasRoom_EventScript_15B6FB
diff --git a/data/scripts/maps/EverGrandeCity_HallOfFame.inc b/data/scripts/maps/EverGrandeCity_HallOfFame.inc
index 123a7cbe2..458796e0c 100644
--- a/data/scripts/maps/EverGrandeCity_HallOfFame.inc
+++ b/data/scripts/maps/EverGrandeCity_HallOfFame.inc
@@ -28,7 +28,7 @@ EverGrandeCity_HallOfFame_EventScript_15BBA8:: @ 815BBA8
move 1, EverGrandeCity_HallOfFame_Movement_15BC60
move 255, EverGrandeCity_HallOfFame_Movement_15BC60
waitmove 0
- pause 20
+ delay 20
move 1, EverGrandeCity_HallOfFame_Movement_1A0843
move 255, EverGrandeCity_HallOfFame_Movement_1A083F
waitmove 0
@@ -37,10 +37,10 @@ EverGrandeCity_HallOfFame_EventScript_15BBA8:: @ 815BBA8
move 1, EverGrandeCity_HallOfFame_Movement_1A0841
move 255, EverGrandeCity_HallOfFame_Movement_1A0841
waitmove 0
- pause 20
+ delay 20
doanimation 62
checkanimation 62
- pause 40
+ delay 40
setvar 0x4001, 1
call EverGrandeCity_HallOfFame_EventScript_19FC13
checkgender
diff --git a/data/scripts/maps/EverGrandeCity_PhoebesRoom.inc b/data/scripts/maps/EverGrandeCity_PhoebesRoom.inc
index 6fb0d7ba4..2b5266ade 100644
--- a/data/scripts/maps/EverGrandeCity_PhoebesRoom.inc
+++ b/data/scripts/maps/EverGrandeCity_PhoebesRoom.inc
@@ -43,7 +43,7 @@ EverGrandeCity_PhoebesRoom_EventScript_15B630:: @ 815B630
faceplayer
checkflag 1246
goto_if_eq EverGrandeCity_PhoebesRoom_EventScript_15B657
- playmusic 450, 0
+ playbgm 450, 0
msgbox EverGrandeCity_PhoebesRoom_Text_1908F5, 4
trainerbattle 3, OPPONENT_PHOEBE, 0, EverGrandeCity_PhoebesRoom_Text_190A0C
goto EverGrandeCity_PhoebesRoom_EventScript_15B661
diff --git a/data/scripts/maps/EverGrandeCity_PokemonLeague.inc b/data/scripts/maps/EverGrandeCity_PokemonLeague.inc
index 0f0efbd26..04a8b701a 100644
--- a/data/scripts/maps/EverGrandeCity_PokemonLeague.inc
+++ b/data/scripts/maps/EverGrandeCity_PokemonLeague.inc
@@ -56,15 +56,15 @@ EverGrandeCity_PokemonLeague_EventScript_15BAD2:: @ 815BAD2
call_if 3, EverGrandeCity_PokemonLeague_EventScript_15BB3F
message EverGrandeCity_PokemonLeague_Text_1916FD
waittext
- pause 75
+ delay 75
checkflag 2060
goto_if 0, EverGrandeCity_PokemonLeague_EventScript_15BB4A
closebutton
move 3, EverGrandeCity_PokemonLeague_Movement_15BB7E
move 4, EverGrandeCity_PokemonLeague_Movement_15BB81
waitmove 0
- pause 10
- fanfare 369
+ delay 10
+ playfanfare 369
message EverGrandeCity_PokemonLeague_Text_191804
waittext
waitfanfare
@@ -86,7 +86,7 @@ EverGrandeCity_PokemonLeague_EventScript_15BB3F:: @ 815BB3F
return
EverGrandeCity_PokemonLeague_EventScript_15BB4A:: @ 815BB4A
- playsfx 32
+ playse 32
msgbox EverGrandeCity_PokemonLeague_Text_19179C, 4
releaseall
end
diff --git a/data/scripts/maps/EverGrandeCity_SidneysRoom.inc b/data/scripts/maps/EverGrandeCity_SidneysRoom.inc
index bc8ad9f5a..564b2b806 100644
--- a/data/scripts/maps/EverGrandeCity_SidneysRoom.inc
+++ b/data/scripts/maps/EverGrandeCity_SidneysRoom.inc
@@ -44,7 +44,7 @@ EverGrandeCity_SidneysRoom_EventScript_15B596:: @ 815B596
faceplayer
checkflag 1245
goto_if_eq EverGrandeCity_SidneysRoom_EventScript_15B5BD
- playmusic 450, 0
+ playbgm 450, 0
msgbox EverGrandeCity_SidneysRoom_Text_190728, 4
trainerbattle 3, OPPONENT_SIDNEY, 0, EverGrandeCity_SidneysRoom_Text_190823
goto EverGrandeCity_SidneysRoom_EventScript_15B5C7
diff --git a/data/scripts/maps/FallarborTown.inc b/data/scripts/maps/FallarborTown.inc
index 043588ed5..d6d4ffd3b 100644
--- a/data/scripts/maps/FallarborTown.inc
+++ b/data/scripts/maps/FallarborTown.inc
@@ -34,7 +34,7 @@ FallarborTown_EventScript_14E81D:: @ 814E81D
FallarborTown_EventScript_14E826:: @ 814E826
lock
faceplayer
- checksound
+ waitse
pokecry SPECIES_AZURILL, 0
msgbox FallarborTown_Text_16C92C, 4
waitpokecry
diff --git a/data/scripts/maps/FallarborTown_ContestLobby.inc b/data/scripts/maps/FallarborTown_ContestLobby.inc
index 1dddf43de..7a3a8a7c8 100644
--- a/data/scripts/maps/FallarborTown_ContestLobby.inc
+++ b/data/scripts/maps/FallarborTown_ContestLobby.inc
@@ -22,17 +22,17 @@ FallarborTown_ContestLobby_EventScript_1539F8:: @ 81539F8
lockall
move 1, FallarborTown_ContestLobby_Movement_153A7C
waitmove 0
- playsfx 71
+ playse 71
setmaptile 4, 2, 545, 1
setmaptile 4, 3, 609, 1
special DrawWholeMapView
move 1, FallarborTown_ContestLobby_Movement_153A7F
waitmove 0
- playsfx 71
+ playse 71
setmaptile 4, 2, 721, 1
setmaptile 4, 3, 729, 1
special DrawWholeMapView
- pause 20
+ delay 20
move 1, FallarborTown_ContestLobby_Movement_153A8C
waitmove 0
move 255, FallarborTown_ContestLobby_Movement_153A7A
diff --git a/data/scripts/maps/FallarborTown_Mart.inc b/data/scripts/maps/FallarborTown_Mart.inc
index 4b66546e8..05a3704fe 100644
--- a/data/scripts/maps/FallarborTown_Mart.inc
+++ b/data/scripts/maps/FallarborTown_Mart.inc
@@ -40,7 +40,7 @@ FallarborTown_Mart_EventScript_1539A5:: @ 81539A5
FallarborTown_Mart_EventScript_1539AE:: @ 81539AE
lock
faceplayer
- checksound
+ waitse
pokecry SPECIES_SKITTY, 0
msgbox FallarborTown_Mart_Text_1770D3, 4
waitpokecry
diff --git a/data/scripts/maps/FallarborTown_PokemonCenter_1F.inc b/data/scripts/maps/FallarborTown_PokemonCenter_1F.inc
index bb924026c..320ba0a3a 100644
--- a/data/scripts/maps/FallarborTown_PokemonCenter_1F.inc
+++ b/data/scripts/maps/FallarborTown_PokemonCenter_1F.inc
@@ -46,7 +46,7 @@ FallarborTown_PokemonCenter_1F_EventScript_153B59:: @ 8153B59
end
FallarborTown_PokemonCenter_1F_EventScript_153B69:: @ 8153B69
- playsfx 18
+ playse 18
disappear 4
clearflag 870
release
diff --git a/data/scripts/maps/FortreeCity.inc b/data/scripts/maps/FortreeCity.inc
index 565effc66..57405986b 100644
--- a/data/scripts/maps/FortreeCity.inc
+++ b/data/scripts/maps/FortreeCity.inc
@@ -75,9 +75,9 @@ FortreeCity_EventScript_14C9E4:: @ 814C9E4
closebutton
move LAST_TALKED, FortreeCity_Movement_1A0662
waitmove 0
- checksound
+ waitse
pokecry SPECIES_KECLEON, 2
- pause 40
+ delay 40
waitpokecry
move LAST_TALKED, FortreeCity_Movement_14CA13
waitmove 0
diff --git a/data/scripts/maps/FortreeCity_House1.inc b/data/scripts/maps/FortreeCity_House1.inc
index e0942354d..d21b82e51 100644
--- a/data/scripts/maps/FortreeCity_House1.inc
+++ b/data/scripts/maps/FortreeCity_House1.inc
@@ -8,7 +8,7 @@ FortreeCity_House1_EventScript_157E13:: @ 8157E13
goto_if_eq FortreeCity_House1_EventScript_157EAD
setvar 0x8008, 1
copyvar 0x8004, 0x8008
- specialval RESULT, sub_804D89C
+ specialvar RESULT, sub_804D89C
copyvar 0x8009, RESULT
msgbox FortreeCity_House1_Text_18568C, 5
compare_var_to_imm RESULT, 0
@@ -19,7 +19,7 @@ FortreeCity_House1_EventScript_157E13:: @ 8157E13
compare_var_to_imm 0x8004, 255
goto_if_eq FortreeCity_House1_EventScript_157E95
copyvar 0x8005, 0x800a
- specialval RESULT, sub_804DB2C
+ specialvar RESULT, sub_804DB2C
copyvar 0x800b, RESULT
compare_var_to_var RESULT, 0x8009
goto_if 5, FortreeCity_House1_EventScript_157E9F
@@ -57,7 +57,7 @@ FortreeCity_House1_EventScript_157EB7:: @ 8157EB7
FortreeCity_House1_EventScript_157EC0:: @ 8157EC0
lock
faceplayer
- checksound
+ waitse
pokecry SPECIES_ZIGZAGOON, 0
msgbox FortreeCity_House1_Text_185888, 4
waitpokecry
diff --git a/data/scripts/maps/FortreeCity_House4.inc b/data/scripts/maps/FortreeCity_House4.inc
index c4284b722..bcf2bcd49 100644
--- a/data/scripts/maps/FortreeCity_House4.inc
+++ b/data/scripts/maps/FortreeCity_House4.inc
@@ -59,7 +59,7 @@ FortreeCity_House4_Movement_158218:: @ 8158218
FortreeCity_House4_EventScript_15821E:: @ 815821E
lock
faceplayer
- checksound
+ waitse
pokecry SPECIES_WINGULL, 0
msgbox FortreeCity_House4_Text_18695C, 4
waitpokecry
diff --git a/data/scripts/maps/FortreeCity_House5.inc b/data/scripts/maps/FortreeCity_House5.inc
index 1144a8e81..59f80917e 100644
--- a/data/scripts/maps/FortreeCity_House5.inc
+++ b/data/scripts/maps/FortreeCity_House5.inc
@@ -12,7 +12,7 @@ FortreeCity_House5_EventScript_15823B:: @ 815823B
FortreeCity_House5_EventScript_158244:: @ 8158244
lock
faceplayer
- checksound
+ waitse
pokecry SPECIES_ZIGZAGOON, 0
msgbox FortreeCity_House5_Text_186A4F, 4
waitpokecry
diff --git a/data/scripts/maps/GraniteCave_B1F.inc b/data/scripts/maps/GraniteCave_B1F.inc
index 240de1d98..aa8d705c7 100644
--- a/data/scripts/maps/GraniteCave_B1F.inc
+++ b/data/scripts/maps/GraniteCave_B1F.inc
@@ -6,5 +6,5 @@ GraniteCave_B1F_MapScripts:: @ 815CBDD
GraniteCave_B1F_MapScript1_15CBED:: @ 815CBED
tileeffect 7
- warp5 GraniteCave_B2F, 255, 0, 0
+ setholewarp GraniteCave_B2F, 255, 0, 0
end
diff --git a/data/scripts/maps/GraniteCave_StevensRoom.inc b/data/scripts/maps/GraniteCave_StevensRoom.inc
index 9473cbe8e..ee1c37dae 100644
--- a/data/scripts/maps/GraniteCave_StevensRoom.inc
+++ b/data/scripts/maps/GraniteCave_StevensRoom.inc
@@ -22,7 +22,7 @@ GraniteCave_StevensRoom_EventScript_15CBFA:: @ 815CBFA
call_if 1, GraniteCave_StevensRoom_EventScript_15CC6D
compare_var_to_imm FACING, 4
call_if 1, GraniteCave_StevensRoom_EventScript_15CC6D
- playsfx 9
+ playse 9
disappear 1
release
end
diff --git a/data/scripts/maps/InsideOfTruck.inc b/data/scripts/maps/InsideOfTruck.inc
index 9eedd4e05..e5782b63e 100644
--- a/data/scripts/maps/InsideOfTruck.inc
+++ b/data/scripts/maps/InsideOfTruck.inc
@@ -31,7 +31,7 @@ InsideOfTruck_EventScript_15FC45:: @ 815FC45
setflag 784
setflag 760
setvar 0x408c, 1
- warpplace LittlerootTown, 255, 3, 10
+ setdynamicwarp LittlerootTown, 255, 3, 10
releaseall
end
@@ -43,7 +43,7 @@ InsideOfTruck_EventScript_15FC68:: @ 815FC68
setflag 785
setflag 722
setvar 0x4082, 1
- warpplace LittlerootTown, 255, 12, 10
+ setdynamicwarp LittlerootTown, 255, 12, 10
releaseall
end
diff --git a/data/scripts/maps/IslandCave.inc b/data/scripts/maps/IslandCave.inc
index 73523c460..06524f95e 100644
--- a/data/scripts/maps/IslandCave.inc
+++ b/data/scripts/maps/IslandCave.inc
@@ -39,7 +39,7 @@ S_OpenRegiceChamber:: @ 815EF19
setmaptile 8, 20, 563, 0
setmaptile 9, 20, 564, 1
special DrawWholeMapView
- playsfx SE_BAN
+ playse SE_BAN
setflag 2129
end
@@ -77,9 +77,9 @@ IslandCave_EventScript_15EF95:: @ 815EF95
IslandCave_EventScript_15EF9D:: @ 815EF9D
lock
faceplayer
- checksound
+ waitse
pokecry SPECIES_REGICE, 2
- pause 40
+ delay 40
waitpokecry
setwildbattle SPECIES_REGICE, 40, ITEM_NONE
setflag 936
diff --git a/data/scripts/maps/JaggedPass.inc b/data/scripts/maps/JaggedPass.inc
index 333ccbaad..98b367006 100644
--- a/data/scripts/maps/JaggedPass.inc
+++ b/data/scripts/maps/JaggedPass.inc
@@ -24,7 +24,7 @@ JaggedPass_EventScript_15D285:: @ 815D285
JaggedPass_EventScript_15D29C:: @ 815D29C
trainerbattle 0, OPPONENT_DIANA_1, 0, JaggedPass_Text_195E9E, JaggedPass_Text_195EDF
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq JaggedPass_EventScript_15D2C3
msgbox JaggedPass_Text_195F04, 6
@@ -37,7 +37,7 @@ JaggedPass_EventScript_15D2C3:: @ 815D2C3
JaggedPass_EventScript_15D2DA:: @ 815D2DA
trainerbattle 0, OPPONENT_ETHAN_1, 0, JaggedPass_Text_195FF2, JaggedPass_Text_196032
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq JaggedPass_EventScript_15D301
msgbox JaggedPass_Text_196077, 6
diff --git a/data/scripts/maps/LavaridgeTown.inc b/data/scripts/maps/LavaridgeTown.inc
index e091ed372..e40a9252a 100644
--- a/data/scripts/maps/LavaridgeTown.inc
+++ b/data/scripts/maps/LavaridgeTown.inc
@@ -58,11 +58,11 @@ LavaridgeTown_EventScript_14E4ED:: @ 814E4ED
end
LavaridgeTown_EventScript_14E56B:: @ 814E56B
- playmusic 415, 1
+ playbgm 415, 1
return
LavaridgeTown_EventScript_14E570:: @ 814E570
- playmusic 421, 1
+ playbgm 421, 1
return
LavaridgeTown_EventScript_14E575:: @ 814E575
@@ -105,15 +105,15 @@ LavaridgeTown_EventScript_14E5F5:: @ 814E5F5
call_if 1, LavaridgeTown_EventScript_14E64E
disappear 8
reappear 7
- pause 30
+ delay 30
compare_var_to_imm 0x8008, 1
call_if 1, LavaridgeTown_EventScript_14E69A
compare_var_to_imm 0x8008, 0
call_if 1, LavaridgeTown_EventScript_14E6A5
disappear 7
setvar 0x4053, 2
- playmusicbattle 0
- fadedefault
+ savebgm 0
+ fadedefaultbgm
compare_var_to_imm 0x8008, 0
goto_if_eq LavaridgeTown_EventScript_14E644
releaseall
@@ -236,7 +236,7 @@ LavaridgeTown_Movement_14E70E:: @ 814E70E
step_end
LavaridgeTown_EventScript_14E710:: @ 814E710
- specialval RESULT, player_get_direction_lower_nybble
+ specialvar RESULT, player_get_direction_lower_nybble
compare_var_to_imm RESULT, 1
goto_if_eq LavaridgeTown_EventScript_14E721
end
@@ -282,7 +282,7 @@ LavaridgeTown_EventScript_14E75A:: @ 814E75A
goto_if_eq LavaridgeTown_EventScript_14E7A8
msgbox LavaridgeTown_Text_16C2B6, 4
setflag 266
- fanfare 370
+ playfanfare 370
message LavaridgeTown_Text_16C2EA
waitfanfare
waittext
diff --git a/data/scripts/maps/LavaridgeTown_House.inc b/data/scripts/maps/LavaridgeTown_House.inc
index 944427bb6..dd5a9cc2b 100644
--- a/data/scripts/maps/LavaridgeTown_House.inc
+++ b/data/scripts/maps/LavaridgeTown_House.inc
@@ -8,7 +8,7 @@ LavaridgeTown_House_EventScript_1538AE:: @ 81538AE
LavaridgeTown_House_EventScript_1538B7:: @ 81538B7
lock
faceplayer
- checksound
+ waitse
pokecry SPECIES_ZIGZAGOON, 0
msgbox LavaridgeTown_House_Text_176D94, 4
waitpokecry
diff --git a/data/scripts/maps/LilycoveCity.inc b/data/scripts/maps/LilycoveCity.inc
index 801e25396..5b53435d4 100644
--- a/data/scripts/maps/LilycoveCity.inc
+++ b/data/scripts/maps/LilycoveCity.inc
@@ -63,7 +63,7 @@ LilycoveCity_EventScript_14CB2B:: @ 814CB2B
LilycoveCity_EventScript_14CB74:: @ 814CB74
lock
faceplayer
- checkdailyflags
+ dodailyevents
checkflag 2255
goto_if_eq LilycoveCity_EventScript_14CBB4
msgbox LilycoveCity_Text_1C5A7A, 4
@@ -172,7 +172,7 @@ LilycoveCity_EventScript_14CC79:: @ 814CC79
LilycoveCity_EventScript_14CC82:: @ 814CC82
lockall
- specialval 0x8004, sub_80C4D50
+ specialvar 0x8004, sub_80C4D50
switch 0x8004
case 0, LilycoveCity_EventScript_14CCA2
msgbox LilycoveCity_Text_168EA4, 4
@@ -255,7 +255,7 @@ LilycoveCity_EventScript_14CD46:: @ 814CD46
end
LilycoveCity_EventScript_14CD60:: @ 814CD60
- playmusic 415, 1
+ playbgm 415, 1
checkflag 286
call_if 1, LilycoveCity_EventScript_14CDB0
checkflag 286
@@ -280,13 +280,13 @@ LilycoveCity_EventScript_14CDB9:: @ 814CDB9
LilycoveCity_EventScript_14CDC2:: @ 814CDC2
setflag 286
msgbox LilycoveCity_Text_167AEB, 4
- playmusicbattle 0
- fadedefault
+ savebgm 0
+ fadedefaultbgm
release
end
LilycoveCity_EventScript_14CDD3:: @ 814CDD3
- playmusic 421, 1
+ playbgm 421, 1
checkflag 286
call_if 1, LilycoveCity_EventScript_14CE23
checkflag 286
@@ -311,8 +311,8 @@ LilycoveCity_EventScript_14CE2C:: @ 814CE2C
LilycoveCity_EventScript_14CE35:: @ 814CE35
setflag 286
msgbox LilycoveCity_Text_16802C, 4
- playmusicbattle 0
- fadedefault
+ savebgm 0
+ fadedefaultbgm
release
end
@@ -414,14 +414,14 @@ LilycoveCity_EventScript_14CF6B:: @ 814CF6B
closebutton
move LAST_TALKED, LilycoveCity_Movement_1A0845
waitmove 0
- pause 50
+ delay 50
setanimation 0, 1
doanimation 30
- pause 15
+ delay 15
disappear LAST_TALKED
checkanimation 30
- playmusicbattle 0
- fadedefault
+ savebgm 0
+ fadedefaultbgm
setflag 292
release
end
diff --git a/data/scripts/maps/LilycoveCity_ContestHall.inc b/data/scripts/maps/LilycoveCity_ContestHall.inc
index 3601cb455..525d57a71 100644
--- a/data/scripts/maps/LilycoveCity_ContestHall.inc
+++ b/data/scripts/maps/LilycoveCity_ContestHall.inc
@@ -219,7 +219,7 @@ LilycoveCity_ContestHall_EventScript_1592C0:: @ 81592C0
lockall
move 29, LilycoveCity_ContestHall_Movement_1A0839
waitmove 0
- pause 25
+ delay 25
move 29, LilycoveCity_ContestHall_Movement_1A083D
waitmove 0
msgbox LilycoveCity_ContestHall_Text_189DA2, 3
diff --git a/data/scripts/maps/LilycoveCity_ContestLobby.inc b/data/scripts/maps/LilycoveCity_ContestLobby.inc
index 4785ffbbb..881a842f1 100644
--- a/data/scripts/maps/LilycoveCity_ContestLobby.inc
+++ b/data/scripts/maps/LilycoveCity_ContestLobby.inc
@@ -43,7 +43,7 @@ LilycoveCity_ContestLobby_EventScript_1588DE:: @ 81588DE
closebutton
special sub_80C4CEC
setvar 0x4099, 0
- specialval RESULT, GiveMonArtistRibbon
+ specialvar RESULT, GiveMonArtistRibbon
compare_var_to_imm RESULT, 1
call_if 1, LilycoveCity_ContestLobby_EventScript_158948
move 4, LilycoveCity_ContestLobby_Movement_158A43
@@ -72,13 +72,13 @@ LilycoveCity_ContestLobby_EventScript_158948:: @ 8158948
special sub_80C4858
move 4, LilycoveCity_ContestLobby_Movement_158A4E
waitmove 0
- playsfx 21
+ playse 21
move 4, LilycoveCity_ContestLobby_Movement_1A0833
waitmove 0
move 4, LilycoveCity_ContestLobby_Movement_158A52
waitmove 0
msgbox LilycoveCity_ContestLobby_Text_188BB5, 4
- fanfare 370
+ playfanfare 370
msgbox LilycoveCity_ContestLobby_Text_188C03, 4
waitfanfare
msgbox LilycoveCity_ContestLobby_Text_188C19, 4
@@ -87,7 +87,7 @@ LilycoveCity_ContestLobby_EventScript_158948:: @ 8158948
return
LilycoveCity_ContestLobby_EventScript_158994:: @ 8158994
- specialval 0x8004, sub_80C4D50
+ specialvar 0x8004, sub_80C4D50
switch 0x8004
case 1, LilycoveCity_ContestLobby_EventScript_1589D6
case 2, LilycoveCity_ContestLobby_EventScript_1589DA
@@ -216,7 +216,7 @@ LilycoveCity_ContestLobby_EventScript_158AAE:: @ 8158AAE
closebutton
special sub_80C4CEC
setvar 0x4099, 0
- specialval RESULT, GiveMonArtistRibbon
+ specialvar RESULT, GiveMonArtistRibbon
compare_var_to_imm RESULT, 1
call_if 1, LilycoveCity_ContestLobby_EventScript_158B18
move 11, LilycoveCity_ContestLobby_Movement_158B6D
@@ -245,13 +245,13 @@ LilycoveCity_ContestLobby_EventScript_158B18:: @ 8158B18
special sub_80C4858
move 11, LilycoveCity_ContestLobby_Movement_158B78
waitmove 0
- playsfx 21
+ playse 21
move 11, LilycoveCity_ContestLobby_Movement_1A0833
waitmove 0
move 11, LilycoveCity_ContestLobby_Movement_158B7C
waitmove 0
msgbox LilycoveCity_ContestLobby_Text_188BB5, 4
- fanfare 370
+ playfanfare 370
msgbox LilycoveCity_ContestLobby_Text_188C03, 4
waitfanfare
msgbox LilycoveCity_ContestLobby_Text_188C19, 4
@@ -492,28 +492,28 @@ LilycoveCity_ContestLobby_EventScript_158E0B:: @ 8158E0B
lockall
message2 LilycoveCity_ContestLobby_Text_1888C6
waittext
- pause 20
+ delay 20
closebutton
move 2, LilycoveCity_ContestLobby_Movement_158E9C
waitmove 0
- playsfx 71
+ playse 71
setmaptile 9, 2, 545, 1
setmaptile 9, 3, 609, 1
special DrawWholeMapView
move 2, LilycoveCity_ContestLobby_Movement_158EA0
waitmove 0
- playsfx 71
+ playse 71
setmaptile 9, 2, 721, 1
setmaptile 9, 3, 729, 1
special DrawWholeMapView
- pause 20
+ delay 20
move 2, LilycoveCity_ContestLobby_Movement_158EAE
waitmove 0
move 255, LilycoveCity_ContestLobby_Movement_158E99
waitmove 0
message2 LilycoveCity_ContestLobby_Text_1A6832
waittext
- pause 20
+ delay 20
closebutton
move 2, LilycoveCity_ContestLobby_Movement_158EA4
move 255, LilycoveCity_ContestLobby_Movement_158E8E
@@ -568,7 +568,7 @@ LilycoveCity_ContestLobby_Movement_158EAE:: @ 8158EAE
step_end
LilycoveCity_ContestLobby_EventScript_158EB0:: @ 8158EB0
- specialval RESULT, sub_80C5044
+ specialvar RESULT, sub_80C5044
compare_var_to_imm RESULT, 1
goto_if_eq LilycoveCity_ContestLobby_EventScript_158EE8
setvar 0x800b, 8
@@ -602,31 +602,31 @@ LilycoveCity_ContestLobby_EventScript_158F08:: @ 8158F08
return
LilycoveCity_ContestLobby_EventScript_158F45:: @ 8158F45
- warp3 LinkContestRoom4, 255, 7, 5
+ setwarp LinkContestRoom4, 255, 7, 5
special sub_8081334
waitstate
return
LilycoveCity_ContestLobby_EventScript_158F52:: @ 8158F52
- warp3 LinkContestRoom2, 255, 7, 5
+ setwarp LinkContestRoom2, 255, 7, 5
special sub_8081334
waitstate
return
LilycoveCity_ContestLobby_EventScript_158F5F:: @ 8158F5F
- warp3 LinkContestRoom6, 255, 7, 5
+ setwarp LinkContestRoom6, 255, 7, 5
special sub_8081334
waitstate
return
LilycoveCity_ContestLobby_EventScript_158F6C:: @ 8158F6C
- warp3 LinkContestRoom5, 255, 7, 5
+ setwarp LinkContestRoom5, 255, 7, 5
special sub_8081334
waitstate
return
LilycoveCity_ContestLobby_EventScript_158F79:: @ 8158F79
- warp3 LinkContestRoom3, 255, 7, 5
+ setwarp LinkContestRoom3, 255, 7, 5
special sub_8081334
waitstate
return
@@ -635,17 +635,17 @@ LilycoveCity_ContestLobby_EventScript_158F86:: @ 8158F86
lockall
move 1, LilycoveCity_ContestLobby_Movement_15900B
waitmove 0
- playsfx 71
+ playse 71
setmaptile 4, 2, 545, 1
setmaptile 4, 3, 609, 1
special DrawWholeMapView
move 1, LilycoveCity_ContestLobby_Movement_15900F
waitmove 0
- playsfx 71
+ playse 71
setmaptile 4, 2, 721, 1
setmaptile 4, 3, 729, 1
special DrawWholeMapView
- pause 20
+ delay 20
move 1, LilycoveCity_ContestLobby_Movement_15901C
waitmove 0
move 255, LilycoveCity_ContestLobby_Movement_159008
diff --git a/data/scripts/maps/LilycoveCity_CoveLilyMotel_1F.inc b/data/scripts/maps/LilycoveCity_CoveLilyMotel_1F.inc
index 638bf8cf1..aef4bc74a 100644
--- a/data/scripts/maps/LilycoveCity_CoveLilyMotel_1F.inc
+++ b/data/scripts/maps/LilycoveCity_CoveLilyMotel_1F.inc
@@ -41,7 +41,7 @@ LilycoveCity_CoveLilyMotel_1F_EventScript_158326:: @ 8158326
LilycoveCity_CoveLilyMotel_1F_EventScript_15834D:: @ 815834D
lockall
- playsfx 21
+ playse 21
move 1, LilycoveCity_CoveLilyMotel_1F_Movement_1A0833
waitmove 0
move 1, LilycoveCity_CoveLilyMotel_1F_Movement_1A0835
diff --git a/data/scripts/maps/LilycoveCity_CoveLilyMotel_2F.inc b/data/scripts/maps/LilycoveCity_CoveLilyMotel_2F.inc
index 5bdaa610a..98aec1d7a 100644
--- a/data/scripts/maps/LilycoveCity_CoveLilyMotel_2F.inc
+++ b/data/scripts/maps/LilycoveCity_CoveLilyMotel_2F.inc
@@ -8,7 +8,7 @@ LilycoveCity_CoveLilyMotel_2F_EventScript_1583A1:: @ 81583A1
call_if 0, LilycoveCity_CoveLilyMotel_2F_EventScript_1583C7
checkflag 2
call_if 1, LilycoveCity_CoveLilyMotel_2F_EventScript_1583DD
- specialval RESULT, sub_8090FC0
+ specialvar RESULT, sub_8090FC0
compare_var_to_imm RESULT, 1
goto_if_eq LilycoveCity_CoveLilyMotel_2F_EventScript_1583D0
release
@@ -20,7 +20,7 @@ LilycoveCity_CoveLilyMotel_2F_EventScript_1583C7:: @ 81583C7
LilycoveCity_CoveLilyMotel_2F_EventScript_1583D0:: @ 81583D0
setflag 2
- fanfare 370
+ playfanfare 370
waitfanfare
goto LilycoveCity_CoveLilyMotel_2F_EventScript_1583DD
end
diff --git a/data/scripts/maps/LilycoveCity_DepartmentStoreElevator.inc b/data/scripts/maps/LilycoveCity_DepartmentStoreElevator.inc
index 2ee04505e..1dd8d5869 100644
--- a/data/scripts/maps/LilycoveCity_DepartmentStoreElevator.inc
+++ b/data/scripts/maps/LilycoveCity_DepartmentStoreElevator.inc
@@ -21,7 +21,7 @@ LilycoveCity_DepartmentStoreElevator_EventScript_15A39C:: @ 815A39C
end
LilycoveCity_DepartmentStoreElevator_EventScript_15A402:: @ 815A402
- warpplace LilycoveCity_DepartmentStore_1F, 255, 2, 1
+ setdynamicwarp LilycoveCity_DepartmentStore_1F, 255, 2, 1
compare_var_to_imm 0x4043, 0
goto_if_eq LilycoveCity_DepartmentStoreElevator_EventScript_15A4B1
call LilycoveCity_DepartmentStoreElevator_EventScript_15A4B8
@@ -30,7 +30,7 @@ LilycoveCity_DepartmentStoreElevator_EventScript_15A402:: @ 815A402
end
LilycoveCity_DepartmentStoreElevator_EventScript_15A425:: @ 815A425
- warpplace LilycoveCity_DepartmentStore_2F, 255, 2, 1
+ setdynamicwarp LilycoveCity_DepartmentStore_2F, 255, 2, 1
compare_var_to_imm 0x4043, 1
goto_if_eq LilycoveCity_DepartmentStoreElevator_EventScript_15A4B1
call LilycoveCity_DepartmentStoreElevator_EventScript_15A4B8
@@ -39,7 +39,7 @@ LilycoveCity_DepartmentStoreElevator_EventScript_15A425:: @ 815A425
end
LilycoveCity_DepartmentStoreElevator_EventScript_15A448:: @ 815A448
- warpplace LilycoveCity_DepartmentStore_3F, 255, 2, 1
+ setdynamicwarp LilycoveCity_DepartmentStore_3F, 255, 2, 1
compare_var_to_imm 0x4043, 2
goto_if_eq LilycoveCity_DepartmentStoreElevator_EventScript_15A4B1
call LilycoveCity_DepartmentStoreElevator_EventScript_15A4B8
@@ -48,7 +48,7 @@ LilycoveCity_DepartmentStoreElevator_EventScript_15A448:: @ 815A448
end
LilycoveCity_DepartmentStoreElevator_EventScript_15A46B:: @ 815A46B
- warpplace LilycoveCity_DepartmentStore_4F, 255, 2, 1
+ setdynamicwarp LilycoveCity_DepartmentStore_4F, 255, 2, 1
compare_var_to_imm 0x4043, 3
goto_if_eq LilycoveCity_DepartmentStoreElevator_EventScript_15A4B1
call LilycoveCity_DepartmentStoreElevator_EventScript_15A4B8
@@ -57,7 +57,7 @@ LilycoveCity_DepartmentStoreElevator_EventScript_15A46B:: @ 815A46B
end
LilycoveCity_DepartmentStoreElevator_EventScript_15A48E:: @ 815A48E
- warpplace LilycoveCity_DepartmentStore_5F, 255, 2, 1
+ setdynamicwarp LilycoveCity_DepartmentStore_5F, 255, 2, 1
compare_var_to_imm 0x4043, 4
goto_if_eq LilycoveCity_DepartmentStoreElevator_EventScript_15A4B1
call LilycoveCity_DepartmentStoreElevator_EventScript_15A4B8
diff --git a/data/scripts/maps/LilycoveCity_DepartmentStoreRooftop.inc b/data/scripts/maps/LilycoveCity_DepartmentStoreRooftop.inc
index 27d217b40..3295bf6ee 100644
--- a/data/scripts/maps/LilycoveCity_DepartmentStoreRooftop.inc
+++ b/data/scripts/maps/LilycoveCity_DepartmentStoreRooftop.inc
@@ -147,7 +147,7 @@ LilycoveCity_DepartmentStoreRooftop_EventScript_15A267:: @ 815A267
updatemoney 0, 0
nop
bufferitem 0, 0x4000
- playsfx 106
+ playse 106
msgbox LilycoveCity_DepartmentStoreRooftop_Text_18C75F, 4
additem 0x4000, 1
bufferitem 1, 0x4000
@@ -159,7 +159,7 @@ LilycoveCity_DepartmentStoreRooftop_EventScript_15A267:: @ 815A267
checkitemspace 0x4000, 1
compare_var_to_imm RESULT, 0
goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_15A388
- playsfx 106
+ playse 106
msgbox LilycoveCity_DepartmentStoreRooftop_Text_18C780, 4
additem 0x4000, 1
bufferitem 1, 0x4000
@@ -171,7 +171,7 @@ LilycoveCity_DepartmentStoreRooftop_EventScript_15A267:: @ 815A267
checkitemspace 0x4000, 1
compare_var_to_imm RESULT, 0
goto_if_eq LilycoveCity_DepartmentStoreRooftop_EventScript_15A388
- playsfx 106
+ playse 106
msgbox LilycoveCity_DepartmentStoreRooftop_Text_18C780, 4
additem 0x4000, 1
bufferitem 1, 0x4000
diff --git a/data/scripts/maps/LilycoveCity_DepartmentStore_1F.inc b/data/scripts/maps/LilycoveCity_DepartmentStore_1F.inc
index 6c1ecbc1d..9d22e6055 100644
--- a/data/scripts/maps/LilycoveCity_DepartmentStore_1F.inc
+++ b/data/scripts/maps/LilycoveCity_DepartmentStore_1F.inc
@@ -8,7 +8,7 @@ LilycoveCity_DepartmentStore_1F_EventScript_159D55:: @ 8159D55
LilycoveCity_DepartmentStore_1F_EventScript_159D5E:: @ 8159D5E
lock
faceplayer
- checkdailyflags
+ dodailyevents
compare_var_to_imm 0x4045, 0
goto_if 5, LilycoveCity_DepartmentStore_1F_EventScript_159EB1
checkflag 2250
@@ -25,12 +25,12 @@ LilycoveCity_DepartmentStore_1F_EventScript_159D5E:: @ 8159D5E
msgbox LilycoveCity_DepartmentStore_1F_Text_1C4CF6, 4
move 2, LilycoveCity_DepartmentStore_1F_Movement_1A0843
waitmove 0
- playsfx 4
+ playse 4
special DoLotteryCornerComputerEffect
special PickLotteryCornerTicket
- pause 220
+ delay 220
special EndLotteryCornerComputerEffect
- pause 10
+ delay 10
move 2, LilycoveCity_DepartmentStore_1F_Movement_1A0839
waitmove 0
compare_var_to_imm 0x8004, 0
@@ -133,7 +133,7 @@ LilycoveCity_DepartmentStore_1F_EventScript_159EE9:: @ 8159EE9
LilycoveCity_DepartmentStore_1F_EventScript_159EF2:: @ 8159EF2
lock
faceplayer
- checksound
+ waitse
pokecry SPECIES_AZUMARILL, 0
msgbox LilycoveCity_DepartmentStore_1F_Text_18C0C3, 4
waitpokecry
diff --git a/data/scripts/maps/LilycoveCity_Harbor.inc b/data/scripts/maps/LilycoveCity_Harbor.inc
index 12c880d31..0d9e70a15 100644
--- a/data/scripts/maps/LilycoveCity_Harbor.inc
+++ b/data/scripts/maps/LilycoveCity_Harbor.inc
@@ -78,13 +78,13 @@ LilycoveCity_Harbor_EventScript_15998A:: @ 815998A
closebutton
move LAST_TALKED, LilycoveCity_Harbor_Movement_1A0841
waitmove 0
- pause 30
+ delay 30
spriteinvisible LAST_TALKED, 13, 10
compare_var_to_imm FACING, 2
call_if 1, LilycoveCity_Harbor_EventScript_1599D9
compare_var_to_imm FACING, 4
call_if 1, LilycoveCity_Harbor_EventScript_1599CE
- pause 30
+ delay 30
spriteinvisible 255, 0, 0
setvar 0x8004, 2
call LilycoveCity_Harbor_EventScript_1A040E
@@ -116,24 +116,24 @@ LilycoveCity_Harbor_EventScript_1599EE:: @ 81599EE
closebutton
move LAST_TALKED, LilycoveCity_Harbor_Movement_1A0841
waitmove 0
- pause 30
+ delay 30
spriteinvisible LAST_TALKED, 13, 10
- pause 60
+ delay 60
reappear 4
- pause 30
+ delay 30
move 4, LilycoveCity_Harbor_Movement_1A0839
waitmove 0
msgbox LilycoveCity_Harbor_Text_1C5120, 4
closebutton
move 4, LilycoveCity_Harbor_Movement_1A0841
waitmove 0
- pause 30
+ delay 30
disappear 4
compare_var_to_imm FACING, 2
call_if 1, LilycoveCity_Harbor_EventScript_1599D9
compare_var_to_imm FACING, 4
call_if 1, LilycoveCity_Harbor_EventScript_1599CE
- pause 30
+ delay 30
spriteinvisible 255, 0, 0
special ScrSpecial_HealPlayerParty
setvar 0x8004, 2
diff --git a/data/scripts/maps/LilycoveCity_House1.inc b/data/scripts/maps/LilycoveCity_House1.inc
index 3dae362c1..6440f6d3d 100644
--- a/data/scripts/maps/LilycoveCity_House1.inc
+++ b/data/scripts/maps/LilycoveCity_House1.inc
@@ -8,7 +8,7 @@ LilycoveCity_House1_EventScript_159B86:: @ 8159B86
LilycoveCity_House1_EventScript_159B8F:: @ 8159B8F
lock
faceplayer
- checksound
+ waitse
pokecry SPECIES_KECLEON, 0
msgbox LilycoveCity_House1_Text_18B82B, 4
waitpokecry
diff --git a/data/scripts/maps/LilycoveCity_LilycoveMuseum_2F.inc b/data/scripts/maps/LilycoveCity_LilycoveMuseum_2F.inc
index e41d61fe8..663b1f25b 100644
--- a/data/scripts/maps/LilycoveCity_LilycoveMuseum_2F.inc
+++ b/data/scripts/maps/LilycoveCity_LilycoveMuseum_2F.inc
@@ -98,7 +98,7 @@ LilycoveCity_LilycoveMuseum_2F_EventScript_1586D8:: @ 81586D8
lockall
checkflag 236
goto_if_eq LilycoveCity_LilycoveMuseum_2F_EventScript_158793
- specialval 0x8004, sub_80C4D50
+ specialvar 0x8004, sub_80C4D50
switch 0x8004
case 1, LilycoveCity_LilycoveMuseum_2F_EventScript_15872C
case 2, LilycoveCity_LilycoveMuseum_2F_EventScript_15872C
diff --git a/data/scripts/maps/LilycoveCity_MoveDeletersHouse.inc b/data/scripts/maps/LilycoveCity_MoveDeletersHouse.inc
index 0127761a7..01781f3ca 100644
--- a/data/scripts/maps/LilycoveCity_MoveDeletersHouse.inc
+++ b/data/scripts/maps/LilycoveCity_MoveDeletersHouse.inc
@@ -40,7 +40,7 @@ LilycoveCity_MoveDeletersHouse_EventScript_159ADE:: @ 8159ADE
LilycoveCity_MoveDeletersHouse_EventScript_159B53:: @ 8159B53
special sub_80FA0DC
- fanfare 378
+ playfanfare 378
waitfanfare
msgbox LilycoveCity_MoveDeletersHouse_Text_18B71E, 4
releaseall
diff --git a/data/scripts/maps/LilycoveCity_PokemonTrainerFanClub.inc b/data/scripts/maps/LilycoveCity_PokemonTrainerFanClub.inc
index e097504cf..dba3cf57a 100644
--- a/data/scripts/maps/LilycoveCity_PokemonTrainerFanClub.inc
+++ b/data/scripts/maps/LilycoveCity_PokemonTrainerFanClub.inc
@@ -70,35 +70,35 @@ LilycoveCity_PokemonTrainerFanClub_MapScript1_159412:: @ 8159412
LilycoveCity_PokemonTrainerFanClub_EventScript_159429:: @ 8159429
special sub_810FCE8
setvar 0x8004, 8
- specialval RESULT, sub_810FD60
+ specialvar RESULT, sub_810FD60
compare_var_to_imm RESULT, 0
call_if 1, LilycoveCity_PokemonTrainerFanClub_EventScript_1594D5
setvar 0x8004, 9
- specialval RESULT, sub_810FD60
+ specialvar RESULT, sub_810FD60
compare_var_to_imm RESULT, 0
call_if 1, LilycoveCity_PokemonTrainerFanClub_EventScript_1594DD
setvar 0x8004, 10
- specialval RESULT, sub_810FD60
+ specialvar RESULT, sub_810FD60
compare_var_to_imm RESULT, 0
call_if 1, LilycoveCity_PokemonTrainerFanClub_EventScript_1594E5
setvar 0x8004, 11
- specialval RESULT, sub_810FD60
+ specialvar RESULT, sub_810FD60
compare_var_to_imm RESULT, 0
call_if 1, LilycoveCity_PokemonTrainerFanClub_EventScript_1594ED
setvar 0x8004, 12
- specialval RESULT, sub_810FD60
+ specialvar RESULT, sub_810FD60
compare_var_to_imm RESULT, 0
call_if 1, LilycoveCity_PokemonTrainerFanClub_EventScript_1594F5
setvar 0x8004, 13
- specialval RESULT, sub_810FD60
+ specialvar RESULT, sub_810FD60
compare_var_to_imm RESULT, 0
call_if 1, LilycoveCity_PokemonTrainerFanClub_EventScript_1594FD
setvar 0x8004, 14
- specialval RESULT, sub_810FD60
+ specialvar RESULT, sub_810FD60
compare_var_to_imm RESULT, 0
call_if 1, LilycoveCity_PokemonTrainerFanClub_EventScript_159505
setvar 0x8004, 15
- specialval RESULT, sub_810FD60
+ specialvar RESULT, sub_810FD60
compare_var_to_imm RESULT, 0
call_if 1, LilycoveCity_PokemonTrainerFanClub_EventScript_15950D
end
@@ -150,10 +150,10 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_15952F:: @ 815952F
special sub_810FDAC
compare_var_to_imm 0x4095, 0
goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_15959C
- specialval RESULT, sub_810FD60
+ specialvar RESULT, sub_810FD60
compare_var_to_imm RESULT, 1
goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_15956E
- specialval RESULT, sub_810FCB0
+ specialvar RESULT, sub_810FCB0
compare_var_to_imm RESULT, 7
goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159592
msgbox LilycoveCity_PokemonTrainerFanClub_Text_18A400, 4
@@ -161,7 +161,7 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_15952F:: @ 815952F
end
LilycoveCity_PokemonTrainerFanClub_EventScript_15956E:: @ 815956E
- specialval RESULT, sub_810FCB0
+ specialvar RESULT, sub_810FCB0
compare_var_to_imm RESULT, 1
goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159588
msgbox LilycoveCity_PokemonTrainerFanClub_Text_18A36A, 4
@@ -190,10 +190,10 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_1595A6:: @ 81595A6
special sub_810FDAC
compare_var_to_imm 0x4095, 0
goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159613
- specialval RESULT, sub_810FD60
+ specialvar RESULT, sub_810FD60
compare_var_to_imm RESULT, 1
goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_1595E5
- specialval RESULT, sub_810FCB0
+ specialvar RESULT, sub_810FCB0
compare_var_to_imm RESULT, 7
goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159609
msgbox LilycoveCity_PokemonTrainerFanClub_Text_18A629, 4
@@ -201,7 +201,7 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_1595A6:: @ 81595A6
end
LilycoveCity_PokemonTrainerFanClub_EventScript_1595E5:: @ 81595E5
- specialval RESULT, sub_810FCB0
+ specialvar RESULT, sub_810FCB0
compare_var_to_imm RESULT, 1
goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_1595FF
msgbox LilycoveCity_PokemonTrainerFanClub_Text_18A584, 4
@@ -230,10 +230,10 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_15961D:: @ 815961D
special sub_810FDAC
compare_var_to_imm 0x4095, 0
goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_15968A
- specialval RESULT, sub_810FD60
+ specialvar RESULT, sub_810FD60
compare_var_to_imm RESULT, 1
goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_15965C
- specialval RESULT, sub_810FCB0
+ specialvar RESULT, sub_810FCB0
compare_var_to_imm RESULT, 7
goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159680
msgbox LilycoveCity_PokemonTrainerFanClub_Text_18A814, 4
@@ -241,7 +241,7 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_15961D:: @ 815961D
end
LilycoveCity_PokemonTrainerFanClub_EventScript_15965C:: @ 815965C
- specialval RESULT, sub_810FCB0
+ specialvar RESULT, sub_810FCB0
compare_var_to_imm RESULT, 1
goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159676
msgbox LilycoveCity_PokemonTrainerFanClub_Text_18A71E, 4
@@ -270,10 +270,10 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_159694:: @ 8159694
special sub_810FDAC
compare_var_to_imm 0x4095, 0
goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159701
- specialval RESULT, sub_810FD60
+ specialvar RESULT, sub_810FD60
compare_var_to_imm RESULT, 1
goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_1596D3
- specialval RESULT, sub_810FCB0
+ specialvar RESULT, sub_810FCB0
compare_var_to_imm RESULT, 7
goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_1596F7
msgbox LilycoveCity_PokemonTrainerFanClub_Text_18AB0A, 4
@@ -281,7 +281,7 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_159694:: @ 8159694
end
LilycoveCity_PokemonTrainerFanClub_EventScript_1596D3:: @ 81596D3
- specialval RESULT, sub_810FCB0
+ specialvar RESULT, sub_810FCB0
compare_var_to_imm RESULT, 1
goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_1596ED
msgbox LilycoveCity_PokemonTrainerFanClub_Text_18AA39, 4
@@ -308,10 +308,10 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_15970B:: @ 815970B
faceplayer
setvar 0x8004, 11
special sub_810FDAC
- specialval RESULT, sub_810FD60
+ specialvar RESULT, sub_810FD60
compare_var_to_imm RESULT, 1
goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_15973F
- specialval RESULT, sub_810FCB0
+ specialvar RESULT, sub_810FCB0
compare_var_to_imm RESULT, 7
goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159763
msgbox LilycoveCity_PokemonTrainerFanClub_Text_18ACC7, 4
@@ -319,7 +319,7 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_15970B:: @ 815970B
end
LilycoveCity_PokemonTrainerFanClub_EventScript_15973F:: @ 815973F
- specialval RESULT, sub_810FCB0
+ specialvar RESULT, sub_810FCB0
compare_var_to_imm RESULT, 1
goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159759
msgbox LilycoveCity_PokemonTrainerFanClub_Text_18AC15, 4
@@ -341,10 +341,10 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_15976D:: @ 815976D
faceplayer
setvar 0x8004, 12
special sub_810FDAC
- specialval RESULT, sub_810FD60
+ specialvar RESULT, sub_810FD60
compare_var_to_imm RESULT, 1
goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_1597A1
- specialval RESULT, sub_810FCB0
+ specialvar RESULT, sub_810FCB0
compare_var_to_imm RESULT, 7
goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_1597C5
msgbox LilycoveCity_PokemonTrainerFanClub_Text_18AE63, 4
@@ -352,7 +352,7 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_15976D:: @ 815976D
end
LilycoveCity_PokemonTrainerFanClub_EventScript_1597A1:: @ 81597A1
- specialval RESULT, sub_810FCB0
+ specialvar RESULT, sub_810FCB0
compare_var_to_imm RESULT, 1
goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_1597BB
msgbox LilycoveCity_PokemonTrainerFanClub_Text_18AD6D, 4
@@ -374,10 +374,10 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_1597CF:: @ 81597CF
faceplayer
setvar 0x8004, 14
special sub_810FDAC
- specialval RESULT, sub_810FD60
+ specialvar RESULT, sub_810FD60
compare_var_to_imm RESULT, 1
goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159803
- specialval RESULT, sub_810FCB0
+ specialvar RESULT, sub_810FCB0
compare_var_to_imm RESULT, 7
goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159827
msgbox LilycoveCity_PokemonTrainerFanClub_Text_18B030, 4
@@ -385,7 +385,7 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_1597CF:: @ 81597CF
end
LilycoveCity_PokemonTrainerFanClub_EventScript_159803:: @ 8159803
- specialval RESULT, sub_810FCB0
+ specialvar RESULT, sub_810FCB0
compare_var_to_imm RESULT, 1
goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_15981D
msgbox LilycoveCity_PokemonTrainerFanClub_Text_18AF62, 4
@@ -407,10 +407,10 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_159831:: @ 8159831
faceplayer
setvar 0x8004, 15
special sub_810FDAC
- specialval RESULT, sub_810FD60
+ specialvar RESULT, sub_810FD60
compare_var_to_imm RESULT, 1
goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159865
- specialval RESULT, sub_810FCB0
+ specialvar RESULT, sub_810FCB0
compare_var_to_imm RESULT, 7
goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_159889
msgbox LilycoveCity_PokemonTrainerFanClub_Text_18B1FD, 4
@@ -418,7 +418,7 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_159831:: @ 8159831
end
LilycoveCity_PokemonTrainerFanClub_EventScript_159865:: @ 8159865
- specialval RESULT, sub_810FCB0
+ specialvar RESULT, sub_810FCB0
compare_var_to_imm RESULT, 1
goto_if_eq LilycoveCity_PokemonTrainerFanClub_EventScript_15987F
msgbox LilycoveCity_PokemonTrainerFanClub_Text_18B16E, 4
diff --git a/data/scripts/maps/LittlerootTown.inc b/data/scripts/maps/LittlerootTown.inc
index 936437fb9..79b89e157 100644
--- a/data/scripts/maps/LittlerootTown.inc
+++ b/data/scripts/maps/LittlerootTown.inc
@@ -81,7 +81,7 @@ LittlerootTown_EventScript_14D5EF:: @ 814D5EF
setvar 0x8005, 8
call LittlerootTown_EventScript_14D62B
setflag 761
- warpmuted LittlerootTown_BrendansHouse_1F, 255, 8, 8
+ warpsilent LittlerootTown_BrendansHouse_1F, 255, 8, 8
waitstate
releaseall
end
@@ -92,14 +92,14 @@ LittlerootTown_EventScript_14D60D:: @ 814D60D
setvar 0x8005, 8
call LittlerootTown_EventScript_14D62B
setflag 762
- warpmuted LittlerootTown_MaysHouse_1F, 255, 2, 8
+ warpsilent LittlerootTown_MaysHouse_1F, 255, 2, 8
waitstate
releaseall
end
LittlerootTown_EventScript_14D62B:: @ 814D62B
- pause 15
- playsfx 10
+ delay 15
+ playse 10
move 255, LittlerootTown_Movement_14D6C0
waitmove 0
setdooropened 0x8004, 0x8005
@@ -109,7 +109,7 @@ LittlerootTown_EventScript_14D62B:: @ 814D62B
waitmove 0
setdoorclosed 0x8004, 0x8005
doorchange
- pause 10
+ delay 10
move 4, LittlerootTown_Movement_14D6AE
waitmove 0
msgbox LittlerootTown_Text_16A7C9, 4
@@ -868,7 +868,7 @@ LittlerootTown_EventScript_14DD2B:: @ 814DD2B
LittlerootTown_EventScript_14DD38:: @ 814DD38
msgbox LittlerootTown_Text_16A8FD, 4
- fanfare 370
+ playfanfare 370
message LittlerootTown_Text_16AA32
waitfanfare
waittext
@@ -876,5 +876,5 @@ LittlerootTown_EventScript_14DD38:: @ 814DD38
msgbox LittlerootTown_Text_16AA5C, 4
msgbox LittlerootTown_Text_16AB10, 4
closebutton
- pause 30
+ delay 30
return
diff --git a/data/scripts/maps/LittlerootTown_BrendansHouse_1F.inc b/data/scripts/maps/LittlerootTown_BrendansHouse_1F.inc
index 63e717a51..f0440a49e 100644
--- a/data/scripts/maps/LittlerootTown_BrendansHouse_1F.inc
+++ b/data/scripts/maps/LittlerootTown_BrendansHouse_1F.inc
@@ -90,7 +90,7 @@ LittlerootTown_BrendansHouse_1F_EventScript_152733:: @ 8152733
LittlerootTown_BrendansHouse_1F_EventScript_152744:: @ 8152744
lockall
- playsfx 21
+ playse 21
move 4, LittlerootTown_BrendansHouse_1F_Movement_1A0833
waitmove 0
move 4, LittlerootTown_BrendansHouse_1F_Movement_1A0835
diff --git a/data/scripts/maps/LittlerootTown_BrendansHouse_2F.inc b/data/scripts/maps/LittlerootTown_BrendansHouse_2F.inc
index 8c0133625..61b981995 100644
--- a/data/scripts/maps/LittlerootTown_BrendansHouse_2F.inc
+++ b/data/scripts/maps/LittlerootTown_BrendansHouse_2F.inc
@@ -60,7 +60,7 @@ LittlerootTown_BrendansHouse_2F_EventScript_15281E:: @ 815281E
LittlerootTown_BrendansHouse_2F_EventScript_152837:: @ 8152837
setvar 0x8004, 1
special DoPCTurnOnEffect
- playsfx SE_PC_ON
+ playse SE_PC_ON
msgbox LittlerootTown_BrendansHouse_2F_Text_1A10D6, 4
special BedroomPC
waitstate
@@ -69,7 +69,7 @@ LittlerootTown_BrendansHouse_2F_EventScript_152837:: @ 8152837
gBrendanHouse_TurnPCOff:: @ 8152850
setvar 0x8004, 1
- playsfx SE_PC_OFF
+ playse SE_PC_OFF
special DoPCTurnOffEffect
releaseall
end
diff --git a/data/scripts/maps/LittlerootTown_MaysHouse_1F.inc b/data/scripts/maps/LittlerootTown_MaysHouse_1F.inc
index 73060a055..882c5ede3 100644
--- a/data/scripts/maps/LittlerootTown_MaysHouse_1F.inc
+++ b/data/scripts/maps/LittlerootTown_MaysHouse_1F.inc
@@ -90,7 +90,7 @@ LittlerootTown_MaysHouse_1F_EventScript_152971:: @ 8152971
LittlerootTown_MaysHouse_1F_EventScript_152982:: @ 8152982
lockall
- playsfx 21
+ playse 21
move 4, LittlerootTown_MaysHouse_1F_Movement_1A0833
waitmove 0
move 4, LittlerootTown_MaysHouse_1F_Movement_1A0835
diff --git a/data/scripts/maps/LittlerootTown_MaysHouse_2F.inc b/data/scripts/maps/LittlerootTown_MaysHouse_2F.inc
index ea6869b1b..b9dca087f 100644
--- a/data/scripts/maps/LittlerootTown_MaysHouse_2F.inc
+++ b/data/scripts/maps/LittlerootTown_MaysHouse_2F.inc
@@ -37,18 +37,18 @@ LittlerootTown_MaysHouse_2F_EventScript_152A9D:: @ 8152A9D
call_if 1, LittlerootTown_BrendansHouse_2F_EventScript_152AD4
compare_var_to_imm RESULT, 1
call_if 1, LittlerootTown_BrendansHouse_2F_EventScript_152B4A
- playsfx 9
+ playse 9
disappear LAST_TALKED
setvar 0x408d, 3
setvar 0x4050, 1
- playmusicbattle 0
- fadedefault
+ savebgm 0
+ fadedefaultbgm
releaseall
end
LittlerootTown_BrendansHouse_2F_EventScript_152AD4:: @ 8152AD4
msgbox LittlerootTown_BrendansHouse_2F_Text_17337E, 4
- playmusic 415, 1
+ playbgm 415, 1
move LAST_TALKED, LittlerootTown_BrendansHouse_2F_Movement_1A0839
waitmove 0
move LAST_TALKED, LittlerootTown_BrendansHouse_2F_Movement_1A0833
@@ -82,7 +82,7 @@ LittlerootTown_BrendansHouse_2F_EventScript_152B3F:: @ 8152B3F
LittlerootTown_BrendansHouse_2F_EventScript_152B4A:: @ 8152B4A
msgbox LittlerootTown_BrendansHouse_2F_Text_1735C9, 4
- playmusic 421, 1
+ playbgm 421, 1
move LAST_TALKED, LittlerootTown_BrendansHouse_2F_Movement_1A0839
waitmove 0
move LAST_TALKED, LittlerootTown_BrendansHouse_2F_Movement_1A0833
@@ -208,7 +208,7 @@ LittlerootTown_MaysHouse_2F_EventScript_152C52:: @ 8152C52
LittlerootTown_MaysHouse_2F_EventScript_152C5C:: @ 8152C5C
setvar 0x8004, 2
special DoPCTurnOnEffect
- playsfx SE_PC_ON
+ playse SE_PC_ON
msgbox LittlerootTown_MaysHouse_2F_Text_1A10D6, 4
special BedroomPC
waitstate
@@ -217,7 +217,7 @@ LittlerootTown_MaysHouse_2F_EventScript_152C5C:: @ 8152C5C
gMayHouse_TurnPCOff:: @ 8152C75
setvar 0x8004, 2
- playsfx SE_PC_OFF
+ playse SE_PC_OFF
special DoPCTurnOffEffect
releaseall
end
diff --git a/data/scripts/maps/LittlerootTown_ProfessorBirchsLab.inc b/data/scripts/maps/LittlerootTown_ProfessorBirchsLab.inc
index d34e52f7f..092d50545 100644
--- a/data/scripts/maps/LittlerootTown_ProfessorBirchsLab.inc
+++ b/data/scripts/maps/LittlerootTown_ProfessorBirchsLab.inc
@@ -27,7 +27,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_152CBE:: @ 8152CBE
bufferfirstpoke 0
message LittlerootTown_ProfessorBirchsLab_Text_173D94
waittext
- fanfare 370
+ playfanfare 370
waitfanfare
msgbox LittlerootTown_ProfessorBirchsLab_Text_173EF8, 5
compare_var_to_imm RESULT, 1
@@ -155,7 +155,7 @@ LittlerootTown_ProfessorBirchsLab_EventScript_152E40:: @ 8152E40
return
LittlerootTown_ProfessorBirchsLab_EventScript_152E6D:: @ 8152E6D
- fanfare 370
+ playfanfare 370
message LittlerootTown_ProfessorBirchsLab_Text_17422F
waitfanfare
waittext
diff --git a/data/scripts/maps/MauvilleCity.inc b/data/scripts/maps/MauvilleCity.inc
index d6cade75d..da0ff3a62 100644
--- a/data/scripts/maps/MauvilleCity.inc
+++ b/data/scripts/maps/MauvilleCity.inc
@@ -95,7 +95,7 @@ MauvilleCity_EventScript_14C0F9:: @ 814C0F9
msgbox MauvilleCity_Text_165D01, 4
move 6, MauvilleCity_Movement_1A0839
waitmove 0
- playsfx 21
+ playse 21
move 6, MauvilleCity_Movement_1A0833
waitmove 0
move 6, MauvilleCity_Movement_1A0835
@@ -121,7 +121,7 @@ MauvilleCity_EventScript_14C187:: @ 814C187
waitmove 0
move 6, MauvilleCity_Movement_1A0843
waitmove 0
- pause 30
+ delay 30
move 7, MauvilleCity_Movement_14C2D8
waitmove 0
move 255, MauvilleCity_Movement_1A0845
@@ -140,7 +140,7 @@ MauvilleCity_EventScript_14C1D9:: @ 814C1D9
waitmove 0
move 6, MauvilleCity_Movement_1A0843
waitmove 0
- pause 30
+ delay 30
move 7, MauvilleCity_Movement_14C2DC
waitmove 0
move 255, MauvilleCity_Movement_1A0845
diff --git a/data/scripts/maps/MauvilleCity_GameCorner.inc b/data/scripts/maps/MauvilleCity_GameCorner.inc
index 02b0c4bbb..63476bb1a 100644
--- a/data/scripts/maps/MauvilleCity_GameCorner.inc
+++ b/data/scripts/maps/MauvilleCity_GameCorner.inc
@@ -43,7 +43,7 @@ MauvilleCity_GameCorner_EventScript_156AAE:: @ 8156AAE
updatemoney 0, 0
nop
updatecoins 0, 5
- playsfx 95
+ playse 95
msgbox MauvilleCity_GameCorner_Text_181CFE, 4
hidemoney 0, 0
hidecoins 0, 5
@@ -62,7 +62,7 @@ MauvilleCity_GameCorner_EventScript_156AF0:: @ 8156AF0
updatemoney 0, 0
nop
updatecoins 0, 5
- playsfx 95
+ playse 95
msgbox MauvilleCity_GameCorner_Text_181CFE, 4
hidemoney 0, 0
hidecoins 0, 5
@@ -163,7 +163,7 @@ MauvilleCity_GameCorner_EventScript_156C46:: @ 8156C46
removecoins 1000
adddecor 88
updatecoins 0, 0
- playsfx 95
+ playse 95
msgbox MauvilleCity_GameCorner_Text_181E49, 4
goto MauvilleCity_GameCorner_EventScript_156B9B
end
@@ -179,7 +179,7 @@ MauvilleCity_GameCorner_EventScript_156C80:: @ 8156C80
removecoins 1000
adddecor 89
updatecoins 0, 0
- playsfx 95
+ playse 95
msgbox MauvilleCity_GameCorner_Text_181E49, 4
goto MauvilleCity_GameCorner_EventScript_156B9B
end
@@ -195,7 +195,7 @@ MauvilleCity_GameCorner_EventScript_156CBA:: @ 8156CBA
removecoins 1000
adddecor 90
updatecoins 0, 0
- playsfx 95
+ playse 95
msgbox MauvilleCity_GameCorner_Text_181E49, 4
goto MauvilleCity_GameCorner_EventScript_156B9B
end
@@ -297,7 +297,7 @@ MauvilleCity_GameCorner_EventScript_156E3C:: @ 8156E3C
removecoins 1500
additem ITEM_TM32, 1
updatecoins 0, 0
- playsfx 95
+ playse 95
msgbox MauvilleCity_GameCorner_Text_181F08, 4
goto MauvilleCity_GameCorner_EventScript_156D49
end
@@ -312,7 +312,7 @@ MauvilleCity_GameCorner_EventScript_156E76:: @ 8156E76
removecoins 3500
additem ITEM_TM29, 1
updatecoins 0, 0
- playsfx 95
+ playse 95
msgbox MauvilleCity_GameCorner_Text_181F08, 4
goto MauvilleCity_GameCorner_EventScript_156D49
end
@@ -327,7 +327,7 @@ MauvilleCity_GameCorner_EventScript_156EB0:: @ 8156EB0
removecoins 4000
additem ITEM_TM35, 1
updatecoins 0, 0
- playsfx 95
+ playse 95
msgbox MauvilleCity_GameCorner_Text_181F08, 4
goto MauvilleCity_GameCorner_EventScript_156D49
end
@@ -342,7 +342,7 @@ MauvilleCity_GameCorner_EventScript_156EEA:: @ 8156EEA
removecoins 4000
additem ITEM_TM24, 1
updatecoins 0, 0
- playsfx 95
+ playse 95
msgbox MauvilleCity_GameCorner_Text_181F08, 4
goto MauvilleCity_GameCorner_EventScript_156D49
end
@@ -357,7 +357,7 @@ MauvilleCity_GameCorner_EventScript_156F24:: @ 8156F24
removecoins 4000
additem ITEM_TM13, 1
updatecoins 0, 0
- playsfx 95
+ playse 95
msgbox MauvilleCity_GameCorner_Text_181F08, 4
goto MauvilleCity_GameCorner_EventScript_156D49
end
@@ -468,7 +468,7 @@ MauvilleCity_GameCorner_EventScript_15709C:: @ 815709C
setflag 225
givecoins 20
msgbox MauvilleCity_GameCorner_Text_18208E, 4
- playsfx 95
+ playse 95
goto MauvilleCity_GameCorner_EventScript_1570CA
end
@@ -525,7 +525,7 @@ MauvilleCity_GameCorner_EventScript_157135:: @ 8157135
compare_var_to_imm RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
setvar 0x8004, 0
- specialval RESULT, sub_810F424
+ specialvar RESULT, sub_810F424
pokecasino RESULT
releaseall
end
@@ -536,7 +536,7 @@ MauvilleCity_GameCorner_EventScript_157155:: @ 8157155
compare_var_to_imm RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
setvar 0x8004, 1
- specialval RESULT, sub_810F424
+ specialvar RESULT, sub_810F424
pokecasino RESULT
releaseall
end
@@ -547,7 +547,7 @@ MauvilleCity_GameCorner_EventScript_157175:: @ 8157175
compare_var_to_imm RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
setvar 0x8004, 2
- specialval RESULT, sub_810F424
+ specialvar RESULT, sub_810F424
pokecasino RESULT
releaseall
end
@@ -558,7 +558,7 @@ MauvilleCity_GameCorner_EventScript_157195:: @ 8157195
compare_var_to_imm RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
setvar 0x8004, 3
- specialval RESULT, sub_810F424
+ specialvar RESULT, sub_810F424
pokecasino RESULT
releaseall
end
@@ -569,7 +569,7 @@ MauvilleCity_GameCorner_EventScript_1571B5:: @ 81571B5
compare_var_to_imm RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
setvar 0x8004, 4
- specialval RESULT, sub_810F424
+ specialvar RESULT, sub_810F424
pokecasino RESULT
releaseall
end
@@ -580,7 +580,7 @@ MauvilleCity_GameCorner_EventScript_1571D5:: @ 81571D5
compare_var_to_imm RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
setvar 0x8004, 5
- specialval RESULT, sub_810F424
+ specialvar RESULT, sub_810F424
pokecasino RESULT
releaseall
end
@@ -591,7 +591,7 @@ MauvilleCity_GameCorner_EventScript_1571F5:: @ 81571F5
compare_var_to_imm RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
setvar 0x8004, 6
- specialval RESULT, sub_810F424
+ specialvar RESULT, sub_810F424
pokecasino RESULT
releaseall
end
@@ -602,7 +602,7 @@ MauvilleCity_GameCorner_EventScript_157215:: @ 8157215
compare_var_to_imm RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
setvar 0x8004, 7
- specialval RESULT, sub_810F424
+ specialvar RESULT, sub_810F424
pokecasino RESULT
releaseall
end
@@ -613,7 +613,7 @@ MauvilleCity_GameCorner_EventScript_157235:: @ 8157235
compare_var_to_imm RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
setvar 0x8004, 8
- specialval RESULT, sub_810F424
+ specialvar RESULT, sub_810F424
pokecasino RESULT
releaseall
end
@@ -624,7 +624,7 @@ MauvilleCity_GameCorner_EventScript_157255:: @ 8157255
compare_var_to_imm RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
setvar 0x8004, 9
- specialval RESULT, sub_810F424
+ specialvar RESULT, sub_810F424
pokecasino RESULT
releaseall
end
@@ -635,7 +635,7 @@ MauvilleCity_GameCorner_EventScript_157275:: @ 8157275
compare_var_to_imm RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
setvar 0x8004, 10
- specialval RESULT, sub_810F424
+ specialvar RESULT, sub_810F424
pokecasino RESULT
releaseall
end
@@ -646,7 +646,7 @@ MauvilleCity_GameCorner_EventScript_157295:: @ 8157295
compare_var_to_imm RESULT, 0
goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5
setvar 0x8004, 11
- specialval RESULT, sub_810F424
+ specialvar RESULT, sub_810F424
pokecasino RESULT
releaseall
end
diff --git a/data/scripts/maps/MauvilleCity_Gym.inc b/data/scripts/maps/MauvilleCity_Gym.inc
index 3255f8459..1030d8f68 100644
--- a/data/scripts/maps/MauvilleCity_Gym.inc
+++ b/data/scripts/maps/MauvilleCity_Gym.inc
@@ -91,7 +91,7 @@ MauvilleCity_Gym_EventScript_1565DB:: @ 81565DB
call MauvilleCity_Gym_EventScript_1A01C0
special MauvilleGymSpecial3
special DrawWholeMapView
- playsfx 44
+ playse 44
goto MauvilleCity_Gym_EventScript_15661D
end
@@ -146,7 +146,7 @@ MauvilleCity_Gym_EventScript_1566BA:: @ 81566BA
special MauvilleGymSpecial2
special MauvilleGymSpecial1
special DrawWholeMapView
- playsfx 44
+ playse 44
checkflag 99
goto_if_eq MauvilleCity_Gym_EventScript_1566E1
checkflag 99
diff --git a/data/scripts/maps/MauvilleCity_House2.inc b/data/scripts/maps/MauvilleCity_House2.inc
index 7182a59aa..4308fd5ab 100644
--- a/data/scripts/maps/MauvilleCity_House2.inc
+++ b/data/scripts/maps/MauvilleCity_House2.inc
@@ -14,7 +14,7 @@ MauvilleCity_House2_EventScript_1572C0:: @ 81572C0
end
MauvilleCity_House2_EventScript_1572E5:: @ 81572E5
- playsfx 21
+ playse 21
move LAST_TALKED, MauvilleCity_House2_Movement_1A0833
waitmove 0
move LAST_TALKED, MauvilleCity_House2_Movement_1A0835
diff --git a/data/scripts/maps/MeteorFalls_1F_1R.inc b/data/scripts/maps/MeteorFalls_1F_1R.inc
index d5e1574cc..07e264fa8 100644
--- a/data/scripts/maps/MeteorFalls_1F_1R.inc
+++ b/data/scripts/maps/MeteorFalls_1F_1R.inc
@@ -10,7 +10,7 @@ MeteorFalls_1F_1R_EventScript_15C49C:: @ 815C49C
lockall
move 255, MeteorFalls_1F_1R_Movement_1A0845
waitmove 0
- pause 30
+ delay 30
move 5, MeteorFalls_1F_1R_Movement_1A0845
waitmove 0
msgbox MeteorFalls_1F_1R_Text_193237, 4
@@ -18,7 +18,7 @@ MeteorFalls_1F_1R_EventScript_15C49C:: @ 815C49C
move 5, MeteorFalls_1F_1R_Movement_1A0841
move 6, MeteorFalls_1F_1R_Movement_1A0841
waitmove 0
- playsfx 21
+ playse 21
move 5, MeteorFalls_1F_1R_Movement_1A0833
waitmove 0
move 5, MeteorFalls_1F_1R_Movement_1A0835
diff --git a/data/scripts/maps/MeteorFalls_1F_2R.inc b/data/scripts/maps/MeteorFalls_1F_2R.inc
index e6225bba0..a5c89055b 100644
--- a/data/scripts/maps/MeteorFalls_1F_2R.inc
+++ b/data/scripts/maps/MeteorFalls_1F_2R.inc
@@ -3,7 +3,7 @@ MeteorFalls_1F_2R_MapScripts:: @ 815C678
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
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq MeteorFalls_1F_2R_EventScript_15C6A0
msgbox MeteorFalls_1F_2R_Text_193A60, 6
@@ -16,7 +16,7 @@ MeteorFalls_1F_2R_EventScript_15C6A0:: @ 815C6A0
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
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq MeteorFalls_1F_2R_EventScript_15C6E2
msgbox MeteorFalls_1F_2R_Text_193C35, 6
@@ -29,7 +29,7 @@ MeteorFalls_1F_2R_EventScript_15C6E2:: @ 815C6E2
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
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq MeteorFalls_1F_2R_EventScript_15C728
msgbox MeteorFalls_1F_2R_Text_193D9A, 6
diff --git a/data/scripts/maps/MossdeepCity_Gym.inc b/data/scripts/maps/MossdeepCity_Gym.inc
index 4112a3b15..de38e8fd0 100644
--- a/data/scripts/maps/MossdeepCity_Gym.inc
+++ b/data/scripts/maps/MossdeepCity_Gym.inc
@@ -94,7 +94,7 @@ MossdeepCity_Gym_EventScript_15A5EA:: @ 815A5EA
MossdeepCity_Gym_EventScript_15A619:: @ 815A619
special DrawWholeMapView
- playsfx 36
+ playse 36
releaseall
end
diff --git a/data/scripts/maps/MossdeepCity_House1.inc b/data/scripts/maps/MossdeepCity_House1.inc
index 8f3d2ebfc..b6fe4fd6e 100644
--- a/data/scripts/maps/MossdeepCity_House1.inc
+++ b/data/scripts/maps/MossdeepCity_House1.inc
@@ -6,7 +6,7 @@ MossdeepCity_House1_EventScript_15A82F:: @ 815A82F
faceplayer
bufferfirstpoke 0
msgbox MossdeepCity_House1_Text_18D465, 4
- specialval RESULT, GetPokeblockNameByMonNature
+ specialvar RESULT, GetPokeblockNameByMonNature
compare_var_to_imm RESULT, 0
goto_if_eq MossdeepCity_House1_EventScript_15A855
msgbox MossdeepCity_House1_Text_18D475, 4
diff --git a/data/scripts/maps/MossdeepCity_House2.inc b/data/scripts/maps/MossdeepCity_House2.inc
index 9be55e8d0..e3485ae0d 100644
--- a/data/scripts/maps/MossdeepCity_House2.inc
+++ b/data/scripts/maps/MossdeepCity_House2.inc
@@ -12,7 +12,7 @@ MossdeepCity_House2_EventScript_15A872:: @ 815A872
MossdeepCity_House2_EventScript_15A87B:: @ 815A87B
lock
faceplayer
- checksound
+ waitse
pokecry SPECIES_WINGULL, 0
msgbox MossdeepCity_House2_Text_18D61E, 4
waitpokecry
diff --git a/data/scripts/maps/MossdeepCity_House4.inc b/data/scripts/maps/MossdeepCity_House4.inc
index 6db52bc42..9b1b17c69 100644
--- a/data/scripts/maps/MossdeepCity_House4.inc
+++ b/data/scripts/maps/MossdeepCity_House4.inc
@@ -34,7 +34,7 @@ MossdeepCity_House4_EventScript_15AB6D:: @ 815AB6D
MossdeepCity_House4_EventScript_15AB77:: @ 815AB77
lock
faceplayer
- checksound
+ waitse
pokecry SPECIES_SKITTY, 0
msgbox MossdeepCity_House4_Text_18E1E1, 4
waitpokecry
diff --git a/data/scripts/maps/MossdeepCity_SpaceCenter_1F.inc b/data/scripts/maps/MossdeepCity_SpaceCenter_1F.inc
index f5927aa77..40ed4f4ef 100644
--- a/data/scripts/maps/MossdeepCity_SpaceCenter_1F.inc
+++ b/data/scripts/maps/MossdeepCity_SpaceCenter_1F.inc
@@ -4,8 +4,8 @@ MossdeepCity_SpaceCenter_1F_MapScripts:: @ 815AB8A
MossdeepCity_SpaceCenter_1F_EventScript_15AB8B:: @ 815AB8B
lock
faceplayer
- checkdailyflags
- specialval RESULT, GetWeekCount
+ dodailyevents
+ specialvar RESULT, GetWeekCount
buffernum 0, RESULT
compare_var_to_imm RESULT, 0
call_if 1, MossdeepCity_SpaceCenter_1F_EventScript_15ABBA
diff --git a/data/scripts/maps/MossdeepCity_StevensHouse.inc b/data/scripts/maps/MossdeepCity_StevensHouse.inc
index c283d0532..d5004c644 100644
--- a/data/scripts/maps/MossdeepCity_StevensHouse.inc
+++ b/data/scripts/maps/MossdeepCity_StevensHouse.inc
@@ -31,7 +31,7 @@ MossdeepCity_StevensHouse_EventScript_15AA0B:: @ 815AA0B
lockall
move 1, MossdeepCity_StevensHouse_Movement_1A083F
waitmove 0
- playsfx 21
+ playse 21
move 1, MossdeepCity_StevensHouse_Movement_1A0833
waitmove 0
move 1, MossdeepCity_StevensHouse_Movement_1A0835
@@ -44,7 +44,7 @@ MossdeepCity_StevensHouse_EventScript_15AA0B:: @ 815AA0B
setflag 302
msgbox MossdeepCity_StevensHouse_Text_18DB22, 4
closebutton
- pause 20
+ delay 20
move 1, MossdeepCity_StevensHouse_Movement_15AA76
waitmove 0
setvar 0x40c6, 1
@@ -79,7 +79,7 @@ MossdeepCity_StevensHouse_EventScript_15AA7C:: @ 815AA7C
goto_if_eq MossdeepCity_StevensHouse_EventScript_15AADC
copyvar 0x8004, RESULT
disappear 2
- fanfare 370
+ playfanfare 370
message MossdeepCity_StevensHouse_Text_18DD61
waitfanfare
waittext
diff --git a/data/scripts/maps/MtChimney.inc b/data/scripts/maps/MtChimney.inc
index 9fa2b77de..578743995 100644
--- a/data/scripts/maps/MtChimney.inc
+++ b/data/scripts/maps/MtChimney.inc
@@ -440,7 +440,7 @@ MtChimney_EventScript_15D1DA:: @ 815D1DA
MtChimney_EventScript_15D1E3:: @ 815D1E3
trainerbattle 0, OPPONENT_SHELBY_1, 0, MtChimney_Text_19597F, MtChimney_Text_1959D8
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq MtChimney_EventScript_15D20A
msgbox MtChimney_Text_195A04, 6
diff --git a/data/scripts/maps/MtPyre_2F.inc b/data/scripts/maps/MtPyre_2F.inc
index c44251af7..8d48dac84 100644
--- a/data/scripts/maps/MtPyre_2F.inc
+++ b/data/scripts/maps/MtPyre_2F.inc
@@ -6,7 +6,7 @@ MtPyre_2F_MapScripts:: @ 815D36E
MtPyre_2F_MapScript1_15D37E:: @ 815D37E
tileeffect 7
- warp5 MtPyre_1F, 255, 0, 0
+ setholewarp MtPyre_1F, 255, 0, 0
end
MtPyre_2F_EventScript_15D389:: @ 815D389
diff --git a/data/scripts/maps/MtPyre_6F.inc b/data/scripts/maps/MtPyre_6F.inc
index 6b85a88c3..5d650a8a6 100644
--- a/data/scripts/maps/MtPyre_6F.inc
+++ b/data/scripts/maps/MtPyre_6F.inc
@@ -3,7 +3,7 @@ MtPyre_6F_MapScripts:: @ 815D447
MtPyre_6F_EventScript_15D448:: @ 815D448
trainerbattle 0, OPPONENT_VALERIE_1, 0, MtPyre_6F_Text_1969FE, MtPyre_6F_Text_196A30
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq MtPyre_6F_EventScript_15D46F
msgbox MtPyre_6F_Text_196A4C, 6
diff --git a/data/scripts/maps/MtPyre_Summit.inc b/data/scripts/maps/MtPyre_Summit.inc
index cc66242e3..a558475c5 100644
--- a/data/scripts/maps/MtPyre_Summit.inc
+++ b/data/scripts/maps/MtPyre_Summit.inc
@@ -29,7 +29,7 @@ MtPyre_Summit_EventScript_15D4E1:: @ 815D4E1
waitmove 0
move 2, MtPyre_Summit_Movement_1A0845
waitmove 0
- pause 50
+ delay 50
compare_var_to_imm 0x8008, 0
call_if 1, MtPyre_Summit_EventScript_15D593
compare_var_to_imm 0x8008, 1
@@ -50,7 +50,7 @@ MtPyre_Summit_EventScript_15D4E1:: @ 815D4E1
setflag 916
setflag 917
fadescreen 0
- pause 20
+ delay 20
call MtPyre_Summit_EventScript_15D57A
compare_var_to_imm 0x8008, 0
call_if 1, MtPyre_Summit_EventScript_15D5AA
@@ -201,10 +201,10 @@ MtPyre_Summit_EventScript_15D669:: @ 815D669
closebutton
move LAST_TALKED, MtPyre_Summit_Movement_1A0841
waitmove 0
- pause 40
+ delay 40
move LAST_TALKED, MtPyre_Summit_Movement_1A0839
waitmove 0
- pause 10
+ delay 10
.ifdef SAPPHIRE
msgbox UnknownString_81B5762, 4
.else
@@ -267,7 +267,7 @@ MtPyre_Summit_EventScript_15D6F2:: @ 815D6F2
waitmove 0
move 2, MtPyre_Summit_Movement_1A0845
waitmove 0
- pause 50
+ delay 50
compare_var_to_imm 0x8008, 0
call_if 1, MtPyre_Summit_EventScript_15D75E
compare_var_to_imm 0x8008, 1
diff --git a/data/scripts/maps/NewMauville_Entrance.inc b/data/scripts/maps/NewMauville_Entrance.inc
index 94836d8c4..eb3f63225 100644
--- a/data/scripts/maps/NewMauville_Entrance.inc
+++ b/data/scripts/maps/NewMauville_Entrance.inc
@@ -40,7 +40,7 @@ NewMauville_Entrance_EventScript_15E4DC:: @ 815E4DC
setmaptile 4, 1, 716, 0
setmaptile 5, 1, 717, 1
special DrawWholeMapView
- playsfx 20
+ playse 20
setvar 0x40ba, 1
releaseall
end
diff --git a/data/scripts/maps/NewMauville_Inside.inc b/data/scripts/maps/NewMauville_Inside.inc
index 3407c8a01..4fdf02d15 100644
--- a/data/scripts/maps/NewMauville_Inside.inc
+++ b/data/scripts/maps/NewMauville_Inside.inc
@@ -31,7 +31,7 @@ NewMauville_Inside_EventScript_15E5AA:: @ 815E5AA
lockall
setvar 0x4001, 1
setvar 0x4002, 0
- playsfx 21
+ playse 21
call NewMauville_Inside_EventScript_15E5DA
special DrawWholeMapView
releaseall
@@ -41,7 +41,7 @@ NewMauville_Inside_EventScript_15E5C2:: @ 815E5C2
lockall
setvar 0x4001, 0
setvar 0x4002, 1
- playsfx 21
+ playse 21
call NewMauville_Inside_EventScript_15E728
special DrawWholeMapView
releaseall
@@ -165,9 +165,9 @@ NewMauville_Inside_EventScript_15E900:: @ 815E900
lock
faceplayer
setwildbattle SPECIES_VOLTORB, 25, ITEM_NONE
- checksound
+ waitse
pokecry SPECIES_VOLTORB, 2
- pause 40
+ delay 40
waitpokecry
setflag 974
setflag 2145
@@ -180,9 +180,9 @@ NewMauville_Inside_EventScript_15E91E:: @ 815E91E
lock
faceplayer
setwildbattle SPECIES_VOLTORB, 25, ITEM_NONE
- checksound
+ waitse
pokecry SPECIES_VOLTORB, 2
- pause 40
+ delay 40
waitpokecry
setflag 975
setflag 2145
@@ -195,9 +195,9 @@ NewMauville_Inside_EventScript_15E93C:: @ 815E93C
lock
faceplayer
setwildbattle SPECIES_VOLTORB, 25, ITEM_NONE
- checksound
+ waitse
pokecry SPECIES_VOLTORB, 2
- pause 40
+ delay 40
waitpokecry
setflag 976
setflag 2145
diff --git a/data/scripts/maps/OldaleTown.inc b/data/scripts/maps/OldaleTown.inc
index eef21daa7..7cac8011a 100644
--- a/data/scripts/maps/OldaleTown.inc
+++ b/data/scripts/maps/OldaleTown.inc
@@ -43,7 +43,7 @@ OldaleTown_EventScript_14DDBC:: @ 814DDBC
checkflag 1
goto_if_eq OldaleTown_EventScript_14DE79
setflag 1
- playmusic 420, 0
+ playbgm 420, 0
msgbox OldaleTown_Text_16AEF2, 4
closebutton
switch FACING
@@ -80,7 +80,7 @@ OldaleTown_EventScript_14DE4C:: @ 814DE4C
goto_if_eq OldaleTown_EventScript_14DE83
msgbox OldaleTown_Text_16AFE1, 4
setflag 132
- fadedefault
+ fadedefaultbgm
release
end
@@ -91,7 +91,7 @@ OldaleTown_EventScript_14DE79:: @ 814DE79
OldaleTown_EventScript_14DE83:: @ 814DE83
msgbox OldaleTown_Text_1A0CC2, 4
- fadedefault
+ fadedefaultbgm
release
end
diff --git a/data/scripts/maps/PacifidlogTown_House2.inc b/data/scripts/maps/PacifidlogTown_House2.inc
index 07b6150d7..e604a4f33 100644
--- a/data/scripts/maps/PacifidlogTown_House2.inc
+++ b/data/scripts/maps/PacifidlogTown_House2.inc
@@ -4,7 +4,7 @@ PacifidlogTown_House2_MapScripts:: @ 8154167
PacifidlogTown_House2_EventScript_154168:: @ 8154168
lock
faceplayer
- checkdailyflags
+ dodailyevents
call PacifidlogTown_House2_EventScript_1541B4
checkflag 299
goto_if_eq PacifidlogTown_House2_EventScript_154254
@@ -13,10 +13,10 @@ PacifidlogTown_House2_EventScript_154168:: @ 8154168
checkflag 300
call_if 0, PacifidlogTown_House2_EventScript_1541D7
setflag 300
- specialval RESULT, GetLeadMonFriendshipScore
+ specialvar RESULT, GetLeadMonFriendshipScore
compare_var_to_imm RESULT, 4
goto_if 4, PacifidlogTown_House2_EventScript_1541EC
- specialval RESULT, GetLeadMonFriendshipScore
+ specialvar RESULT, GetLeadMonFriendshipScore
compare_var_to_imm RESULT, 2
goto_if 4, PacifidlogTown_House2_EventScript_15421B
goto PacifidlogTown_House2_EventScript_154225
@@ -25,7 +25,7 @@ PacifidlogTown_House2_EventScript_154168:: @ 8154168
PacifidlogTown_House2_EventScript_1541B4:: @ 81541B4
checkflag 299
goto_if 0, PacifidlogTown_House2_EventScript_1A14DC
- specialval RESULT, sub_810F908
+ specialvar RESULT, sub_810F908
compare_var_to_imm RESULT, 0
call_if 1, PacifidlogTown_House2_EventScript_1541E8
return
@@ -71,7 +71,7 @@ PacifidlogTown_House2_EventScript_154225:: @ 8154225
end
PacifidlogTown_House2_EventScript_154254:: @ 8154254
- specialval RESULT, sub_810F908
+ specialvar RESULT, sub_810F908
buffernum 0, RESULT
msgbox PacifidlogTown_House2_Text_1792F2, 4
release
@@ -80,7 +80,7 @@ PacifidlogTown_House2_EventScript_154254:: @ 8154254
PacifidlogTown_House2_EventScript_154267:: @ 8154267
lock
faceplayer
- checksound
+ waitse
pokecry SPECIES_AZURILL, 0
msgbox PacifidlogTown_House2_Text_17938B, 4
waitpokecry
@@ -91,7 +91,7 @@ PacifidlogTown_House2_EventScript_154267:: @ 8154267
PacifidlogTown_House2_EventScript_154282:: @ 8154282
lock
faceplayer
- checksound
+ waitse
pokecry SPECIES_AZURILL, 2
msgbox PacifidlogTown_House2_Text_1793CC, 4
waitpokecry
diff --git a/data/scripts/maps/PacifidlogTown_House3.inc b/data/scripts/maps/PacifidlogTown_House3.inc
index 3a8dc3b1d..e39db3921 100644
--- a/data/scripts/maps/PacifidlogTown_House3.inc
+++ b/data/scripts/maps/PacifidlogTown_House3.inc
@@ -8,7 +8,7 @@ PacifidlogTown_House3_EventScript_15429E:: @ 815429E
goto_if_eq PacifidlogTown_House3_EventScript_154338
setvar 0x8008, 2
copyvar 0x8004, 0x8008
- specialval RESULT, sub_804D89C
+ specialvar RESULT, sub_804D89C
copyvar 0x8009, RESULT
msgbox PacifidlogTown_House3_Text_17940E, 5
compare_var_to_imm RESULT, 0
@@ -19,7 +19,7 @@ PacifidlogTown_House3_EventScript_15429E:: @ 815429E
compare_var_to_imm 0x8004, 255
goto_if_eq PacifidlogTown_House3_EventScript_154320
copyvar 0x8005, 0x800a
- specialval RESULT, sub_804DB2C
+ specialvar RESULT, sub_804DB2C
copyvar 0x800b, RESULT
compare_var_to_var RESULT, 0x8009
goto_if 5, PacifidlogTown_House3_EventScript_15432A
diff --git a/data/scripts/maps/PacifidlogTown_House5.inc b/data/scripts/maps/PacifidlogTown_House5.inc
index 008c2f800..abbf81dd8 100644
--- a/data/scripts/maps/PacifidlogTown_House5.inc
+++ b/data/scripts/maps/PacifidlogTown_House5.inc
@@ -4,7 +4,7 @@ PacifidlogTown_House5_MapScripts:: @ 8154393
PacifidlogTown_House5_EventScript_154394:: @ 8154394
lock
faceplayer
- specialval RESULT, IsMirageIslandPresent
+ specialvar RESULT, IsMirageIslandPresent
compare_var_to_imm RESULT, 1
goto_if_eq PacifidlogTown_House5_EventScript_1543B0
msgbox PacifidlogTown_House5_Text_179718, 4
diff --git a/data/scripts/maps/PetalburgCity.inc b/data/scripts/maps/PetalburgCity.inc
index f5b683b34..e1e49096a 100644
--- a/data/scripts/maps/PetalburgCity.inc
+++ b/data/scripts/maps/PetalburgCity.inc
@@ -16,7 +16,7 @@ PetalburgCity_EventScript_14B731:: @ 814B731
return
PetalburgCity_EventScript_14B739:: @ 814B739
- playmusicbattle 420
+ savebgm 420
return
PetalburgCity_MapScript2_14B73D:: @ 814B73D
@@ -41,7 +41,7 @@ PetalburgCity_EventScript_14B747:: @ 814B747
closebutton
clearflag 0x4000
setvar 0x4057, 3
- fadedefault
+ fadedefaultbgm
clearflag 0x4001
special LoadPlayerParty
setvar 0x4085, 1
@@ -181,8 +181,8 @@ PetalburgCity_EventScript_14B85A:: @ 814B85A
PetalburgCity_EventScript_14B866:: @ 814B866
move 9, PetalburgCity_Movement_1A0839
waitmove 0
- playmusic 420, 0
- playsfx 21
+ playbgm 420, 0
+ playse 21
move 9, PetalburgCity_Movement_1A0833
waitmove 0
move 9, PetalburgCity_Movement_1A0835
@@ -213,7 +213,7 @@ PetalburgCity_EventScript_14B866:: @ 814B866
closebutton
move 9, PetalburgCity_Movement_14B9F4
waitmove 0
- fadedefault
+ fadedefaultbgm
releaseall
end
diff --git a/data/scripts/maps/PetalburgCity_Gym.inc b/data/scripts/maps/PetalburgCity_Gym.inc
index e22f02b50..489a3f8fd 100644
--- a/data/scripts/maps/PetalburgCity_Gym.inc
+++ b/data/scripts/maps/PetalburgCity_Gym.inc
@@ -84,10 +84,10 @@ PetalburgCity_Gym_EventScript_15456C:: @ 815456C
move 255, PetalburgCity_Gym_Movement_1A0845
move 10, PetalburgCity_Gym_Movement_1545B4
waitmove 0
- playsfx 9
+ playse 9
disappear 10
setflag 726
- pause 30
+ delay 30
move 255, PetalburgCity_Gym_Movement_1A0841
waitmove 0
msgbox PetalburgCity_Gym_Text_17A2A4, 4
@@ -143,7 +143,7 @@ PetalburgCity_Gym_EventScript_15465E:: @ 815465E
PetalburgCity_Gym_EventScript_154669:: @ 8154669
reappear 10
- playsfx 8
+ playse 8
compare_var_to_imm 0x8008, 0
call_if 1, PetalburgCity_Gym_EventScript_1547EE
compare_var_to_imm 0x8008, 1
@@ -195,7 +195,7 @@ PetalburgCity_Gym_EventScript_154669:: @ 8154669
msgbox PetalburgCity_Gym_Text_17A171, 4
closebutton
setflag 0x4001
- playmusic 420, 0
+ playbgm 420, 0
compare_var_to_imm 0x8008, 0
call_if 1, PetalburgCity_Gym_EventScript_154835
compare_var_to_imm 0x8008, 1
@@ -363,7 +363,7 @@ PetalburgCity_Gym_EventScript_15493D:: @ 815493D
end
PetalburgCity_Gym_EventScript_154969:: @ 8154969
- specialval RESULT, IsEnigmaBerryValid
+ specialvar RESULT, IsEnigmaBerryValid
compare_var_to_imm RESULT, 0
goto_if_eq PetalburgCity_Gym_EventScript_1549B2
checkitem ITEM_ENIGMA_BERRY, 1
@@ -427,7 +427,7 @@ PetalburgCity_Gym_EventScript_154A2C:: @ 8154A2C
call_if 1, PetalburgCity_Gym_EventScript_154AD2
compare_var_to_imm FACING, 4
call_if 1, PetalburgCity_Gym_EventScript_154ADD
- pause 70
+ delay 70
compare_var_to_imm FACING, 2
call_if 1, PetalburgCity_Gym_EventScript_154AE8
compare_var_to_imm FACING, 1
@@ -605,8 +605,8 @@ PetalburgCity_Gym_EventScript_154B73:: @ 8154B73
PetalburgCity_Gym_EventScript_154BA8:: @ 8154BA8
closebutton
- pause 30
- warpwalk PetalburgCity_Gym, 255, 32776, 32777
+ delay 30
+ warpdoor PetalburgCity_Gym, 255, 32776, 32777
waitstate
releaseall
end
diff --git a/data/scripts/maps/PetalburgCity_PokemonCenter_1F.inc b/data/scripts/maps/PetalburgCity_PokemonCenter_1F.inc
index 0884db479..25783cf33 100644
--- a/data/scripts/maps/PetalburgCity_PokemonCenter_1F.inc
+++ b/data/scripts/maps/PetalburgCity_PokemonCenter_1F.inc
@@ -27,7 +27,7 @@ PetalburgCity_PokemonCenter_1F_EventScript_155233:: @ 8155233
lock
faceplayer
msgbox PetalburgCity_PokemonCenter_1F_Text_17BDC5, 4
- specialval RESULT, IsStarterInParty
+ specialvar RESULT, IsStarterInParty
compare_var_to_imm RESULT, 1
goto_if_eq PetalburgCity_PokemonCenter_1F_EventScript_15524F
release
diff --git a/data/scripts/maps/PetalburgWoods.inc b/data/scripts/maps/PetalburgWoods.inc
index dcf0a27cf..8c90aa09c 100644
--- a/data/scripts/maps/PetalburgWoods.inc
+++ b/data/scripts/maps/PetalburgWoods.inc
@@ -13,7 +13,7 @@ PetalburgWoods_EventScript_15CCA8:: @ 815CCA8
waitmove 0
msgbox PetalburgWoods_Text_194D92, 4
closebutton
- playmusic BGM_EVIL_TEAM, 0
+ playbgm BGM_EVIL_TEAM, 0
move 3, PetalburgWoods_Movement_15CEC3
waitmove 0
msgbox PetalburgWoods_Text_194DED, 4
@@ -48,7 +48,7 @@ PetalburgWoods_EventScript_15CD42:: @ 815CD42
waitmove 0
msgbox PetalburgWoods_Text_194D92, 4
closebutton
- playmusic BGM_EVIL_TEAM, 0
+ playbgm BGM_EVIL_TEAM, 0
move 3, PetalburgWoods_Movement_15CEC3
waitmove 0
msgbox PetalburgWoods_Text_194DED, 4
@@ -271,7 +271,7 @@ PetalburgWoods_EventScript_15CF27:: @ 815CF27
PetalburgWoods_EventScript_15CF3E:: @ 815CF3E
trainerbattle 0, OPPONENT_JAMES_1, 0, PetalburgWoods_Text_19526A, PetalburgWoods_Text_1952AE
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq PetalburgWoods_EventScript_15CF65
msgbox PetalburgWoods_Text_1952CC, 6
diff --git a/data/scripts/maps/Route101.inc b/data/scripts/maps/Route101.inc
index d945aadfc..bfbc9f2bd 100644
--- a/data/scripts/maps/Route101.inc
+++ b/data/scripts/maps/Route101.inc
@@ -18,7 +18,7 @@ Route101_EventScript_14E93F:: @ 814E93F
Route101_EventScript_14E948:: @ 814E948
lockall
- playmusic 410, 1
+ playbgm 410, 1
msgbox Route101_Text_16D10E, 4
closebutton
movesprite 2, 0, 15
diff --git a/data/scripts/maps/Route102.inc b/data/scripts/maps/Route102.inc
index 6d6b1c2da..70b750aef 100644
--- a/data/scripts/maps/Route102.inc
+++ b/data/scripts/maps/Route102.inc
@@ -19,7 +19,7 @@ Route102_EventScript_14EAF5:: @ 814EAF5
Route102_EventScript_14EAFE:: @ 814EAFE
trainerbattle 0, OPPONENT_CALVIN_1, 0, Route102_Text_1B79C3, Route102_Text_1B7A2C
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route102_EventScript_14EB25
msgbox Route102_Text_1B7A60, 6
diff --git a/data/scripts/maps/Route103.inc b/data/scripts/maps/Route103.inc
index 328021785..586075465 100644
--- a/data/scripts/maps/Route103.inc
+++ b/data/scripts/maps/Route103.inc
@@ -18,7 +18,7 @@ Route103_EventScript_14EB92:: @ 814EB92
Route103_EventScript_14EBAB:: @ 814EBAB
msgbox Route103_Text_16D57A, 4
- playmusic 415, 1
+ playbgm 415, 1
move 2, Route103_Movement_1A0839
waitmove 0
move 2, Route103_Movement_1A0833
@@ -34,7 +34,7 @@ Route103_EventScript_14EBAB:: @ 814EBAB
Route103_EventScript_14EC04:: @ 814EC04
msgbox Route103_Text_16D762, 4
- playmusic 421, 1
+ playbgm 421, 1
move 2, Route103_Movement_1A0839
waitmove 0
move 2, Route103_Movement_1A0833
@@ -100,7 +100,7 @@ Route103_EventScript_14ECD9:: @ 814ECD9
Route103_EventScript_14ED0C:: @ 814ED0C
move 2, Route103_Movement_14ED67
waitmove 0
- playsfx 10
+ playse 10
move 2, Route103_Movement_14ED6B
waitmove 0
goto Route103_EventScript_14ED46
@@ -109,7 +109,7 @@ Route103_EventScript_14ED0C:: @ 814ED0C
Route103_EventScript_14ED29:: @ 814ED29
move 2, Route103_Movement_14ED71
waitmove 0
- playsfx 10
+ playse 10
move 2, Route103_Movement_14ED74
waitmove 0
goto Route103_EventScript_14ED46
@@ -123,8 +123,8 @@ Route103_EventScript_14ED46:: @ 814ED46
setflag 130
setvar 0x40c7, 1
clearflag 979
- playmusicbattle 0
- fadedefault
+ savebgm 0
+ fadedefaultbgm
releaseall
end
@@ -173,7 +173,7 @@ Route103_EventScript_14ED94:: @ 814ED94
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
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route103_EventScript_14EDD6
msgbox Route103_Text_1B7E50, 6
@@ -186,7 +186,7 @@ Route103_EventScript_14EDD6:: @ 814EDD6
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
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route103_EventScript_14EE1C
msgbox Route103_Text_1B7F40, 6
@@ -204,7 +204,7 @@ Route103_EventScript_14EE37:: @ 814EE37
Route103_EventScript_14EE4E:: @ 814EE4E
trainerbattle 0, OPPONENT_MIGUEL_1, 0, Route103_Text_1B82A9, Route103_Text_1B82EC
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route103_EventScript_14EE75
msgbox Route103_Text_1B830D, 6
diff --git a/data/scripts/maps/Route104.inc b/data/scripts/maps/Route104.inc
index 8ab1999e6..58a6704bf 100644
--- a/data/scripts/maps/Route104.inc
+++ b/data/scripts/maps/Route104.inc
@@ -409,7 +409,7 @@ Route104_EventScript_14F189:: @ 814F189
Route104_EventScript_14F1A0:: @ 814F1A0
trainerbattle 0, OPPONENT_HALEY_1, 0, Route104_Text_1B8770, Route104_Text_1B87A7
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route104_EventScript_14F1C7
msgbox Route104_Text_1B87C3, 6
@@ -422,7 +422,7 @@ Route104_EventScript_14F1C7:: @ 814F1C7
Route104_EventScript_14F1DE:: @ 814F1DE
trainerbattle 0, OPPONENT_WINSTON_1, 0, Route104_Text_1B88D4, Route104_Text_1B8911
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route104_EventScript_14F205
msgbox Route104_Text_1B8925, 6
@@ -435,7 +435,7 @@ Route104_EventScript_14F205:: @ 814F205
Route104_EventScript_14F21C:: @ 814F21C
trainerbattle 0, OPPONENT_CINDY_1, 0, Route104_Text_1B8A24, Route104_Text_1B8A61
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route104_EventScript_14F243
msgbox Route104_Text_1B8A69, 6
diff --git a/data/scripts/maps/Route104_MrBrineysHouse.inc b/data/scripts/maps/Route104_MrBrineysHouse.inc
index 751c86825..6428e018b 100644
--- a/data/scripts/maps/Route104_MrBrineysHouse.inc
+++ b/data/scripts/maps/Route104_MrBrineysHouse.inc
@@ -91,7 +91,7 @@ Route104_MrBrineysHouse_EventScript_15BDAB:: @ 815BDAB
Route104_MrBrineysHouse_EventScript_15BDD1:: @ 815BDD1
lock
faceplayer
- checksound
+ waitse
pokecry SPECIES_WINGULL, 0
msgbox Route104_MrBrineysHouse_Text_191FB9, 4
waitpokecry
diff --git a/data/scripts/maps/Route104_PrettyPetalFlowerShop.inc b/data/scripts/maps/Route104_PrettyPetalFlowerShop.inc
index 097e99357..44fb9a082 100644
--- a/data/scripts/maps/Route104_PrettyPetalFlowerShop.inc
+++ b/data/scripts/maps/Route104_PrettyPetalFlowerShop.inc
@@ -89,7 +89,7 @@ Route104_PrettyPetalFlowerShop_EventScript_15BEB9:: @ 815BEB9
Route104_PrettyPetalFlowerShop_EventScript_15BEDA:: @ 815BEDA
lock
faceplayer
- checkdailyflags
+ dodailyevents
checkflag 2256
goto_if_eq Route104_PrettyPetalFlowerShop_EventScript_15BF1A
msgbox Route104_PrettyPetalFlowerShop_Text_1C62DA, 4
diff --git a/data/scripts/maps/Route104_Prototype.inc b/data/scripts/maps/Route104_Prototype.inc
index e090c4bf2..6103d19ac 100644
--- a/data/scripts/maps/Route104_Prototype.inc
+++ b/data/scripts/maps/Route104_Prototype.inc
@@ -57,9 +57,9 @@ Route104_Prototype_EventScript_160CF1:: @ 8160CF1
Route104_Prototype_EventScript_160CFB:: @ 8160CFB
closebutton
- pause 60
+ delay 60
fadescreen 1
- pause 60
+ delay 60
special DoSoftReset
waitstate
release
diff --git a/data/scripts/maps/Route106.inc b/data/scripts/maps/Route106.inc
index a1a13a003..6a0eea00f 100644
--- a/data/scripts/maps/Route106.inc
+++ b/data/scripts/maps/Route106.inc
@@ -17,7 +17,7 @@ Route106_EventScript_14F34F:: @ 814F34F
Route106_EventScript_14F366:: @ 814F366
trainerbattle 0, OPPONENT_ELLIOT_1, 0, Route106_Text_1B8EF0, Route106_Text_1B8F25
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route106_EventScript_14F38D
msgbox Route106_Text_1B8F55, 6
diff --git a/data/scripts/maps/Route107.inc b/data/scripts/maps/Route107.inc
index c33bb7d19..907ac93a2 100644
--- a/data/scripts/maps/Route107.inc
+++ b/data/scripts/maps/Route107.inc
@@ -8,7 +8,7 @@ Route107_EventScript_14F3BC:: @ 814F3BC
Route107_EventScript_14F3D3:: @ 814F3D3
trainerbattle 0, OPPONENT_TONY_1, 0, Route107_Text_1B933A, Route107_Text_1B9365
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route107_EventScript_14F3FA
msgbox Route107_Text_1B938E, 6
diff --git a/data/scripts/maps/Route109.inc b/data/scripts/maps/Route109.inc
index d3baeea34..1846cb2ff 100644
--- a/data/scripts/maps/Route109.inc
+++ b/data/scripts/maps/Route109.inc
@@ -359,7 +359,7 @@ Route109_EventScript_14F77F:: @ 814F77F
Route109_EventScript_14F788:: @ 814F788
lock
faceplayer
- checksound
+ waitse
pokecry SPECIES_ZIGZAGOON, 0
msgbox Route109_Text_16E5CA, 4
waitpokecry
@@ -396,7 +396,7 @@ Route109_EventScript_14F7F2:: @ 814F7F2
Route109_EventScript_14F809:: @ 814F809
trainerbattle 0, OPPONENT_RICKY_1, 0, Route109_Text_1B9C23, Route109_Text_1B9C65
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route109_EventScript_14F830
msgbox Route109_Text_1B9C6E, 6
@@ -409,7 +409,7 @@ Route109_EventScript_14F830:: @ 814F830
Route109_EventScript_14F847:: @ 814F847
trainerbattle 0, OPPONENT_LOLA_1, 0, Route109_Text_1B9D54, Route109_Text_1B9D87
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route109_EventScript_14F86E
msgbox Route109_Text_1B9D8E, 6
diff --git a/data/scripts/maps/Route110.inc b/data/scripts/maps/Route110.inc
index 68a2c6613..9fba68693 100644
--- a/data/scripts/maps/Route110.inc
+++ b/data/scripts/maps/Route110.inc
@@ -17,7 +17,7 @@ Route110_MapScript1_14F914:: @ 814F914
end
Route110_EventScript_14F92F:: @ 814F92F
- playmusicbattle 403 @ Bicycle music
+ savebgm 403 @ Bicycle music
return
Route110_MapScript2_14F933:: @ 814F933
@@ -131,7 +131,7 @@ Route110_EventScript_14FA25:: @ 814FA25
Route110_EventScript_14FA2E:: @ 814FA2E
lockall
- specialval RESULT, GetRecordedCyclingRoadResults
+ specialvar RESULT, GetRecordedCyclingRoadResults
compare_var_to_imm RESULT, 0
goto_if_eq Route110_EventScript_14FA49
msgbox Route110_Text_16F53A, 4
@@ -146,7 +146,7 @@ Route110_EventScript_14FA49:: @ 814FA49
Route110_EventScript_14FA53:: @ 814FA53
lock
faceplayer
- specialval RESULT, GetPlayerAvatarBike
+ specialvar RESULT, GetPlayerAvatarBike
compare_var_to_imm RESULT, 1
goto_if_eq Route110_EventScript_14FA84
compare_var_to_imm 0x40a9, 0
@@ -177,7 +177,7 @@ Route110_EventScript_14FAA5:: @ 814FAA5
Route110_EventScript_14FABC:: @ 814FABC
trainerbattle 0, OPPONENT_EDWIN_1, 0, Route110_Text_1BA7D2, Route110_Text_1BA803
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route110_EventScript_14FAE3
msgbox Route110_Text_1BA829, 6
@@ -205,7 +205,7 @@ Route110_EventScript_14FB28:: @ 814FB28
Route110_EventScript_14FB3F:: @ 814FB3F
trainerbattle 0, OPPONENT_BENJAMIN_1, 0, Route110_Text_1BA352, Route110_Text_1BA379
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route110_EventScript_14FB66
msgbox Route110_Text_1BA3A5, 6
@@ -223,7 +223,7 @@ Route110_EventScript_14FB7D:: @ 814FB7D
Route110_EventScript_14FB94:: @ 814FB94
trainerbattle 0, OPPONENT_ABIGAIL_1, 0, Route110_Text_1BA4A0, Route110_Text_1BA50F
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route110_EventScript_14FBBB
msgbox Route110_Text_1BA52E, 6
@@ -236,7 +236,7 @@ Route110_EventScript_14FBBB:: @ 814FBBB
Route110_EventScript_14FBD2:: @ 814FBD2
trainerbattle 0, OPPONENT_ISABEL_1, 0, Route110_Text_1BA990, Route110_Text_1BA9D0
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route110_EventScript_14FBF9
msgbox Route110_Text_1BA9E9, 6
@@ -304,8 +304,8 @@ Route110_EventScript_14FCFB:: @ 814FCFB
Route110_EventScript_14FD09:: @ 814FD09
setvar 0x40a9, 3
- playmusicbattle 0
- fadedefault
+ savebgm 0
+ fadedefaultbgm
return
Route110_EventScript_14FD13:: @ 814FD13
@@ -336,7 +336,7 @@ Route110_EventScript_14FD34:: @ 814FD34
waitmove 0
move 28, Route110_Movement_1A0835
waitmove 0
- pause 30
+ delay 30
compare_var_to_imm 0x8008, 1
call_if 1, Route110_EventScript_14FF14
compare_var_to_imm 0x8008, 2
@@ -352,11 +352,11 @@ Route110_EventScript_14FD34:: @ 814FD34
end
Route110_EventScript_14FDA7:: @ 814FDA7
- playmusic 415, 1
+ playbgm 415, 1
return
Route110_EventScript_14FDAC:: @ 814FDAC
- playmusic 421, 1
+ playbgm 421, 1
return
Route110_EventScript_14FDB1:: @ 814FDB1
@@ -435,7 +435,7 @@ Route110_EventScript_14FEB2:: @ 814FEB2
spritebehave 29, 10
disappear 28
reappear 29
- pause 45
+ delay 45
compare_var_to_imm 0x8008, 1
call_if 1, Route110_EventScript_14FF35
compare_var_to_imm 0x8008, 2
@@ -444,8 +444,8 @@ Route110_EventScript_14FEB2:: @ 814FEB2
call_if 1, Route110_EventScript_14FF4B
disappear 29
setvar 0x4069, 1
- playmusicbattle 0
- fadedefault
+ savebgm 0
+ fadedefaultbgm
releaseall
end
diff --git a/data/scripts/maps/Route110_SeasideCyclingRoadNorthEntrance.inc b/data/scripts/maps/Route110_SeasideCyclingRoadNorthEntrance.inc
index daa55dc7f..d98662e78 100644
--- a/data/scripts/maps/Route110_SeasideCyclingRoadNorthEntrance.inc
+++ b/data/scripts/maps/Route110_SeasideCyclingRoadNorthEntrance.inc
@@ -23,7 +23,7 @@ Route110_SeasideCyclingRoadNorthEntrance_EventScript_1634EB:: @ 81634EB
Route110_SeasideCyclingRoadNorthEntrance_EventScript_1634F7:: @ 81634F7
@ Coord event directly in front of the gatesman heading left to right
lockall
- specialval RESULT, GetPlayerAvatarBike @ player state?
+ specialvar RESULT, GetPlayerAvatarBike @ player state?
compare_var_to_imm RESULT, 2
call_if 1, Route110_SeasideCyclingRoadNorthEntrance_EventScript_16351D
compare_var_to_imm RESULT, 0
diff --git a/data/scripts/maps/Route110_SeasideCyclingRoadSouthEntrance.inc b/data/scripts/maps/Route110_SeasideCyclingRoadSouthEntrance.inc
index 63e8df87c..204ccc64d 100644
--- a/data/scripts/maps/Route110_SeasideCyclingRoadSouthEntrance.inc
+++ b/data/scripts/maps/Route110_SeasideCyclingRoadSouthEntrance.inc
@@ -10,7 +10,7 @@ Route110_SeasideCyclingRoadSouthEntrance_EventScript_16347F:: @ 816347F
Route110_SeasideCyclingRoadSouthEntrance_EventScript_16348B:: @ 816348B
lockall
- specialval RESULT, GetPlayerAvatarBike
+ specialvar RESULT, GetPlayerAvatarBike
compare_var_to_imm RESULT, 0
goto_if_eq Route110_SeasideCyclingRoadSouthEntrance_EventScript_1634A6
setflag 2091
diff --git a/data/scripts/maps/Route110_TrickHouseEnd.inc b/data/scripts/maps/Route110_TrickHouseEnd.inc
index 7f4ffdddd..e70dcd749 100644
--- a/data/scripts/maps/Route110_TrickHouseEnd.inc
+++ b/data/scripts/maps/Route110_TrickHouseEnd.inc
@@ -158,12 +158,12 @@ Route110_TrickHouseEnd_EventScript_161BAF:: @ 8161BAF
call_if 1, Route110_TrickHouseEnd_EventScript_161C8A
compare_var_to_imm FACING, 4
call_if 1, Route110_TrickHouseEnd_EventScript_161C95
- pause 30
+ delay 30
msgbox Route110_TrickHouseEnd_Text_19C602, 4
closebutton
move 1, Route110_TrickHouseEnd_Movement_1A0839
waitmove 0
- pause 30
+ delay 30
msgbox Route110_TrickHouseEnd_Text_19C691, 4
setvar 0x40c1, 0
.ifdef SAPPHIRE
@@ -182,7 +182,7 @@ Route110_TrickHouseEnd_EventScript_161BAF:: @ 8161BAF
Route110_TrickHouseEnd_EventScript_161C2E:: @ 8161C2E
move 1, Route110_TrickHouseEnd_Movement_161315
waitmove 0
- playsfx 178
+ playse 178
move 1, Route110_TrickHouseEnd_Movement_16131E
waitmove 0
disappear 1
@@ -224,20 +224,20 @@ Route110_TrickHouseEnd_EventScript_161C95:: @ 8161C95
Route110_TrickHouseEnd_EventScript_161CA0:: @ 8161CA0
lockall
spriteface 1, 3
- playsfx 21
+ playse 21
move 1, Route110_TrickHouseEnd_Movement_1A0833
waitmove 0
- pause 20
+ delay 20
move 1, Route110_TrickHouseEnd_Movement_161CEA
waitmove 0
- playsfx 178
+ playse 178
move 255, Route110_TrickHouseEnd_Movement_1A0845
waitmove 0
msgbox Route110_TrickHouseEnd_Text_19CA8B, 4
closebutton
move 255, Route110_TrickHouseEnd_Movement_161CE8
waitmove 0
- pause 4
+ delay 4
spriteface 1, 4
releaseall
end
diff --git a/data/scripts/maps/Route110_TrickHouseEntrance.inc b/data/scripts/maps/Route110_TrickHouseEntrance.inc
index 28b1eb0de..6a515e6f3 100644
--- a/data/scripts/maps/Route110_TrickHouseEntrance.inc
+++ b/data/scripts/maps/Route110_TrickHouseEntrance.inc
@@ -212,15 +212,15 @@ Route110_TrickHouseEntrance_MapScript2_1611CD:: @ 81611CD
Route110_TrickHouseEntrance_EventScript_1611D7:: @ 81611D7
lockall
- pause 20
+ delay 20
compare_var_to_imm 0x4044, 0
call_if 1, Route110_TrickHouseEntrance_EventScript_161327
msgbox Route110_TrickHouseEntrance_Text_19BD82, 4
closebutton
- pause 20
+ delay 20
move 1, Route110_TrickHouseEntrance_Movement_161315
waitmove 0
- playsfx 178
+ playse 178
move 1, Route110_TrickHouseEntrance_Movement_16131E
waitmove 0
disappear 1
@@ -243,7 +243,7 @@ Route110_TrickHouseEntrance_EventScript_16121A:: @ 816121A
end
Route110_TrickHouseEntrance_EventScript_16124D:: @ 816124D
- playsfx 21
+ playse 21
move 255, Route110_TrickHouseEntrance_Movement_1A0833
waitmove 0
move 255, Route110_TrickHouseEntrance_Movement_1A0835
@@ -336,7 +336,7 @@ Route110_TrickHouseEntrance_EventScript_161330:: @ 8161330
closebutton
move 1, Route110_TrickHouseEntrance_Movement_1A0839
waitmove 0
- playsfx 21
+ playse 21
move 1, Route110_TrickHouseEntrance_Movement_1A0833
waitmove 0
move 1, Route110_TrickHouseEntrance_Movement_1A0835
@@ -469,7 +469,7 @@ Route110_TrickHouseEntrance_EventScript_161551:: @ 8161551
waitmove 0
move 1, Route110_TrickHouseEntrance_Movement_161315
waitmove 0
- playsfx 178
+ playse 178
move 1, Route110_TrickHouseEntrance_Movement_16131E
waitmove 0
disappear 1
@@ -503,7 +503,7 @@ Route110_TrickHouseEntrance_EventScript_1615C7:: @ 81615C7
Route110_TrickHouseEntrance_EventScript_1615DD:: @ 81615DD
setmaptile 5, 1, 537, 0
special DrawWholeMapView
- pause 20
+ delay 20
move 255, Route110_TrickHouseEntrance_Movement_1A0856
waitmove 0
move 255, Route110_TrickHouseEntrance_Movement_16165E
@@ -605,7 +605,7 @@ Route110_TrickHouseEntrance_EventScript_161740:: @ 8161740
compare_var_to_imm 0x40AB, 0
goto_if_eq Route110_TrickHouseEntrance_EventScript_161888
msgbox UnknownString_819CAD1, 4
- playsfx SE_PIN
+ playse SE_PIN
setvar 0x40AB, 2
setmaptile 13, 1, 523, 0
special DrawWholeMapView
@@ -616,7 +616,7 @@ Route110_TrickHouseEntrance_EventScript_161769:: @ 8161769
compare_var_to_imm 0x40AC, 0
goto_if_eq Route110_TrickHouseEntrance_EventScript_161888
msgbox UnknownString_819CCCB, 4
- playsfx SE_PIN
+ playse SE_PIN
setvar 0x40AC, 2
setmaptile 13, 1, 523, 0
special DrawWholeMapView
@@ -627,7 +627,7 @@ Route110_TrickHouseEntrance_EventScript_161792:: @ 8161792
compare_var_to_imm 0x40AD, 0
goto_if_eq Route110_TrickHouseEntrance_EventScript_161888
msgbox UnknownString_819CEF9, 4
- playsfx SE_PIN
+ playse SE_PIN
setvar 0x40AD, 2
setmaptile 13, 1, 523, 0
special DrawWholeMapView
@@ -638,7 +638,7 @@ Route110_TrickHouseEntrance_EventScript_1617BB:: @ 81617BB
compare_var_to_imm 0x40AE, 0
goto_if_eq Route110_TrickHouseEntrance_EventScript_161888
msgbox UnknownString_819D164, 4
- playsfx SE_PIN
+ playse SE_PIN
setvar 0x40AE, 2
setmaptile 13, 1, 523, 0
special DrawWholeMapView
@@ -649,7 +649,7 @@ Route110_TrickHouseEntrance_EventScript_1617E4:: @ 81617E4
compare_var_to_imm 0x40AF, 0
goto_if_eq Route110_TrickHouseEntrance_EventScript_161888
msgbox UnknownString_819D3A5, 4
- playsfx SE_PIN
+ playse SE_PIN
setvar 0x40AF, 2
setmaptile 13, 1, 523, 0
special DrawWholeMapView
@@ -660,7 +660,7 @@ Route110_TrickHouseEntrance_EventScript_16180D:: @ 816180D
compare_var_to_imm 0x40B0, 0
goto_if_eq Route110_TrickHouseEntrance_EventScript_161888
msgbox UnknownString_819DC0A, 4
- playsfx SE_PIN
+ playse SE_PIN
setvar 0x40B0, 2
setmaptile 13, 1, 523, 0
special DrawWholeMapView
@@ -671,7 +671,7 @@ Route110_TrickHouseEntrance_EventScript_161836:: @ 8161836
compare_var_to_imm 0x40B1, 0
goto_if_eq Route110_TrickHouseEntrance_EventScript_161888
msgbox UnknownString_819DE8D, 4
- playsfx SE_PIN
+ playse SE_PIN
setvar 0x40B1, 2
setmaptile 13, 1, 523, 0
special DrawWholeMapView
@@ -682,7 +682,7 @@ Route110_TrickHouseEntrance_EventScript_16185F:: @ 816185F
compare_var_to_imm 0x40B2, 0
goto_if_eq Route110_TrickHouseEntrance_EventScript_161888
msgbox UnknownString_819E0FF, 4
- playsfx SE_PIN
+ playse SE_PIN
setvar 0x40B2, 2
setmaptile 13, 1, 523, 0
special DrawWholeMapView
@@ -714,7 +714,7 @@ Route110_TrickHousePuzzle5_EventScript_16189C:: @ 816189C
Route110_TrickHousePuzzle6_EventScript_16189C:: @ 816189C
Route110_TrickHousePuzzle7_EventScript_16189C:: @ 816189C
Route110_TrickHousePuzzle8_EventScript_16189C:: @ 816189C
- fanfare 370
+ playfanfare 370
message Route110_TrickHousePuzzle1_Text_19C1B8
waitfanfare
waittext
@@ -762,5 +762,5 @@ Route110_TrickHouseEntrance_EventScript_161920:: @ 8161920
setanimation 2, 32774
doanimation 54
checkanimation 54
- pause 10
+ delay 10
return
diff --git a/data/scripts/maps/Route110_TrickHousePuzzle2.inc b/data/scripts/maps/Route110_TrickHousePuzzle2.inc
index 4102bd9ec..6252a96d6 100644
--- a/data/scripts/maps/Route110_TrickHousePuzzle2.inc
+++ b/data/scripts/maps/Route110_TrickHousePuzzle2.inc
@@ -36,7 +36,7 @@ Route110_TrickHousePuzzle2_EventScript_161DD5:: @ 8161DD5
Route110_TrickHousePuzzle2_EventScript_161DE0:: @ 8161DE0
lockall
setvar 0x4001, 1
- playsfx 21
+ playse 21
call Route110_TrickHousePuzzle2_EventScript_161E2C
special DrawWholeMapView
releaseall
@@ -45,7 +45,7 @@ Route110_TrickHousePuzzle2_EventScript_161DE0:: @ 8161DE0
Route110_TrickHousePuzzle2_EventScript_161DF3:: @ 8161DF3
lockall
setvar 0x4002, 1
- playsfx 21
+ playse 21
call Route110_TrickHousePuzzle2_EventScript_161E3F
special DrawWholeMapView
releaseall
@@ -54,7 +54,7 @@ Route110_TrickHousePuzzle2_EventScript_161DF3:: @ 8161DF3
Route110_TrickHousePuzzle2_EventScript_161E06:: @ 8161E06
lockall
setvar 0x4003, 1
- playsfx 21
+ playse 21
call Route110_TrickHousePuzzle2_EventScript_161E52
special DrawWholeMapView
releaseall
@@ -63,7 +63,7 @@ Route110_TrickHousePuzzle2_EventScript_161E06:: @ 8161E06
Route110_TrickHousePuzzle2_EventScript_161E19:: @ 8161E19
lockall
setvar 0x4004, 1
- playsfx 21
+ playse 21
call Route110_TrickHousePuzzle2_EventScript_161E65
special DrawWholeMapView
releaseall
diff --git a/data/scripts/maps/Route110_TrickHousePuzzle3.inc b/data/scripts/maps/Route110_TrickHousePuzzle3.inc
index 377791261..705f52455 100644
--- a/data/scripts/maps/Route110_TrickHousePuzzle3.inc
+++ b/data/scripts/maps/Route110_TrickHousePuzzle3.inc
@@ -289,7 +289,7 @@ Route110_TrickHousePuzzle3_EventScript_1625F3:: @ 81625F3
Route110_TrickHousePuzzle3_EventScript_1625FF:: @ 81625FF
call Route110_TrickHousePuzzle3_EventScript_162612
- playsfx 21
+ playse 21
call Route110_TrickHousePuzzle3_EventScript_161F12
goto Route110_TrickHousePuzzle3_EventScript_1626AD
end
diff --git a/data/scripts/maps/Route110_TrickHousePuzzle5.inc b/data/scripts/maps/Route110_TrickHousePuzzle5.inc
index 67f5bc469..d0ced1ecb 100644
--- a/data/scripts/maps/Route110_TrickHousePuzzle5.inc
+++ b/data/scripts/maps/Route110_TrickHousePuzzle5.inc
@@ -160,7 +160,7 @@ Route110_TrickHousePuzzle5_EventScript_162933:: @ 8162933
Route110_TrickHousePuzzle5_EventScript_16293F:: @ 816293F
setvar 0x4001, 1
setvar 0x4008, 1
- playsfx 21
+ playse 21
move 1, Route110_TrickHousePuzzle5_Movement_1A0833
waitmove 0
move 1, Route110_TrickHousePuzzle5_Movement_1A0835
@@ -182,7 +182,7 @@ Route110_TrickHousePuzzle5_EventScript_16293F:: @ 816293F
Route110_TrickHousePuzzle5_EventScript_1629B3:: @ 81629B3
setvar 0x4002, 1
setvar 0x4008, 2
- playsfx 21
+ playse 21
move 2, Route110_TrickHousePuzzle5_Movement_1A0833
waitmove 0
move 2, Route110_TrickHousePuzzle5_Movement_1A0835
@@ -204,7 +204,7 @@ Route110_TrickHousePuzzle5_EventScript_1629B3:: @ 81629B3
Route110_TrickHousePuzzle5_EventScript_162A27:: @ 8162A27
setvar 0x4003, 1
setvar 0x4008, 3
- playsfx 21
+ playse 21
move 3, Route110_TrickHousePuzzle5_Movement_1A0833
waitmove 0
move 3, Route110_TrickHousePuzzle5_Movement_1A0835
@@ -226,7 +226,7 @@ Route110_TrickHousePuzzle5_EventScript_162A27:: @ 8162A27
Route110_TrickHousePuzzle5_EventScript_162A9B:: @ 8162A9B
setvar 0x4004, 1
setvar 0x4008, 4
- playsfx 21
+ playse 21
move 4, Route110_TrickHousePuzzle5_Movement_1A0833
waitmove 0
move 4, Route110_TrickHousePuzzle5_Movement_1A0835
@@ -248,7 +248,7 @@ Route110_TrickHousePuzzle5_EventScript_162A9B:: @ 8162A9B
Route110_TrickHousePuzzle5_EventScript_162B0F:: @ 8162B0F
setvar 0x4005, 1
setvar 0x4008, 5
- playsfx 21
+ playse 21
move 5, Route110_TrickHousePuzzle5_Movement_1A0833
waitmove 0
move 5, Route110_TrickHousePuzzle5_Movement_1A0835
@@ -388,8 +388,8 @@ Route110_TrickHousePuzzle5_EventScript_162D6D:: @ 8162D6D
end
Route110_TrickHousePuzzle5_EventScript_162D90:: @ 8162D90
- checksound
- playsfx 32
+ waitse
+ playse 32
msgbox Route110_TrickHousePuzzle5_Text_19D5CF, 4
move 1, Route110_TrickHousePuzzle5_Movement_16309F
move 2, Route110_TrickHousePuzzle5_Movement_16309F
@@ -407,8 +407,8 @@ Route110_TrickHousePuzzle5_EventScript_162D90:: @ 8162D90
end
Route110_TrickHousePuzzle5_EventScript_162DDF:: @ 8162DDF
- checksound
- playsfx 31
+ waitse
+ playse 31
goto Route110_TrickHousePuzzle5_EventScript_162DE9
end
diff --git a/data/scripts/maps/Route110_TrickHousePuzzle7.inc b/data/scripts/maps/Route110_TrickHousePuzzle7.inc
index 5d635e2c5..ae55a4316 100644
--- a/data/scripts/maps/Route110_TrickHousePuzzle7.inc
+++ b/data/scripts/maps/Route110_TrickHousePuzzle7.inc
@@ -120,13 +120,13 @@ Route110_TrickHousePuzzle7_EventScript_1632A8:: @ 81632A8
Route110_TrickHousePuzzle7_EventScript_1632B9:: @ 81632B9
lockall
- pause 32
+ delay 32
checkflag 194
call_if 0, Route110_TrickHousePuzzle7_EventScript_163195
checkflag 194
call_if 1, Route110_TrickHousePuzzle7_EventScript_1631F4
special DrawWholeMapView
- playsfx 36
+ playse 36
checkflag 194
goto_if 0, Route110_TrickHousePuzzle7_EventScript_1633A4
checkflag 194
@@ -135,13 +135,13 @@ Route110_TrickHousePuzzle7_EventScript_1632B9:: @ 81632B9
Route110_TrickHousePuzzle7_EventScript_1632E8:: @ 81632E8
lockall
- pause 32
+ delay 32
checkflag 195
call_if 0, Route110_TrickHousePuzzle7_EventScript_1631A8
checkflag 195
call_if 1, Route110_TrickHousePuzzle7_EventScript_163207
special DrawWholeMapView
- playsfx 36
+ playse 36
checkflag 195
goto_if 0, Route110_TrickHousePuzzle7_EventScript_1633AE
checkflag 195
@@ -150,13 +150,13 @@ Route110_TrickHousePuzzle7_EventScript_1632E8:: @ 81632E8
Route110_TrickHousePuzzle7_EventScript_163317:: @ 8163317
lockall
- pause 32
+ delay 32
checkflag 196
call_if 0, Route110_TrickHousePuzzle7_EventScript_1631BB
checkflag 196
call_if 1, Route110_TrickHousePuzzle7_EventScript_16321A
special DrawWholeMapView
- playsfx 36
+ playse 36
checkflag 196
goto_if 0, Route110_TrickHousePuzzle7_EventScript_1633B8
checkflag 196
@@ -165,13 +165,13 @@ Route110_TrickHousePuzzle7_EventScript_163317:: @ 8163317
Route110_TrickHousePuzzle7_EventScript_163346:: @ 8163346
lockall
- pause 32
+ delay 32
checkflag 197
call_if 0, Route110_TrickHousePuzzle7_EventScript_1631CE
checkflag 197
call_if 1, Route110_TrickHousePuzzle7_EventScript_16322D
special DrawWholeMapView
- playsfx 36
+ playse 36
checkflag 197
goto_if 0, Route110_TrickHousePuzzle7_EventScript_1633C2
checkflag 197
@@ -180,13 +180,13 @@ Route110_TrickHousePuzzle7_EventScript_163346:: @ 8163346
Route110_TrickHousePuzzle7_EventScript_163375:: @ 8163375
lockall
- pause 32
+ delay 32
checkflag 198
call_if 0, Route110_TrickHousePuzzle7_EventScript_1631E1
checkflag 198
call_if 1, Route110_TrickHousePuzzle7_EventScript_163240
special DrawWholeMapView
- playsfx 36
+ playse 36
checkflag 198
goto_if 0, Route110_TrickHousePuzzle7_EventScript_1633CC
checkflag 198
diff --git a/data/scripts/maps/Route111.inc b/data/scripts/maps/Route111.inc
index 7231b427a..fc73716eb 100644
--- a/data/scripts/maps/Route111.inc
+++ b/data/scripts/maps/Route111.inc
@@ -59,7 +59,7 @@ Route111_EventScript_150023:: @ 8150023
setflag 963
setflag 964
disappear 34
- pause 30
+ delay 30
move 35, Route111_Movement_1500AF
waitmove 0
disappear 35
@@ -81,7 +81,7 @@ Route111_EventScript_150069:: @ 8150069
setflag 964
setflag 963
disappear 35
- pause 30
+ delay 30
move 34, Route111_Movement_1500AF
waitmove 0
disappear 34
@@ -120,7 +120,7 @@ Route111_Movement_1500AF:: @ 81500AF
Route111_EventScript_1500C5:: @ 81500C5
lock
faceplayer
- checkdailyflags
+ dodailyevents
checkflag 2252
goto_if_eq Route111_EventScript_150100
msgbox Route111_Text_1C56F0, 4
@@ -222,14 +222,14 @@ Route111_Movement_1501BA:: @ 81501BA
Route111_EventScript_1501BC:: @ 81501BC
setweather 2
- fademusic 360
+ fadenewbgm 360
doweather
setvar 0x4003, 0
end
Route111_EventScript_1501C9:: @ 81501C9
setweather 8
- fademusic 409
+ fadenewbgm 409
doweather
end
@@ -392,7 +392,7 @@ Route111_EventScript_1503EC:: @ 81503EC
Route111_EventScript_150403:: @ 8150403
trainerbattle 0, OPPONENT_DUSTY_1, 0, Route111_Text_1BAEC9, Route111_Text_1BAF14
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route111_EventScript_15042A
msgbox Route111_Text_1BAF5B, 6
@@ -420,7 +420,7 @@ Route111_EventScript_15046F:: @ 815046F
Route111_EventScript_150486:: @ 8150486
trainerbattle 0, OPPONENT_WILTON_1, 0, Route111_Text_1BB2E3, Route111_Text_1BB313
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route111_EventScript_1504AD
msgbox Route111_Text_1BB33E, 6
@@ -433,7 +433,7 @@ Route111_EventScript_1504AD:: @ 81504AD
Route111_EventScript_1504C4:: @ 81504C4
trainerbattle 0, OPPONENT_BROOKE_1, 0, Route111_Text_1BB44F, Route111_Text_1BB49F
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route111_EventScript_1504EB
msgbox Route111_Text_1BB4CE, 6
diff --git a/data/scripts/maps/Route112.inc b/data/scripts/maps/Route112.inc
index 9a4c85158..70a6a2869 100644
--- a/data/scripts/maps/Route112.inc
+++ b/data/scripts/maps/Route112.inc
@@ -38,7 +38,7 @@ Route112_EventScript_150549:: @ 8150549
Route112_EventScript_150560:: @ 8150560
trainerbattle 0, OPPONENT_TRENT_1, 0, Route112_Text_1BB6A0, Route112_Text_1BB707
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route112_EventScript_150587
msgbox Route112_Text_1BB721, 6
diff --git a/data/scripts/maps/Route113.inc b/data/scripts/maps/Route113.inc
index ae08ff5bb..06519867e 100644
--- a/data/scripts/maps/Route113.inc
+++ b/data/scripts/maps/Route113.inc
@@ -60,7 +60,7 @@ Route113_EventScript_150652:: @ 8150652
Route113_EventScript_150669:: @ 8150669
trainerbattle 0, OPPONENT_MADELINE_1, 0, Route113_Text_1BBB27, Route113_Text_1BBB7A
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route113_EventScript_150690
msgbox Route113_Text_1BBB9A, 6
@@ -73,7 +73,7 @@ Route113_EventScript_150690:: @ 8150690
Route113_EventScript_1506A7:: @ 81506A7
trainerbattle 0, OPPONENT_LAO_1, 0, Route113_Text_1BBC59, Route113_Text_1BBC90
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route113_EventScript_1506CE
msgbox Route113_Text_1BBCAB, 6
diff --git a/data/scripts/maps/Route113_GlassWorkshop.inc b/data/scripts/maps/Route113_GlassWorkshop.inc
index f83c5cf23..9774a3a5f 100644
--- a/data/scripts/maps/Route113_GlassWorkshop.inc
+++ b/data/scripts/maps/Route113_GlassWorkshop.inc
@@ -197,8 +197,8 @@ Route113_GlassWorkshop_EventScript_163851:: @ 8163851
msgbox Route113_GlassWorkshop_Text_19E827, 4
closebutton
fadescreen 1
- playsfx 5
- pause 30
+ playse 5
+ delay 30
fadescreen 0
msgbox Route113_GlassWorkshop_Text_19E9D7, 4
compare_var_to_imm 0x8009, 0
diff --git a/data/scripts/maps/Route114.inc b/data/scripts/maps/Route114.inc
index d910d3e16..799a115b7 100644
--- a/data/scripts/maps/Route114.inc
+++ b/data/scripts/maps/Route114.inc
@@ -4,7 +4,7 @@ Route114_MapScripts:: @ 8150732
Route114_EventScript_150733:: @ 8150733
lock
faceplayer
- checkdailyflags
+ dodailyevents
checkflag 2251
goto_if_eq Route114_EventScript_150778
msgbox Route114_Text_1C5803, 4
@@ -46,7 +46,7 @@ Route114_EventScript_1507B9:: @ 81507B9
Route114_EventScript_1507C3:: @ 81507C3
lock
faceplayer
- checksound
+ waitse
pokecry SPECIES_POOCHYENA, 2
msgbox Route114_Text_1701F9, 4
waitpokecry
@@ -87,7 +87,7 @@ Route114_EventScript_150836:: @ 8150836
Route114_EventScript_15084D:: @ 815084D
trainerbattle 0, OPPONENT_STEVE_1, 0, Route114_Text_1BC2F5, Route114_Text_1BC327
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route114_EventScript_150874
msgbox Route114_Text_1BC337, 6
@@ -100,7 +100,7 @@ Route114_EventScript_150874:: @ 8150874
Route114_EventScript_15088B:: @ 815088B
trainerbattle 0, OPPONENT_BERNIE_1, 0, Route114_Text_1BC45A, Route114_Text_1BC499
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route114_EventScript_1508B2
msgbox Route114_Text_1BC4B5, 6
diff --git a/data/scripts/maps/Route115.inc b/data/scripts/maps/Route115.inc
index 711a62e40..64b0a7497 100644
--- a/data/scripts/maps/Route115.inc
+++ b/data/scripts/maps/Route115.inc
@@ -15,7 +15,7 @@ Route115_EventScript_150940:: @ 8150940
Route115_EventScript_150949:: @ 8150949
trainerbattle 0, OPPONENT_TIMOTHY_1, 0, Route115_Text_1BC9AC, Route115_Text_1BC9E6
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route115_EventScript_150970
msgbox Route115_Text_1BCA0E, 6
@@ -33,7 +33,7 @@ Route115_EventScript_150987:: @ 8150987
Route115_EventScript_15099E:: @ 815099E
trainerbattle 0, OPPONENT_NOB_1, 0, Route115_Text_1BCB8A, Route115_Text_1BCBC1
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route115_EventScript_1509C5
msgbox Route115_Text_1BCBDE, 6
@@ -46,7 +46,7 @@ Route115_EventScript_1509C5:: @ 81509C5
Route115_EventScript_1509DC:: @ 81509DC
trainerbattle 0, OPPONENT_CYNDY_1, 0, Route115_Text_1BCCF4, Route115_Text_1BCD32
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route115_EventScript_150A03
msgbox Route115_Text_1BCD4C, 6
diff --git a/data/scripts/maps/Route116.inc b/data/scripts/maps/Route116.inc
index 838ebe814..c58a3dfb9 100644
--- a/data/scripts/maps/Route116.inc
+++ b/data/scripts/maps/Route116.inc
@@ -150,7 +150,7 @@ Route116_EventScript_150B8F:: @ 8150B8F
checkitem ITEM_BLACK_GLASSES, 1
compare_var_to_imm RESULT, 1
goto_if_eq Route116_EventScript_150BCA
- specialval RESULT, sub_810F828
+ specialvar RESULT, sub_810F828
compare_var_to_imm RESULT, 1
goto_if_eq Route116_EventScript_150BBB
msgbox Route116_Text_1708EE, 4
@@ -166,7 +166,7 @@ Route116_EventScript_150BBB:: @ 8150BBB
Route116_EventScript_150BCA:: @ 8150BCA
msgbox Route116_Text_1708EE, 4
msgbox Route116_Text_170921, 4
- specialval RESULT, sub_810F828
+ specialvar RESULT, sub_810F828
compare_var_to_imm RESULT, 1
goto_if_eq Route116_EventScript_150BF4
msgbox Route116_Text_170A03, 4
@@ -180,7 +180,7 @@ Route116_EventScript_150BF4:: @ 8150BF4
end
Route116_EventScript_150C03:: @ 8150C03
- pause 20
+ delay 20
compare_var_to_imm FACING, 2
call_if 1, Route116_EventScript_150C37
compare_var_to_imm FACING, 1
@@ -240,7 +240,7 @@ Route116_EventScript_150C79:: @ 8150C79
Route116_EventScript_150C90:: @ 8150C90
trainerbattle 0, OPPONENT_JERRY_1, 0, Route116_Text_1BD1C0, Route116_Text_1BD21A
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route116_EventScript_150CB7
msgbox Route116_Text_1BD248, 6
@@ -263,7 +263,7 @@ Route116_EventScript_150CE5:: @ 8150CE5
Route116_EventScript_150CFC:: @ 8150CFC
trainerbattle 0, OPPONENT_KAREN_1, 0, Route116_Text_1BD377, Route116_Text_1BD3AC
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route116_EventScript_150D23
msgbox Route116_Text_1BD3C3, 6
diff --git a/data/scripts/maps/Route117.inc b/data/scripts/maps/Route117.inc
index 2a27c01d7..6d538a872 100644
--- a/data/scripts/maps/Route117.inc
+++ b/data/scripts/maps/Route117.inc
@@ -40,7 +40,7 @@ Route117_EventScript_150D84:: @ 8150D84
Route117_EventScript_150D8D:: @ 8150D8D
trainerbattle 0, OPPONENT_ISAAC_1, 0, Route117_Text_1BD49E, Route117_Text_1BD4D9
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route117_EventScript_150DB4
msgbox Route117_Text_1BD4F9, 6
@@ -53,7 +53,7 @@ Route117_EventScript_150DB4:: @ 8150DB4
Route117_EventScript_150DCB:: @ 8150DCB
trainerbattle 0, OPPONENT_LYDIA_1, 0, Route117_Text_1BD634, Route117_Text_1BD67B
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route117_EventScript_150DF2
msgbox Route117_Text_1BD69B, 6
@@ -66,7 +66,7 @@ Route117_EventScript_150DF2:: @ 8150DF2
Route117_EventScript_150E09:: @ 8150E09
trainerbattle 0, OPPONENT_DYLAN_1, 0, Route117_Text_1BD79A, Route117_Text_1BD7E0
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route117_EventScript_150E30
msgbox Route117_Text_1BD7F5, 6
@@ -79,7 +79,7 @@ Route117_EventScript_150E30:: @ 8150E30
Route117_EventScript_150E47:: @ 8150E47
trainerbattle 0, OPPONENT_MARIA_1, 0, Route117_Text_1BD914, Route117_Text_1BD965
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route117_EventScript_150E6E
msgbox Route117_Text_1BD98F, 6
@@ -97,7 +97,7 @@ Route117_EventScript_150E85:: @ 8150E85
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
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route117_EventScript_150EC7
msgbox Route117_Text_1BDC44, 6
@@ -110,7 +110,7 @@ Route117_EventScript_150EC7:: @ 8150EC7
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
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route117_EventScript_150F0D
msgbox Route117_Text_1BDD4E, 6
diff --git a/data/scripts/maps/Route118.inc b/data/scripts/maps/Route118.inc
index e1b4fd345..7e6543d7f 100644
--- a/data/scripts/maps/Route118.inc
+++ b/data/scripts/maps/Route118.inc
@@ -77,10 +77,10 @@ Route118_EventScript_150FE4:: @ 8150FE4
end
Route118_EventScript_151004:: @ 8151004
- playsfx 10
+ playse 10
move 19, Route118_Movement_15106D
waitmove 0
- pause 30
+ delay 30
msgbox Route118_Text_170D66, 4
closebutton
compare_var_to_imm 0x8008, 0
@@ -161,7 +161,7 @@ Route118_Movement_151086:: @ 8151086
Route118_EventScript_15108F:: @ 815108F
trainerbattle 0, OPPONENT_ROSE_1, 0, Route118_Text_1BDFF4, Route118_Text_1BE03C
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route118_EventScript_1510B6
msgbox Route118_Text_1BE05E, 6
@@ -184,7 +184,7 @@ Route118_EventScript_1510E4:: @ 81510E4
Route118_EventScript_1510FB:: @ 81510FB
trainerbattle 0, OPPONENT_DALTON_1, 0, Route118_Text_1BE3E8, Route118_Text_1BE406
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route118_EventScript_151122
msgbox Route118_Text_1BE413, 6
diff --git a/data/scripts/maps/Route119.inc b/data/scripts/maps/Route119.inc
index cae90cd12..9abb8adf9 100644
--- a/data/scripts/maps/Route119.inc
+++ b/data/scripts/maps/Route119.inc
@@ -56,21 +56,21 @@ Route119_EventScript_1511DB:: @ 81511DB
call_if 1, Route119_EventScript_151254
compare_var_to_imm RESULT, 1
call_if 1, Route119_EventScript_151259
- pause 65
+ delay 65
compare_var_to_imm 0x4001, 1
call_if 1, Route119_EventScript_1513A6
compare_var_to_imm 0x4001, 2
call_if 1, Route119_EventScript_1513B1
move 255, Route119_Movement_1A0845
waitmove 0
- pause 30
+ delay 30
compare_var_to_imm 0x4001, 1
call_if 1, Route119_EventScript_1513D2
compare_var_to_imm 0x4001, 2
call_if 1, Route119_EventScript_1513E1
disappear 25
reappear 16
- pause 30
+ delay 30
checkgender
compare_var_to_imm RESULT, 0
goto_if_eq Route119_EventScript_15125E
@@ -80,11 +80,11 @@ Route119_EventScript_1511DB:: @ 81511DB
end
Route119_EventScript_151254:: @ 8151254
- playmusic 415, 1
+ playbgm 415, 1
return
Route119_EventScript_151259:: @ 8151259
- playmusic 421, 1
+ playbgm 421, 1
return
Route119_EventScript_15125E:: @ 815125E
@@ -160,15 +160,15 @@ Route119_EventScript_151362:: @ 8151362
call_if 1, Route119_EventScript_1513E1
disappear 16
reappear 25
- pause 30
+ delay 30
compare_var_to_imm 0x4001, 1
call_if 1, Route119_EventScript_1513BC
compare_var_to_imm 0x4001, 2
call_if 1, Route119_EventScript_1513C7
disappear 25
setvar 0x4072, 1
- playmusicbattle 0
- fadedefault
+ savebgm 0
+ fadedefaultbgm
releaseall
end
@@ -296,7 +296,7 @@ Route119_EventScript_1514A8:: @ 81514A8
Route119_EventScript_1514BF:: @ 81514BF
trainerbattle 0, OPPONENT_JACKSON_1, 0, Route119_Text_1BE8BB, Route119_Text_1BE90E
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route119_EventScript_1514E6
msgbox Route119_Text_1BE937, 6
@@ -309,7 +309,7 @@ Route119_EventScript_1514E6:: @ 81514E6
Route119_EventScript_1514FD:: @ 81514FD
trainerbattle 0, OPPONENT_CATHERINE_1, 0, Route119_Text_1BEA3A, Route119_Text_1BEA88
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route119_EventScript_151524
msgbox Route119_Text_1BEAB3, 6
diff --git a/data/scripts/maps/Route119_House.inc b/data/scripts/maps/Route119_House.inc
index 6395e40eb..ea963dee0 100644
--- a/data/scripts/maps/Route119_House.inc
+++ b/data/scripts/maps/Route119_House.inc
@@ -8,7 +8,7 @@ Route119_House_EventScript_163DDE:: @ 8163DDE
Route119_House_EventScript_163DE7:: @ 8163DE7
lock
faceplayer
- checksound
+ waitse
pokecry SPECIES_WINGULL, 0
msgbox Route119_House_Text_19F406, 4
waitpokecry
diff --git a/data/scripts/maps/Route119_WeatherInstitute_2F.inc b/data/scripts/maps/Route119_WeatherInstitute_2F.inc
index a8fd671bd..54b54dd18 100644
--- a/data/scripts/maps/Route119_WeatherInstitute_2F.inc
+++ b/data/scripts/maps/Route119_WeatherInstitute_2F.inc
@@ -40,7 +40,7 @@ Route119_WeatherInstitute_2F_EventScript_163D45:: @ 8163D45
closebutton
setvar 0x40b3, 1
clearflag 893
- fadedefault
+ fadedefaultbgm
fadescreen 1
setflag 890
disappear 1
@@ -58,7 +58,7 @@ Route119_WeatherInstitute_2F_EventScript_163D7A:: @ 8163D7A
countpokemon
compare_var_to_imm RESULT, 6
goto_if_eq Route119_WeatherInstitute_2F_EventScript_163DB4
- fanfare 370
+ playfanfare 370
message Route119_WeatherInstitute_2F_Text_19F267
waitfanfare
waittext
diff --git a/data/scripts/maps/Route120.inc b/data/scripts/maps/Route120.inc
index e736722b5..2e6ae94e5 100644
--- a/data/scripts/maps/Route120.inc
+++ b/data/scripts/maps/Route120.inc
@@ -112,7 +112,7 @@ Route120_EventScript_151735:: @ 8151735
Route120_EventScript_151739:: @ 8151739
lock
faceplayer
- checkdailyflags
+ dodailyevents
checkflag 2254
goto_if_eq Route120_EventScript_151837
msgbox Route120_Text_1C58F1, 5
@@ -120,7 +120,7 @@ Route120_EventScript_151739:: @ 8151739
call_if 1, Route120_EventScript_151841
compare_var_to_imm RESULT, 0
call_if 1, Route120_EventScript_15184A
- specialval RESULT, GetPlayerTrainerIdOnesDigit
+ specialvar RESULT, GetPlayerTrainerIdOnesDigit
switch RESULT
case 0, Route120_EventScript_1517DC
case 5, Route120_EventScript_1517DC
@@ -214,16 +214,16 @@ Route120_EventScript_15189D:: @ 815189D
call_if 1, Route120_EventScript_15198A
move 31, Route120_Movement_1A083F
waitmove 0
- pause 20
+ delay 20
msgbox Route120_Text_1719D4, 4
closebutton
move 30, Route120_Movement_1A0843
waitmove 0
move 30, Route120_Movement_1A0662
waitmove 0
- checksound
+ waitse
pokecry SPECIES_KECLEON, 2
- pause 40
+ delay 40
waitpokecry
setwildbattle SPECIES_KECLEON, 30, ITEM_NONE
setvar 0x8004, 0
@@ -244,10 +244,10 @@ Route120_EventScript_151908:: @ 8151908
closebutton
move 31, Route120_Movement_1A0845
waitmove 0
- pause 50
+ delay 50
setanimation 0, 1
doanimation 30
- pause 15
+ delay 15
disappear 31
checkanimation 30
setmaptile 13, 15, 663, 0
@@ -292,7 +292,7 @@ Route120_EventScript_1519B3:: @ 81519B3
Route120_EventScript_1519CA:: @ 81519CA
trainerbattle 0, OPPONENT_ROBERT_1, 0, Route120_Text_1BF07E, Route120_Text_1BF0A5
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route120_EventScript_1519F1
msgbox Route120_Text_1BF0C3, 6
@@ -315,7 +315,7 @@ Route120_EventScript_151A1F:: @ 8151A1F
Route120_EventScript_151A36:: @ 8151A36
trainerbattle 0, OPPONENT_BRANDON_1, 0, Route120_Text_1BF32B, Route120_Text_1BF36B
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route120_EventScript_151A5D
msgbox Route120_Text_1BF38D, 6
diff --git a/data/scripts/maps/Route121.inc b/data/scripts/maps/Route121.inc
index 3af8ff7cf..68c04762f 100644
--- a/data/scripts/maps/Route121.inc
+++ b/data/scripts/maps/Route121.inc
@@ -73,7 +73,7 @@ Route121_EventScript_151B72:: @ 8151B72
Route121_EventScript_151B89:: @ 8151B89
trainerbattle 0, OPPONENT_WALTER_1, 0, Route121_Text_1BFA1B, Route121_Text_1BFA8C
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route121_EventScript_151BB0
msgbox Route121_Text_1BFA9D, 6
@@ -101,7 +101,7 @@ Route121_EventScript_151BF9:: @ 8151BF9
Route121_EventScript_151C14:: @ 8151C14
trainerbattle 0, OPPONENT_JESSICA_1, 0, Route121_Text_1BFE51, Route121_Text_1BFE80
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route121_EventScript_151C3B
msgbox Route121_Text_1BFEAE, 6
diff --git a/data/scripts/maps/Route121_SafariZoneEntrance.inc b/data/scripts/maps/Route121_SafariZoneEntrance.inc
index efc2ab4fb..2fd6e54f6 100644
--- a/data/scripts/maps/Route121_SafariZoneEntrance.inc
+++ b/data/scripts/maps/Route121_SafariZoneEntrance.inc
@@ -71,7 +71,7 @@ Route121_SafariZoneEntrance_EventScript_15C3B3:: @ 815C3B3
updatemoney 0, 0
nop
msgbox Route121_SafariZoneEntrance_Text_1C38F4, 4
- fanfare 370
+ playfanfare 370
message Route121_SafariZoneEntrance_Text_1C3910
waitfanfare
waittext
@@ -90,7 +90,7 @@ Route121_SafariZoneEntrance_EventScript_15C425:: @ 815C425
countpokemon
compare_var_to_imm RESULT, 6
goto_if 5, Route121_SafariZoneEntrance_EventScript_15C44F
- specialval RESULT, CheckFreePokemonStorageSpace
+ specialvar RESULT, CheckFreePokemonStorageSpace
compare_var_to_imm RESULT, 1
goto_if_eq Route121_SafariZoneEntrance_EventScript_15C44F
msgbox Route121_SafariZoneEntrance_Text_1C39A3, 4
diff --git a/data/scripts/maps/Route123.inc b/data/scripts/maps/Route123.inc
index f4ba11b0d..6e6cbd506 100644
--- a/data/scripts/maps/Route123.inc
+++ b/data/scripts/maps/Route123.inc
@@ -62,7 +62,7 @@ Route123_EventScript_151CFF:: @ 8151CFF
Route123_EventScript_151D16:: @ 8151D16
trainerbattle 0, OPPONENT_CAMERON_1, 0, Route123_Text_1C013F, Route123_Text_1C01A3
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route123_EventScript_151D3D
msgbox Route123_Text_1C01B1, 6
@@ -75,7 +75,7 @@ Route123_EventScript_151D3D:: @ 8151D3D
Route123_EventScript_151D54:: @ 8151D54
trainerbattle 0, OPPONENT_JACKI_1, 0, Route123_Text_1C028C, Route123_Text_1C0303
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route123_EventScript_151D7B
msgbox Route123_Text_1C030F, 6
diff --git a/data/scripts/maps/Route123_BerryMastersHouse.inc b/data/scripts/maps/Route123_BerryMastersHouse.inc
index 4c35b52ec..ee7bc80cf 100644
--- a/data/scripts/maps/Route123_BerryMastersHouse.inc
+++ b/data/scripts/maps/Route123_BerryMastersHouse.inc
@@ -9,7 +9,7 @@ Route123_BerryMastersHouse_MapScript1_1639E5:: @ 81639E5
Route123_BerryMastersHouse_EventScript_1639E9:: @ 81639E9
lock
faceplayer
- checkdailyflags
+ dodailyevents
checkflag 2253
goto_if_eq Route123_BerryMastersHouse_EventScript_163A5A
msgbox Route123_BerryMastersHouse_Text_1C5BC4, 4
@@ -39,7 +39,7 @@ Route123_BerryMastersHouse_EventScript_163A5A:: @ 8163A5A
Route123_BerryMastersHouse_EventScript_163A64:: @ 8163A64
lock
faceplayer
- checkdailyflags
+ dodailyevents
checkflag 2257
goto_if_eq Route123_BerryMastersHouse_EventScript_163C13
msgbox Route123_BerryMastersHouse_Text_1C5D24, 4
diff --git a/data/scripts/maps/Route124.inc b/data/scripts/maps/Route124.inc
index ef9f0ebed..7d7d38ceb 100644
--- a/data/scripts/maps/Route124.inc
+++ b/data/scripts/maps/Route124.inc
@@ -23,7 +23,7 @@ Route124_EventScript_151E0F:: @ 8151E0F
Route124_EventScript_151E26:: @ 8151E26
trainerbattle 0, OPPONENT_JENNY_1, 0, Route124_Text_1C07B4, Route124_Text_1C07F9
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route124_EventScript_151E4D
msgbox Route124_Text_1C080E, 6
@@ -46,7 +46,7 @@ Route124_EventScript_151E7B:: @ 8151E7B
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
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route124_EventScript_151EBD
msgbox Route124_Text_1C0B72, 6
@@ -59,7 +59,7 @@ Route124_EventScript_151EBD:: @ 8151EBD
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
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route124_EventScript_151F03
msgbox Route124_Text_1C0C7F, 6
diff --git a/data/scripts/maps/Route125.inc b/data/scripts/maps/Route125.inc
index 7d5fc0376..c62d49117 100644
--- a/data/scripts/maps/Route125.inc
+++ b/data/scripts/maps/Route125.inc
@@ -29,7 +29,7 @@ Route125_EventScript_151F73:: @ 8151F73
Route125_EventScript_151F8A:: @ 8151F8A
trainerbattle 0, OPPONENT_ERNEST_1, 0, Route125_Text_1C11AF, Route125_Text_1C11ED
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route125_EventScript_151FB1
msgbox Route125_Text_1C1208, 6
diff --git a/data/scripts/maps/Route128.inc b/data/scripts/maps/Route128.inc
index 10bb0a1cc..21927ec0f 100644
--- a/data/scripts/maps/Route128.inc
+++ b/data/scripts/maps/Route128.inc
@@ -15,7 +15,7 @@ Route128_MapScript2_152135:: @ 8152135
Route128_EventScript_15213F:: @ 815213F
lockall
- pause 20
+ delay 20
.ifndef SAPPHIRE
special sub_807E25C
waitstate
@@ -45,13 +45,13 @@ Route128_EventScript_15213F:: @ 815213F
waitmove 0
msgbox Route128_Text_17210B, 4
closebutton
- pause 40
+ delay 40
move 5, Route128_Movement_152296
move 4, Route128_Movement_152283
waitmove 0
disappear 5
disappear 4
- pause 100
+ delay 100
setanimation 0, 1
doanimation 30
checkanimation 30
@@ -76,10 +76,10 @@ Route128_EventScript_15213F:: @ 815213F
closebutton
move 3, Route128_Movement_1A0845
waitmove 0
- pause 50
+ delay 50
setanimation 0, 1
doanimation 30
- pause 15
+ delay 15
disappear 3
checkanimation 30
setvar 0x407b, 2
@@ -182,7 +182,7 @@ Route128_Movement_1522A1:: @ 81522A1
Route128_EventScript_1522A4:: @ 81522A4
trainerbattle 0, OPPONENT_ISAIAH_1, 0, Route128_Text_1C1C67, Route128_Text_1C1C95
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route128_EventScript_1522CB
msgbox Route128_Text_1C1CC3, 6
@@ -195,7 +195,7 @@ Route128_EventScript_1522CB:: @ 81522CB
Route128_EventScript_1522E2:: @ 81522E2
trainerbattle 0, OPPONENT_KATELYN_1, 0, Route128_Text_1C1DB0, Route128_Text_1C1E25
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq Route128_EventScript_152309
msgbox Route128_Text_1C1E4A, 6
diff --git a/data/scripts/maps/Route130.inc b/data/scripts/maps/Route130.inc
index 83b972dbf..3e234667a 100644
--- a/data/scripts/maps/Route130.inc
+++ b/data/scripts/maps/Route130.inc
@@ -3,7 +3,7 @@ Route130_MapScripts:: @ 81523C2
.byte 0
Route130_MapScript1_1523C8:: @ 81523C8
- specialval RESULT, IsMirageIslandPresent
+ specialvar RESULT, IsMirageIslandPresent
compare_var_to_imm RESULT, 1
goto_if_eq Route130_EventScript_15240C
setflag 17
diff --git a/data/scripts/maps/Route134.inc b/data/scripts/maps/Route134.inc
index b1f77fac1..6b4d330d1 100644
--- a/data/scripts/maps/Route134.inc
+++ b/data/scripts/maps/Route134.inc
@@ -3,7 +3,7 @@ Route134_MapScripts:: @ 81525B5
.byte 0
Route134_MapScript1_1525BB:: @ 81525BB
- warp4 Underwater_Route134, 255, 8, 6
+ setdivewarp Underwater_Route134, 255, 8, 6
end
Route134_EventScript_1525C4:: @ 81525C4
diff --git a/data/scripts/maps/RustboroCity.inc b/data/scripts/maps/RustboroCity.inc
index 1a2afe16d..677838f8a 100644
--- a/data/scripts/maps/RustboroCity.inc
+++ b/data/scripts/maps/RustboroCity.inc
@@ -333,7 +333,7 @@ RustboroCity_EventScript_14C5FF:: @ 814C5FF
end
RustboroCity_EventScript_14C614:: @ 814C614
- checksound
+ waitse
setvar 0x4001, 4
goto RustboroCity_EventScript_14C77D
end
@@ -381,7 +381,7 @@ RustboroCity_EventScript_14C650:: @ 814C650
RustboroCity_EventScript_14C691:: @ 814C691
move 9, RustboroCity_Movement_1A0841
waitmove 0
- playsfx 21
+ playse 21
move 9, RustboroCity_Movement_1A0833
waitmove 0
move 9, RustboroCity_Movement_1A0835
@@ -393,7 +393,7 @@ RustboroCity_EventScript_14C691:: @ 814C691
RustboroCity_EventScript_14C6BD:: @ 814C6BD
move 9, RustboroCity_Movement_1A083F
waitmove 0
- playsfx 21
+ playse 21
move 9, RustboroCity_Movement_1A0833
waitmove 0
move 9, RustboroCity_Movement_1A0835
@@ -405,7 +405,7 @@ RustboroCity_EventScript_14C6BD:: @ 814C6BD
RustboroCity_EventScript_14C6E9:: @ 814C6E9
move 9, RustboroCity_Movement_1A0845
waitmove 0
- playsfx 21
+ playse 21
move 9, RustboroCity_Movement_1A0833
waitmove 0
move 9, RustboroCity_Movement_1A0835
@@ -417,7 +417,7 @@ RustboroCity_EventScript_14C6E9:: @ 814C6E9
RustboroCity_EventScript_14C715:: @ 814C715
move 9, RustboroCity_Movement_1A0845
waitmove 0
- playsfx 21
+ playse 21
move 9, RustboroCity_Movement_1A0833
waitmove 0
move 9, RustboroCity_Movement_1A0835
@@ -476,7 +476,7 @@ RustboroCity_EventScript_14C77D:: @ 814C77D
setflag 144
setflag 732
setvar 0x405a, 5
- pause 30
+ delay 30
warp RustboroCity_DevonCorp_3F, 255, 2, 2
waitstate
releaseall
@@ -489,7 +489,7 @@ RustboroCity_EventScript_14C7F5:: @ 814C7F5
RustboroCity_EventScript_14C7FE:: @ 814C7FE
move 9, RustboroCity_Movement_1A0841
waitmove 0
- playsfx 21
+ playse 21
move 9, RustboroCity_Movement_1A0833
waitmove 0
move 9, RustboroCity_Movement_1A0835
@@ -501,7 +501,7 @@ RustboroCity_EventScript_14C7FE:: @ 814C7FE
RustboroCity_EventScript_14C82A:: @ 814C82A
move 9, RustboroCity_Movement_1A0843
waitmove 0
- playsfx 21
+ playse 21
move 9, RustboroCity_Movement_1A0833
waitmove 0
move 9, RustboroCity_Movement_1A0835
@@ -513,7 +513,7 @@ RustboroCity_EventScript_14C82A:: @ 814C82A
RustboroCity_EventScript_14C856:: @ 814C856
move 9, RustboroCity_Movement_1A0845
waitmove 0
- playsfx 21
+ playse 21
move 9, RustboroCity_Movement_1A0833
waitmove 0
move 9, RustboroCity_Movement_1A0835
@@ -525,7 +525,7 @@ RustboroCity_EventScript_14C856:: @ 814C856
RustboroCity_EventScript_14C882:: @ 814C882
move 9, RustboroCity_Movement_1A0845
waitmove 0
- playsfx 21
+ playse 21
move 9, RustboroCity_Movement_1A0833
waitmove 0
move 9, RustboroCity_Movement_1A0835
@@ -539,7 +539,7 @@ RustboroCity_EventScript_14C882:: @ 814C882
RustboroCity_EventScript_14C8B8:: @ 814C8B8
move 9, RustboroCity_Movement_1A083F
waitmove 0
- playsfx 21
+ playse 21
move 9, RustboroCity_Movement_1A0833
waitmove 0
move 9, RustboroCity_Movement_1A0835
diff --git a/data/scripts/maps/RustboroCity_DevonCorp_2F.inc b/data/scripts/maps/RustboroCity_DevonCorp_2F.inc
index 352850d9e..2f3fd5927 100644
--- a/data/scripts/maps/RustboroCity_DevonCorp_2F.inc
+++ b/data/scripts/maps/RustboroCity_DevonCorp_2F.inc
@@ -80,7 +80,7 @@ RustboroCity_DevonCorp_2F_EventScript_157564:: @ 8157564
RustboroCity_DevonCorp_2F_EventScript_1575A6:: @ 81575A6
closebutton
- playsfx 21
+ playse 21
move 5, RustboroCity_DevonCorp_2F_Movement_1A0833
waitmove 0
move 5, RustboroCity_DevonCorp_2F_Movement_1A0835
@@ -98,7 +98,7 @@ RustboroCity_DevonCorp_2F_EventScript_1575A6:: @ 81575A6
RustboroCity_DevonCorp_2F_EventScript_1575EE:: @ 81575EE
closebutton
- playsfx 21
+ playse 21
move 5, RustboroCity_DevonCorp_2F_Movement_1A0833
waitmove 0
move 5, RustboroCity_DevonCorp_2F_Movement_1A0835
@@ -140,7 +140,7 @@ RustboroCity_DevonCorp_2F_EventScript_157661:: @ 8157661
copyvar 0x8004, RESULT
setvar 0x40c4, 0
setflag 267
- fanfare 370
+ playfanfare 370
message RustboroCity_DevonCorp_2F_Text_18319E
waitfanfare
waittext
@@ -160,7 +160,7 @@ RustboroCity_DevonCorp_2F_EventScript_1576B4:: @ 81576B4
copyvar 0x8004, RESULT
setvar 0x40c4, 0
setflag 267
- fanfare 370
+ playfanfare 370
message RustboroCity_DevonCorp_2F_Text_18319E
waitfanfare
waittext
diff --git a/data/scripts/maps/RustboroCity_DevonCorp_3F.inc b/data/scripts/maps/RustboroCity_DevonCorp_3F.inc
index 78feb0ce5..887299933 100644
--- a/data/scripts/maps/RustboroCity_DevonCorp_3F.inc
+++ b/data/scripts/maps/RustboroCity_DevonCorp_3F.inc
@@ -32,25 +32,25 @@ RustboroCity_DevonCorp_3F_EventScript_157752:: @ 8157752
closebutton
move 2, RustboroCity_DevonCorp_3F_Movement_157815
waitmove 0
- pause 80
+ delay 80
move 2, RustboroCity_DevonCorp_3F_Movement_15781E
waitmove 0
msgbox RustboroCity_DevonCorp_3F_Text_183903, 4
closebutton
- playmusic 420, 0
+ playbgm 420, 0
move 2, RustboroCity_DevonCorp_3F_Movement_157803
move 255, RustboroCity_DevonCorp_3F_Movement_157827
waitmove 0
msgbox RustboroCity_DevonCorp_3F_Text_18394A, 4
closebutton
- fadedefault
+ fadedefaultbgm
move 2, RustboroCity_DevonCorp_3F_Movement_157812
move 255, RustboroCity_DevonCorp_3F_Movement_157835
waitmove 0
msgbox RustboroCity_DevonCorp_3F_Text_18320B, 4
giveitem ITEM_LETTER
msgbox RustboroCity_DevonCorp_3F_Text_18337E, 4
- fanfare 370
+ playfanfare 370
message RustboroCity_DevonCorp_3F_Text_183422
waitfanfare
waittext
diff --git a/data/scripts/maps/RustboroCity_Flat2_1F.inc b/data/scripts/maps/RustboroCity_Flat2_1F.inc
index 5aa91d5d1..f22f6cc90 100644
--- a/data/scripts/maps/RustboroCity_Flat2_1F.inc
+++ b/data/scripts/maps/RustboroCity_Flat2_1F.inc
@@ -8,7 +8,7 @@ RustboroCity_Flat2_1F_EventScript_157D7A:: @ 8157D7A
RustboroCity_Flat2_1F_EventScript_157D83:: @ 8157D83
lock
faceplayer
- checksound
+ waitse
pokecry SPECIES_SKITTY, 0
msgbox RustboroCity_Flat2_1F_Text_185410, 4
waitpokecry
diff --git a/data/scripts/maps/RustboroCity_House1.inc b/data/scripts/maps/RustboroCity_House1.inc
index 0dd47d2d3..080fc7e18 100644
--- a/data/scripts/maps/RustboroCity_House1.inc
+++ b/data/scripts/maps/RustboroCity_House1.inc
@@ -8,7 +8,7 @@ RustboroCity_House1_EventScript_157C7D:: @ 8157C7D
goto_if_eq RustboroCity_House1_EventScript_157D13
setvar 0x8008, 0
copyvar 0x8004, 0x8008
- specialval RESULT, sub_804D89C
+ specialvar RESULT, sub_804D89C
copyvar 0x8009, RESULT
msgbox RustboroCity_House1_Text_184EBA, 5
compare_var_to_imm RESULT, 0
@@ -19,7 +19,7 @@ RustboroCity_House1_EventScript_157C7D:: @ 8157C7D
compare_var_to_imm 0x8004, 255
goto_if_eq RustboroCity_House1_EventScript_157CFB
copyvar 0x8005, 0x800a
- specialval RESULT, sub_804DB2C
+ specialvar RESULT, sub_804DB2C
copyvar 0x800b, RESULT
compare_var_to_var RESULT, 0x8009
goto_if 5, RustboroCity_House1_EventScript_157D05
diff --git a/data/scripts/maps/RustboroCity_House3.inc b/data/scripts/maps/RustboroCity_House3.inc
index 0e81ed158..b219563be 100644
--- a/data/scripts/maps/RustboroCity_House3.inc
+++ b/data/scripts/maps/RustboroCity_House3.inc
@@ -12,7 +12,7 @@ RustboroCity_House3_EventScript_157DF6:: @ 8157DF6
RustboroCity_House3_EventScript_157DFF:: @ 8157DFF
lock
faceplayer
- checksound
+ waitse
pokecry SPECIES_PIKACHU, 0
msgbox RustboroCity_House3_Text_18567D, 4
waitpokecry
diff --git a/data/scripts/maps/RusturfTunnel.inc b/data/scripts/maps/RusturfTunnel.inc
index b4546e27a..cfa319bf3 100644
--- a/data/scripts/maps/RusturfTunnel.inc
+++ b/data/scripts/maps/RusturfTunnel.inc
@@ -148,7 +148,7 @@ RusturfTunnel_EventScript_15C91B:: @ 815C91B
return
RusturfTunnel_EventScript_15C92D:: @ 815C92D
- playsfx 21
+ playse 21
move 1, RusturfTunnel_Movement_1A0833
waitmove 0
move 1, RusturfTunnel_Movement_1A0835
@@ -299,7 +299,7 @@ RusturfTunnel_Movement_15C9D3:: @ 815C9D3
RusturfTunnel_EventScript_15C9D7:: @ 815C9D7
lock
faceplayer
- checksound
+ waitse
pokecry SPECIES_WINGULL, 0
msgbox RusturfTunnel_Text_194188, 4
waitpokecry
@@ -309,7 +309,7 @@ RusturfTunnel_EventScript_15C9D7:: @ 815C9D7
RusturfTunnel_EventScript_15C9EA:: @ 815C9EA
lock
faceplayer
- playmusic BGM_EVIL_TEAM, 0
+ playbgm BGM_EVIL_TEAM, 0
msgbox RusturfTunnel_Text_19419B, 4
trainerbattle 3, OPPONENT_RUSTURF_TUNNEL_GRUNT, 0, RusturfTunnel_Text_194243
msgbox RusturfTunnel_Text_194274, 4
@@ -319,7 +319,7 @@ RusturfTunnel_EventScript_15C9EA:: @ 815C9EA
move 6, RusturfTunnel_Movement_15CAA2
waitmove 0
disappear 6
- pause 50
+ delay 50
reappear 5
move 5, RusturfTunnel_Movement_15CAAC
waitmove 0
@@ -331,7 +331,7 @@ RusturfTunnel_EventScript_15C9EA:: @ 815C9EA
waitmove 0
message RusturfTunnel_Text_19434F
waittext
- checksound
+ waitse
pokecry SPECIES_WINGULL, 0
waitbutton
waitpokecry
diff --git a/data/scripts/maps/SSTidalCorridor.inc b/data/scripts/maps/SSTidalCorridor.inc
index da9d31cca..9f86473be 100644
--- a/data/scripts/maps/SSTidalCorridor.inc
+++ b/data/scripts/maps/SSTidalCorridor.inc
@@ -13,7 +13,7 @@ SSTidalCorridor_EventScript_15FCBC:: @ 815FCBC
special SetSSTidalFlag
setvar 0x40b4, 2
lockall
- playsfx 73
+ playse 73
msgbox SSTidalCorridor_Text_199007, 4
releaseall
end
@@ -21,7 +21,7 @@ SSTidalCorridor_EventScript_15FCBC:: @ 815FCBC
SSTidalCorridor_EventScript_15FCD2:: @ 815FCD2
setvar 0x40b4, 6
lockall
- playsfx 73
+ playse 73
msgbox SSTidalCorridor_Text_199088, 4
releaseall
end
@@ -29,14 +29,14 @@ SSTidalCorridor_EventScript_15FCD2:: @ 815FCD2
SSTidalRooms_EventScript_15FCE5:: @ 815FCE5
special SetSSTidalFlag
setvar 0x40b4, 7
- playsfx 73
+ playse 73
msgbox SSTidalRooms_Text_199007, 4
return
SSTidalRooms_EventScript_15FCF9:: @ 815FCF9
special ResetSSTidalFlag
setvar 0x40b4, 4
- playsfx 73
+ playse 73
msgbox SSTidalRooms_Text_1990F8, 4
return
@@ -51,7 +51,7 @@ SSTidalCorridor_EventScript_15FD24:: @ 815FD24
special ResetSSTidalFlag
setvar 0x40b4, 3
lockall
- playsfx 73
+ playse 73
msgbox SSTidalCorridor_Text_199088, 4
releaseall
end
@@ -60,7 +60,7 @@ SSTidalCorridor_EventScript_15FD3A:: @ 815FD3A
special ResetSSTidalFlag
setvar 0x40b4, 8
lockall
- playsfx 73
+ playse 73
msgbox SSTidalCorridor_Text_1990B4, 4
releaseall
end
@@ -68,7 +68,7 @@ SSTidalCorridor_EventScript_15FD3A:: @ 815FD3A
SSTidalRooms_EventScript_15FD50:: @ 815FD50
special ResetSSTidalFlag
setvar 0x40b4, 8
- playsfx 73
+ playse 73
msgbox SSTidalRooms_Text_1990B4, 4
return
@@ -87,7 +87,7 @@ SSTidalCorridor_EventScript_15FD96:: @ 815FD96
SSTidalCorridor_EventScript_15FD9F:: @ 815FD9F
lock
faceplayer
- checksound
+ waitse
pokecry SPECIES_WINGULL, 0
msgbox SSTidalCorridor_Text_199388, 4
waitpokecry
diff --git a/data/scripts/maps/SafariZone_Southeast.inc b/data/scripts/maps/SafariZone_Southeast.inc
index 8cc342f88..f1c37be5b 100644
--- a/data/scripts/maps/SafariZone_Southeast.inc
+++ b/data/scripts/maps/SafariZone_Southeast.inc
@@ -94,7 +94,7 @@ SafariZone_Southeast_EventScript_16011F:: @ 816011F
SafariZone_Southeast_EventScript_160139:: @ 8160139
setvar 0x40a4, 1
special ExitSafariMode
- warpwalk Route121_SafariZoneEntrance, 255, 2, 5
+ warpdoor Route121_SafariZoneEntrance, 255, 2, 5
waitstate
end
diff --git a/data/scripts/maps/SeafloorCavern_Entrance.inc b/data/scripts/maps/SeafloorCavern_Entrance.inc
index 0bf99d2ad..787ac6605 100644
--- a/data/scripts/maps/SeafloorCavern_Entrance.inc
+++ b/data/scripts/maps/SeafloorCavern_Entrance.inc
@@ -3,6 +3,6 @@ SeafloorCavern_Entrance_MapScripts:: @ 815DA4A
.byte 0
SeafloorCavern_Entrance_MapScript1_15DA50:: @ 815DA50
- warp4 Underwater_SeafloorCavern, 255, 6, 5
+ setdivewarp Underwater_SeafloorCavern, 255, 6, 5
warp6 Underwater_SeafloorCavern, 255, 6, 5
end
diff --git a/data/scripts/maps/SeafloorCavern_Room9.inc b/data/scripts/maps/SeafloorCavern_Room9.inc
index 71184346f..fe13664d9 100644
--- a/data/scripts/maps/SeafloorCavern_Room9.inc
+++ b/data/scripts/maps/SeafloorCavern_Room9.inc
@@ -78,7 +78,7 @@ SeafloorCavern_Room9_EventScript_15DAFA:: @ 815DAFA
.else
setvar RESULT, 0
.endif
- playsfx 209
+ playse 209
setanimation 0, 16
setanimation 1, 42
setanimation 2, 0
@@ -89,17 +89,17 @@ SeafloorCavern_Room9_EventScript_15DAFA:: @ 815DAFA
.else
setvar RESULT, 1
.endif
- fanfare 388
- playsfx 107
+ playfanfare 388
+ playse 107
special sub_80818A4
move 0x8004, SeafloorCavern_Room9_Movement_1A0841
move 255, SeafloorCavern_Room9_Movement_1A0841
waitmove 0
- pause 150
+ delay 150
disappear 7
reappear 1
waitstate
- pause 60
+ delay 60
move 1, SeafloorCavern_Room9_Movement_15DD4C
waitmove 0
special sub_80818FC
@@ -111,12 +111,12 @@ SeafloorCavern_Room9_EventScript_15DAFA:: @ 815DAFA
move 1, SeafloorCavern_Room9_Movement_15DD57
waitmove 0
disappear 1
- pause 4
+ delay 4
setvar 0x8004, 2
setvar 0x8005, 2
special sub_810F758
waitstate
- pause 30
+ delay 30
setvar 0x8004, 2
setvar 0x8005, 3
setvar 0x8006, 4
@@ -126,7 +126,7 @@ SeafloorCavern_Room9_EventScript_15DAFA:: @ 815DAFA
.else
msgbox SeafloorCavern_Room9_Text_1B4A89, 4
.endif
- playsfx 2
+ playse 2
move 255, SeafloorCavern_Room9_Movement_1A083F
waitmove 0
.ifdef SAPPHIRE
@@ -143,8 +143,8 @@ SeafloorCavern_Room9_EventScript_15DAFA:: @ 815DAFA
msgbox SeafloorCavern_Room9_Text_1B4B11, 4
.endif
closebutton
- playsfx 3
- pause 20
+ playse 3
+ delay 20
move 0x8004, SeafloorCavern_Room9_Movement_1A0845
waitmove 0
.ifdef SAPPHIRE
@@ -167,7 +167,7 @@ SeafloorCavern_Room9_EventScript_15DAFA:: @ 815DAFA
.else
msgbox SeafloorCavern_Room9_Text_1B4D02, 4
.endif
- playsfx 21
+ playse 21
move 0x8004, SeafloorCavern_Room9_Movement_1A0833
waitmove 0
move 0x8004, SeafloorCavern_Room9_Movement_1A0835
diff --git a/data/scripts/maps/SealedChamber_InnerRoom.inc b/data/scripts/maps/SealedChamber_InnerRoom.inc
index 2650f4ab5..929b4d0ca 100644
--- a/data/scripts/maps/SealedChamber_InnerRoom.inc
+++ b/data/scripts/maps/SealedChamber_InnerRoom.inc
@@ -8,29 +8,29 @@ SealedChamber_InnerRoom_EventScript_15F1E8:: @ 815F1E8
hidebox 0, 0, 29, 19
checkflag 228
goto_if_eq SealedChamber_InnerRoom_EventScript_15F247
- specialval RESULT, CheckRelicanthWailord
+ specialvar RESULT, CheckRelicanthWailord
compare_var_to_imm RESULT, 0
goto_if_eq SealedChamber_InnerRoom_EventScript_15F247
- fadeout 0
- playsfx 49
+ fadeoutbgm 0
+ playse 49
special DoSealedChamberShakingEffect1
waitstate
- pause 40
+ delay 40
special DoSealedChamberShakingEffect2
waitstate
- playsfx 8
- pause 40
+ playse 8
+ delay 40
special DoSealedChamberShakingEffect2
waitstate
- playsfx 8
- pause 40
+ playse 8
+ delay 40
special DoSealedChamberShakingEffect2
waitstate
- playsfx 8
- pause 40
+ playse 8
+ delay 40
msgbox SealedChamber_InnerRoom_Text_1A138B, 4
closebutton
- fadein 0
+ fadeinbgm 0
setflag 228
releaseall
end
diff --git a/data/scripts/maps/SealedChamber_OuterRoom.inc b/data/scripts/maps/SealedChamber_OuterRoom.inc
index dfa4777fa..091c0e8a4 100644
--- a/data/scripts/maps/SealedChamber_OuterRoom.inc
+++ b/data/scripts/maps/SealedChamber_OuterRoom.inc
@@ -5,7 +5,7 @@ SealedChamber_OuterRoom_MapScripts:: @ 815F0C6
.byte 0
SealedChamber_OuterRoom_MapScript1_15F0D6:: @ 815F0D6
- warp4 Underwater_SealedChamber, 255, 12, 44
+ setdivewarp Underwater_SealedChamber, 255, 12, 44
warp6 Underwater_SealedChamber, 255, 12, 44
end
diff --git a/data/scripts/maps/ShoalCave_LowTideEntranceRoom.inc b/data/scripts/maps/ShoalCave_LowTideEntranceRoom.inc
index bad7397c0..e51817e27 100644
--- a/data/scripts/maps/ShoalCave_LowTideEntranceRoom.inc
+++ b/data/scripts/maps/ShoalCave_LowTideEntranceRoom.inc
@@ -19,7 +19,7 @@ ShoalCave_LowTideEntranceRoom_EventScript_15E072:: @ 815E072
ShoalCave_LowTideEntranceRoom_EventScript_15E076:: @ 815E076
lock
faceplayer
- checkdailyflags
+ dodailyevents
checkflag 2143
call_if 1, ShoalCave_LowTideEntranceRoom_EventScript_15E176
checkitem ITEM_SHOAL_SALT, 4
diff --git a/data/scripts/maps/SkyPillar_2F.inc b/data/scripts/maps/SkyPillar_2F.inc
index 62cb389f2..3b3585bf8 100644
--- a/data/scripts/maps/SkyPillar_2F.inc
+++ b/data/scripts/maps/SkyPillar_2F.inc
@@ -6,5 +6,5 @@ SkyPillar_2F_MapScripts:: @ 815F2C9
SkyPillar_2F_MapScript1_15F2D9:: @ 815F2D9
tileeffect 7
- warp5 SkyPillar_1F, 255, 0, 0
+ setholewarp SkyPillar_1F, 255, 0, 0
end
diff --git a/data/scripts/maps/SkyPillar_4F.inc b/data/scripts/maps/SkyPillar_4F.inc
index 5e1f7f4e6..3d535a25a 100644
--- a/data/scripts/maps/SkyPillar_4F.inc
+++ b/data/scripts/maps/SkyPillar_4F.inc
@@ -6,5 +6,5 @@ SkyPillar_4F_MapScripts:: @ 815F2E5
SkyPillar_4F_MapScript1_15F2F5:: @ 815F2F5
tileeffect 7
- warp5 SkyPillar_3F, 255, 0, 0
+ setholewarp SkyPillar_3F, 255, 0, 0
end
diff --git a/data/scripts/maps/SkyPillar_Top.inc b/data/scripts/maps/SkyPillar_Top.inc
index e41d579c0..9a8a57e3f 100644
--- a/data/scripts/maps/SkyPillar_Top.inc
+++ b/data/scripts/maps/SkyPillar_Top.inc
@@ -15,9 +15,9 @@ SkyPillar_Top_EventScript_15F316:: @ 815F316
lock
faceplayer
setwildbattle SPECIES_RAYQUAZA, 70, ITEM_NONE
- checksound
+ waitse
pokecry SPECIES_RAYQUAZA, 2
- pause 40
+ delay 40
waitpokecry
setflag 773
setflag 2145
diff --git a/data/scripts/maps/SlateportCity.inc b/data/scripts/maps/SlateportCity.inc
index c43ddfaee..69bd90d75 100644
--- a/data/scripts/maps/SlateportCity.inc
+++ b/data/scripts/maps/SlateportCity.inc
@@ -66,14 +66,14 @@ SlateportCity_EventScript_14BAE0:: @ 814BAE0
faceplayer
bufferfirstpoke 0
msgbox SlateportCity_Text_164682, 4
- specialval RESULT, LeadMonHasEffortRibbon
+ specialvar RESULT, LeadMonHasEffortRibbon
compare_var_to_imm RESULT, 1
call_if 1, SlateportCity_EventScript_14BB35
- specialval RESULT, ScrSpecial_AreLeadMonEVsMaxedOut
+ specialvar RESULT, ScrSpecial_AreLeadMonEVsMaxedOut
compare_var_to_imm RESULT, 0
call_if 1, SlateportCity_EventScript_14BB2B
msgbox SlateportCity_Text_164691, 4
- fanfare 370
+ playfanfare 370
message SlateportCity_Text_1646DD
waitfanfare
waittext
@@ -493,10 +493,10 @@ SlateportCity_EventScript_14BEBC:: @ 814BEBC
closebutton
move 10, SlateportCity_Movement_1A0843
waitmove 0
- pause 10
+ delay 10
move 9, SlateportCity_Movement_1A0845
waitmove 0
- pause 25
+ delay 25
move 11, SlateportCity_Movement_14C000
move 255, SlateportCity_Movement_14C00E
move 10, SlateportCity_Movement_14BFDD
@@ -508,7 +508,7 @@ SlateportCity_EventScript_14BEBC:: @ 814BEBC
move 11, SlateportCity_Movement_1A0841
waitmove 0
msgbox SlateportCity_Text_1655E7, 4
- playmusic BGM_EVIL_TEAM, 0
+ playbgm BGM_EVIL_TEAM, 0
msgbox SlateportCity_Text_1656BC, 4
move 6, SlateportCity_Movement_1A083F
move 1, SlateportCity_Movement_1A083F
@@ -519,7 +519,7 @@ SlateportCity_EventScript_14BEBC:: @ 814BEBC
move 11, SlateportCity_Movement_1A0845
waitmove 0
msgbox SlateportCity_Text_16578F, 4
- playsfx 21
+ playse 21
move 11, SlateportCity_Movement_1A0833
waitmove 0
move 11, SlateportCity_Movement_1A0835
diff --git a/data/scripts/maps/SlateportCity_ContestLobby.inc b/data/scripts/maps/SlateportCity_ContestLobby.inc
index b541fb0e8..0f2d03a5a 100644
--- a/data/scripts/maps/SlateportCity_ContestLobby.inc
+++ b/data/scripts/maps/SlateportCity_ContestLobby.inc
@@ -22,17 +22,17 @@ SlateportCity_ContestLobby_EventScript_155448:: @ 8155448
lockall
move 1, SlateportCity_ContestLobby_Movement_1554CC
waitmove 0
- playsfx 71
+ playse 71
setmaptile 4, 2, 545, 1
setmaptile 4, 3, 609, 1
special DrawWholeMapView
move 1, SlateportCity_ContestLobby_Movement_1554CF
waitmove 0
- playsfx 71
+ playse 71
setmaptile 4, 2, 721, 1
setmaptile 4, 3, 729, 1
special DrawWholeMapView
- pause 20
+ delay 20
move 1, SlateportCity_ContestLobby_Movement_1554DC
waitmove 0
move 255, SlateportCity_ContestLobby_Movement_1554CA
diff --git a/data/scripts/maps/SlateportCity_Harbor.inc b/data/scripts/maps/SlateportCity_Harbor.inc
index be1504415..802906f25 100644
--- a/data/scripts/maps/SlateportCity_Harbor.inc
+++ b/data/scripts/maps/SlateportCity_Harbor.inc
@@ -16,7 +16,7 @@ SlateportCity_Harbor_EventScript_155F85:: @ 8155F85
return
SlateportCity_Harbor_EventScript_155F89:: @ 8155F89
- playmusicbattle BGM_EVIL_TEAM
+ savebgm BGM_EVIL_TEAM
movespriteperm 4, 12, 13
spritebehave 4, 9
setflag 905
@@ -221,13 +221,13 @@ SlateportCity_Harbor_EventScript_156196:: @ 8156196
closebutton
move LAST_TALKED, SlateportCity_Harbor_Movement_1A0841
waitmove 0
- pause 30
+ delay 30
spriteinvisible LAST_TALKED, 9, 8
compare_var_to_imm FACING, 2
call_if 1, SlateportCity_Harbor_EventScript_1561EF
compare_var_to_imm FACING, 4
call_if 1, SlateportCity_Harbor_EventScript_1561E4
- pause 30
+ delay 30
spriteinvisible 255, 0, 0
setvar 0x8004, 5
call SlateportCity_Harbor_EventScript_1A040E
diff --git a/data/scripts/maps/SlateportCity_House1.inc b/data/scripts/maps/SlateportCity_House1.inc
index 731b3385b..e932a58ab 100644
--- a/data/scripts/maps/SlateportCity_House1.inc
+++ b/data/scripts/maps/SlateportCity_House1.inc
@@ -27,14 +27,14 @@ SlateportCity_House1_EventScript_1556BF:: @ 81556BF
end
SlateportCity_House1_EventScript_1556C9:: @ 81556C9
- specialval RESULT, ScriptGetPartyMonSpecies
+ specialvar RESULT, ScriptGetPartyMonSpecies
compare_var_to_imm RESULT, SPECIES_EGG
goto_if_eq SlateportCity_House1_EventScript_15571C
special sub_80BFAE0
special sub_80BFB10
compare_var_to_imm RESULT, 1
goto_if_eq SlateportCity_House1_EventScript_155726
- specialval RESULT, sub_810F96C
+ specialvar RESULT, sub_810F96C
special sub_80BFAE0
compare_var_to_imm RESULT, 1
goto_if_eq SlateportCity_House1_EventScript_155726
@@ -58,7 +58,7 @@ SlateportCity_House1_EventScript_155726:: @ 8155726
SlateportCity_House1_EventScript_155730:: @ 8155730
msgbox SlateportCity_House1_Text_17D580, 4
call SlateportCity_House1_EventScript_1A0678
- specialval RESULT, sub_80BF9B4
+ specialvar RESULT, sub_80BF9B4
special sub_80BFAE0
compare_var_to_imm RESULT, 1
goto_if_eq SlateportCity_House1_EventScript_15575A
diff --git a/data/scripts/maps/SlateportCity_OceanicMuseum_1F.inc b/data/scripts/maps/SlateportCity_OceanicMuseum_1F.inc
index e8f6d45ac..0c75b2b9d 100644
--- a/data/scripts/maps/SlateportCity_OceanicMuseum_1F.inc
+++ b/data/scripts/maps/SlateportCity_OceanicMuseum_1F.inc
@@ -157,8 +157,8 @@ SlateportCity_OceanicMuseum_1F_EventScript_155C31:: @ 8155C31
SlateportCity_OceanicMuseum_1F_EventScript_155C3A:: @ 8155C3A
lock
faceplayer
- pause 8
- playsfx 21
+ delay 8
+ playse 21
move 13, SlateportCity_OceanicMuseum_1F_Movement_1A0833
waitmove 0
move 13, SlateportCity_OceanicMuseum_1F_Movement_1A0835
@@ -180,7 +180,7 @@ SlateportCity_OceanicMuseum_1F_EventScript_155C98:: @ 8155C98
move 13, SlateportCity_OceanicMuseum_1F_Movement_155CD3
waitmove 0
setflag 965
- playsfx 9
+ playse 9
disappear 13
release
end
@@ -189,7 +189,7 @@ SlateportCity_OceanicMuseum_1F_EventScript_155CAD:: @ 8155CAD
move 13, SlateportCity_OceanicMuseum_1F_Movement_155CCC
waitmove 0
setflag 965
- playsfx 9
+ playse 9
disappear 13
release
end
diff --git a/data/scripts/maps/SlateportCity_OceanicMuseum_2F.inc b/data/scripts/maps/SlateportCity_OceanicMuseum_2F.inc
index 3a08fcc2a..709d3f1d6 100644
--- a/data/scripts/maps/SlateportCity_OceanicMuseum_2F.inc
+++ b/data/scripts/maps/SlateportCity_OceanicMuseum_2F.inc
@@ -11,7 +11,7 @@ SlateportCity_OceanicMuseum_2F_EventScript_155CE6:: @ 8155CE6
faceplayer
msgbox SlateportCity_OceanicMuseum_2F_Text_17ECFD, 4
closebutton
- playmusic BGM_EVIL_TEAM, 1
+ playbgm BGM_EVIL_TEAM, 1
reappear 3
move 3, SlateportCity_OceanicMuseum_2F_Movement_155EB4
waitmove 0
@@ -45,7 +45,7 @@ SlateportCity_OceanicMuseum_2F_EventScript_155CE6:: @ 8155CE6
move 3, SlateportCity_OceanicMuseum_2F_Movement_155EB2
waitmove 0
msgbox SlateportCity_OceanicMuseum_2F_Text_17EEA5, 4
- playmusicbattle 0
+ savebgm 0
trainerbattle 3, OPPONENT_MUSEUM_2F_GRUNT_2, 0, SlateportCity_OceanicMuseum_2F_Text_17EED6
move 3, SlateportCity_OceanicMuseum_2F_Movement_155EBF
waitmove 0
@@ -54,7 +54,7 @@ SlateportCity_OceanicMuseum_2F_EventScript_155CE6:: @ 8155CE6
waitmove 0
msgbox SlateportCity_OceanicMuseum_2F_Text_17EEEA, 4
closebutton
- pause 35
+ delay 35
reappear 2
move 2, SlateportCity_OceanicMuseum_2F_Movement_155EA8
move 4, SlateportCity_OceanicMuseum_2F_Movement_155ECE
@@ -73,7 +73,7 @@ SlateportCity_OceanicMuseum_2F_EventScript_155CE6:: @ 8155CE6
disappear 3
disappear 4
fadescreen 0
- pause 30
+ delay 30
setflag 883
move 255, SlateportCity_OceanicMuseum_2F_Movement_1A0843
waitmove 0
@@ -84,7 +84,7 @@ SlateportCity_OceanicMuseum_2F_EventScript_155CE6:: @ 8155CE6
closebutton
move 1, SlateportCity_OceanicMuseum_2F_Movement_155E98
waitmove 0
- playsfx 9
+ playse 9
disappear 1
setflag 900
setflag 149
diff --git a/data/scripts/maps/SlateportCity_PokemonFanClub.inc b/data/scripts/maps/SlateportCity_PokemonFanClub.inc
index 4a7fc8474..80ee23d43 100644
--- a/data/scripts/maps/SlateportCity_PokemonFanClub.inc
+++ b/data/scripts/maps/SlateportCity_PokemonFanClub.inc
@@ -144,7 +144,7 @@ SlateportCity_PokemonFanClub_EventScript_155998:: @ 8155998
end
SlateportCity_PokemonFanClub_EventScript_1559A2:: @ 81559A2
- specialval RESULT, CheckLeadMonCool
+ specialvar RESULT, CheckLeadMonCool
compare_var_to_imm RESULT, 1
call_if 1, SlateportCity_PokemonFanClub_EventScript_1559B3
return
@@ -154,7 +154,7 @@ SlateportCity_PokemonFanClub_EventScript_1559B3:: @ 81559B3
return
SlateportCity_PokemonFanClub_EventScript_1559B9:: @ 81559B9
- specialval RESULT, CheckLeadMonBeauty
+ specialvar RESULT, CheckLeadMonBeauty
compare_var_to_imm RESULT, 1
call_if 1, SlateportCity_PokemonFanClub_EventScript_1559CA
return
@@ -164,7 +164,7 @@ SlateportCity_PokemonFanClub_EventScript_1559CA:: @ 81559CA
return
SlateportCity_PokemonFanClub_EventScript_1559D0:: @ 81559D0
- specialval RESULT, CheckLeadMonCute
+ specialvar RESULT, CheckLeadMonCute
compare_var_to_imm RESULT, 1
call_if 1, SlateportCity_PokemonFanClub_EventScript_1559E1
return
@@ -174,7 +174,7 @@ SlateportCity_PokemonFanClub_EventScript_1559E1:: @ 81559E1
return
SlateportCity_PokemonFanClub_EventScript_1559E7:: @ 81559E7
- specialval RESULT, CheckLeadMonSmart
+ specialvar RESULT, CheckLeadMonSmart
compare_var_to_imm RESULT, 1
call_if 1, SlateportCity_PokemonFanClub_EventScript_1559F8
return
@@ -184,7 +184,7 @@ SlateportCity_PokemonFanClub_EventScript_1559F8:: @ 81559F8
return
SlateportCity_PokemonFanClub_EventScript_1559FE:: @ 81559FE
- specialval RESULT, CheckLeadMonTough
+ specialvar RESULT, CheckLeadMonTough
compare_var_to_imm RESULT, 1
call_if 1, SlateportCity_PokemonFanClub_EventScript_155A0F
return
@@ -199,14 +199,14 @@ SlateportCity_PokemonFanClub_EventScript_155A15:: @ 8155A15
checkflag 278
goto_if_eq SlateportCity_PokemonFanClub_EventScript_155A75
msgbox SlateportCity_PokemonFanClub_Text_17DE6B, 4
- specialval RESULT, GetLeadMonFriendshipScore
+ specialvar RESULT, GetLeadMonFriendshipScore
compare_var_to_imm RESULT, 4
goto_if 4, SlateportCity_PokemonFanClub_EventScript_155A3A
release
end
SlateportCity_PokemonFanClub_EventScript_155A3A:: @ 8155A3A
- playsfx 21
+ playse 21
move LAST_TALKED, SlateportCity_PokemonFanClub_Movement_1A0833
waitmove 0
move LAST_TALKED, SlateportCity_PokemonFanClub_Movement_1A0835
@@ -235,7 +235,7 @@ SlateportCity_PokemonFanClub_EventScript_155A88:: @ 8155A88
SlateportCity_PokemonFanClub_EventScript_155A91:: @ 8155A91
lock
faceplayer
- checksound
+ waitse
pokecry SPECIES_SKITTY, 0
msgbox SlateportCity_PokemonFanClub_Text_17E14E, 4
waitpokecry
@@ -245,7 +245,7 @@ SlateportCity_PokemonFanClub_EventScript_155A91:: @ 8155A91
SlateportCity_PokemonFanClub_EventScript_155AA4:: @ 8155AA4
lock
faceplayer
- checksound
+ waitse
pokecry SPECIES_ZIGZAGOON, 0
msgbox SlateportCity_PokemonFanClub_Text_17E164, 4
waitpokecry
@@ -255,7 +255,7 @@ SlateportCity_PokemonFanClub_EventScript_155AA4:: @ 8155AA4
SlateportCity_PokemonFanClub_EventScript_155AB7:: @ 8155AB7
lock
faceplayer
- checksound
+ waitse
pokecry SPECIES_AZUMARILL, 0
msgbox SlateportCity_PokemonFanClub_Text_17E178, 4
waitpokecry
diff --git a/data/scripts/maps/SootopolisCity.inc b/data/scripts/maps/SootopolisCity.inc
index 44ee245fd..14bece069 100644
--- a/data/scripts/maps/SootopolisCity.inc
+++ b/data/scripts/maps/SootopolisCity.inc
@@ -62,7 +62,7 @@ SootopolisCity_EventScript_14D159:: @ 814D159
return
SootopolisCity_MapScript1_14D165:: @ 814D165
- warp4 Underwater_SootopolisCity, 255, 9, 6
+ setdivewarp Underwater_SootopolisCity, 255, 9, 6
end
SootopolisCity_EventScript_14D16E:: @ 814D16E
@@ -90,7 +90,7 @@ SootopolisCity_EventScript_14D196:: @ 814D196
SootopolisCity_EventScript_14D19F:: @ 814D19F
lock
faceplayer
- checkdailyflags
+ dodailyevents
special GetPlayerBigGuyGirlString
checkflag 2258
goto_if_eq SootopolisCity_EventScript_14D241
@@ -216,7 +216,7 @@ SootopolisCity_EventScript_14D308:: @ 814D308
move 10, SootopolisCity_Movement_1A083F
move 255, SootopolisCity_Movement_1A0843
waitmove 0
- playsfx 21
+ playse 21
move 10, SootopolisCity_Movement_1A0833
waitmove 0
move 10, SootopolisCity_Movement_1A0835
@@ -237,7 +237,7 @@ SootopolisCity_EventScript_14D308:: @ 814D308
.else
msgbox SootopolisCity_Text_169E82, 4
.endif
- playsfx 21
+ playse 21
move 5, SootopolisCity_Movement_1A0833
waitmove 0
move 5, SootopolisCity_Movement_1A0835
@@ -248,7 +248,7 @@ SootopolisCity_EventScript_14D308:: @ 814D308
msgbox SootopolisCity_Text_169F3C, 4
.endif
closebutton
- pause 30
+ delay 30
move 5, SootopolisCity_Movement_14D46A
move 10, SootopolisCity_Movement_14D41D
move 255, SootopolisCity_Movement_14D445
@@ -256,7 +256,7 @@ SootopolisCity_EventScript_14D308:: @ 814D308
move 5, SootopolisCity_Movement_1A0843
move 255, SootopolisCity_Movement_1A0843
waitmove 0
- pause 30
+ delay 30
move 10, SootopolisCity_Movement_1A0845
waitmove 0
.ifdef SAPPHIRE
@@ -265,7 +265,7 @@ SootopolisCity_EventScript_14D308:: @ 814D308
msgbox SootopolisCity_Text_169F6B, 4
.endif
closebutton
- pause 30
+ delay 30
move 5, SootopolisCity_Movement_14D47C
move 255, SootopolisCity_Movement_14D457
move 10, SootopolisCity_Movement_14D42D
@@ -460,10 +460,10 @@ SootopolisCity_EventScript_14D4AD:: @ 814D4AD
closebutton
move LAST_TALKED, SootopolisCity_Movement_1A0845
waitmove 0
- pause 50
+ delay 50
setanimation 0, 1
doanimation 30
- pause 15
+ delay 15
disappear LAST_TALKED
checkanimation 30
release
diff --git a/data/scripts/maps/SootopolisCity_Gym_1F.inc b/data/scripts/maps/SootopolisCity_Gym_1F.inc
index 39bc2d4db..1df729aad 100644
--- a/data/scripts/maps/SootopolisCity_Gym_1F.inc
+++ b/data/scripts/maps/SootopolisCity_Gym_1F.inc
@@ -48,35 +48,35 @@ SootopolisCity_Gym_1F_MapScript2_15AF86:: @ 815AF86
SootopolisCity_Gym_1F_EventScript_15AFA8:: @ 815AFA8
addvar 0x4022, 1
- pause 40
- playsfx 40
+ delay 40
+ playse 40
call SootopolisCity_Gym_1F_EventScript_15AF2E
special DrawWholeMapView
end
SootopolisCity_Gym_1F_EventScript_15AFBC:: @ 815AFBC
addvar 0x4022, 1
- pause 40
- playsfx 40
+ delay 40
+ playse 40
call SootopolisCity_Gym_1F_EventScript_15AF2E
special DrawWholeMapView
end
SootopolisCity_Gym_1F_EventScript_15AFD0:: @ 815AFD0
addvar 0x4022, 1
- pause 40
- playsfx 40
+ delay 40
+ playse 40
call SootopolisCity_Gym_1F_EventScript_15AF2E
special DrawWholeMapView
end
SootopolisCity_Gym_1F_EventScript_15AFE4:: @ 815AFE4
lockall
- pause 20
+ delay 20
move 255, SootopolisCity_Gym_1F_Movement_15AFFD
waitmove 0
- playsfx 43
- pause 60
+ playse 43
+ delay 60
warphole SootopolisCity_Gym_B1F
waitstate
end
diff --git a/data/scripts/maps/SootopolisCity_House1.inc b/data/scripts/maps/SootopolisCity_House1.inc
index e01a00d97..ccfec8036 100644
--- a/data/scripts/maps/SootopolisCity_House1.inc
+++ b/data/scripts/maps/SootopolisCity_House1.inc
@@ -21,7 +21,7 @@ SootopolisCity_House1_EventScript_15B2C7:: @ 815B2C7
SootopolisCity_House1_EventScript_15B2D1:: @ 815B2D1
lock
faceplayer
- checksound
+ waitse
pokecry SPECIES_KECLEON, 0
msgbox SootopolisCity_House1_Text_18FA50, 4
waitpokecry
diff --git a/data/scripts/maps/SootopolisCity_House4.inc b/data/scripts/maps/SootopolisCity_House4.inc
index ee3bfe61b..ac9a641d6 100644
--- a/data/scripts/maps/SootopolisCity_House4.inc
+++ b/data/scripts/maps/SootopolisCity_House4.inc
@@ -12,7 +12,7 @@ SootopolisCity_House4_EventScript_15B356:: @ 815B356
SootopolisCity_House4_EventScript_15B35F:: @ 815B35F
lock
faceplayer
- checksound
+ waitse
pokecry SPECIES_AZUMARILL, 0
msgbox SootopolisCity_House4_Text_18FDD8, 4
waitpokecry
diff --git a/data/scripts/maps/SouthernIsland_Exterior.inc b/data/scripts/maps/SouthernIsland_Exterior.inc
index 72a11a88b..2965b6748 100644
--- a/data/scripts/maps/SouthernIsland_Exterior.inc
+++ b/data/scripts/maps/SouthernIsland_Exterior.inc
@@ -16,7 +16,7 @@ SouthernIsland_Exterior_EventScript_160AE0:: @ 8160AE0
closebutton
move LAST_TALKED, SouthernIsland_Exterior_Movement_1A0845
waitmove 0
- pause 30
+ delay 30
spriteinvisible 1, 26, 9
setvar 0x8004, 2
call SouthernIsland_Exterior_EventScript_1A047C
diff --git a/data/scripts/maps/SouthernIsland_Interior.inc b/data/scripts/maps/SouthernIsland_Interior.inc
index 368e26794..e50b29d76 100644
--- a/data/scripts/maps/SouthernIsland_Interior.inc
+++ b/data/scripts/maps/SouthernIsland_Interior.inc
@@ -52,17 +52,17 @@ SouthernIsland_Interior_EventScript_160BA7:: @ 8160BA7
special SpawnCameraDummy
move 127, SouthernIsland_Interior_Movement_160C12
waitmove 0
- pause 50
- checksound
+ delay 50
+ waitse
pokecry SPECIES_LATIAS_OR_LATIOS, 0
- pause 30
+ delay 30
waitpokecry
reappear 2
- pause 30
+ delay 30
move 127, SouthernIsland_Interior_Movement_160C16
move 2, SouthernIsland_Interior_Movement_160C22
waitmove 0
- pause 50
+ delay 50
special RemoveCameraDummy
setwildbattle SPECIES_LATIAS_OR_LATIOS, 50, ITEM_SOUL_DEW
setflag 911
diff --git a/data/scripts/maps/Underwater_Route134.inc b/data/scripts/maps/Underwater_Route134.inc
index ee79f9799..bbe7e1ce2 100644
--- a/data/scripts/maps/Underwater_Route134.inc
+++ b/data/scripts/maps/Underwater_Route134.inc
@@ -3,5 +3,5 @@ Underwater_Route134_MapScripts:: @ 815F071
.byte 0
Underwater_Route134_MapScript1_15F077:: @ 815F077
- warp4 Route134, 255, 60, 31
+ setdivewarp Route134, 255, 60, 31
end
diff --git a/data/scripts/maps/Underwater_SeafloorCavern.inc b/data/scripts/maps/Underwater_SeafloorCavern.inc
index 8ef61d0f0..3d2fe81b2 100644
--- a/data/scripts/maps/Underwater_SeafloorCavern.inc
+++ b/data/scripts/maps/Underwater_SeafloorCavern.inc
@@ -35,7 +35,7 @@ Underwater_SeafloorCavern_EventScript_15D9C9:: @ 815D9C9
return
Underwater_SeafloorCavern_MapScript1_15DA36:: @ 815DA36
- warp4 SeafloorCavern_Entrance, 255, 10, 17
+ setdivewarp SeafloorCavern_Entrance, 255, 10, 17
end
Underwater_SeafloorCavern_EventScript_15DA3F:: @ 815DA3F
diff --git a/data/scripts/maps/Underwater_SealedChamber.inc b/data/scripts/maps/Underwater_SealedChamber.inc
index cbb45993a..6d263690d 100644
--- a/data/scripts/maps/Underwater_SealedChamber.inc
+++ b/data/scripts/maps/Underwater_SealedChamber.inc
@@ -11,11 +11,11 @@ Underwater_SealedChamber_MapScript1_15F086:: @ 815F086
goto Underwater_SealedChamber_EventScript_15F0AF
Underwater_SealedChamber_EventScript_15F0A6:: @ 815F0A6
- warp4 Route134, 255, 60, 31
+ setdivewarp Route134, 255, 60, 31
end
Underwater_SealedChamber_EventScript_15F0AF:: @ 815F0AF
- warp4 SealedChamber_OuterRoom, 255, 10, 19
+ setdivewarp SealedChamber_OuterRoom, 255, 10, 19
end
Underwater_SealedChamber_EventScript_15F0B8:: @ 815F0B8
diff --git a/data/scripts/maps/Underwater_SootopolisCity.inc b/data/scripts/maps/Underwater_SootopolisCity.inc
index 624c2c83e..c9405dfd7 100644
--- a/data/scripts/maps/Underwater_SootopolisCity.inc
+++ b/data/scripts/maps/Underwater_SootopolisCity.inc
@@ -3,5 +3,5 @@ Underwater_SootopolisCity_MapScripts:: @ 815CAE4
.byte 0
Underwater_SootopolisCity_MapScript1_15CAEA:: @ 815CAEA
- warp4 SootopolisCity, 255, 29, 53
+ setdivewarp SootopolisCity, 255, 29, 53
end
diff --git a/data/scripts/maps/UnknownMap_25_34.inc b/data/scripts/maps/UnknownMap_25_34.inc
index fee3b1498..0bf09e41e 100644
--- a/data/scripts/maps/UnknownMap_25_34.inc
+++ b/data/scripts/maps/UnknownMap_25_34.inc
@@ -26,23 +26,23 @@ LinkContestRoom1_EventScript_15F5A5:: @ 815F5A5
return
LinkContestRoom1_EventScript_15F5E0:: @ 815F5E0
- playmusicbattle 393
+ savebgm 393
return
LinkContestRoom1_EventScript_15F5E4:: @ 815F5E4
- playmusicbattle 394
+ savebgm 394
return
LinkContestRoom1_EventScript_15F5E8:: @ 815F5E8
- playmusicbattle 395
+ savebgm 395
return
LinkContestRoom1_EventScript_15F5EC:: @ 815F5EC
- playmusicbattle 396
+ savebgm 396
return
LinkContestRoom1_EventScript_15F5F0:: @ 815F5F0
- playmusicbattle 440
+ savebgm 440
return
LinkContestRoom1_MapScript1_15F5F4:: @ 815F5F4
diff --git a/data/scripts/maps/VerdanturfTown_ContestLobby.inc b/data/scripts/maps/VerdanturfTown_ContestLobby.inc
index 2443b01b0..e3aa13eb2 100644
--- a/data/scripts/maps/VerdanturfTown_ContestLobby.inc
+++ b/data/scripts/maps/VerdanturfTown_ContestLobby.inc
@@ -22,17 +22,17 @@ VerdanturfTown_ContestLobby_EventScript_153DA1:: @ 8153DA1
lockall
move 1, VerdanturfTown_ContestLobby_Movement_153E25
waitmove 0
- playsfx 71
+ playse 71
setmaptile 4, 2, 545, 1
setmaptile 4, 3, 609, 1
special DrawWholeMapView
move 1, VerdanturfTown_ContestLobby_Movement_153E28
waitmove 0
- playsfx 71
+ playse 71
setmaptile 4, 2, 721, 1
setmaptile 4, 3, 729, 1
special DrawWholeMapView
- pause 20
+ delay 20
move 1, VerdanturfTown_ContestLobby_Movement_153E35
waitmove 0
move 255, VerdanturfTown_ContestLobby_Movement_153E23
diff --git a/data/scripts/maps/VerdanturfTown_FriendshipRatersHouse.inc b/data/scripts/maps/VerdanturfTown_FriendshipRatersHouse.inc
index 5453fb42c..0dcad8f62 100644
--- a/data/scripts/maps/VerdanturfTown_FriendshipRatersHouse.inc
+++ b/data/scripts/maps/VerdanturfTown_FriendshipRatersHouse.inc
@@ -5,7 +5,7 @@ VerdanturfTown_FriendshipRatersHouse_EventScript_154030:: @ 8154030
lock
faceplayer
msgbox VerdanturfTown_FriendshipRatersHouse_Text_178A9C, 4
- specialval RESULT, GetLeadMonFriendshipScore
+ specialvar RESULT, GetLeadMonFriendshipScore
switch RESULT
case 0, VerdanturfTown_FriendshipRatersHouse_EventScript_154093
case 1, VerdanturfTown_FriendshipRatersHouse_EventScript_15409D
@@ -55,7 +55,7 @@ VerdanturfTown_FriendshipRatersHouse_EventScript_1540CF:: @ 81540CF
VerdanturfTown_FriendshipRatersHouse_EventScript_1540D9:: @ 81540D9
lock
faceplayer
- checksound
+ waitse
pokecry SPECIES_PIKACHU, 0
msgbox VerdanturfTown_FriendshipRatersHouse_Text_178CFD, 4
waitpokecry
diff --git a/data/scripts/maps/VictoryRoad_1F.inc b/data/scripts/maps/VictoryRoad_1F.inc
index 95b82f46a..78c246eb0 100644
--- a/data/scripts/maps/VictoryRoad_1F.inc
+++ b/data/scripts/maps/VictoryRoad_1F.inc
@@ -93,7 +93,7 @@ VictoryRoad_1F_EventScript_15DF28:: @ 815DF28
VictoryRoad_1F_EventScript_15DF31:: @ 815DF31
trainerbattle 0, OPPONENT_WALLY_3, 0, VictoryRoad_1F_Text_1979BA, VictoryRoad_1F_Text_197A23
- specialval RESULT, sub_8082C68
+ specialvar RESULT, sub_8082C68
compare_var_to_imm RESULT, 1
goto_if_eq VictoryRoad_1F_EventScript_15DF58
msgbox VictoryRoad_1F_Text_197A47, 6
diff --git a/data/scripts/mauville_man.inc b/data/scripts/mauville_man.inc
index 0a74b3c9a..1881bc242 100644
--- a/data/scripts/mauville_man.inc
+++ b/data/scripts/mauville_man.inc
@@ -36,7 +36,7 @@ yes_hear_song:
setvar 0x8004, 0
@ Give the player ear rape
special ScrSpecial_PlayBardSong
- pause 60
+ delay 60
special ScrSpecial_HasBardSongBeenChanged
compare_var_to_imm RESULT, FALSE
@ Prompt new lyrics only if song hasn't been changed
@@ -69,7 +69,7 @@ write_lyrics:
setvar 0x8004, 1
@ Give the player ear rape again
special ScrSpecial_PlayBardSong
- pause 60
+ delay 60
msgbox gTextBard_WasThatHowYouWanted, MSGBOX_YESNO
compare_var_to_imm RESULT, NO
goto_if_eq write_lyrics @ Keep looping until player responds YES
@@ -227,7 +227,7 @@ SpeakToStoryteller:
msgbox gTextStoryteller_Introduction, MSGBOX_YESNO
compare_var_to_imm RESULT, NO
goto_if_eq dont_hear_story
- specialval RESULT, ScrSpecial_StorytellerGetFreeStorySlot
+ specialvar RESULT, ScrSpecial_StorytellerGetFreeStorySlot
compare_var_to_imm RESULT, 0 @ If slot is 0, then the list is empty
goto_if_eq no_stories_recorded
choose_story:
@@ -241,7 +241,7 @@ choose_story:
special ScrSpecial_StorytellerDisplayStory
waittext
waitbutton
- specialval RESULT, ScrSpecial_StorytellerUpdateStat
+ specialvar RESULT, ScrSpecial_StorytellerUpdateStat
compare_var_to_imm RESULT, FALSE
goto_if_eq no_stat_update
goto stat_update
@@ -255,10 +255,10 @@ no_stat_update:
compare_var_to_imm RESULT, YES
goto_if_eq choose_story
yes_hear_story:
- specialval RESULT, ScrSpecial_HasStorytellerAlreadyRecorded
+ specialvar RESULT, ScrSpecial_HasStorytellerAlreadyRecorded
compare_var_to_imm RESULT, TRUE
goto_if_eq cant_record_story @ already recorded story
- specialval RESULT, ScrSpecial_StorytellerGetFreeStorySlot
+ specialvar RESULT, ScrSpecial_StorytellerGetFreeStorySlot
compare_var_to_imm RESULT, 4
goto_if_eq cant_record_story @ story list is full
goto prompt_record_story
@@ -268,7 +268,7 @@ prompt_record_story:
msgbox gTextStoryteller_HaveYouAnyTales, MSGBOX_YESNO
compare_var_to_imm RESULT, NO
goto_if_eq dont_hear_story
- specialval RESULT, ScrSpecial_StorytellerInitializeRandomStat
+ specialvar RESULT, ScrSpecial_StorytellerInitializeRandomStat
compare_var_to_imm RESULT, TRUE
goto_if_eq stat_update
msgbox gTextStoryteller_ImNotSatisfied, 4
diff --git a/data/scripts/mystery_event_club.inc b/data/scripts/mystery_event_club.inc
index 4ed0cef11..ed21a1869 100644
--- a/data/scripts/mystery_event_club.inc
+++ b/data/scripts/mystery_event_club.inc
@@ -46,7 +46,7 @@ PetalburgCity_PokemonCenter_1F_EventScript_1B1BBB:: @ 81B1BBB
setvar 0x8004, 0
special sub_80EB7C4
waittext
- pause 80
+ delay 80
msgbox PetalburgCity_PokemonCenter_1F_Text_1B2137, 4
release
end
diff --git a/data/scripts/players_house.inc b/data/scripts/players_house.inc
index 868873eec..512272e05 100644
--- a/data/scripts/players_house.inc
+++ b/data/scripts/players_house.inc
@@ -63,7 +63,7 @@ LittlerootTown_MaysHouse_2F_EventScript_1B69EB:: @ 81B69EB
goto_if_eq LittlerootTown_BrendansHouse_2F_EventScript_1B6A91
msgbox LittlerootTown_BrendansHouse_2F_Text_172E18, 4
call LittlerootTown_BrendansHouse_2F_EventScript_1B6A9B
- pause 30
+ delay 30
setvar 0x4092, 6
setflag 81
setflag 754
@@ -73,7 +73,7 @@ LittlerootTown_MaysHouse_2F_EventScript_1B69EB:: @ 81B69EB
call_if 1, LittlerootTown_BrendansHouse_2F_EventScript_1B6A31
compare_var_to_imm RESULT, 1
call_if 1, LittlerootTown_BrendansHouse_2F_EventScript_1B6A61
- playsfx 9
+ playse 9
disappear 0x8008
releaseall
end
@@ -160,7 +160,7 @@ LittlerootTown_BrendansHouse_1F_EventScript_1B6ABF:: @ 81B6ABF
call LittlerootTown_BrendansHouse_1F_EventScript_1B6B9D
move 255, LittlerootTown_BrendansHouse_1F_Movement_1B6CCC
waitmove 0
- playmusic 453, 0
+ playbgm 453, 0
msgbox LittlerootTown_BrendansHouse_1F_Text_1725C9, 4
closebutton
move 0x8005, LittlerootTown_BrendansHouse_1F_Movement_1B6BDB
@@ -185,7 +185,7 @@ LittlerootTown_MaysHouse_1F_EventScript_1B6B2E:: @ 81B6B2E
call LittlerootTown_MaysHouse_1F_EventScript_1B6B9D
move 255, LittlerootTown_MaysHouse_1F_Movement_1B6CD4
waitmove 0
- playmusic 453, 0
+ playbgm 453, 0
msgbox LittlerootTown_MaysHouse_1F_Text_1725C9, 4
closebutton
move 0x8005, LittlerootTown_MaysHouse_1F_Movement_1B6BDE
@@ -206,7 +206,7 @@ LittlerootTown_MaysHouse_1F_EventScript_1B6B2E:: @ 81B6B2E
LittlerootTown_BrendansHouse_1F_EventScript_1B6B9D:: @ 81B6B9D
LittlerootTown_MaysHouse_1F_EventScript_1B6B9D:: @ 81B6B9D
- playsfx 21
+ playse 21
move 0x8005, LittlerootTown_BrendansHouse_1F_Movement_1A0833
waitmove 0
move 0x8005, LittlerootTown_BrendansHouse_1F_Movement_1A0835
@@ -220,10 +220,10 @@ LittlerootTown_MaysHouse_1F_EventScript_1B6BBE:: @ 81B6BBE
move 255, LittlerootTown_BrendansHouse_1F_Movement_1A0841
waitmove 0
msgbox LittlerootTown_BrendansHouse_1F_Text_172841, 4
- fadedefault
+ fadedefaultbgm
special TurnOffTVScreen
setflag 2096
- pause 35
+ delay 35
return
LittlerootTown_BrendansHouse_1F_Movement_1B6BDB:: @ 81B6BDB
@@ -312,7 +312,7 @@ LittlerootTown_BrendansHouse_1F_EventScript_1B6CA6:: @ 81B6CA6
LittlerootTown_MaysHouse_1F_EventScript_1B6CA6:: @ 81B6CA6
lock
faceplayer
- checksound
+ waitse
pokecry SPECIES_MACHOKE, 0
msgbox LittlerootTown_BrendansHouse_1F_Text_17281D, 4
waitpokecry
@@ -323,7 +323,7 @@ LittlerootTown_BrendansHouse_1F_EventScript_1B6CB9:: @ 81B6CB9
LittlerootTown_MaysHouse_1F_EventScript_1B6CB9:: @ 81B6CB9
lock
faceplayer
- checksound
+ waitse
pokecry SPECIES_MACHOKE, 0
msgbox LittlerootTown_BrendansHouse_1F_Text_172831, 4
waitpokecry
@@ -372,12 +372,12 @@ LittlerootTown_MaysHouse_1F_EventScript_1B6CDE:: @ 81B6CDE
call_if 1, LittlerootTown_BrendansHouse_1F_EventScript_1B6E28
move 0x8009, LittlerootTown_BrendansHouse_1F_Movement_1A0839
waitmove 0
- playsfx 21
+ playse 21
move 0x8009, LittlerootTown_BrendansHouse_1F_Movement_1A0833
waitmove 0
move 0x8009, LittlerootTown_BrendansHouse_1F_Movement_1A0835
waitmove 0
- pause 20
+ delay 20
compare_var_to_imm 0x8008, 0
call_if 1, LittlerootTown_BrendansHouse_1F_EventScript_1B6DCD
compare_var_to_imm 0x8008, 1
@@ -396,7 +396,7 @@ LittlerootTown_MaysHouse_1F_EventScript_1B6CDE:: @ 81B6CDE
call_if 1, LittlerootTown_BrendansHouse_1F_EventScript_1B6DF9
compare_var_to_imm 0x8008, 1
call_if 1, LittlerootTown_BrendansHouse_1F_EventScript_1B6E0B
- playsfx 8
+ playse 8
disappear 0x8009
setflag 291
setvar 0x4082, 4
diff --git a/data/scripts/pokeblocks.inc b/data/scripts/pokeblocks.inc
index 8badf3aab..61a484b4c 100644
--- a/data/scripts/pokeblocks.inc
+++ b/data/scripts/pokeblocks.inc
@@ -49,11 +49,11 @@ FallarborTown_ContestLobby_EventScript_1B76A1:: @ 81B76A1
checkitem ITEM_POKEBLOCK_CASE, 1
compare_var_to_imm RESULT, 0
goto_if_eq FallarborTown_ContestLobby_EventScript_1B7780
- specialval RESULT, PlayerHasBerries
+ specialvar RESULT, PlayerHasBerries
compare_var_to_imm RESULT, 0
goto_if_eq FallarborTown_ContestLobby_EventScript_1B770E
msgbox FallarborTown_ContestLobby_Text_1B6E9D, 4
- specialval RESULT, sub_810CA00
+ specialvar RESULT, sub_810CA00
compare_var_to_imm RESULT, 65535
goto_if 5, FallarborTown_ContestLobby_EventScript_1B76EF
compare_var_to_imm RESULT, 65535
@@ -75,7 +75,7 @@ FallarborTown_ContestLobby_EventScript_1B76EF:: @ 81B76EF
FallarborTown_ContestLobby_EventScript_1B770E:: @ 81B770E
msgbox FallarborTown_ContestLobby_Text_1B6FF0, 4
- checkdailyflags
+ dodailyevents
checkflag 2241
goto_if_eq FallarborTown_ContestLobby_EventScript_1B774F
goto FallarborTown_ContestLobby_EventScript_1B7759
@@ -148,7 +148,7 @@ VerdanturfTown_ContestLobby_EventScript_1B77B6:: @ 81B77B6
lock
faceplayer
msgbox FallarborTown_ContestLobby_Text_1B742F, 4
- specialval RESULT, PlayerHasBerries
+ specialvar RESULT, PlayerHasBerries
compare_var_to_imm RESULT, 1
goto_if_eq FallarborTown_ContestLobby_EventScript_1B77DC
compare_var_to_imm RESULT, 0
@@ -161,7 +161,7 @@ FallarborTown_ContestLobby_EventScript_1B77DC:: @ 81B77DC
end
FallarborTown_ContestLobby_EventScript_1B77E6:: @ 81B77E6
- checkdailyflags
+ dodailyevents
checkflag 2241
goto_if_eq FallarborTown_ContestLobby_EventScript_1B77F6
goto FallarborTown_ContestLobby_EventScript_1B7800
@@ -208,13 +208,13 @@ LilycoveCity_ContestLobby_EventScript_1B783B:: @ 81B783B
SlateportCity_ContestLobby_EventScript_1B783B:: @ 81B783B
VerdanturfTown_ContestLobby_EventScript_1B783B:: @ 81B783B
lockall
- specialval RESULT, PlayerHasBerries
+ specialvar RESULT, PlayerHasBerries
compare_var_to_imm RESULT, 0
goto_if_eq FallarborTown_ContestLobby_EventScript_1B7897
checkitem ITEM_POKEBLOCK_CASE, 1
compare_var_to_imm RESULT, 0
goto_if_eq FallarborTown_ContestLobby_EventScript_1B7942
- specialval RESULT, sub_810CA00
+ specialvar RESULT, sub_810CA00
compare_var_to_imm RESULT, 65535
goto_if 5, FallarborTown_ContestLobby_EventScript_1B7878
compare_var_to_imm RESULT, 65535
@@ -321,7 +321,7 @@ FallarborTown_ContestLobby_EventScript_1B7973:: @ 81B7973
FallarborTown_ContestLobby_EventScript_1B7980:: @ 81B7980
fadescreen 1
- specialval RESULT, GetLinkPartnerNames
+ specialvar RESULT, GetLinkPartnerNames
copyvar 0x8008, RESULT
copyvar 0x8004, 0x8008
special SpawnBerryBlenderLinkPlayerSprites
diff --git a/data/scripts/safari_zone.inc b/data/scripts/safari_zone.inc
index 97572220d..01fdf3c03 100644
--- a/data/scripts/safari_zone.inc
+++ b/data/scripts/safari_zone.inc
@@ -1,7 +1,7 @@
gUnknown_081C340A:: @ 81C340A
setvar 0x40a4, 1
special ExitSafariMode
- warp3 Route121_SafariZoneEntrance, 255, 2, 5
+ setwarp Route121_SafariZoneEntrance, 255, 2, 5
end
EventScript_1C341B: @ 81C341B
@@ -24,7 +24,7 @@ EventScript_1C3443:
gUnknown_081C3448:: @ 81C3448
lockall
- playsfx 73
+ playse 73
message UnknownString_81C34E4
waittext
waitbutton
@@ -33,7 +33,7 @@ gUnknown_081C3448:: @ 81C3448
gUnknown_081C3459:: @ 81C3459
lockall
- playsfx 73
+ playse 73
message UnknownString_81C3514
waittext
waitbutton
diff --git a/data/scripts/tv.inc b/data/scripts/tv.inc
index 9b8dafa9b..a2348315f 100644
--- a/data/scripts/tv.inc
+++ b/data/scripts/tv.inc
@@ -2,7 +2,7 @@ Event_TV:: @ 81A6E72
lockall
inccounter GAME_STAT_WATCHED_TV
special sub_80C2014
- specialval RESULT, CheckForBigMovieOrEmergencyNewsOnTV
+ specialvar RESULT, CheckForBigMovieOrEmergencyNewsOnTV
compare_var_to_imm RESULT, 2
goto_if_eq EventScript_1A6F01
compare_var_to_imm RESULT, 1
@@ -11,21 +11,21 @@ Event_TV:: @ 81A6E72
goto_if 0, EventScript_1A6EF1
checkflag 2097
goto_if_eq EventScript_1A6EF1
- specialval RESULT, IsTVShowInSearchOfTrainersAiring
+ specialvar RESULT, IsTVShowInSearchOfTrainersAiring
compare_var_to_imm RESULT, 1
goto_if_eq EventScript_1A6F66
goto EventScript_1A6F50
end
EventScript_1A6EBB:
- specialval 0x8004, special_0x44
+ specialvar 0x8004, special_0x44
compare_var_to_imm 0x8004, 255
goto_if_eq EventScript_1A6F3F
- specialval RESULT, special_0x4a
+ specialvar RESULT, special_0x4a
compare_var_to_imm RESULT, 255
goto_if_eq EventScript_1A6F3F
copyvar 0x8004, RESULT
- specialval RESULT, sub_80BDA0C
+ specialvar RESULT, sub_80BDA0C
compare_var_to_imm RESULT, 0
goto_if 5, EventScript_1A6F21
end