summaryrefslogtreecommitdiff
path: root/data/event_scripts.s
diff options
context:
space:
mode:
Diffstat (limited to 'data/event_scripts.s')
-rw-r--r--data/event_scripts.s189
1 files changed, 95 insertions, 94 deletions
diff --git a/data/event_scripts.s b/data/event_scripts.s
index 7d59b5234..1ed419b52 100644
--- a/data/event_scripts.s
+++ b/data/event_scripts.s
@@ -8,6 +8,7 @@
#include "constants/opponents.h"
#include "constants/songs.h"
#include "constants/species.h"
+#include "constants/weather.h"
#include "constants/vars.h"
.include "asm/macros.inc"
.include "asm/macros/event.inc"
@@ -396,13 +397,13 @@ gStdScripts_End::
gUnknown_0815F36C:: @ 815F36C
lockall
- playse 2
+ playse SE_PC_LOGON
message UnknownString_81A3A72
dofieldeffect 61
waitstate
waitmessage
waitbuttonpress
- playse 5
+ playse SE_SELECT
goto EventScript_15F384
end
@@ -439,8 +440,8 @@ EventScript_15F3E2:
end
EventScript_15F419:
- msgbox UnknownString_81A38FB, 5
- compare RESULT, 0
+ msgbox UnknownString_81A38FB, MSGBOX_YESNO
+ compare RESULT, NO
goto_if_eq EventScript_15F384
closemessage
special SecretBasePC_PackUp
@@ -458,12 +459,12 @@ EventScript_15F436:
gUnknown_0815F43A:: @ 815F43A
lockall
message UnknownString_81A3A72
- playse 2
+ playse SE_PC_LOGON
dofieldeffect 61
waitstate
waitmessage
waitbuttonpress
- playse 5
+ playse SE_SELECT
goto EventScript_15F452
end
@@ -491,8 +492,8 @@ EventScript_15F4A1:
compare RESULT, 2
goto_if_eq EventScript_15F503
special BufferSecretBaseOwnerName
- msgbox UnknownString_81A3958, 5
- compare RESULT, 0
+ msgbox UnknownString_81A3958, MSGBOX_YESNO
+ compare RESULT, NO
goto_if_eq EventScript_15F452
msgbox UnknownString_81A3A22, 3
special sub_80BC5BC
@@ -501,8 +502,8 @@ EventScript_15F4A1:
end
EventScript_15F4E0:
- msgbox UnknownString_81A3982, 5
- compare RESULT, 0
+ msgbox UnknownString_81A3982, MSGBOX_YESNO
+ compare RESULT, NO
goto_if_eq EventScript_15F452
msgbox UnknownString_81A3A3A, 3
special sub_80BC5BC
@@ -1443,9 +1444,9 @@ VerdanturfTown_PokemonCenter_1F_EventScript_19FD5B:: @ 819FD5B
lock
faceplayer
msgbox gText_NurseJoy_Welcome, MSGBOX_YESNO
- compare RESULT, 1
+ compare RESULT, YES
goto_if_eq do_heal_party
- compare RESULT, 0
+ compare RESULT, NO
goto_if_eq dont_heal_party
end
@@ -1566,11 +1567,11 @@ Std_ObtainItem_Fail: @ 819FECC
return
PlayGetItemFanfare:
- playfanfare 0x172
+ playfanfare BGM_FANFA4
return
PlayGetTMHMFanfare:
- playfanfare 0x174
+ playfanfare BGM_ME_WAZA
return
Std_ObtainDecoration: @ 819FEDA
@@ -1588,7 +1589,7 @@ Std_ObtainDecoration_: @ 819FEE8
return
Std_ObtainDecoration_Success: @ 819FF03
- playfanfare 0x172
+ playfanfare BGM_FANFA4
message Message_ObtainedDecoration
waitfanfare
waitmessage
@@ -1663,10 +1664,10 @@ HiddenItemScript_Fail:
UnusedMixRecordsScript: @ 819FFD5
lock
faceplayer
- msgbox UnusedMixRecordsPromptText, 5
- compare RESULT, 1
+ msgbox UnusedMixRecordsPromptText, MSGBOX_YESNO
+ compare RESULT, YES
goto_if_eq UnusedMixRecordsScript_Yes
- compare RESULT, 0
+ compare RESULT, NO
goto_if_eq UnusedMixRecordsScript_Done
goto UnusedMixRecordsScript_Done
UnusedMixRecordsScript_Yes: @ 819FFFA
@@ -1685,7 +1686,7 @@ gUnknown_081A0009:: @ 81A0009
lockall
setvar VAR_SPECIAL_4, 0
special DoPCTurnOnEffect
- playse 4
+ playse SE_PC_ON
msgbox UnknownString_81A09EC, 4
goto EventScript_1A0023
end
@@ -1708,7 +1709,7 @@ EventScript_1A0033:
end
EventScript_1A0070:
- playse 2
+ playse SE_PC_LOGON
msgbox UnknownString_81A0A54, 4
special PlayerPC
waitstate
@@ -1716,7 +1717,7 @@ EventScript_1A0070:
end
EventScript_1A0085:
- playse 2
+ playse SE_PC_LOGON
checkflag FLAG_SYS_PC_LANETTE
call_if 0, EventScript_1A00AC
checkflag FLAG_SYS_PC_LANETTE
@@ -1737,7 +1738,7 @@ EventScript_1A00B5:
EventScript_1A00BE:
setvar VAR_SPECIAL_4, 0
- playse 3
+ playse SE_PC_OFF
special DoPCTurnOffEffect
releaseall
end
@@ -1745,7 +1746,7 @@ EventScript_1A00BE:
EventScript_1A00CB:
checkflag FLAG_SYS_GAME_CLEAR
goto_if 0, EventScript_1A00BE
- playse 2
+ playse SE_PC_LOGON
special AccessHallOfFamePC
waitstate
goto EventScript_1A0033
@@ -1826,8 +1827,8 @@ UseSurfScript:: @ 81A0117
bufferpartymonnick 0, RESULT
setfieldeffectargument 0, RESULT
lockall
- msgbox UseSurfPromptText, 5
- compare RESULT, 0
+ msgbox UseSurfPromptText, MSGBOX_YESNO
+ compare RESULT, NO
goto_if_eq UseSurfScript_No
msgbox UsedSurfText, 4
dofieldeffect 9
@@ -2090,9 +2091,9 @@ Route127_EventScript_1A02C1:: @ 81A02C1
Route128_EventScript_1A02C1:: @ 81A02C1
SootopolisCity_EventScript_1A02C1:: @ 81A02C1
.ifdef SAPPHIRE
- setweather 13
+ setweather WEATHER_RAIN_HEAVY
.else
- setweather 12
+ setweather WEATHER_DROUGHT
.endif
return
@@ -2105,7 +2106,7 @@ MossdeepCity_Gym_EventScript_1A02C5:: @ 81A02C5
PetalburgCity_Gym_EventScript_1A02C5:: @ 81A02C5
RustboroCity_Gym_EventScript_1A02C5:: @ 81A02C5
SootopolisCity_Gym_1F_EventScript_1A02C5:: @ 81A02C5
- playfanfare 369
+ playfanfare BGM_ME_BACHI
waitfanfare
return
@@ -2114,7 +2115,7 @@ Route111_OldLadysRestStop_EventScript_1A02CA:: @ 81A02CA
Route119_WeatherInstitute_1F_EventScript_1A02CA:: @ 81A02CA
SSTidalRooms_EventScript_1A02CA:: @ 81A02CA
fadescreen 1
- playfanfare 368
+ playfanfare BGM_ME_ASA
waitfanfare
special ScrSpecial_HealPlayerParty
fadescreen 0
@@ -2133,7 +2134,7 @@ DewfordTown_EventScript_1A02E7:: @ 81A02E7
Route104_EventScript_1A02E7:: @ 81A02E7
Route109_EventScript_1A02E7:: @ 81A02E7
setflag FLAG_SPECIAL_FLAG_1
- playbgm 431, 0
+ playbgm BGM_M_BOAT, FALSE
return
DewfordTown_EventScript_1A02EF:: @ 81A02EF
@@ -2192,8 +2193,8 @@ Route101_EventScript_1A037F:: @ 81A037F
Route103_EventScript_1A037F:: @ 81A037F
lock
faceplayer
- msgbox Route101_Text_1C4449, 5
- compare RESULT, 0
+ msgbox Route101_Text_1C4449, MSGBOX_YESNO
+ compare RESULT, NO
goto_if_eq Route101_EventScript_1A039B
call Route101_EventScript_1A03B0
release
@@ -2441,8 +2442,8 @@ Route120_EventScript_1A0594:: @ 81A0594
end
Route119_EventScript_1A05AE:: @ 81A05AE
- msgbox Route119_Text_171BB6, 5
- compare RESULT, 1
+ msgbox Route119_Text_171BB6, MSGBOX_YESNO
+ compare RESULT, YES
goto_if_eq Route119_EventScript_1A05C3
release
end
@@ -2547,7 +2548,7 @@ GraniteCave_StevensRoom_EventScript_1A067F:: @ 81A067F
MtPyre_Summit_EventScript_1A067F:: @ 81A067F
SlateportCity_OceanicMuseum_2F_EventScript_1A067F:: @ 81A067F
bufferitemname 0, VAR_SPECIAL_4
- playfanfare 372
+ playfanfare BGM_ME_WAZA
message FallarborTown_House1_Text_1A1498
waitmessage
waitfanfare
@@ -2560,7 +2561,7 @@ EverGrandeCity_PhoebesRoom_EventScript_1A0693:: @ 81A0693
EverGrandeCity_SidneysRoom_EventScript_1A0693:: @ 81A0693
applymovement 255, EverGrandeCity_SidneysRoom_Movement_1A0853
waitmovement 0
- playse 8
+ playse SE_DOOR
setmetatile 6, 1, 836, 0
setmetatile 6, 2, 837, 0
setmetatile 0, 2, 734, 1
@@ -2582,7 +2583,7 @@ EverGrandeCity_PhoebesRoom_EventScript_1A0710:: @ 81A0710
EverGrandeCity_SidneysRoom_EventScript_1A0710:: @ 81A0710
applymovement 255, EverGrandeCity_SidneysRoom_Movement_1A0847
waitmovement 0
- playse 52
+ playse SE_TRACK_DOOR
setmetatile 5, 12, 518, 1
setmetatile 6, 12, 518, 1
setmetatile 7, 12, 518, 1
@@ -3631,8 +3632,8 @@ EventScript_1A2CB0:
compare RESULT, 6
goto_if_eq EventScript_1A2CF1
bufferpartymonnick 0, RESULT
- msgbox UnknownString_8198F34, 5
- compare RESULT, 0
+ msgbox UnknownString_8198F34, MSGBOX_YESNO
+ compare RESULT, NO
goto_if_eq EventScript_1A2F3A
msgbox UsedCutRockSmashText, 4
closemessage
@@ -3662,8 +3663,8 @@ EventScript_1A2D08:
compare RESULT, 6
goto_if_eq EventScript_1A2D49
bufferpartymonnick 0, RESULT
- msgbox UnknownString_81A197B, 5
- compare RESULT, 0
+ msgbox UnknownString_81A197B, MSGBOX_YESNO
+ compare RESULT, NO
goto_if_eq EventScript_1A2F3A
msgbox UsedCutRockSmashText, 4
closemessage
@@ -3693,8 +3694,8 @@ EventScript_1A2D60:
compare RESULT, 6
goto_if_eq EventScript_1A2DA1
bufferpartymonnick 0, RESULT
- msgbox UnknownString_81A1A4B, 5
- compare RESULT, 0
+ msgbox UnknownString_81A1A4B, MSGBOX_YESNO
+ compare RESULT, NO
goto_if_eq EventScript_1A2F3A
msgbox UsedCutRockSmashText, 4
closemessage
@@ -3721,7 +3722,7 @@ EventScript_1A2DAA:
EventScript_1A2DB8:
closemessage
- playse 9
+ playse SE_KAIDAN
setvar VAR_0x4097, 0
setflag FLAG_DECORATION_1
special sub_80BB8CC
@@ -3737,11 +3738,11 @@ SecretBase_RedCave1_EventScript_1A2DDE:: @ 81A2DDE
applymovement 255, SecretBase_RedCave1_Movement_1A2E11
waitmovement 0
setvar VAR_0x4097, 1
- msgbox SecretBase_RedCave1_Text_198F89, 5
- compare RESULT, 1
+ msgbox SecretBase_RedCave1_Text_198F89, MSGBOX_YESNO
+ compare RESULT, YES
goto_if_eq SecretBase_RedCave1_EventScript_1A2E08
closemessage
- playse 9
+ playse SE_KAIDAN
special sub_80BC440
end
@@ -3760,7 +3761,7 @@ SecretBase_RedCave1_Movement_1A2E11:: @ 81A2E11
gUnknown_081A2E14:: @ 81A2E14
lockall
setvar VAR_0x4097, 1
- playse 9
+ playse SE_KAIDAN
special sub_80BC114
compare RESULT, 0
goto_if_eq EventScript_1A2E38
@@ -3785,18 +3786,18 @@ EventScript_1A2E45:
setorcopyvar VAR_SPECIAL_4, RESULT
lockall
special GetSecretBaseNearbyMapName
- msgbox UnknownString_81A3C71, 5
- compare RESULT, 0
+ msgbox UnknownString_81A3C71, MSGBOX_YESNO
+ compare RESULT, NO
goto_if_eq EventScript_1A2F3A
- msgbox UnknownString_81A38FB, 5
- compare RESULT, 0
+ msgbox UnknownString_81A38FB, MSGBOX_YESNO
+ compare RESULT, NO
goto_if_eq EventScript_1A2F3A
fadescreen 1
special MoveSecretBase
closemessage
fadescreen 0
- msgbox UnknownString_81A3CC9, 5
- compare RESULT, 0
+ msgbox UnknownString_81A3CC9, MSGBOX_YESNO
+ compare RESULT, NO
goto_if_eq EventScript_1A2F3A
bufferpartymonnick 0, VAR_SPECIAL_4
buffermovename 1, MOVE_SECRET_POWER
@@ -3949,8 +3950,8 @@ SecretBase_RedCave1_EventScript_1A3032:: @ 81A3032
goto_if_eq SecretBase_RedCave1_EventScript_1A30A5
lock
faceplayer
- msgbox SecretBase_RedCave1_Text_1A1AEA, 5
- compare RESULT, 0
+ msgbox SecretBase_RedCave1_Text_1A1AEA, MSGBOX_YESNO
+ compare RESULT, NO
goto_if_eq SecretBase_RedCave1_EventScript_1A308F
setvar RESULT, 1
special sub_80BCE4C
@@ -3984,8 +3985,8 @@ SecretBase_RedCave1_EventScript_1A30AE:: @ 81A30AE
goto_if_eq SecretBase_RedCave1_EventScript_1A3121
lock
faceplayer
- msgbox SecretBase_RedCave1_Text_1A1E67, 5
- compare RESULT, 0
+ msgbox SecretBase_RedCave1_Text_1A1E67, MSGBOX_YESNO
+ compare RESULT, NO
goto_if_eq SecretBase_RedCave1_EventScript_1A310B
setvar RESULT, 1
special sub_80BCE4C
@@ -4019,8 +4020,8 @@ SecretBase_RedCave1_EventScript_1A312A:: @ 81A312A
goto_if_eq SecretBase_RedCave1_EventScript_1A319D
lock
faceplayer
- msgbox SecretBase_RedCave1_Text_1A218F, 5
- compare RESULT, 0
+ msgbox SecretBase_RedCave1_Text_1A218F, MSGBOX_YESNO
+ compare RESULT, NO
goto_if_eq SecretBase_RedCave1_EventScript_1A3187
setvar RESULT, 1
special sub_80BCE4C
@@ -4054,8 +4055,8 @@ SecretBase_RedCave1_EventScript_1A31A6:: @ 81A31A6
goto_if_eq SecretBase_RedCave1_EventScript_1A3219
lock
faceplayer
- msgbox SecretBase_RedCave1_Text_1A24E1, 5
- compare RESULT, 0
+ msgbox SecretBase_RedCave1_Text_1A24E1, MSGBOX_YESNO
+ compare RESULT, NO
goto_if_eq SecretBase_RedCave1_EventScript_1A3203
setvar RESULT, 1
special sub_80BCE4C
@@ -4089,8 +4090,8 @@ SecretBase_RedCave1_EventScript_1A3222:: @ 81A3222
goto_if_eq SecretBase_RedCave1_EventScript_1A3295
lock
faceplayer
- msgbox SecretBase_RedCave1_Text_1A2830, 5
- compare RESULT, 0
+ msgbox SecretBase_RedCave1_Text_1A2830, MSGBOX_YESNO
+ compare RESULT, NO
goto_if_eq SecretBase_RedCave1_EventScript_1A327F
setvar RESULT, 1
special sub_80BCE4C
@@ -4124,8 +4125,8 @@ SecretBase_RedCave1_EventScript_1A329E:: @ 81A329E
goto_if_eq SecretBase_RedCave1_EventScript_1A3311
lock
faceplayer
- msgbox SecretBase_RedCave1_Text_1A1CB2, 5
- compare RESULT, 0
+ msgbox SecretBase_RedCave1_Text_1A1CB2, MSGBOX_YESNO
+ compare RESULT, NO
goto_if_eq SecretBase_RedCave1_EventScript_1A32FB
setvar RESULT, 1
special sub_80BCE4C
@@ -4159,8 +4160,8 @@ SecretBase_RedCave1_EventScript_1A331A:: @ 81A331A
goto_if_eq SecretBase_RedCave1_EventScript_1A338D
lock
faceplayer
- msgbox SecretBase_RedCave1_Text_1A2026, 5
- compare RESULT, 0
+ msgbox SecretBase_RedCave1_Text_1A2026, MSGBOX_YESNO
+ compare RESULT, NO
goto_if_eq SecretBase_RedCave1_EventScript_1A3377
setvar RESULT, 1
special sub_80BCE4C
@@ -4194,8 +4195,8 @@ SecretBase_RedCave1_EventScript_1A3396:: @ 81A3396
goto_if_eq SecretBase_RedCave1_EventScript_1A3409
lock
faceplayer
- msgbox SecretBase_RedCave1_Text_1A236A, 5
- compare RESULT, 0
+ msgbox SecretBase_RedCave1_Text_1A236A, MSGBOX_YESNO
+ compare RESULT, NO
goto_if_eq SecretBase_RedCave1_EventScript_1A33F3
setvar RESULT, 1
special sub_80BCE4C
@@ -4229,8 +4230,8 @@ SecretBase_RedCave1_EventScript_1A3412:: @ 81A3412
goto_if_eq SecretBase_RedCave1_EventScript_1A3485
lock
faceplayer
- msgbox SecretBase_RedCave1_Text_1A2663, 5
- compare RESULT, 0
+ msgbox SecretBase_RedCave1_Text_1A2663, MSGBOX_YESNO
+ compare RESULT, NO
goto_if_eq SecretBase_RedCave1_EventScript_1A346F
setvar RESULT, 1
special sub_80BCE4C
@@ -4264,8 +4265,8 @@ SecretBase_RedCave1_EventScript_1A348E:: @ 81A348E
goto_if_eq SecretBase_RedCave1_EventScript_1A3501
lock
faceplayer
- msgbox SecretBase_RedCave1_Text_1A2A13, 5
- compare RESULT, 0
+ msgbox SecretBase_RedCave1_Text_1A2A13, MSGBOX_YESNO
+ compare RESULT, NO
goto_if_eq SecretBase_RedCave1_EventScript_1A34EB
setvar RESULT, 1
special sub_80BCE4C
@@ -4394,10 +4395,10 @@ SlateportCity_PokemonFanClub_EventScript_1ADE4D:: @ 81ADE4D
compare RESULT, 1
goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADED6
copyvar VAR_SPECIAL_9, VAR_SPECIAL_6
- msgbox SlateportCity_PokemonFanClub_Text_1A8704, 5
- compare RESULT, 1
+ msgbox SlateportCity_PokemonFanClub_Text_1A8704, MSGBOX_YESNO
+ compare RESULT, YES
goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADE84
- compare RESULT, 0
+ compare RESULT, NO
goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADEB9
end
@@ -4442,18 +4443,18 @@ SlateportCity_OceanicMuseum_1F_EventScript_1ADEE0:: @ 81ADEE0
checkflag FLAG_OCEANIC_MUSEUM_MET_REPORTER
goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF25
setflag FLAG_OCEANIC_MUSEUM_MET_REPORTER
- msgbox SlateportCity_OceanicMuseum_1F_Text_1A927F, 5
- compare RESULT, 1
+ msgbox SlateportCity_OceanicMuseum_1F_Text_1A927F, MSGBOX_YESNO
+ compare RESULT, YES
goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF44
- compare RESULT, 0
+ compare RESULT, NO
goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF79
end
SlateportCity_OceanicMuseum_1F_EventScript_1ADF25:: @ 81ADF25
- msgbox SlateportCity_OceanicMuseum_1F_Text_1A934C, 5
- compare RESULT, 1
+ msgbox SlateportCity_OceanicMuseum_1F_Text_1A934C, MSGBOX_YESNO
+ compare RESULT, YES
goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF44
- compare RESULT, 0
+ compare RESULT, NO
goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF79
end
@@ -4498,10 +4499,10 @@ SlateportCity_PokemonFanClub_EventScript_1ADFA0:: @ 81ADFA0
compare RESULT, 1
goto_if_eq SlateportCity_PokemonFanClub_EventScript_1AE0AC
copyvar VAR_SPECIAL_9, VAR_SPECIAL_6
- msgbox SlateportCity_PokemonFanClub_Text_1A82F1, 5
- compare RESULT, 1
+ msgbox SlateportCity_PokemonFanClub_Text_1A82F1, MSGBOX_YESNO
+ compare RESULT, YES
goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADFE9
- compare RESULT, 0
+ compare RESULT, NO
goto_if_eq SlateportCity_PokemonFanClub_EventScript_1AE0A2
end
@@ -4575,10 +4576,10 @@ VerdanturfTown_ContestLobby_EventScript_1AE0B6:: @ 81AE0B6
compare RESULT, 1
goto_if_eq FallarborTown_ContestLobby_EventScript_1AE17E
copyvar VAR_SPECIAL_9, VAR_SPECIAL_6
- msgbox FallarborTown_ContestLobby_Text_1A6F7C, 5
- compare RESULT, 1
+ msgbox FallarborTown_ContestLobby_Text_1A6F7C, MSGBOX_YESNO
+ compare RESULT, YES
goto_if_eq FallarborTown_ContestLobby_EventScript_1AE0F8
- compare RESULT, 0
+ compare RESULT, NO
goto_if_eq FallarborTown_ContestLobby_EventScript_1AE12D
end
@@ -4672,10 +4673,10 @@ BattleTower_Lobby_EventScript_1AE1FF:: @ 81AE1FF
compare RESULT, 1
goto_if_eq BattleTower_Lobby_EventScript_1AE2E3
copyvar VAR_SPECIAL_9, VAR_SPECIAL_6
- msgbox BattleTower_Lobby_Text_1A776D, 5
- compare RESULT, 1
+ msgbox BattleTower_Lobby_Text_1A776D, MSGBOX_YESNO
+ compare RESULT, YES
goto_if_eq BattleTower_Lobby_EventScript_1AE241
- compare RESULT, 0
+ compare RESULT, NO
goto_if_eq BattleTower_Lobby_EventScript_1AE297
end
@@ -4883,7 +4884,7 @@ S_FallDownHole:: @ 81C6BC5
delay 20
applymovement 255, GraniteCave_B1F_Movement_1C6BF7
waitmovement 0
- playse 43
+ playse SE_RU_HYUU
delay 60
warphole MAP_UNDEFINED
waitstate
@@ -4894,7 +4895,7 @@ gUnknown_081C6BDE:: @ 81C6BDE
delay 20
applymovement 255, GraniteCave_B1F_Movement_1C6BF7
waitmovement 0
- playse 43
+ playse SE_RU_HYUU
delay 60
special sp13F_fall_to_last_warp
waitstate