From 1ae38be0a46d1d901a2d9e5bb22938a0cecf6b7f Mon Sep 17 00:00:00 2001 From: camthesaxman Date: Thu, 24 Aug 2017 15:19:55 -0500 Subject: do some renaming and reorganizing --- data/event_scripts.s | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index d6702745a..33bb39308 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -4744,16 +4744,7 @@ BattleTower_Lobby_EventScript_1AE30F:: @ 81AE30F .include "data/scripts/gabby_and_ty.inc" - .include "data/scripts/bard.inc" - .include "data/scripts/hipster.inc" - .include "data/text/trader.inc" - .include "data/scripts/trader.inc" - .include "data/text/storyteller.inc" - .include "data/scripts/storyteller.inc" - .include "data/text/giddy.inc" - .include "data/scripts/giddy.inc" - .include "data/text/bard.inc" - .include "data/text/hipster.inc" + .include "data/scripts/mauville_man.inc" .include "data/field_move_scripts.inc" .include "data/item_ball_scripts.inc" -- cgit v1.2.3 From 95f856c39e81e2b723065e757b4dcf577441c558 Mon Sep 17 00:00:00 2001 From: camthesaxman Date: Sat, 9 Sep 2017 18:17:09 -0500 Subject: more script_menu refactoring --- data/event_scripts.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 33bb39308..6a95dd4a1 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -1688,7 +1688,7 @@ gUnknown_081A0009:: @ 81A0009 EventScript_1A0023: message gPCText_WhichPCShouldBeAccessed waittext - special TryCreatePCMenu + special ScriptMenu_TryCreatePCMenu waitstate jump EventScript_1A0033 end -- cgit v1.2.3 From 7309b13cb34400e0256c09fd54664a3f918b4e3d Mon Sep 17 00:00:00 2001 From: camthesaxman Date: Sat, 9 Sep 2017 19:29:05 -0500 Subject: fix German build --- data/event_scripts.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 6a95dd4a1..5e2763653 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -1688,7 +1688,7 @@ gUnknown_081A0009:: @ 81A0009 EventScript_1A0023: message gPCText_WhichPCShouldBeAccessed waittext - special ScriptMenu_TryCreatePCMenu + special ScrSpecial_CreatePCMenu waitstate jump EventScript_1A0033 end -- cgit v1.2.3 From df71c1a803e49b93dfb19cdac6cf71621d82d89a Mon Sep 17 00:00:00 2001 From: camthesaxman Date: Sun, 10 Sep 2017 12:34:41 -0500 Subject: lots more renaming --- data/event_scripts.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 5e2763653..80f3cd40a 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -1040,7 +1040,7 @@ EventScript_19F8F2: waittext waitbutton reptrainerbattle - specialval RESULT, sub_8082558 + specialval RESULT, ScrSpecial_GetTrainerBattleMode compare RESULT, 0 jumpeq EventScript_19F934 compare RESULT, 2 -- cgit v1.2.3 From 6f9ad223a51eab0a2d39296c963486689392d0b5 Mon Sep 17 00:00:00 2001 From: camthesaxman Date: Sun, 10 Sep 2017 16:21:30 -0500 Subject: stuff --- data/event_scripts.s | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 80f3cd40a..2d0b1b4fe 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -931,7 +931,7 @@ SecretBase_RedCave1_EventScript_19F806:: @ 819F806 gUnknown_0819F80B:: @ 819F80B lock special PlayTrainerEncounterMusic - special sub_80847C8 + special ScrSpecial_EndTrainerApproach waitstate jump EventScript_19F8F2 @@ -940,7 +940,7 @@ gUnknown_0819F818:: @ 819F818 faceplayer move LAST_TALKED, Movement_19F8F0 waitmove 0 - specialval RESULT, sub_8082564 + specialval RESULT, ScrSpecial_HasTrainerBeenFought compare RESULT, 0 jumpif 5, EventScript_19F83F special PlayTrainerEncounterMusic @@ -954,7 +954,7 @@ gUnknown_0819F840:: @ 819F840 lock faceplayer call EventScript_19F8E5 - specialval RESULT, sub_8082564 + specialval RESULT, ScrSpecial_HasTrainerBeenFought compare RESULT, 0 jumpif 5, EventScript_19F877 special CheckForAlivePartyMons @@ -965,7 +965,7 @@ gUnknown_0819F840:: @ 819F840 jump EventScript_19F8F2 EventScript_19F870: - special sub_8082718 + special ScrSpecial_ShowTrainerNonBattlingSpeech waittext waitbutton release @@ -983,15 +983,15 @@ gUnknown_0819F878:: @ 819F878 gUnknown_0819F887:: @ 819F887 call EventScript_19F8E5 - specialval RESULT, sub_8082C9C + specialval RESULT, ScrSpecial_GetTrainerEyeRematchFlag compare RESULT, 0 jumpeq EventScript_19F8AD special PlayTrainerEncounterMusic special sub_8082524 - special sub_80826D8 + special ScrSpecial_ShowTrainerIntroSpeech waittext waitbutton - special sub_80826B0 + special ScrSpecial_StartTrainerEyeRematch waitstate releaseall end @@ -1000,7 +1000,7 @@ EventScript_19F8AD: endtrainerbattle gUnknown_0819F8AE:: @ 819F8AE - specialval RESULT, sub_8082C9C + specialval RESULT, ScrSpecial_GetTrainerEyeRematchFlag compare RESULT, 0 jumpeq EventScript_19F8DD special CheckForAlivePartyMons @@ -1008,10 +1008,10 @@ gUnknown_0819F8AE:: @ 819F8AE jumpif 5, EventScript_19F8DE special PlayTrainerEncounterMusic special sub_8082524 - special sub_80826D8 + special ScrSpecial_ShowTrainerIntroSpeech waittext waitbutton - special sub_80826B0 + special ScrSpecial_StartTrainerEyeRematch waitstate releaseall end @@ -1020,7 +1020,7 @@ EventScript_19F8DD: endtrainerbattle EventScript_19F8DE: - special sub_8082718 + special ScrSpecial_ShowTrainerNonBattlingSpeech waittext waitbutton release @@ -1036,7 +1036,7 @@ Movement_19F8F0:: step_end EventScript_19F8F2: - special sub_80826D8 + special ScrSpecial_ShowTrainerIntroSpeech waittext waitbutton reptrainerbattle -- cgit v1.2.3 From a185f8a26dc5e5a04908c272ab54bede7af8a10c Mon Sep 17 00:00:00 2001 From: camthesaxman Date: Tue, 12 Sep 2017 16:53:04 -0500 Subject: lots more relabeling --- data/event_scripts.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 2d0b1b4fe..3ea5cee24 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -1324,7 +1324,7 @@ EverGrandeCity_HallOfFame_EventScript_19FC70:: @ 819FC70 setflag 2141 return -EventScript_LeagueWhiteOut:: @ 819FC74 +S_WhiteOut:: @ 819FC74 call EverGrandeCity_HallOfFame_EventScript_19FD09 call EventScript_19FC84 jump gUnknown_0819FC9F -- cgit v1.2.3 From 2c87516ca3efa260b96b92ededb24d75edfe49e8 Mon Sep 17 00:00:00 2001 From: camthesaxman Date: Tue, 12 Sep 2017 20:23:23 -0500 Subject: more labels and fix build --- data/event_scripts.s | 59 ++++++++++++++++++++++++---------------------------- 1 file changed, 27 insertions(+), 32 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 3ea5cee24..171581dd9 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -918,13 +918,8 @@ Std_5: @ 819F805 return -BattleTower_Lobby_EventScript_19F806:: @ 819F806 -FallarborTown_ContestLobby_EventScript_19F806:: @ 819F806 -LilycoveCity_ContestLobby_EventScript_19F806:: @ 819F806 -MossdeepCity_GameCorner_1F_EventScript_19F806:: @ 819F806 -OldaleTown_PokemonCenter_2F_EventScript_19F806:: @ 819F806 -SecretBase_RedCave1_EventScript_19F806:: @ 819F806 - special InitSaveDialog +S_DoSaveDialog:: @ 819F806 + special ScrSpecial_DoSaveDialog waitstate return @@ -1437,16 +1432,16 @@ SootopolisCity_PokemonCenter_1F_EventScript_19FD5B:: @ 819FD5B VerdanturfTown_PokemonCenter_1F_EventScript_19FD5B:: @ 819FD5B lock faceplayer - msgbox OldaleTown_PokemonCenter_1F_Text_1A0A7D, 5 + msgbox gText_NurseJoy_Welcome, MSGBOX_YESNO compare RESULT, 1 - jumpeq OldaleTown_PokemonCenter_1F_EventScript_19FD7C + jumpeq do_heal_party compare RESULT, 0 - jumpeq OldaleTown_PokemonCenter_1F_EventScript_19FDC7 + jumpeq dont_heal_party end -OldaleTown_PokemonCenter_1F_EventScript_19FD7C:: @ 819FD7C +do_heal_party:: @ 819FD7C inccounter GAME_STAT_USED_POKECENTER - message OldaleTown_PokemonCenter_1F_Text_1A1245 + message gText_NurseJoy_OkayIllTakeYourPokemon waittext move 0x800b, OldaleTown_PokemonCenter_1F_Movement_1A083F waitmove 0 @@ -1461,16 +1456,16 @@ OldaleTown_PokemonCenter_1F_EventScript_19FD7C:: @ 819FD7C end OldaleTown_PokemonCenter_1F_EventScript_19FDB0:: @ 819FDB0 - message OldaleTown_PokemonCenter_1F_Text_1A0B14 + message gText_NurseJoy_ThankYouForWaiting waittext move 0x800b, OldaleTown_PokemonCenter_1F_Movement_19FDF4 waitmove 0 - message OldaleTown_PokemonCenter_1F_Text_1A0AFA + message gText_NurseJoy_WeHopeToSeeYouAgain waittext return -OldaleTown_PokemonCenter_1F_EventScript_19FDC7:: @ 819FDC7 - message OldaleTown_PokemonCenter_1F_Text_1A0AFA +dont_heal_party:: @ 819FDC7 + message gText_NurseJoy_WeHopeToSeeYouAgain waittext return @@ -1483,7 +1478,7 @@ OldaleTown_PokemonCenter_1F_EventScript_19FDCE:: @ 819FDCE end OldaleTown_PokemonCenter_1F_EventScript_19FDEA:: @ 819FDEA - message OldaleTown_PokemonCenter_1F_Text_1A1275 + message gText_NurseJoy_Pokerus waittext setflag 273 return @@ -2985,17 +2980,17 @@ UnknownString_81A0A54: @ 81A0A54 UnknownString_81A0A66: @ 81A0A66 .string "Accessed LANETTE’s PC.$" -OldaleTown_PokemonCenter_1F_Text_1A0A7D:: @ 81A0A7D +gText_NurseJoy_Welcome:: @ 81A0A7D .string "Hello, and welcome to the POKéMON\n" .string "CENTER.\p" .string "We restore your tired POKéMON to\n" .string "full health.\p" .string "Would you like to rest your POKéMON?$" -OldaleTown_PokemonCenter_1F_Text_1A0AFA:: @ 81A0AFA +gText_NurseJoy_WeHopeToSeeYouAgain:: @ 81A0AFA .string "We hope to see you again!$" -OldaleTown_PokemonCenter_1F_Text_1A0B14:: @ 81A0B14 +gText_NurseJoy_ThankYouForWaiting:: @ 81A0B14 .string "Thank you for waiting.\p" .string "We’ve restored your POKéMON to\n" .string "full health.$" @@ -3209,11 +3204,11 @@ SlateportCity_Text_1A116E:: @ 81A116E .string "We’ll accept you as a member and sell\n" .string "you good stuff in secrecy.$" -OldaleTown_PokemonCenter_1F_Text_1A1245:: @ 81A1245 +gText_NurseJoy_OkayIllTakeYourPokemon:: @ 81A1245 .string "Okay, I’ll take your POKéMON for a\n" .string "few seconds.$" -OldaleTown_PokemonCenter_1F_Text_1A1275:: @ 81A1275 +gText_NurseJoy_Pokerus:: @ 81A1275 .string "Your POKéMON may be infected with\n" .string "POKéRUS.\p" .string "Little is known about the POKéRUS\n" @@ -3949,7 +3944,7 @@ SecretBase_RedCave1_EventScript_1A3032:: @ 81A3032 jumpeq SecretBase_RedCave1_EventScript_1A308F setvar RESULT, 1 special sub_80BCE4C - call SecretBase_RedCave1_EventScript_19F806 + call S_DoSaveDialog compare RESULT, 0 jumpeq SecretBase_RedCave1_EventScript_1A308F hidebox 0, 0, 15, 10 @@ -3984,7 +3979,7 @@ SecretBase_RedCave1_EventScript_1A30AE:: @ 81A30AE jumpeq SecretBase_RedCave1_EventScript_1A310B setvar RESULT, 1 special sub_80BCE4C - call SecretBase_RedCave1_EventScript_19F806 + call S_DoSaveDialog compare RESULT, 0 jumpeq SecretBase_RedCave1_EventScript_1A310B hidebox 0, 0, 15, 10 @@ -4019,7 +4014,7 @@ SecretBase_RedCave1_EventScript_1A312A:: @ 81A312A jumpeq SecretBase_RedCave1_EventScript_1A3187 setvar RESULT, 1 special sub_80BCE4C - call SecretBase_RedCave1_EventScript_19F806 + call S_DoSaveDialog compare RESULT, 0 jumpeq SecretBase_RedCave1_EventScript_1A3187 hidebox 0, 0, 15, 10 @@ -4054,7 +4049,7 @@ SecretBase_RedCave1_EventScript_1A31A6:: @ 81A31A6 jumpeq SecretBase_RedCave1_EventScript_1A3203 setvar RESULT, 1 special sub_80BCE4C - call SecretBase_RedCave1_EventScript_19F806 + call S_DoSaveDialog compare RESULT, 0 jumpeq SecretBase_RedCave1_EventScript_1A3203 hidebox 0, 0, 15, 10 @@ -4089,7 +4084,7 @@ SecretBase_RedCave1_EventScript_1A3222:: @ 81A3222 jumpeq SecretBase_RedCave1_EventScript_1A327F setvar RESULT, 1 special sub_80BCE4C - call SecretBase_RedCave1_EventScript_19F806 + call S_DoSaveDialog compare RESULT, 0 jumpeq SecretBase_RedCave1_EventScript_1A327F hidebox 0, 0, 15, 10 @@ -4124,7 +4119,7 @@ SecretBase_RedCave1_EventScript_1A329E:: @ 81A329E jumpeq SecretBase_RedCave1_EventScript_1A32FB setvar RESULT, 1 special sub_80BCE4C - call SecretBase_RedCave1_EventScript_19F806 + call S_DoSaveDialog compare RESULT, 0 jumpeq SecretBase_RedCave1_EventScript_1A32FB hidebox 0, 0, 15, 10 @@ -4159,7 +4154,7 @@ SecretBase_RedCave1_EventScript_1A331A:: @ 81A331A jumpeq SecretBase_RedCave1_EventScript_1A3377 setvar RESULT, 1 special sub_80BCE4C - call SecretBase_RedCave1_EventScript_19F806 + call S_DoSaveDialog compare RESULT, 0 jumpeq SecretBase_RedCave1_EventScript_1A3377 hidebox 0, 0, 15, 10 @@ -4194,7 +4189,7 @@ SecretBase_RedCave1_EventScript_1A3396:: @ 81A3396 jumpeq SecretBase_RedCave1_EventScript_1A33F3 setvar RESULT, 1 special sub_80BCE4C - call SecretBase_RedCave1_EventScript_19F806 + call S_DoSaveDialog compare RESULT, 0 jumpeq SecretBase_RedCave1_EventScript_1A33F3 hidebox 0, 0, 15, 10 @@ -4229,7 +4224,7 @@ SecretBase_RedCave1_EventScript_1A3412:: @ 81A3412 jumpeq SecretBase_RedCave1_EventScript_1A346F setvar RESULT, 1 special sub_80BCE4C - call SecretBase_RedCave1_EventScript_19F806 + call S_DoSaveDialog compare RESULT, 0 jumpeq SecretBase_RedCave1_EventScript_1A346F hidebox 0, 0, 15, 10 @@ -4264,7 +4259,7 @@ SecretBase_RedCave1_EventScript_1A348E:: @ 81A348E jumpeq SecretBase_RedCave1_EventScript_1A34EB setvar RESULT, 1 special sub_80BCE4C - call SecretBase_RedCave1_EventScript_19F806 + call S_DoSaveDialog compare RESULT, 0 jumpeq SecretBase_RedCave1_EventScript_1A34EB hidebox 0, 0, 15, 10 -- cgit v1.2.3 From 270bd98d41a19c516a4be95f522deb26cc4300a9 Mon Sep 17 00:00:00 2001 From: camthesaxman Date: Wed, 13 Sep 2017 00:03:22 -0500 Subject: more labeling --- data/event_scripts.s | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 171581dd9..0a8390a8f 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -1449,7 +1449,7 @@ do_heal_party:: @ 819FD7C checkanimation 25 move 0x800b, OldaleTown_PokemonCenter_1F_Movement_1A0845 waitmove 0 - special HealPlayerParty + special ScrSpecial_HealPlayerParty checkflag 273 jumpif 0, OldaleTown_PokemonCenter_1F_EventScript_19FDCE jump OldaleTown_PokemonCenter_1F_EventScript_19FDB0 @@ -2106,7 +2106,7 @@ SSTidalRooms_EventScript_1A02CA:: @ 81A02CA fadescreen 1 fanfare 368 waitfanfare - special HealPlayerParty + special ScrSpecial_HealPlayerParty fadescreen 0 return @@ -4288,7 +4288,7 @@ SecretBase_RedCave1_EventScript_1A350A:: @ 81A350A setvar 0x8005, 0 special sub_813556C waitstate - special HealPlayerParty + special ScrSpecial_HealPlayerParty release end @@ -4769,7 +4769,7 @@ gUnknown_081B694A:: @ 81B694A .include "data/scripts/players_house.inc" -Event_RunningShoesManual:: @ 81B6E5A +S_RunningShoesManual:: @ 81B6E5A msgbox UnknownString_81728E3, 3 end @@ -4778,7 +4778,7 @@ Event_RunningShoesManual:: @ 81B6E5A .include "data/text/trainers.inc" -Event_RepelWoreOff:: @ 81C33E6 +S_RepelWoreOff:: @ 81C33E6 msgbox Text_RepelWoreOff, 3 end @@ -4858,7 +4858,7 @@ GraniteCave_B1F_MapScript2_1C6BB5:: @ 81C6BB5 MtPyre_2F_MapScript2_1C6BB5:: @ 81C6BB5 SkyPillar_2F_MapScript2_1C6BB5:: @ 81C6BB5 SkyPillar_4F_MapScript2_1C6BB5:: @ 81C6BB5 - map_script_2 0x4022, 0, GraniteCave_B1F_EventScript_1C6BC5 + map_script_2 0x4022, 0, S_FallDownHole .2byte 0 GraniteCave_B1F_MapScript1_1C6BBF:: @ 81C6BBF @@ -4868,7 +4868,7 @@ SkyPillar_4F_MapScript1_1C6BBF:: @ 81C6BBF copyvar 0x4022, 0x1 end -GraniteCave_B1F_EventScript_1C6BC5:: @ 81C6BC5 +S_FallDownHole:: @ 81C6BC5 lockall pause 20 move 255, GraniteCave_B1F_Movement_1C6BF7 -- cgit v1.2.3 From ae5ec7f5b05218ba21c53ef632590a5243a7f647 Mon Sep 17 00:00:00 2001 From: camthesaxman Date: Sun, 24 Sep 2017 14:17:14 -0500 Subject: Replace script commands: snop -> nop, snop1 -> nop1, jump -> goto --- data/event_scripts.s | 118 +++++++++++++++++++++++++-------------------------- 1 file changed, 59 insertions(+), 59 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 0a8390a8f..0fc33c9ba 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -393,7 +393,7 @@ gUnknown_0815F36C:: @ 815F36C waittext waitbutton playsfx 5 - jump EventScript_15F384 + goto EventScript_15F384 end EventScript_15F384: @@ -401,12 +401,12 @@ EventScript_15F384: waittext checkflag 268 jumpeq EventScript_15F3A0 - jump EventScript_15F3E2 + goto EventScript_15F3E2 end gUnknown_0815F399:: @ 815F399 lockall - jump EventScript_15F384 + goto EventScript_15F384 end EventScript_15F3A0: @@ -454,7 +454,7 @@ gUnknown_0815F43A:: @ 815F43A waittext waitbutton playsfx 5 - jump EventScript_15F452 + goto EventScript_15F452 end EventScript_15F452: @@ -471,7 +471,7 @@ EventScript_15F452: gUnknown_0815F49A:: @ 815F49A lockall - jump EventScript_15F452 + goto EventScript_15F452 end EventScript_15F4A1: @@ -510,7 +510,7 @@ EventScript_15F503: EventScript_15F511: message UnknownString_81A3AA2 waittext - jump EventScript_15F452 + goto EventScript_15F452 end EventScript_15F51D: @@ -928,7 +928,7 @@ gUnknown_0819F80B:: @ 819F80B special PlayTrainerEncounterMusic special ScrSpecial_EndTrainerApproach waitstate - jump EventScript_19F8F2 + goto EventScript_19F8F2 gUnknown_0819F818:: @ 819F818 lock @@ -940,7 +940,7 @@ gUnknown_0819F818:: @ 819F818 jumpif 5, EventScript_19F83F special PlayTrainerEncounterMusic special sub_8082524 - jump EventScript_19F8F2 + goto EventScript_19F8F2 EventScript_19F83F: endtrainerbattle @@ -957,7 +957,7 @@ gUnknown_0819F840:: @ 819F840 jumpif 5, EventScript_19F870 special PlayTrainerEncounterMusic special sub_8082524 - jump EventScript_19F8F2 + goto EventScript_19F8F2 EventScript_19F870: special ScrSpecial_ShowTrainerNonBattlingSpeech @@ -1322,7 +1322,7 @@ EverGrandeCity_HallOfFame_EventScript_19FC70:: @ 819FC70 S_WhiteOut:: @ 819FC74 call EverGrandeCity_HallOfFame_EventScript_19FD09 call EventScript_19FC84 - jump gUnknown_0819FC9F + goto gUnknown_0819FC9F end EventScript_19FC84: @@ -1452,7 +1452,7 @@ do_heal_party:: @ 819FD7C special ScrSpecial_HealPlayerParty checkflag 273 jumpif 0, OldaleTown_PokemonCenter_1F_EventScript_19FDCE - jump OldaleTown_PokemonCenter_1F_EventScript_19FDB0 + goto OldaleTown_PokemonCenter_1F_EventScript_19FDB0 end OldaleTown_PokemonCenter_1F_EventScript_19FDB0:: @ 819FDB0 @@ -1658,7 +1658,7 @@ UnusedMixRecordsScript: @ 819FFD5 jumpeq UnusedMixRecordsScript_Yes compare RESULT, 0 jumpeq UnusedMixRecordsScript_Done - jump UnusedMixRecordsScript_Done + goto UnusedMixRecordsScript_Done UnusedMixRecordsScript_Yes: @ 819FFFA special sub_80B929C waitstate @@ -1677,7 +1677,7 @@ gUnknown_081A0009:: @ 81A0009 special DoPCTurnOnEffect playsfx 4 msgbox UnknownString_81A09EC, 4 - jump EventScript_1A0023 + goto EventScript_1A0023 end EventScript_1A0023: @@ -1685,7 +1685,7 @@ EventScript_1A0023: waittext special ScrSpecial_CreatePCMenu waitstate - jump EventScript_1A0033 + goto EventScript_1A0033 end EventScript_1A0033: @@ -1702,7 +1702,7 @@ EventScript_1A0070: msgbox UnknownString_81A0A54, 4 special PlayerPC waitstate - jump EventScript_1A0023 + goto EventScript_1A0023 end EventScript_1A0085: @@ -1714,7 +1714,7 @@ EventScript_1A0085: msgbox UnknownString_81A0A35, 4 special ShowPokemonStorageSystem waitstate - jump EventScript_1A0023 + goto EventScript_1A0023 end EventScript_1A00AC: @@ -1738,7 +1738,7 @@ EventScript_1A00CB: playsfx 2 special AccessHallOfFamePC waitstate - jump EventScript_1A0033 + goto EventScript_1A0033 end FallarborTown_EventScript_1A00E1:: @ 81A00E1 @@ -2303,20 +2303,20 @@ CaveOfOrigin_B2F_EventScript_1A04AF:: @ 81A04AF CaveOfOrigin_B3F_EventScript_1A04AF:: @ 81A04AF lockall setvar 0x4001, 1 - jump CaveOfOrigin_1F_EventScript_1A04D3 + goto CaveOfOrigin_1F_EventScript_1A04D3 end CaveOfOrigin_B2F_EventScript_1A04BB:: @ 81A04BB CaveOfOrigin_B3F_EventScript_1A04BB:: @ 81A04BB lockall setvar 0x4002, 1 - jump CaveOfOrigin_B2F_EventScript_1A04D3 + goto CaveOfOrigin_B2F_EventScript_1A04D3 end @ 81A04C7 lockall setvar 0x4003, 1 - jump CaveOfOrigin_B2F_EventScript_1A04D3 + goto CaveOfOrigin_B2F_EventScript_1A04D3 end CaveOfOrigin_1F_EventScript_1A04D3:: @ 81A04D3 @@ -2376,49 +2376,49 @@ Route120_EventScript_1A0539:: @ 81A0539 lock faceplayer setvar 0x8004, 1 - jump Route120_EventScript_1A0594 + goto Route120_EventScript_1A0594 end Route120_EventScript_1A0546:: @ 81A0546 lock faceplayer setvar 0x8004, 2 - jump Route120_EventScript_1A0594 + goto Route120_EventScript_1A0594 end Route120_EventScript_1A0553:: @ 81A0553 lock faceplayer setvar 0x8004, 3 - jump Route120_EventScript_1A0594 + goto Route120_EventScript_1A0594 end Route120_EventScript_1A0560:: @ 81A0560 lock faceplayer setvar 0x8004, 4 - jump Route120_EventScript_1A0594 + goto Route120_EventScript_1A0594 end Route120_EventScript_1A056D:: @ 81A056D lock faceplayer setvar 0x8004, 5 - jump Route120_EventScript_1A0594 + goto Route120_EventScript_1A0594 end Route119_EventScript_1A057A:: @ 81A057A lock faceplayer setvar 0x8004, 6 - jump Route119_EventScript_1A0594 + goto Route119_EventScript_1A0594 end Route119_EventScript_1A0587:: @ 81A0587 lock faceplayer setvar 0x8004, 7 - jump Route119_EventScript_1A0594 + goto Route119_EventScript_1A0594 end Route119_EventScript_1A0594:: @ 81A0594 @@ -3628,14 +3628,14 @@ EventScript_1A2CB0: closebutton doanimation 11 waitstate - jump EventScript_1A2CFA + goto EventScript_1A2CFA end gUnknown_081A2CE6:: @ 81A2CE6 lockall doanimation 11 waitstate - jump EventScript_1A2CFA + goto EventScript_1A2CFA end EventScript_1A2CF1: @@ -3644,7 +3644,7 @@ EventScript_1A2CF1: EventScript_1A2CFA: msgbox UnknownString_8198F6E, 4 - jump EventScript_1A2DB8 + goto EventScript_1A2DB8 end EventScript_1A2D08: @@ -3659,14 +3659,14 @@ EventScript_1A2D08: closebutton doanimation 26 waitstate - jump EventScript_1A2D52 + goto EventScript_1A2D52 end gUnknown_081A2D3E:: @ 81A2D3E lockall doanimation 26 waitstate - jump EventScript_1A2D52 + goto EventScript_1A2D52 end EventScript_1A2D49: @@ -3675,7 +3675,7 @@ EventScript_1A2D49: EventScript_1A2D52: msgbox UnknownString_81A19C4, 4 - jump EventScript_1A2DB8 + goto EventScript_1A2DB8 end EventScript_1A2D60: @@ -3690,14 +3690,14 @@ EventScript_1A2D60: closebutton doanimation 27 waitstate - jump EventScript_1A2DAA + goto EventScript_1A2DAA end gUnknown_081A2D96:: @ 81A2D96 lockall doanimation 27 waitstate - jump EventScript_1A2DAA + goto EventScript_1A2DAA end EventScript_1A2DA1: @@ -3706,7 +3706,7 @@ EventScript_1A2DA1: EventScript_1A2DAA: msgbox UnknownString_81A1AA9, 4 - jump EventScript_1A2DB8 + goto EventScript_1A2DB8 end EventScript_1A2DB8: @@ -3858,7 +3858,7 @@ SecretBase_RedCave1_EventScript_1A2F68:: @ 81A2F68 gUnknown_081A2F7B:: @ 81A2F7B setvar 0x8005, 0 - jump EventScript_1A2F86 + goto EventScript_1A2F86 end EventScript_1A2F86: @@ -3867,7 +3867,7 @@ EventScript_1A2F86: gUnknown_081A2F8A:: @ 81A2F8A setvar 0x8004, 0 - jump EventScript_1A2F95 + goto EventScript_1A2F95 end EventScript_1A2F95: @@ -3879,7 +3879,7 @@ EventScript_1A2F95: jumpeq EventScript_1A2F95 disappear 0x8006 setflag 0x8005 - jump EventScript_1A2F95 + goto EventScript_1A2F95 end EventScript_1A2FBF: @@ -3949,7 +3949,7 @@ SecretBase_RedCave1_EventScript_1A3032:: @ 81A3032 jumpeq SecretBase_RedCave1_EventScript_1A308F hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A1B83, 4 - jump SecretBase_RedCave1_EventScript_1A350A + goto SecretBase_RedCave1_EventScript_1A350A end SecretBase_RedCave1_EventScript_1A3086:: @ 81A3086 @@ -3984,7 +3984,7 @@ SecretBase_RedCave1_EventScript_1A30AE:: @ 81A30AE jumpeq SecretBase_RedCave1_EventScript_1A310B hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A1F04, 4 - jump SecretBase_RedCave1_EventScript_1A350A + goto SecretBase_RedCave1_EventScript_1A350A end SecretBase_RedCave1_EventScript_1A3102:: @ 81A3102 @@ -4019,7 +4019,7 @@ SecretBase_RedCave1_EventScript_1A312A:: @ 81A312A jumpeq SecretBase_RedCave1_EventScript_1A3187 hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A2220, 4 - jump SecretBase_RedCave1_EventScript_1A350A + goto SecretBase_RedCave1_EventScript_1A350A end SecretBase_RedCave1_EventScript_1A317E:: @ 81A317E @@ -4054,7 +4054,7 @@ SecretBase_RedCave1_EventScript_1A31A6:: @ 81A31A6 jumpeq SecretBase_RedCave1_EventScript_1A3203 hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A256F, 4 - jump SecretBase_RedCave1_EventScript_1A350A + goto SecretBase_RedCave1_EventScript_1A350A end SecretBase_RedCave1_EventScript_1A31FA:: @ 81A31FA @@ -4089,7 +4089,7 @@ SecretBase_RedCave1_EventScript_1A3222:: @ 81A3222 jumpeq SecretBase_RedCave1_EventScript_1A327F hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A28D7, 4 - jump SecretBase_RedCave1_EventScript_1A350A + goto SecretBase_RedCave1_EventScript_1A350A end SecretBase_RedCave1_EventScript_1A3276:: @ 81A3276 @@ -4124,7 +4124,7 @@ SecretBase_RedCave1_EventScript_1A329E:: @ 81A329E jumpeq SecretBase_RedCave1_EventScript_1A32FB hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A1D48, 4 - jump SecretBase_RedCave1_EventScript_1A350A + goto SecretBase_RedCave1_EventScript_1A350A end SecretBase_RedCave1_EventScript_1A32F2:: @ 81A32F2 @@ -4159,7 +4159,7 @@ SecretBase_RedCave1_EventScript_1A331A:: @ 81A331A jumpeq SecretBase_RedCave1_EventScript_1A3377 hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A2095, 4 - jump SecretBase_RedCave1_EventScript_1A350A + goto SecretBase_RedCave1_EventScript_1A350A end SecretBase_RedCave1_EventScript_1A336E:: @ 81A336E @@ -4194,7 +4194,7 @@ SecretBase_RedCave1_EventScript_1A3396:: @ 81A3396 jumpeq SecretBase_RedCave1_EventScript_1A33F3 hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A2405, 4 - jump SecretBase_RedCave1_EventScript_1A350A + goto SecretBase_RedCave1_EventScript_1A350A end SecretBase_RedCave1_EventScript_1A33EA:: @ 81A33EA @@ -4229,7 +4229,7 @@ SecretBase_RedCave1_EventScript_1A3412:: @ 81A3412 jumpeq SecretBase_RedCave1_EventScript_1A346F hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A2710, 4 - jump SecretBase_RedCave1_EventScript_1A350A + goto SecretBase_RedCave1_EventScript_1A350A end SecretBase_RedCave1_EventScript_1A3466:: @ 81A3466 @@ -4264,7 +4264,7 @@ SecretBase_RedCave1_EventScript_1A348E:: @ 81A348E jumpeq SecretBase_RedCave1_EventScript_1A34EB hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A2AE2, 4 - jump SecretBase_RedCave1_EventScript_1A350A + goto SecretBase_RedCave1_EventScript_1A350A end SecretBase_RedCave1_EventScript_1A34E2:: @ 81A34E2 @@ -4413,7 +4413,7 @@ SlateportCity_PokemonFanClub_EventScript_1ADEB9:: @ 81ADEB9 SlateportCity_PokemonFanClub_EventScript_1ADEC3:: @ 81ADEC3 msgbox SlateportCity_PokemonFanClub_Text_1A8818, 4 setvar 0x8005, 1 - jump SlateportCity_PokemonFanClub_EventScript_1ADE46 + goto SlateportCity_PokemonFanClub_EventScript_1ADE46 end SlateportCity_PokemonFanClub_EventScript_1ADED6:: @ 81ADED6 @@ -4469,7 +4469,7 @@ SlateportCity_OceanicMuseum_1F_EventScript_1ADF79:: @ 81ADF79 SlateportCity_OceanicMuseum_1F_EventScript_1ADF83:: @ 81ADF83 msgbox SlateportCity_OceanicMuseum_1F_Text_1A949A, 4 setvar 0x8005, 2 - jump SlateportCity_OceanicMuseum_1F_EventScript_1ADE46 + goto SlateportCity_OceanicMuseum_1F_EventScript_1ADE46 end SlateportCity_OceanicMuseum_1F_EventScript_1ADF96:: @ 81ADF96 @@ -4507,17 +4507,17 @@ SlateportCity_PokemonFanClub_EventScript_1ADFE9:: @ 81ADFE9 SlateportCity_PokemonFanClub_EventScript_1AE020:: @ 81AE020 msgbox SlateportCity_PokemonFanClub_Text_1A8414, 4 - jump SlateportCity_PokemonFanClub_EventScript_1AE04A + goto SlateportCity_PokemonFanClub_EventScript_1AE04A end SlateportCity_PokemonFanClub_EventScript_1AE02E:: @ 81AE02E msgbox SlateportCity_PokemonFanClub_Text_1A8470, 4 - jump SlateportCity_PokemonFanClub_EventScript_1AE04A + goto SlateportCity_PokemonFanClub_EventScript_1AE04A end SlateportCity_PokemonFanClub_EventScript_1AE03C:: @ 81AE03C msgbox SlateportCity_PokemonFanClub_Text_1A84D5, 4 - jump SlateportCity_PokemonFanClub_EventScript_1AE04A + goto SlateportCity_PokemonFanClub_EventScript_1AE04A end SlateportCity_PokemonFanClub_EventScript_1AE04A:: @ 81AE04A @@ -4539,7 +4539,7 @@ SlateportCity_PokemonFanClub_EventScript_1AE04A:: @ 81AE04A msgbox SlateportCity_PokemonFanClub_Text_1A85A6, 4 copyvar 0x8007, 0x800a setvar 0x8005, 3 - jump SlateportCity_PokemonFanClub_EventScript_1ADE46 + goto SlateportCity_PokemonFanClub_EventScript_1ADE46 end SlateportCity_PokemonFanClub_EventScript_1AE0A2:: @ 81AE0A2 @@ -4606,7 +4606,7 @@ FallarborTown_ContestLobby_EventScript_1AE137:: @ 81AE137 msgbox FallarborTown_ContestLobby_Text_1A7153, 4 setflag 2 setvar 0x8005, 6 - jump FallarborTown_ContestLobby_EventScript_1ADE46 + goto FallarborTown_ContestLobby_EventScript_1ADE46 end FallarborTown_ContestLobby_EventScript_1AE17E:: @ 81AE17E @@ -4710,7 +4710,7 @@ BattleTower_Lobby_EventScript_1AE2B3:: @ 81AE2B3 setflag 2 copyvar 0x8004, 0x8008 setvar 0x8005, 7 - jump BattleTower_Lobby_EventScript_1ADE46 + goto BattleTower_Lobby_EventScript_1ADE46 end BattleTower_Lobby_EventScript_1AE2D9:: @ 81AE2D9 @@ -4797,7 +4797,7 @@ MauvilleCity_GameCorner_EventScript_1C407E:: @ 81C407E compare RESULT, 0 jumpeq MauvilleCity_GameCorner_EventScript_1C40DA addvar 0x8004, 128 - jump MauvilleCity_GameCorner_EventScript_1C40DA + goto MauvilleCity_GameCorner_EventScript_1C40DA end MauvilleCity_GameCorner_EventScript_1C40AC:: @ 81C40AC @@ -4809,7 +4809,7 @@ MauvilleCity_GameCorner_EventScript_1C40AC:: @ 81C40AC compare RESULT, 0 jumpeq MauvilleCity_GameCorner_EventScript_1C40DA addvar 0x8004, 128 - jump MauvilleCity_GameCorner_EventScript_1C40DA + goto MauvilleCity_GameCorner_EventScript_1C40DA end MauvilleCity_GameCorner_EventScript_1C40DA:: @ 81C40DA -- cgit v1.2.3 From 86e7bf1fd61b151011038cdb281db3de0a1d9e6a Mon Sep 17 00:00:00 2001 From: camthesaxman Date: Sun, 24 Sep 2017 14:28:51 -0500 Subject: Replace more script commands and fix German build --- data/event_scripts.s | 426 +++++++++++++++++++++++++-------------------------- 1 file changed, 213 insertions(+), 213 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 0fc33c9ba..037e8a1b0 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -400,7 +400,7 @@ EventScript_15F384: message UnknownString_81A3A87 waittext checkflag 268 - jumpeq EventScript_15F3A0 + goto_if_eq EventScript_15F3A0 goto EventScript_15F3E2 end @@ -431,7 +431,7 @@ EventScript_15F3E2: EventScript_15F419: msgbox UnknownString_81A38FB, 5 compare RESULT, 0 - jumpeq EventScript_15F384 + goto_if_eq EventScript_15F384 closebutton special SecretBasePC_PackUp releaseall @@ -477,13 +477,13 @@ gUnknown_0815F49A:: @ 815F49A EventScript_15F4A1: special sub_80BC56C compare RESULT, 1 - jumpeq EventScript_15F4E0 + goto_if_eq EventScript_15F4E0 compare RESULT, 2 - jumpeq EventScript_15F503 + goto_if_eq EventScript_15F503 special sub_80BC224 msgbox UnknownString_81A3958, 5 compare RESULT, 0 - jumpeq EventScript_15F452 + goto_if_eq EventScript_15F452 msgbox UnknownString_81A3A22, 3 special sub_80BC5BC special sub_80C683C @@ -493,7 +493,7 @@ EventScript_15F4A1: EventScript_15F4E0: msgbox UnknownString_81A3982, 5 compare RESULT, 0 - jumpeq EventScript_15F452 + goto_if_eq EventScript_15F452 msgbox UnknownString_81A3A3A, 3 special sub_80BC5BC special sub_80C683C @@ -527,13 +527,13 @@ gUnknown_0815F523:: @ 815F523 gUnknown_0815F528:: @ 815F528 special GetShieldToyTVDecorationInfo compare RESULT, 0 - jumpeq EventScript_15F558 + goto_if_eq EventScript_15F558 compare RESULT, 1 - jumpeq EventScript_15F561 + goto_if_eq EventScript_15F561 compare RESULT, 2 - jumpeq EventScript_15F56A + goto_if_eq EventScript_15F56A compare RESULT, 3 - jumpeq EventScript_15F573 + goto_if_eq EventScript_15F573 end EventScript_15F558: @@ -937,7 +937,7 @@ gUnknown_0819F818:: @ 819F818 waitmove 0 specialval RESULT, ScrSpecial_HasTrainerBeenFought compare RESULT, 0 - jumpif 5, EventScript_19F83F + goto_if 5, EventScript_19F83F special PlayTrainerEncounterMusic special sub_8082524 goto EventScript_19F8F2 @@ -951,10 +951,10 @@ gUnknown_0819F840:: @ 819F840 call EventScript_19F8E5 specialval RESULT, ScrSpecial_HasTrainerBeenFought compare RESULT, 0 - jumpif 5, EventScript_19F877 + goto_if 5, EventScript_19F877 special CheckForAlivePartyMons compare RESULT, 0 - jumpif 5, EventScript_19F870 + goto_if 5, EventScript_19F870 special PlayTrainerEncounterMusic special sub_8082524 goto EventScript_19F8F2 @@ -980,7 +980,7 @@ gUnknown_0819F887:: @ 819F887 call EventScript_19F8E5 specialval RESULT, ScrSpecial_GetTrainerEyeRematchFlag compare RESULT, 0 - jumpeq EventScript_19F8AD + goto_if_eq EventScript_19F8AD special PlayTrainerEncounterMusic special sub_8082524 special ScrSpecial_ShowTrainerIntroSpeech @@ -997,10 +997,10 @@ EventScript_19F8AD: gUnknown_0819F8AE:: @ 819F8AE specialval RESULT, ScrSpecial_GetTrainerEyeRematchFlag compare RESULT, 0 - jumpeq EventScript_19F8DD + goto_if_eq EventScript_19F8DD special CheckForAlivePartyMons compare RESULT, 0 - jumpif 5, EventScript_19F8DE + goto_if 5, EventScript_19F8DE special PlayTrainerEncounterMusic special sub_8082524 special ScrSpecial_ShowTrainerIntroSpeech @@ -1037,15 +1037,15 @@ EventScript_19F8F2: reptrainerbattle specialval RESULT, ScrSpecial_GetTrainerBattleMode compare RESULT, 0 - jumpeq EventScript_19F934 + goto_if_eq EventScript_19F934 compare RESULT, 2 - jumpeq EventScript_19F936 + goto_if_eq EventScript_19F936 compare RESULT, 1 - jumpeq EventScript_19F936 + goto_if_eq EventScript_19F936 compare RESULT, 6 - jumpeq EventScript_19F936 + goto_if_eq EventScript_19F936 compare RESULT, 8 - jumpeq EventScript_19F936 + goto_if_eq EventScript_19F936 EventScript_19F934: releaseall @@ -1292,13 +1292,13 @@ EverGrandeCity_HallOfFame_EventScript_19FC13:: @ 819FC13 clearflag 861 special sub_810FAA0 checkflag 291 - callif 0, EverGrandeCity_HallOfFame_EventScript_19FC62 + call_if 0, EverGrandeCity_HallOfFame_EventScript_19FC62 checkflag 255 - callif 0, EverGrandeCity_HallOfFame_EventScript_19FC70 + call_if 0, EverGrandeCity_HallOfFame_EventScript_19FC70 checkflag 298 - callif 0, EverGrandeCity_HallOfFame_EventScript_19FC5A + call_if 0, EverGrandeCity_HallOfFame_EventScript_19FC5A checkflag 123 - callif 0, EverGrandeCity_HallOfFame_EventScript_19FC5E + call_if 0, EverGrandeCity_HallOfFame_EventScript_19FC5E return EverGrandeCity_HallOfFame_EventScript_19FC5A:: @ 819FC5A @@ -1327,20 +1327,20 @@ S_WhiteOut:: @ 819FC74 EventScript_19FC84: checkflag 221 - jumpeq Route101_EventScript_1A14DC + goto_if_eq Route101_EventScript_1A14DC checkflag 1213 - jumpif 0, Route101_EventScript_1A14DC + goto_if 0, Route101_EventScript_1A14DC clearflag 929 setvar 0x4053, 2 return gUnknown_0819FC9F:: @ 819FC9F compare 0x4096, 1 - jumpeq EventScript_19FCC1 + goto_if_eq EventScript_19FCC1 compare 0x4096, 2 - jumpeq EventScript_19FCD7 + goto_if_eq EventScript_19FCD7 compare 0x4096, 3 - jumpeq EventScript_19FCF0 + goto_if_eq EventScript_19FCF0 end EventScript_19FCC1: @@ -1393,15 +1393,15 @@ RustboroCity_PokemonCenter_1F_EventScript_19FD1B:: @ 819FD1B SlateportCity_PokemonCenter_1F_EventScript_19FD1B:: @ 819FD1B VerdanturfTown_PokemonCenter_1F_EventScript_19FD1B:: @ 819FD1B checkflag 188 - jumpif 0, OldaleTown_PokemonCenter_1F_EventScript_1A14DC + goto_if 0, OldaleTown_PokemonCenter_1F_EventScript_1A14DC checkflag 1217 - jumpeq OldaleTown_PokemonCenter_1F_EventScript_1A14DC + goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_1A14DC checkflag 742 - jumpif 0, OldaleTown_PokemonCenter_1F_EventScript_19FD49 + goto_if 0, OldaleTown_PokemonCenter_1F_EventScript_19FD49 checkflag 740 - jumpif 0, OldaleTown_PokemonCenter_1F_EventScript_19FD4F + goto_if 0, OldaleTown_PokemonCenter_1F_EventScript_19FD4F checkflag 741 - jumpif 0, OldaleTown_PokemonCenter_1F_EventScript_19FD55 + goto_if 0, OldaleTown_PokemonCenter_1F_EventScript_19FD55 return OldaleTown_PokemonCenter_1F_EventScript_19FD49:: @ 819FD49 @@ -1434,9 +1434,9 @@ VerdanturfTown_PokemonCenter_1F_EventScript_19FD5B:: @ 819FD5B faceplayer msgbox gText_NurseJoy_Welcome, MSGBOX_YESNO compare RESULT, 1 - jumpeq do_heal_party + goto_if_eq do_heal_party compare RESULT, 0 - jumpeq dont_heal_party + goto_if_eq dont_heal_party end do_heal_party:: @ 819FD7C @@ -1451,7 +1451,7 @@ do_heal_party:: @ 819FD7C waitmove 0 special ScrSpecial_HealPlayerParty checkflag 273 - jumpif 0, OldaleTown_PokemonCenter_1F_EventScript_19FDCE + goto_if 0, OldaleTown_PokemonCenter_1F_EventScript_19FDCE goto OldaleTown_PokemonCenter_1F_EventScript_19FDB0 end @@ -1472,9 +1472,9 @@ dont_heal_party:: @ 819FDC7 OldaleTown_PokemonCenter_1F_EventScript_19FDCE:: @ 819FDCE specialval RESULT, IsPokerusInParty compare RESULT, 1 - jumpeq OldaleTown_PokemonCenter_1F_EventScript_19FDEA + goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_19FDEA compare RESULT, 0 - jumpeq OldaleTown_PokemonCenter_1F_EventScript_19FDB0 + goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_19FDB0 end OldaleTown_PokemonCenter_1F_EventScript_19FDEA:: @ 819FDEA @@ -1499,9 +1499,9 @@ Std_ObtainItem_: @ 819FE07 checkitemtype 0x8000 call GetItem_HandlePocket compare 0x8007, 0x1 - callif 1, Std_ObtainItem_Success + call_if 1, Std_ObtainItem_Success compare 0x8007, 0x0 - callif 1, Std_ObtainItem_Fail + call_if 1, Std_ObtainItem_Fail return GetItem_HandlePocket: @@ -1516,31 +1516,31 @@ GetItem_HandlePocket: GetItem_HandlePocket_Items: bufferstd 2, 0xE compare 0x8007, 1 - callif 1, PlayGetItemFanfare + call_if 1, PlayGetItemFanfare return GetItem_HandlePocket_KeyItems: bufferstd 2, 0xF compare 0x8007, 1 - callif 1, PlayGetItemFanfare + call_if 1, PlayGetItemFanfare return GetItem_HandlePocket_PokeBalls: bufferstd 2, 0x10 compare 0x8007, 1 - callif 1, PlayGetItemFanfare + call_if 1, PlayGetItemFanfare return GetItem_HandlePocket_TMsHMs: bufferstd 2, 0x11 compare 0x8007, 1 - callif 1, PlayGetTMHMFanfare + call_if 1, PlayGetTMHMFanfare return GetItem_HandlePocket_Berries: bufferstd 2, 0x12 compare 0x8007, 1 - callif 1, PlayGetItemFanfare + call_if 1, PlayGetItemFanfare return Std_ObtainItem_Success: @ 819FEB7 @@ -1572,9 +1572,9 @@ Std_ObtainDecoration: @ 819FEDA Std_ObtainDecoration_: @ 819FEE8 bufferdecor 1, 0x8000 compare 0x8007, 1 - callif 1, Std_ObtainDecoration_Success + call_if 1, Std_ObtainDecoration_Success compare 0x8007, 0 - callif 1, Std_ObtainDecoration_Fail + call_if 1, Std_ObtainDecoration_Fail return Std_ObtainDecoration_Success: @ 819FF03 @@ -1600,9 +1600,9 @@ Std_FindItem: @ 819FF21 checkitemtype 0x8000 call GetItem_HandlePocket compare 0x8007, 1 - callif 1, Std_FindItem_Success + call_if 1, Std_FindItem_Success compare 0x8007, 0 - callif 1, Std_FindItem_Fail + call_if 1, Std_FindItem_Fail release return @@ -1629,9 +1629,9 @@ HiddenItemScript:: @ 819FF7B checkitemtype 0x8005 call GetItem_HandlePocket compare 0x8007, 1 - jumpeq HiddenItemScript_Success + goto_if_eq HiddenItemScript_Success compare 0x8007, 0 - jumpeq HiddenItemScript_Fail + goto_if_eq HiddenItemScript_Fail end HiddenItemScript_Success: @@ -1655,9 +1655,9 @@ UnusedMixRecordsScript: @ 819FFD5 faceplayer msgbox UnusedMixRecordsPromptText, 5 compare RESULT, 1 - jumpeq UnusedMixRecordsScript_Yes + goto_if_eq UnusedMixRecordsScript_Yes compare RESULT, 0 - jumpeq UnusedMixRecordsScript_Done + goto_if_eq UnusedMixRecordsScript_Done goto UnusedMixRecordsScript_Done UnusedMixRecordsScript_Yes: @ 819FFFA special sub_80B929C @@ -1708,9 +1708,9 @@ EventScript_1A0070: EventScript_1A0085: playsfx 2 checkflag 2123 - callif 0, EventScript_1A00AC + call_if 0, EventScript_1A00AC checkflag 2123 - callif 1, EventScript_1A00B5 + call_if 1, EventScript_1A00B5 msgbox UnknownString_81A0A35, 4 special ShowPokemonStorageSystem waitstate @@ -1734,7 +1734,7 @@ EventScript_1A00BE: EventScript_1A00CB: checkflag 2052 - jumpif 0, EventScript_1A00BE + goto_if 0, EventScript_1A00BE playsfx 2 special AccessHallOfFamePC waitstate @@ -1812,13 +1812,13 @@ Route109_EventScript_1A010C:: @ 81A010C UseSurfScript:: @ 81A0117 checkattack MOVE_SURF compare RESULT, 6 - jumpeq UseSurfScript_NoMon + goto_if_eq UseSurfScript_NoMon bufferpartypoke 0, RESULT setanimation 0, RESULT lockall msgbox UseSurfPromptText, 5 compare RESULT, 0 - jumpeq UseSurfScript_No + goto_if_eq UseSurfScript_No msgbox UsedSurfText, 4 doanimation 9 UseSurfScript_No: @ 81A014C @@ -1837,9 +1837,9 @@ Route119_EventScript_1A014E:: @ 81A014E RustboroCity_EventScript_1A014E:: @ 81A014E checkgender compare RESULT, 0 - jumpeq RustboroCity_EventScript_1A0166 + goto_if_eq RustboroCity_EventScript_1A0166 compare RESULT, 1 - jumpeq RustboroCity_EventScript_1A016C + goto_if_eq RustboroCity_EventScript_1A016C end RustboroCity_EventScript_1A0166:: @ 81A0166 @@ -1855,9 +1855,9 @@ Route110_EventScript_1A0172:: @ 81A0172 Route119_EventScript_1A0172:: @ 81A0172 checkgender compare RESULT, 0 - jumpeq LavaridgeTown_EventScript_1A018A + goto_if_eq LavaridgeTown_EventScript_1A018A compare RESULT, 1 - jumpeq LavaridgeTown_EventScript_1A0190 + goto_if_eq LavaridgeTown_EventScript_1A0190 end LavaridgeTown_EventScript_1A018A:: @ 81A018A @@ -2137,23 +2137,23 @@ LittlerootTown_ProfessorBirchsLab_EventScript_1A02F4:: @ 81A02F4 Route101_EventScript_1A02F4:: @ 81A02F4 Route103_EventScript_1A02F4:: @ 81A02F4 compare 0x4085, 0 - jumpeq Route101_EventScript_1A14DC + goto_if_eq Route101_EventScript_1A14DC compare 0x4049, 0 - callif 1, Route101_EventScript_1A0358 + call_if 1, Route101_EventScript_1A0358 compare 0x4049, 1 - callif 1, Route101_EventScript_1A0358 + call_if 1, Route101_EventScript_1A0358 compare 0x4049, 2 - callif 1, Route101_EventScript_1A0365 + call_if 1, Route101_EventScript_1A0365 compare 0x4049, 3 - callif 1, Route101_EventScript_1A0365 + call_if 1, Route101_EventScript_1A0365 compare 0x4049, 4 - callif 1, Route101_EventScript_1A0372 + call_if 1, Route101_EventScript_1A0372 compare 0x4049, 5 - callif 1, Route101_EventScript_1A0372 + call_if 1, Route101_EventScript_1A0372 compare 0x4049, 6 - callif 1, Route101_EventScript_1A0358 + call_if 1, Route101_EventScript_1A0358 compare 0x4049, 7 - callif 1, Route101_EventScript_1A0358 + call_if 1, Route101_EventScript_1A0358 return Route101_EventScript_1A0358:: @ 81A0358 @@ -2184,7 +2184,7 @@ Route103_EventScript_1A037F:: @ 81A037F faceplayer msgbox Route101_Text_1C4449, 5 compare RESULT, 0 - jumpeq Route101_EventScript_1A039B + goto_if_eq Route101_EventScript_1A039B call Route101_EventScript_1A03B0 release end @@ -2213,7 +2213,7 @@ Route101_EventScript_1A03B0:: @ 81A03B0 msgbox Route101_Text_1C44DC, 4 call Route101_EventScript_1A03A5 compare 0x800a, 0 - jumpeq Route101_EventScript_1A14DC + goto_if_eq Route101_EventScript_1A14DC setvar 0x8004, 1 specialval RESULT, ScriptGetPokedexInfo copyvar 0x8008, 0x8005 @@ -2280,9 +2280,9 @@ Movement_1A047A: BattleTower_Outside_EventScript_1A047C:: @ 81A047C SouthernIsland_Exterior_EventScript_1A047C:: @ 81A047C compare FACING, 1 - callif 1, BattleTower_Outside_EventScript_160B2F + call_if 1, BattleTower_Outside_EventScript_160B2F compare FACING, 3 - callif 1, BattleTower_Outside_EventScript_160B3A + call_if 1, BattleTower_Outside_EventScript_160B3A pause 30 spriteinvisible 255, 0, 0 call BattleTower_Outside_EventScript_1A040E @@ -2425,7 +2425,7 @@ Route119_EventScript_1A0594:: @ 81A0594 Route120_EventScript_1A0594:: @ 81A0594 checkitem ITEM_DEVON_SCOPE, 1 compare RESULT, 1 - jumpeq Route119_EventScript_1A05AE + goto_if_eq Route119_EventScript_1A05AE msgbox Route119_Text_171B93, 4 release end @@ -2433,7 +2433,7 @@ Route120_EventScript_1A0594:: @ 81A0594 Route119_EventScript_1A05AE:: @ 81A05AE msgbox Route119_Text_171BB6, 5 compare RESULT, 1 - jumpeq Route119_EventScript_1A05C3 + goto_if_eq Route119_EventScript_1A05C3 release end @@ -2450,19 +2450,19 @@ Route119_EventScript_1A05C3:: @ 81A05C3 waitpokecry setwildbattle SPECIES_KECLEON, 30, ITEM_NONE compare 0x8004, 1 - callif 1, Route119_EventScript_1A0646 + call_if 1, Route119_EventScript_1A0646 compare 0x8004, 2 - callif 1, Route119_EventScript_1A064A + call_if 1, Route119_EventScript_1A064A compare 0x8004, 3 - callif 1, Route119_EventScript_1A064E + call_if 1, Route119_EventScript_1A064E compare 0x8004, 4 - callif 1, Route119_EventScript_1A0652 + call_if 1, Route119_EventScript_1A0652 compare 0x8004, 5 - callif 1, Route119_EventScript_1A0656 + call_if 1, Route119_EventScript_1A0656 compare 0x8004, 6 - callif 1, Route119_EventScript_1A065A + call_if 1, Route119_EventScript_1A065A compare 0x8004, 7 - callif 1, Route119_EventScript_1A065E + call_if 1, Route119_EventScript_1A065E setflag 2145 dowildbattle clearflag 2145 @@ -3254,7 +3254,7 @@ gUnknown_081A14B8:: @ 81A14B8 special ExecuteWhiteOut waitstate compare RESULT, 1 - jumpeq EventScript_1A14CA + goto_if_eq EventScript_1A14CA releaseall end @@ -3598,32 +3598,32 @@ gUnknown_081A2C51:: @ 81A2C51 special sub_80BB70C special sub_80BB63C compare RESULT, 1 - jumpeq EventScript_1A2E45 + goto_if_eq EventScript_1A2E45 checkattack MOVE_SECRET_POWER setanimation 0, RESULT bufferattack 1, MOVE_SECRET_POWER compare 0x8007, 1 - jumpeq EventScript_1A2CB0 + goto_if_eq EventScript_1A2CB0 compare 0x8007, 2 - jumpeq EventScript_1A2CB0 + goto_if_eq EventScript_1A2CB0 compare 0x8007, 3 - jumpeq EventScript_1A2CB0 + goto_if_eq EventScript_1A2CB0 compare 0x8007, 4 - jumpeq EventScript_1A2CB0 + goto_if_eq EventScript_1A2CB0 compare 0x8007, 5 - jumpeq EventScript_1A2D08 + goto_if_eq EventScript_1A2D08 compare 0x8007, 6 - jumpeq EventScript_1A2D60 + goto_if_eq EventScript_1A2D60 end EventScript_1A2CB0: lockall compare RESULT, 6 - jumpeq EventScript_1A2CF1 + goto_if_eq EventScript_1A2CF1 bufferpartypoke 0, RESULT msgbox UnknownString_8198F34, 5 compare RESULT, 0 - jumpeq EventScript_1A2F3A + goto_if_eq EventScript_1A2F3A msgbox UsedCutRockSmashText, 4 closebutton doanimation 11 @@ -3650,11 +3650,11 @@ EventScript_1A2CFA: EventScript_1A2D08: lockall compare RESULT, 6 - jumpeq EventScript_1A2D49 + goto_if_eq EventScript_1A2D49 bufferpartypoke 0, RESULT msgbox UnknownString_81A197B, 5 compare RESULT, 0 - jumpeq EventScript_1A2F3A + goto_if_eq EventScript_1A2F3A msgbox UsedCutRockSmashText, 4 closebutton doanimation 26 @@ -3681,11 +3681,11 @@ EventScript_1A2D52: EventScript_1A2D60: lockall compare RESULT, 6 - jumpeq EventScript_1A2DA1 + goto_if_eq EventScript_1A2DA1 bufferpartypoke 0, RESULT msgbox UnknownString_81A1A4B, 5 compare RESULT, 0 - jumpeq EventScript_1A2F3A + goto_if_eq EventScript_1A2F3A msgbox UsedCutRockSmashText, 4 closebutton doanimation 27 @@ -3729,7 +3729,7 @@ SecretBase_RedCave1_EventScript_1A2DDE:: @ 81A2DDE setvar 0x4097, 1 msgbox SecretBase_RedCave1_Text_198F89, 5 compare RESULT, 1 - jumpeq SecretBase_RedCave1_EventScript_1A2E08 + goto_if_eq SecretBase_RedCave1_EventScript_1A2E08 closebutton playsfx 9 special sub_80BC440 @@ -3753,7 +3753,7 @@ gUnknown_081A2E14:: @ 81A2E14 playsfx 9 special sub_80BC114 compare RESULT, 0 - jumpeq EventScript_1A2E38 + goto_if_eq EventScript_1A2E38 clearflag 173 special sub_80BBAF0 setvar 0x4089, 0 @@ -3770,57 +3770,57 @@ EventScript_1A2E38: EventScript_1A2E45: checkattack MOVE_SECRET_POWER compare RESULT, 6 - jumpeq EventScript_1A2EF7 + goto_if_eq EventScript_1A2EF7 setanimation 0, RESULT setorcopyvar 0x8004, RESULT lockall special GetSecretBaseNearbyMapName msgbox UnknownString_81A3C71, 5 compare RESULT, 0 - jumpeq EventScript_1A2F3A + goto_if_eq EventScript_1A2F3A msgbox UnknownString_81A38FB, 5 compare RESULT, 0 - jumpeq EventScript_1A2F3A + goto_if_eq EventScript_1A2F3A fadescreen 1 special sub_80BC50C closebutton fadescreen 0 msgbox UnknownString_81A3CC9, 5 compare RESULT, 0 - jumpeq EventScript_1A2F3A + goto_if_eq EventScript_1A2F3A bufferpartypoke 0, 0x8004 bufferattack 1, MOVE_SECRET_POWER msgbox UsedCutRockSmashText, 4 closebutton closebutton compare 0x8007, 1 - jumpeq gUnknown_081A2CE6 + goto_if_eq gUnknown_081A2CE6 compare 0x8007, 2 - jumpeq gUnknown_081A2CE6 + goto_if_eq gUnknown_081A2CE6 compare 0x8007, 3 - jumpeq gUnknown_081A2CE6 + goto_if_eq gUnknown_081A2CE6 compare 0x8007, 4 - jumpeq gUnknown_081A2CE6 + goto_if_eq gUnknown_081A2CE6 compare 0x8007, 5 - jumpeq gUnknown_081A2D3E + goto_if_eq gUnknown_081A2D3E compare 0x8007, 6 - jumpeq gUnknown_081A2D96 + goto_if_eq gUnknown_081A2D96 releaseall end EventScript_1A2EF7:: compare 0x8007, 1 - jumpeq EventScript_1A2CF1 + goto_if_eq EventScript_1A2CF1 compare 0x8007, 2 - jumpeq EventScript_1A2CF1 + goto_if_eq EventScript_1A2CF1 compare 0x8007, 3 - jumpeq EventScript_1A2CF1 + goto_if_eq EventScript_1A2CF1 compare 0x8007, 4 - jumpeq EventScript_1A2CF1 + goto_if_eq EventScript_1A2CF1 compare 0x8007, 5 - jumpeq EventScript_1A2D49 + goto_if_eq EventScript_1A2D49 compare 0x8007, 6 - jumpeq EventScript_1A2DA1 + goto_if_eq EventScript_1A2DA1 end EventScript_1A2F3A:: @@ -3873,10 +3873,10 @@ gUnknown_081A2F8A:: @ 81A2F8A EventScript_1A2F95: special sub_8100A7C compare RESULT, 1 - jumpeq EventScript_1A2FBF + goto_if_eq EventScript_1A2FBF addvar 0x8004, 1 compare 0x8005, 0 - jumpeq EventScript_1A2F95 + goto_if_eq EventScript_1A2F95 disappear 0x8006 setflag 0x8005 goto EventScript_1A2F95 @@ -3911,42 +3911,42 @@ SecretBase_YellowCave3_EventScript_1A2FC0:: @ 81A2FC0 SecretBase_YellowCave4_EventScript_1A2FC0:: @ 81A2FC0 special sub_80BCE90 compare 0x8004, 0 - jumpeq SecretBase_RedCave1_EventScript_1A3032 + goto_if_eq SecretBase_RedCave1_EventScript_1A3032 compare 0x8004, 1 - jumpeq SecretBase_RedCave1_EventScript_1A30AE + goto_if_eq SecretBase_RedCave1_EventScript_1A30AE compare 0x8004, 2 - jumpeq SecretBase_RedCave1_EventScript_1A312A + goto_if_eq SecretBase_RedCave1_EventScript_1A312A compare 0x8004, 3 - jumpeq SecretBase_RedCave1_EventScript_1A31A6 + goto_if_eq SecretBase_RedCave1_EventScript_1A31A6 compare 0x8004, 4 - jumpeq SecretBase_RedCave1_EventScript_1A3222 + goto_if_eq SecretBase_RedCave1_EventScript_1A3222 compare 0x8004, 5 - jumpeq SecretBase_RedCave1_EventScript_1A329E + goto_if_eq SecretBase_RedCave1_EventScript_1A329E compare 0x8004, 6 - jumpeq SecretBase_RedCave1_EventScript_1A331A + goto_if_eq SecretBase_RedCave1_EventScript_1A331A compare 0x8004, 7 - jumpeq SecretBase_RedCave1_EventScript_1A3396 + goto_if_eq SecretBase_RedCave1_EventScript_1A3396 compare 0x8004, 8 - jumpeq SecretBase_RedCave1_EventScript_1A3412 + goto_if_eq SecretBase_RedCave1_EventScript_1A3412 compare 0x8004, 9 - jumpeq SecretBase_RedCave1_EventScript_1A348E + goto_if_eq SecretBase_RedCave1_EventScript_1A348E end SecretBase_RedCave1_EventScript_1A3032:: @ 81A3032 checkflag 2052 - jumpif 0, SecretBase_RedCave1_EventScript_1A3086 + goto_if 0, SecretBase_RedCave1_EventScript_1A3086 compare RESULT, 1 - jumpeq SecretBase_RedCave1_EventScript_1A30A5 + goto_if_eq SecretBase_RedCave1_EventScript_1A30A5 lock faceplayer msgbox SecretBase_RedCave1_Text_1A1AEA, 5 compare RESULT, 0 - jumpeq SecretBase_RedCave1_EventScript_1A308F + goto_if_eq SecretBase_RedCave1_EventScript_1A308F setvar RESULT, 1 special sub_80BCE4C call S_DoSaveDialog compare RESULT, 0 - jumpeq SecretBase_RedCave1_EventScript_1A308F + goto_if_eq SecretBase_RedCave1_EventScript_1A308F hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A1B83, 4 goto SecretBase_RedCave1_EventScript_1A350A @@ -3969,19 +3969,19 @@ SecretBase_RedCave1_EventScript_1A30A5:: @ 81A30A5 SecretBase_RedCave1_EventScript_1A30AE:: @ 81A30AE checkflag 2052 - jumpif 0, SecretBase_RedCave1_EventScript_1A3102 + goto_if 0, SecretBase_RedCave1_EventScript_1A3102 compare RESULT, 1 - jumpeq SecretBase_RedCave1_EventScript_1A3121 + goto_if_eq SecretBase_RedCave1_EventScript_1A3121 lock faceplayer msgbox SecretBase_RedCave1_Text_1A1E67, 5 compare RESULT, 0 - jumpeq SecretBase_RedCave1_EventScript_1A310B + goto_if_eq SecretBase_RedCave1_EventScript_1A310B setvar RESULT, 1 special sub_80BCE4C call S_DoSaveDialog compare RESULT, 0 - jumpeq SecretBase_RedCave1_EventScript_1A310B + goto_if_eq SecretBase_RedCave1_EventScript_1A310B hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A1F04, 4 goto SecretBase_RedCave1_EventScript_1A350A @@ -4004,19 +4004,19 @@ SecretBase_RedCave1_EventScript_1A3121:: @ 81A3121 SecretBase_RedCave1_EventScript_1A312A:: @ 81A312A checkflag 2052 - jumpif 0, SecretBase_RedCave1_EventScript_1A317E + goto_if 0, SecretBase_RedCave1_EventScript_1A317E compare RESULT, 1 - jumpeq SecretBase_RedCave1_EventScript_1A319D + goto_if_eq SecretBase_RedCave1_EventScript_1A319D lock faceplayer msgbox SecretBase_RedCave1_Text_1A218F, 5 compare RESULT, 0 - jumpeq SecretBase_RedCave1_EventScript_1A3187 + goto_if_eq SecretBase_RedCave1_EventScript_1A3187 setvar RESULT, 1 special sub_80BCE4C call S_DoSaveDialog compare RESULT, 0 - jumpeq SecretBase_RedCave1_EventScript_1A3187 + goto_if_eq SecretBase_RedCave1_EventScript_1A3187 hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A2220, 4 goto SecretBase_RedCave1_EventScript_1A350A @@ -4039,19 +4039,19 @@ SecretBase_RedCave1_EventScript_1A319D:: @ 81A319D SecretBase_RedCave1_EventScript_1A31A6:: @ 81A31A6 checkflag 2052 - jumpif 0, SecretBase_RedCave1_EventScript_1A31FA + goto_if 0, SecretBase_RedCave1_EventScript_1A31FA compare RESULT, 1 - jumpeq SecretBase_RedCave1_EventScript_1A3219 + goto_if_eq SecretBase_RedCave1_EventScript_1A3219 lock faceplayer msgbox SecretBase_RedCave1_Text_1A24E1, 5 compare RESULT, 0 - jumpeq SecretBase_RedCave1_EventScript_1A3203 + goto_if_eq SecretBase_RedCave1_EventScript_1A3203 setvar RESULT, 1 special sub_80BCE4C call S_DoSaveDialog compare RESULT, 0 - jumpeq SecretBase_RedCave1_EventScript_1A3203 + goto_if_eq SecretBase_RedCave1_EventScript_1A3203 hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A256F, 4 goto SecretBase_RedCave1_EventScript_1A350A @@ -4074,19 +4074,19 @@ SecretBase_RedCave1_EventScript_1A3219:: @ 81A3219 SecretBase_RedCave1_EventScript_1A3222:: @ 81A3222 checkflag 2052 - jumpif 0, SecretBase_RedCave1_EventScript_1A3276 + goto_if 0, SecretBase_RedCave1_EventScript_1A3276 compare RESULT, 1 - jumpeq SecretBase_RedCave1_EventScript_1A3295 + goto_if_eq SecretBase_RedCave1_EventScript_1A3295 lock faceplayer msgbox SecretBase_RedCave1_Text_1A2830, 5 compare RESULT, 0 - jumpeq SecretBase_RedCave1_EventScript_1A327F + goto_if_eq SecretBase_RedCave1_EventScript_1A327F setvar RESULT, 1 special sub_80BCE4C call S_DoSaveDialog compare RESULT, 0 - jumpeq SecretBase_RedCave1_EventScript_1A327F + goto_if_eq SecretBase_RedCave1_EventScript_1A327F hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A28D7, 4 goto SecretBase_RedCave1_EventScript_1A350A @@ -4109,19 +4109,19 @@ SecretBase_RedCave1_EventScript_1A3295:: @ 81A3295 SecretBase_RedCave1_EventScript_1A329E:: @ 81A329E checkflag 2052 - jumpif 0, SecretBase_RedCave1_EventScript_1A32F2 + goto_if 0, SecretBase_RedCave1_EventScript_1A32F2 compare RESULT, 1 - jumpeq SecretBase_RedCave1_EventScript_1A3311 + goto_if_eq SecretBase_RedCave1_EventScript_1A3311 lock faceplayer msgbox SecretBase_RedCave1_Text_1A1CB2, 5 compare RESULT, 0 - jumpeq SecretBase_RedCave1_EventScript_1A32FB + goto_if_eq SecretBase_RedCave1_EventScript_1A32FB setvar RESULT, 1 special sub_80BCE4C call S_DoSaveDialog compare RESULT, 0 - jumpeq SecretBase_RedCave1_EventScript_1A32FB + goto_if_eq SecretBase_RedCave1_EventScript_1A32FB hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A1D48, 4 goto SecretBase_RedCave1_EventScript_1A350A @@ -4144,19 +4144,19 @@ SecretBase_RedCave1_EventScript_1A3311:: @ 81A3311 SecretBase_RedCave1_EventScript_1A331A:: @ 81A331A checkflag 2052 - jumpif 0, SecretBase_RedCave1_EventScript_1A336E + goto_if 0, SecretBase_RedCave1_EventScript_1A336E compare RESULT, 1 - jumpeq SecretBase_RedCave1_EventScript_1A338D + goto_if_eq SecretBase_RedCave1_EventScript_1A338D lock faceplayer msgbox SecretBase_RedCave1_Text_1A2026, 5 compare RESULT, 0 - jumpeq SecretBase_RedCave1_EventScript_1A3377 + goto_if_eq SecretBase_RedCave1_EventScript_1A3377 setvar RESULT, 1 special sub_80BCE4C call S_DoSaveDialog compare RESULT, 0 - jumpeq SecretBase_RedCave1_EventScript_1A3377 + goto_if_eq SecretBase_RedCave1_EventScript_1A3377 hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A2095, 4 goto SecretBase_RedCave1_EventScript_1A350A @@ -4179,19 +4179,19 @@ SecretBase_RedCave1_EventScript_1A338D:: @ 81A338D SecretBase_RedCave1_EventScript_1A3396:: @ 81A3396 checkflag 2052 - jumpif 0, SecretBase_RedCave1_EventScript_1A33EA + goto_if 0, SecretBase_RedCave1_EventScript_1A33EA compare RESULT, 1 - jumpeq SecretBase_RedCave1_EventScript_1A3409 + goto_if_eq SecretBase_RedCave1_EventScript_1A3409 lock faceplayer msgbox SecretBase_RedCave1_Text_1A236A, 5 compare RESULT, 0 - jumpeq SecretBase_RedCave1_EventScript_1A33F3 + goto_if_eq SecretBase_RedCave1_EventScript_1A33F3 setvar RESULT, 1 special sub_80BCE4C call S_DoSaveDialog compare RESULT, 0 - jumpeq SecretBase_RedCave1_EventScript_1A33F3 + goto_if_eq SecretBase_RedCave1_EventScript_1A33F3 hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A2405, 4 goto SecretBase_RedCave1_EventScript_1A350A @@ -4214,19 +4214,19 @@ SecretBase_RedCave1_EventScript_1A3409:: @ 81A3409 SecretBase_RedCave1_EventScript_1A3412:: @ 81A3412 checkflag 2052 - jumpif 0, SecretBase_RedCave1_EventScript_1A3466 + goto_if 0, SecretBase_RedCave1_EventScript_1A3466 compare RESULT, 1 - jumpeq SecretBase_RedCave1_EventScript_1A3485 + goto_if_eq SecretBase_RedCave1_EventScript_1A3485 lock faceplayer msgbox SecretBase_RedCave1_Text_1A2663, 5 compare RESULT, 0 - jumpeq SecretBase_RedCave1_EventScript_1A346F + goto_if_eq SecretBase_RedCave1_EventScript_1A346F setvar RESULT, 1 special sub_80BCE4C call S_DoSaveDialog compare RESULT, 0 - jumpeq SecretBase_RedCave1_EventScript_1A346F + goto_if_eq SecretBase_RedCave1_EventScript_1A346F hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A2710, 4 goto SecretBase_RedCave1_EventScript_1A350A @@ -4249,19 +4249,19 @@ SecretBase_RedCave1_EventScript_1A3485:: @ 81A3485 SecretBase_RedCave1_EventScript_1A348E:: @ 81A348E checkflag 2052 - jumpif 0, SecretBase_RedCave1_EventScript_1A34E2 + goto_if 0, SecretBase_RedCave1_EventScript_1A34E2 compare RESULT, 1 - jumpeq SecretBase_RedCave1_EventScript_1A3501 + goto_if_eq SecretBase_RedCave1_EventScript_1A3501 lock faceplayer msgbox SecretBase_RedCave1_Text_1A2A13, 5 compare RESULT, 0 - jumpeq SecretBase_RedCave1_EventScript_1A34EB + goto_if_eq SecretBase_RedCave1_EventScript_1A34EB setvar RESULT, 1 special sub_80BCE4C call S_DoSaveDialog compare RESULT, 0 - jumpeq SecretBase_RedCave1_EventScript_1A34EB + goto_if_eq SecretBase_RedCave1_EventScript_1A34EB hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A2AE2, 4 goto SecretBase_RedCave1_EventScript_1A350A @@ -4382,13 +4382,13 @@ SlateportCity_PokemonFanClub_EventScript_1ADE4D:: @ 81ADE4D setvar 0x8005, 1 special sub_80BF2C4 compare RESULT, 1 - jumpeq SlateportCity_PokemonFanClub_EventScript_1ADED6 + goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADED6 copyvar 0x8009, 0x8006 msgbox SlateportCity_PokemonFanClub_Text_1A8704, 5 compare RESULT, 1 - jumpeq SlateportCity_PokemonFanClub_EventScript_1ADE84 + goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADE84 compare RESULT, 0 - jumpeq SlateportCity_PokemonFanClub_EventScript_1ADEB9 + goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADEB9 end SlateportCity_PokemonFanClub_EventScript_1ADE84:: @ 81ADE84 @@ -4400,9 +4400,9 @@ SlateportCity_PokemonFanClub_EventScript_1ADE84:: @ 81ADE84 lock faceplayer compare RESULT, 1 - jumpeq SlateportCity_PokemonFanClub_EventScript_1ADEC3 + goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADEC3 compare RESULT, 0 - jumpeq SlateportCity_PokemonFanClub_EventScript_1ADEB9 + goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADEB9 end SlateportCity_PokemonFanClub_EventScript_1ADEB9:: @ 81ADEB9 @@ -4427,24 +4427,24 @@ SlateportCity_OceanicMuseum_1F_EventScript_1ADEE0:: @ 81ADEE0 setvar 0x8005, 2 special sub_80BF2C4 compare RESULT, 1 - jumpeq SlateportCity_OceanicMuseum_1F_EventScript_1ADF96 + goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF96 copyvar 0x8009, 0x8006 checkflag 105 - jumpeq SlateportCity_OceanicMuseum_1F_EventScript_1ADF25 + goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF25 setflag 105 msgbox SlateportCity_OceanicMuseum_1F_Text_1A927F, 5 compare RESULT, 1 - jumpeq SlateportCity_OceanicMuseum_1F_EventScript_1ADF44 + goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF44 compare RESULT, 0 - jumpeq SlateportCity_OceanicMuseum_1F_EventScript_1ADF79 + goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF79 end SlateportCity_OceanicMuseum_1F_EventScript_1ADF25:: @ 81ADF25 msgbox SlateportCity_OceanicMuseum_1F_Text_1A934C, 5 compare RESULT, 1 - jumpeq SlateportCity_OceanicMuseum_1F_EventScript_1ADF44 + goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF44 compare RESULT, 0 - jumpeq SlateportCity_OceanicMuseum_1F_EventScript_1ADF79 + goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF79 end SlateportCity_OceanicMuseum_1F_EventScript_1ADF44:: @ 81ADF44 @@ -4456,9 +4456,9 @@ SlateportCity_OceanicMuseum_1F_EventScript_1ADF44:: @ 81ADF44 lock faceplayer compare RESULT, 1 - jumpeq SlateportCity_OceanicMuseum_1F_EventScript_1ADF83 + goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF83 compare RESULT, 0 - jumpeq SlateportCity_OceanicMuseum_1F_EventScript_1ADF79 + goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF79 end SlateportCity_OceanicMuseum_1F_EventScript_1ADF79:: @ 81ADF79 @@ -4482,17 +4482,17 @@ SlateportCity_PokemonFanClub_EventScript_1ADFA0:: @ 81ADFA0 faceplayer specialval RESULT, sub_80BF544 compare RESULT, 0 - jumpeq SlateportCity_PokemonFanClub_EventScript_1ADE4D + goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADE4D setvar 0x8005, 3 special sub_80BF2C4 compare RESULT, 1 - jumpeq SlateportCity_PokemonFanClub_EventScript_1AE0AC + goto_if_eq SlateportCity_PokemonFanClub_EventScript_1AE0AC copyvar 0x8009, 0x8006 msgbox SlateportCity_PokemonFanClub_Text_1A82F1, 5 compare RESULT, 1 - jumpeq SlateportCity_PokemonFanClub_EventScript_1ADFE9 + goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADFE9 compare RESULT, 0 - jumpeq SlateportCity_PokemonFanClub_EventScript_1AE0A2 + goto_if_eq SlateportCity_PokemonFanClub_EventScript_1AE0A2 end SlateportCity_PokemonFanClub_EventScript_1ADFE9:: @ 81ADFE9 @@ -4528,14 +4528,14 @@ SlateportCity_PokemonFanClub_EventScript_1AE04A:: @ 81AE04A lock faceplayer compare RESULT, 0 - jumpeq SlateportCity_PokemonFanClub_EventScript_1AE0A2 + goto_if_eq SlateportCity_PokemonFanClub_EventScript_1AE0A2 msgbox SlateportCity_PokemonFanClub_Text_1A852D, 4 setvar 0x8006, 1 call SlateportCity_PokemonFanClub_EventScript_1A00F3 lock faceplayer compare RESULT, 0 - jumpeq SlateportCity_PokemonFanClub_EventScript_1AE0A2 + goto_if_eq SlateportCity_PokemonFanClub_EventScript_1AE0A2 msgbox SlateportCity_PokemonFanClub_Text_1A85A6, 4 copyvar 0x8007, 0x800a setvar 0x8005, 3 @@ -4559,17 +4559,17 @@ VerdanturfTown_ContestLobby_EventScript_1AE0B6:: @ 81AE0B6 lock faceplayer checkflag 2 - jumpeq FallarborTown_ContestLobby_EventScript_1AE17E + goto_if_eq FallarborTown_ContestLobby_EventScript_1AE17E setvar 0x8005, 6 special sub_80BF2C4 compare RESULT, 1 - jumpeq FallarborTown_ContestLobby_EventScript_1AE17E + goto_if_eq FallarborTown_ContestLobby_EventScript_1AE17E copyvar 0x8009, 0x8006 msgbox FallarborTown_ContestLobby_Text_1A6F7C, 5 compare RESULT, 1 - jumpeq FallarborTown_ContestLobby_EventScript_1AE0F8 + goto_if_eq FallarborTown_ContestLobby_EventScript_1AE0F8 compare RESULT, 0 - jumpeq FallarborTown_ContestLobby_EventScript_1AE12D + goto_if_eq FallarborTown_ContestLobby_EventScript_1AE12D end FallarborTown_ContestLobby_EventScript_1AE0F8:: @ 81AE0F8 @@ -4581,9 +4581,9 @@ FallarborTown_ContestLobby_EventScript_1AE0F8:: @ 81AE0F8 lock faceplayer compare RESULT, 1 - jumpeq FallarborTown_ContestLobby_EventScript_1AE137 + goto_if_eq FallarborTown_ContestLobby_EventScript_1AE137 compare RESULT, 0 - jumpeq FallarborTown_ContestLobby_EventScript_1AE12D + goto_if_eq FallarborTown_ContestLobby_EventScript_1AE12D end FallarborTown_ContestLobby_EventScript_1AE12D:: @ 81AE12D @@ -4602,7 +4602,7 @@ FallarborTown_ContestLobby_EventScript_1AE137:: @ 81AE137 lock faceplayer compare RESULT, 0 - jumpeq FallarborTown_ContestLobby_EventScript_1AE12D + goto_if_eq FallarborTown_ContestLobby_EventScript_1AE12D msgbox FallarborTown_ContestLobby_Text_1A7153, 4 setflag 2 setvar 0x8005, 6 @@ -4619,11 +4619,11 @@ LilycoveCity_ContestLobby_EventScript_1AE188:: @ 81AE188 SlateportCity_ContestLobby_EventScript_1AE188:: @ 81AE188 VerdanturfTown_ContestLobby_EventScript_1AE188:: @ 81AE188 compare 0x4086, 2 - jumpif 5, FallarborTown_ContestLobby_EventScript_1AE1FE + goto_if 5, FallarborTown_ContestLobby_EventScript_1AE1FE setvar 0x8005, 6 special sub_80BF2C4 compare RESULT, 1 - jumpeq FallarborTown_ContestLobby_EventScript_1AE1FE + goto_if_eq FallarborTown_ContestLobby_EventScript_1AE1FE switch 0x4088 case 0, FallarborTown_ContestLobby_EventScript_1AE1FE case 2, FallarborTown_ContestLobby_EventScript_1AE1EE @@ -4656,17 +4656,17 @@ BattleTower_Lobby_EventScript_1AE1FF:: @ 81AE1FF lock faceplayer checkflag 2 - jumpeq BattleTower_Lobby_EventScript_1AE2E3 + goto_if_eq BattleTower_Lobby_EventScript_1AE2E3 setvar 0x8005, 7 special sub_80BF2C4 compare RESULT, 1 - jumpeq BattleTower_Lobby_EventScript_1AE2E3 + goto_if_eq BattleTower_Lobby_EventScript_1AE2E3 copyvar 0x8009, 0x8006 msgbox BattleTower_Lobby_Text_1A776D, 5 compare RESULT, 1 - jumpeq BattleTower_Lobby_EventScript_1AE241 + goto_if_eq BattleTower_Lobby_EventScript_1AE241 compare RESULT, 0 - jumpeq BattleTower_Lobby_EventScript_1AE297 + goto_if_eq BattleTower_Lobby_EventScript_1AE297 end BattleTower_Lobby_EventScript_1AE241:: @ 81AE241 @@ -4675,9 +4675,9 @@ BattleTower_Lobby_EventScript_1AE241:: @ 81AE241 multichoice 19, 8, 45, 1 copyvar 0x8008, RESULT compare RESULT, 0 - callif 1, BattleTower_Lobby_EventScript_1AE2A1 + call_if 1, BattleTower_Lobby_EventScript_1AE2A1 compare RESULT, 1 - callif 1, BattleTower_Lobby_EventScript_1AE2AA + call_if 1, BattleTower_Lobby_EventScript_1AE2AA msgbox BattleTower_Lobby_Text_1A79EB, 4 setvar 0x8004, 12 copyvar 0x8005, 0x8009 @@ -4685,9 +4685,9 @@ BattleTower_Lobby_EventScript_1AE241:: @ 81AE241 lock faceplayer compare RESULT, 1 - jumpeq BattleTower_Lobby_EventScript_1AE2B3 + goto_if_eq BattleTower_Lobby_EventScript_1AE2B3 compare RESULT, 0 - jumpeq BattleTower_Lobby_EventScript_1AE2D9 + goto_if_eq BattleTower_Lobby_EventScript_1AE2D9 end BattleTower_Lobby_EventScript_1AE297:: @ 81AE297 @@ -4705,7 +4705,7 @@ BattleTower_Lobby_EventScript_1AE2AA:: @ 81AE2AA BattleTower_Lobby_EventScript_1AE2B3:: @ 81AE2B3 compare RESULT, 0 - jumpeq BattleTower_Lobby_EventScript_1AE2D9 + goto_if_eq BattleTower_Lobby_EventScript_1AE2D9 msgbox BattleTower_Lobby_Text_1A7A6E, 4 setflag 2 copyvar 0x8004, 0x8008 @@ -4725,11 +4725,11 @@ BattleTower_Lobby_EventScript_1AE2E3:: @ 81AE2E3 BattleTower_Lobby_EventScript_1AE2ED:: @ 81AE2ED compare 0x40bc, 0 - jumpeq BattleTower_Lobby_EventScript_1AE30F + goto_if_eq BattleTower_Lobby_EventScript_1AE30F setvar 0x8005, 7 special sub_80BF2C4 compare RESULT, 1 - jumpeq BattleTower_Lobby_EventScript_1AE30F + goto_if_eq BattleTower_Lobby_EventScript_1AE30F clearflag 918 return @@ -4791,11 +4791,11 @@ Text_RepelWoreOff: @ 81C33EF MauvilleCity_GameCorner_EventScript_1C407E:: @ 81C407E checkitem ITEM_COIN_CASE, 1 compare RESULT, 0 - jumpeq MauvilleCity_GameCorner_EventScript_1572B5 + goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5 setvar 0x8004, 0 event_96 2 compare RESULT, 0 - jumpeq MauvilleCity_GameCorner_EventScript_1C40DA + goto_if_eq MauvilleCity_GameCorner_EventScript_1C40DA addvar 0x8004, 128 goto MauvilleCity_GameCorner_EventScript_1C40DA end @@ -4803,11 +4803,11 @@ MauvilleCity_GameCorner_EventScript_1C407E:: @ 81C407E MauvilleCity_GameCorner_EventScript_1C40AC:: @ 81C40AC checkitem ITEM_COIN_CASE, 1 compare RESULT, 0 - jumpeq MauvilleCity_GameCorner_EventScript_1572B5 + goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5 setvar 0x8004, 1 event_96 2 compare RESULT, 0 - jumpeq MauvilleCity_GameCorner_EventScript_1C40DA + goto_if_eq MauvilleCity_GameCorner_EventScript_1C40DA addvar 0x8004, 128 goto MauvilleCity_GameCorner_EventScript_1C40DA end -- cgit v1.2.3 From 1e2601a0287fdacfb8f0d680fbe82a274414ea65 Mon Sep 17 00:00:00 2001 From: camthesaxman Date: Sun, 24 Sep 2017 17:10:51 -0500 Subject: more script command renaming --- data/event_scripts.s | 368 +++++++++++++++++++++++++-------------------------- 1 file changed, 184 insertions(+), 184 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 037e8a1b0..dae57cfd6 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -430,7 +430,7 @@ EventScript_15F3E2: EventScript_15F419: msgbox UnknownString_81A38FB, 5 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq EventScript_15F384 closebutton special SecretBasePC_PackUp @@ -476,13 +476,13 @@ gUnknown_0815F49A:: @ 815F49A EventScript_15F4A1: special sub_80BC56C - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq EventScript_15F4E0 - compare RESULT, 2 + compare_var_to_imm RESULT, 2 goto_if_eq EventScript_15F503 special sub_80BC224 msgbox UnknownString_81A3958, 5 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq EventScript_15F452 msgbox UnknownString_81A3A22, 3 special sub_80BC5BC @@ -492,7 +492,7 @@ EventScript_15F4A1: EventScript_15F4E0: msgbox UnknownString_81A3982, 5 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq EventScript_15F452 msgbox UnknownString_81A3A3A, 3 special sub_80BC5BC @@ -526,13 +526,13 @@ gUnknown_0815F523:: @ 815F523 gUnknown_0815F528:: @ 815F528 special GetShieldToyTVDecorationInfo - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq EventScript_15F558 - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq EventScript_15F561 - compare RESULT, 2 + compare_var_to_imm RESULT, 2 goto_if_eq EventScript_15F56A - compare RESULT, 3 + compare_var_to_imm RESULT, 3 goto_if_eq EventScript_15F573 end @@ -936,7 +936,7 @@ gUnknown_0819F818:: @ 819F818 move LAST_TALKED, Movement_19F8F0 waitmove 0 specialval RESULT, ScrSpecial_HasTrainerBeenFought - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if 5, EventScript_19F83F special PlayTrainerEncounterMusic special sub_8082524 @@ -950,10 +950,10 @@ gUnknown_0819F840:: @ 819F840 faceplayer call EventScript_19F8E5 specialval RESULT, ScrSpecial_HasTrainerBeenFought - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if 5, EventScript_19F877 special CheckForAlivePartyMons - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if 5, EventScript_19F870 special PlayTrainerEncounterMusic special sub_8082524 @@ -979,7 +979,7 @@ gUnknown_0819F878:: @ 819F878 gUnknown_0819F887:: @ 819F887 call EventScript_19F8E5 specialval RESULT, ScrSpecial_GetTrainerEyeRematchFlag - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq EventScript_19F8AD special PlayTrainerEncounterMusic special sub_8082524 @@ -996,10 +996,10 @@ EventScript_19F8AD: gUnknown_0819F8AE:: @ 819F8AE specialval RESULT, ScrSpecial_GetTrainerEyeRematchFlag - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq EventScript_19F8DD special CheckForAlivePartyMons - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if 5, EventScript_19F8DE special PlayTrainerEncounterMusic special sub_8082524 @@ -1036,15 +1036,15 @@ EventScript_19F8F2: waitbutton reptrainerbattle specialval RESULT, ScrSpecial_GetTrainerBattleMode - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq EventScript_19F934 - compare RESULT, 2 + compare_var_to_imm RESULT, 2 goto_if_eq EventScript_19F936 - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq EventScript_19F936 - compare RESULT, 6 + compare_var_to_imm RESULT, 6 goto_if_eq EventScript_19F936 - compare RESULT, 8 + compare_var_to_imm RESULT, 8 goto_if_eq EventScript_19F936 EventScript_19F934: @@ -1335,11 +1335,11 @@ EventScript_19FC84: return gUnknown_0819FC9F:: @ 819FC9F - compare 0x4096, 1 + compare_var_to_imm 0x4096, 1 goto_if_eq EventScript_19FCC1 - compare 0x4096, 2 + compare_var_to_imm 0x4096, 2 goto_if_eq EventScript_19FCD7 - compare 0x4096, 3 + compare_var_to_imm 0x4096, 3 goto_if_eq EventScript_19FCF0 end @@ -1433,9 +1433,9 @@ VerdanturfTown_PokemonCenter_1F_EventScript_19FD5B:: @ 819FD5B lock faceplayer msgbox gText_NurseJoy_Welcome, MSGBOX_YESNO - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq do_heal_party - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq dont_heal_party end @@ -1471,9 +1471,9 @@ dont_heal_party:: @ 819FDC7 OldaleTown_PokemonCenter_1F_EventScript_19FDCE:: @ 819FDCE specialval RESULT, IsPokerusInParty - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_19FDEA - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_19FDB0 end @@ -1498,9 +1498,9 @@ Std_ObtainItem_: @ 819FE07 bufferitem 1, 0x8000 checkitemtype 0x8000 call GetItem_HandlePocket - compare 0x8007, 0x1 + compare_var_to_imm 0x8007, 0x1 call_if 1, Std_ObtainItem_Success - compare 0x8007, 0x0 + compare_var_to_imm 0x8007, 0x0 call_if 1, Std_ObtainItem_Fail return @@ -1515,31 +1515,31 @@ GetItem_HandlePocket: GetItem_HandlePocket_Items: bufferstd 2, 0xE - compare 0x8007, 1 + compare_var_to_imm 0x8007, 1 call_if 1, PlayGetItemFanfare return GetItem_HandlePocket_KeyItems: bufferstd 2, 0xF - compare 0x8007, 1 + compare_var_to_imm 0x8007, 1 call_if 1, PlayGetItemFanfare return GetItem_HandlePocket_PokeBalls: bufferstd 2, 0x10 - compare 0x8007, 1 + compare_var_to_imm 0x8007, 1 call_if 1, PlayGetItemFanfare return GetItem_HandlePocket_TMsHMs: bufferstd 2, 0x11 - compare 0x8007, 1 + compare_var_to_imm 0x8007, 1 call_if 1, PlayGetTMHMFanfare return GetItem_HandlePocket_Berries: bufferstd 2, 0x12 - compare 0x8007, 1 + compare_var_to_imm 0x8007, 1 call_if 1, PlayGetItemFanfare return @@ -1571,9 +1571,9 @@ Std_ObtainDecoration: @ 819FEDA Std_ObtainDecoration_: @ 819FEE8 bufferdecor 1, 0x8000 - compare 0x8007, 1 + compare_var_to_imm 0x8007, 1 call_if 1, Std_ObtainDecoration_Success - compare 0x8007, 0 + compare_var_to_imm 0x8007, 0 call_if 1, Std_ObtainDecoration_Fail return @@ -1599,9 +1599,9 @@ Std_FindItem: @ 819FF21 bufferitem 1, 0x8000 checkitemtype 0x8000 call GetItem_HandlePocket - compare 0x8007, 1 + compare_var_to_imm 0x8007, 1 call_if 1, Std_FindItem_Success - compare 0x8007, 0 + compare_var_to_imm 0x8007, 0 call_if 1, Std_FindItem_Fail release return @@ -1628,9 +1628,9 @@ HiddenItemScript:: @ 819FF7B bufferitem 0x1, 0x8005 checkitemtype 0x8005 call GetItem_HandlePocket - compare 0x8007, 1 + compare_var_to_imm 0x8007, 1 goto_if_eq HiddenItemScript_Success - compare 0x8007, 0 + compare_var_to_imm 0x8007, 0 goto_if_eq HiddenItemScript_Fail end @@ -1654,9 +1654,9 @@ UnusedMixRecordsScript: @ 819FFD5 lock faceplayer msgbox UnusedMixRecordsPromptText, 5 - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq UnusedMixRecordsScript_Yes - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq UnusedMixRecordsScript_Done goto UnusedMixRecordsScript_Done UnusedMixRecordsScript_Yes: @ 819FFFA @@ -1811,13 +1811,13 @@ Route109_EventScript_1A010C:: @ 81A010C UseSurfScript:: @ 81A0117 checkattack MOVE_SURF - compare RESULT, 6 + compare_var_to_imm RESULT, 6 goto_if_eq UseSurfScript_NoMon bufferpartypoke 0, RESULT setanimation 0, RESULT lockall msgbox UseSurfPromptText, 5 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq UseSurfScript_No msgbox UsedSurfText, 4 doanimation 9 @@ -1836,9 +1836,9 @@ Route110_EventScript_1A014E:: @ 81A014E Route119_EventScript_1A014E:: @ 81A014E RustboroCity_EventScript_1A014E:: @ 81A014E checkgender - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq RustboroCity_EventScript_1A0166 - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq RustboroCity_EventScript_1A016C end @@ -1854,9 +1854,9 @@ LavaridgeTown_EventScript_1A0172:: @ 81A0172 Route110_EventScript_1A0172:: @ 81A0172 Route119_EventScript_1A0172:: @ 81A0172 checkgender - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq LavaridgeTown_EventScript_1A018A - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq LavaridgeTown_EventScript_1A0190 end @@ -2136,23 +2136,23 @@ Route109_EventScript_1A02EF:: @ 81A02EF LittlerootTown_ProfessorBirchsLab_EventScript_1A02F4:: @ 81A02F4 Route101_EventScript_1A02F4:: @ 81A02F4 Route103_EventScript_1A02F4:: @ 81A02F4 - compare 0x4085, 0 + compare_var_to_imm 0x4085, 0 goto_if_eq Route101_EventScript_1A14DC - compare 0x4049, 0 + compare_var_to_imm 0x4049, 0 call_if 1, Route101_EventScript_1A0358 - compare 0x4049, 1 + compare_var_to_imm 0x4049, 1 call_if 1, Route101_EventScript_1A0358 - compare 0x4049, 2 + compare_var_to_imm 0x4049, 2 call_if 1, Route101_EventScript_1A0365 - compare 0x4049, 3 + compare_var_to_imm 0x4049, 3 call_if 1, Route101_EventScript_1A0365 - compare 0x4049, 4 + compare_var_to_imm 0x4049, 4 call_if 1, Route101_EventScript_1A0372 - compare 0x4049, 5 + compare_var_to_imm 0x4049, 5 call_if 1, Route101_EventScript_1A0372 - compare 0x4049, 6 + compare_var_to_imm 0x4049, 6 call_if 1, Route101_EventScript_1A0358 - compare 0x4049, 7 + compare_var_to_imm 0x4049, 7 call_if 1, Route101_EventScript_1A0358 return @@ -2183,7 +2183,7 @@ Route103_EventScript_1A037F:: @ 81A037F lock faceplayer msgbox Route101_Text_1C4449, 5 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq Route101_EventScript_1A039B call Route101_EventScript_1A03B0 release @@ -2212,7 +2212,7 @@ Route101_EventScript_1A03B0:: @ 81A03B0 buffernum 1, 0x8009 msgbox Route101_Text_1C44DC, 4 call Route101_EventScript_1A03A5 - compare 0x800a, 0 + compare_var_to_imm 0x800a, 0 goto_if_eq Route101_EventScript_1A14DC setvar 0x8004, 1 specialval RESULT, ScriptGetPokedexInfo @@ -2279,9 +2279,9 @@ Movement_1A047A: BattleTower_Outside_EventScript_1A047C:: @ 81A047C SouthernIsland_Exterior_EventScript_1A047C:: @ 81A047C - compare FACING, 1 + compare_var_to_imm FACING, 1 call_if 1, BattleTower_Outside_EventScript_160B2F - compare FACING, 3 + compare_var_to_imm FACING, 3 call_if 1, BattleTower_Outside_EventScript_160B3A pause 30 spriteinvisible 255, 0, 0 @@ -2424,7 +2424,7 @@ Route119_EventScript_1A0587:: @ 81A0587 Route119_EventScript_1A0594:: @ 81A0594 Route120_EventScript_1A0594:: @ 81A0594 checkitem ITEM_DEVON_SCOPE, 1 - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq Route119_EventScript_1A05AE msgbox Route119_Text_171B93, 4 release @@ -2432,7 +2432,7 @@ Route120_EventScript_1A0594:: @ 81A0594 Route119_EventScript_1A05AE:: @ 81A05AE msgbox Route119_Text_171BB6, 5 - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq Route119_EventScript_1A05C3 release end @@ -2449,19 +2449,19 @@ Route119_EventScript_1A05C3:: @ 81A05C3 pause 40 waitpokecry setwildbattle SPECIES_KECLEON, 30, ITEM_NONE - compare 0x8004, 1 + compare_var_to_imm 0x8004, 1 call_if 1, Route119_EventScript_1A0646 - compare 0x8004, 2 + compare_var_to_imm 0x8004, 2 call_if 1, Route119_EventScript_1A064A - compare 0x8004, 3 + compare_var_to_imm 0x8004, 3 call_if 1, Route119_EventScript_1A064E - compare 0x8004, 4 + compare_var_to_imm 0x8004, 4 call_if 1, Route119_EventScript_1A0652 - compare 0x8004, 5 + compare_var_to_imm 0x8004, 5 call_if 1, Route119_EventScript_1A0656 - compare 0x8004, 6 + compare_var_to_imm 0x8004, 6 call_if 1, Route119_EventScript_1A065A - compare 0x8004, 7 + compare_var_to_imm 0x8004, 7 call_if 1, Route119_EventScript_1A065E setflag 2145 dowildbattle @@ -3253,7 +3253,7 @@ gUnknown_081A14B8:: @ 81A14B8 lockall special ExecuteWhiteOut waitstate - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq EventScript_1A14CA releaseall end @@ -3597,32 +3597,32 @@ SecretBase_RedCave1_Text_1A2BA4:: @ 81A2BA4 gUnknown_081A2C51:: @ 81A2C51 special sub_80BB70C special sub_80BB63C - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq EventScript_1A2E45 checkattack MOVE_SECRET_POWER setanimation 0, RESULT bufferattack 1, MOVE_SECRET_POWER - compare 0x8007, 1 + compare_var_to_imm 0x8007, 1 goto_if_eq EventScript_1A2CB0 - compare 0x8007, 2 + compare_var_to_imm 0x8007, 2 goto_if_eq EventScript_1A2CB0 - compare 0x8007, 3 + compare_var_to_imm 0x8007, 3 goto_if_eq EventScript_1A2CB0 - compare 0x8007, 4 + compare_var_to_imm 0x8007, 4 goto_if_eq EventScript_1A2CB0 - compare 0x8007, 5 + compare_var_to_imm 0x8007, 5 goto_if_eq EventScript_1A2D08 - compare 0x8007, 6 + compare_var_to_imm 0x8007, 6 goto_if_eq EventScript_1A2D60 end EventScript_1A2CB0: lockall - compare RESULT, 6 + compare_var_to_imm RESULT, 6 goto_if_eq EventScript_1A2CF1 bufferpartypoke 0, RESULT msgbox UnknownString_8198F34, 5 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq EventScript_1A2F3A msgbox UsedCutRockSmashText, 4 closebutton @@ -3649,11 +3649,11 @@ EventScript_1A2CFA: EventScript_1A2D08: lockall - compare RESULT, 6 + compare_var_to_imm RESULT, 6 goto_if_eq EventScript_1A2D49 bufferpartypoke 0, RESULT msgbox UnknownString_81A197B, 5 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq EventScript_1A2F3A msgbox UsedCutRockSmashText, 4 closebutton @@ -3680,11 +3680,11 @@ EventScript_1A2D52: EventScript_1A2D60: lockall - compare RESULT, 6 + compare_var_to_imm RESULT, 6 goto_if_eq EventScript_1A2DA1 bufferpartypoke 0, RESULT msgbox UnknownString_81A1A4B, 5 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq EventScript_1A2F3A msgbox UsedCutRockSmashText, 4 closebutton @@ -3728,7 +3728,7 @@ SecretBase_RedCave1_EventScript_1A2DDE:: @ 81A2DDE waitmove 0 setvar 0x4097, 1 msgbox SecretBase_RedCave1_Text_198F89, 5 - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A2E08 closebutton playsfx 9 @@ -3752,7 +3752,7 @@ gUnknown_081A2E14:: @ 81A2E14 setvar 0x4097, 1 playsfx 9 special sub_80BC114 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq EventScript_1A2E38 clearflag 173 special sub_80BBAF0 @@ -3769,57 +3769,57 @@ EventScript_1A2E38: EventScript_1A2E45: checkattack MOVE_SECRET_POWER - compare RESULT, 6 + compare_var_to_imm RESULT, 6 goto_if_eq EventScript_1A2EF7 setanimation 0, RESULT setorcopyvar 0x8004, RESULT lockall special GetSecretBaseNearbyMapName msgbox UnknownString_81A3C71, 5 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq EventScript_1A2F3A msgbox UnknownString_81A38FB, 5 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq EventScript_1A2F3A fadescreen 1 special sub_80BC50C closebutton fadescreen 0 msgbox UnknownString_81A3CC9, 5 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq EventScript_1A2F3A bufferpartypoke 0, 0x8004 bufferattack 1, MOVE_SECRET_POWER msgbox UsedCutRockSmashText, 4 closebutton closebutton - compare 0x8007, 1 + compare_var_to_imm 0x8007, 1 goto_if_eq gUnknown_081A2CE6 - compare 0x8007, 2 + compare_var_to_imm 0x8007, 2 goto_if_eq gUnknown_081A2CE6 - compare 0x8007, 3 + compare_var_to_imm 0x8007, 3 goto_if_eq gUnknown_081A2CE6 - compare 0x8007, 4 + compare_var_to_imm 0x8007, 4 goto_if_eq gUnknown_081A2CE6 - compare 0x8007, 5 + compare_var_to_imm 0x8007, 5 goto_if_eq gUnknown_081A2D3E - compare 0x8007, 6 + compare_var_to_imm 0x8007, 6 goto_if_eq gUnknown_081A2D96 releaseall end EventScript_1A2EF7:: - compare 0x8007, 1 + compare_var_to_imm 0x8007, 1 goto_if_eq EventScript_1A2CF1 - compare 0x8007, 2 + compare_var_to_imm 0x8007, 2 goto_if_eq EventScript_1A2CF1 - compare 0x8007, 3 + compare_var_to_imm 0x8007, 3 goto_if_eq EventScript_1A2CF1 - compare 0x8007, 4 + compare_var_to_imm 0x8007, 4 goto_if_eq EventScript_1A2CF1 - compare 0x8007, 5 + compare_var_to_imm 0x8007, 5 goto_if_eq EventScript_1A2D49 - compare 0x8007, 6 + compare_var_to_imm 0x8007, 6 goto_if_eq EventScript_1A2DA1 end @@ -3872,10 +3872,10 @@ gUnknown_081A2F8A:: @ 81A2F8A EventScript_1A2F95: special sub_8100A7C - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq EventScript_1A2FBF addvar 0x8004, 1 - compare 0x8005, 0 + compare_var_to_imm 0x8005, 0 goto_if_eq EventScript_1A2F95 disappear 0x8006 setflag 0x8005 @@ -3910,42 +3910,42 @@ SecretBase_YellowCave2_EventScript_1A2FC0:: @ 81A2FC0 SecretBase_YellowCave3_EventScript_1A2FC0:: @ 81A2FC0 SecretBase_YellowCave4_EventScript_1A2FC0:: @ 81A2FC0 special sub_80BCE90 - compare 0x8004, 0 + compare_var_to_imm 0x8004, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A3032 - compare 0x8004, 1 + compare_var_to_imm 0x8004, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A30AE - compare 0x8004, 2 + compare_var_to_imm 0x8004, 2 goto_if_eq SecretBase_RedCave1_EventScript_1A312A - compare 0x8004, 3 + compare_var_to_imm 0x8004, 3 goto_if_eq SecretBase_RedCave1_EventScript_1A31A6 - compare 0x8004, 4 + compare_var_to_imm 0x8004, 4 goto_if_eq SecretBase_RedCave1_EventScript_1A3222 - compare 0x8004, 5 + compare_var_to_imm 0x8004, 5 goto_if_eq SecretBase_RedCave1_EventScript_1A329E - compare 0x8004, 6 + compare_var_to_imm 0x8004, 6 goto_if_eq SecretBase_RedCave1_EventScript_1A331A - compare 0x8004, 7 + compare_var_to_imm 0x8004, 7 goto_if_eq SecretBase_RedCave1_EventScript_1A3396 - compare 0x8004, 8 + compare_var_to_imm 0x8004, 8 goto_if_eq SecretBase_RedCave1_EventScript_1A3412 - compare 0x8004, 9 + compare_var_to_imm 0x8004, 9 goto_if_eq SecretBase_RedCave1_EventScript_1A348E end SecretBase_RedCave1_EventScript_1A3032:: @ 81A3032 checkflag 2052 goto_if 0, SecretBase_RedCave1_EventScript_1A3086 - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A30A5 lock faceplayer msgbox SecretBase_RedCave1_Text_1A1AEA, 5 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A308F setvar RESULT, 1 special sub_80BCE4C call S_DoSaveDialog - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A308F hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A1B83, 4 @@ -3970,17 +3970,17 @@ SecretBase_RedCave1_EventScript_1A30A5:: @ 81A30A5 SecretBase_RedCave1_EventScript_1A30AE:: @ 81A30AE checkflag 2052 goto_if 0, SecretBase_RedCave1_EventScript_1A3102 - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3121 lock faceplayer msgbox SecretBase_RedCave1_Text_1A1E67, 5 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A310B setvar RESULT, 1 special sub_80BCE4C call S_DoSaveDialog - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A310B hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A1F04, 4 @@ -4005,17 +4005,17 @@ SecretBase_RedCave1_EventScript_1A3121:: @ 81A3121 SecretBase_RedCave1_EventScript_1A312A:: @ 81A312A checkflag 2052 goto_if 0, SecretBase_RedCave1_EventScript_1A317E - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A319D lock faceplayer msgbox SecretBase_RedCave1_Text_1A218F, 5 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A3187 setvar RESULT, 1 special sub_80BCE4C call S_DoSaveDialog - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A3187 hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A2220, 4 @@ -4040,17 +4040,17 @@ SecretBase_RedCave1_EventScript_1A319D:: @ 81A319D SecretBase_RedCave1_EventScript_1A31A6:: @ 81A31A6 checkflag 2052 goto_if 0, SecretBase_RedCave1_EventScript_1A31FA - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3219 lock faceplayer msgbox SecretBase_RedCave1_Text_1A24E1, 5 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A3203 setvar RESULT, 1 special sub_80BCE4C call S_DoSaveDialog - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A3203 hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A256F, 4 @@ -4075,17 +4075,17 @@ SecretBase_RedCave1_EventScript_1A3219:: @ 81A3219 SecretBase_RedCave1_EventScript_1A3222:: @ 81A3222 checkflag 2052 goto_if 0, SecretBase_RedCave1_EventScript_1A3276 - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3295 lock faceplayer msgbox SecretBase_RedCave1_Text_1A2830, 5 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A327F setvar RESULT, 1 special sub_80BCE4C call S_DoSaveDialog - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A327F hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A28D7, 4 @@ -4110,17 +4110,17 @@ SecretBase_RedCave1_EventScript_1A3295:: @ 81A3295 SecretBase_RedCave1_EventScript_1A329E:: @ 81A329E checkflag 2052 goto_if 0, SecretBase_RedCave1_EventScript_1A32F2 - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3311 lock faceplayer msgbox SecretBase_RedCave1_Text_1A1CB2, 5 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A32FB setvar RESULT, 1 special sub_80BCE4C call S_DoSaveDialog - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A32FB hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A1D48, 4 @@ -4145,17 +4145,17 @@ SecretBase_RedCave1_EventScript_1A3311:: @ 81A3311 SecretBase_RedCave1_EventScript_1A331A:: @ 81A331A checkflag 2052 goto_if 0, SecretBase_RedCave1_EventScript_1A336E - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A338D lock faceplayer msgbox SecretBase_RedCave1_Text_1A2026, 5 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A3377 setvar RESULT, 1 special sub_80BCE4C call S_DoSaveDialog - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A3377 hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A2095, 4 @@ -4180,17 +4180,17 @@ SecretBase_RedCave1_EventScript_1A338D:: @ 81A338D SecretBase_RedCave1_EventScript_1A3396:: @ 81A3396 checkflag 2052 goto_if 0, SecretBase_RedCave1_EventScript_1A33EA - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3409 lock faceplayer msgbox SecretBase_RedCave1_Text_1A236A, 5 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A33F3 setvar RESULT, 1 special sub_80BCE4C call S_DoSaveDialog - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A33F3 hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A2405, 4 @@ -4215,17 +4215,17 @@ SecretBase_RedCave1_EventScript_1A3409:: @ 81A3409 SecretBase_RedCave1_EventScript_1A3412:: @ 81A3412 checkflag 2052 goto_if 0, SecretBase_RedCave1_EventScript_1A3466 - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3485 lock faceplayer msgbox SecretBase_RedCave1_Text_1A2663, 5 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A346F setvar RESULT, 1 special sub_80BCE4C call S_DoSaveDialog - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A346F hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A2710, 4 @@ -4250,17 +4250,17 @@ SecretBase_RedCave1_EventScript_1A3485:: @ 81A3485 SecretBase_RedCave1_EventScript_1A348E:: @ 81A348E checkflag 2052 goto_if 0, SecretBase_RedCave1_EventScript_1A34E2 - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3501 lock faceplayer msgbox SecretBase_RedCave1_Text_1A2A13, 5 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A34EB setvar RESULT, 1 special sub_80BCE4C call S_DoSaveDialog - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A34EB hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A2AE2, 4 @@ -4381,13 +4381,13 @@ SlateportCity_PokemonFanClub_EventScript_1ADE46:: @ 81ADE46 SlateportCity_PokemonFanClub_EventScript_1ADE4D:: @ 81ADE4D setvar 0x8005, 1 special sub_80BF2C4 - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADED6 copyvar 0x8009, 0x8006 msgbox SlateportCity_PokemonFanClub_Text_1A8704, 5 - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADE84 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADEB9 end @@ -4399,9 +4399,9 @@ SlateportCity_PokemonFanClub_EventScript_1ADE84:: @ 81ADE84 call SlateportCity_PokemonFanClub_EventScript_1A00F3 lock faceplayer - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADEC3 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADEB9 end @@ -4426,24 +4426,24 @@ SlateportCity_OceanicMuseum_1F_EventScript_1ADEE0:: @ 81ADEE0 faceplayer setvar 0x8005, 2 special sub_80BF2C4 - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF96 copyvar 0x8009, 0x8006 checkflag 105 goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF25 setflag 105 msgbox SlateportCity_OceanicMuseum_1F_Text_1A927F, 5 - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF44 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 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 + compare_var_to_imm RESULT, 1 goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF44 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF79 end @@ -4455,9 +4455,9 @@ SlateportCity_OceanicMuseum_1F_EventScript_1ADF44:: @ 81ADF44 call SlateportCity_OceanicMuseum_1F_EventScript_1A00F3 lock faceplayer - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF83 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF79 end @@ -4481,17 +4481,17 @@ SlateportCity_PokemonFanClub_EventScript_1ADFA0:: @ 81ADFA0 lock faceplayer specialval RESULT, sub_80BF544 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADE4D setvar 0x8005, 3 special sub_80BF2C4 - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1AE0AC copyvar 0x8009, 0x8006 msgbox SlateportCity_PokemonFanClub_Text_1A82F1, 5 - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADFE9 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1AE0A2 end @@ -4527,14 +4527,14 @@ SlateportCity_PokemonFanClub_EventScript_1AE04A:: @ 81AE04A call SlateportCity_PokemonFanClub_EventScript_1A00F3 lock faceplayer - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1AE0A2 msgbox SlateportCity_PokemonFanClub_Text_1A852D, 4 setvar 0x8006, 1 call SlateportCity_PokemonFanClub_EventScript_1A00F3 lock faceplayer - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1AE0A2 msgbox SlateportCity_PokemonFanClub_Text_1A85A6, 4 copyvar 0x8007, 0x800a @@ -4562,13 +4562,13 @@ VerdanturfTown_ContestLobby_EventScript_1AE0B6:: @ 81AE0B6 goto_if_eq FallarborTown_ContestLobby_EventScript_1AE17E setvar 0x8005, 6 special sub_80BF2C4 - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq FallarborTown_ContestLobby_EventScript_1AE17E copyvar 0x8009, 0x8006 msgbox FallarborTown_ContestLobby_Text_1A6F7C, 5 - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq FallarborTown_ContestLobby_EventScript_1AE0F8 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq FallarborTown_ContestLobby_EventScript_1AE12D end @@ -4580,9 +4580,9 @@ FallarborTown_ContestLobby_EventScript_1AE0F8:: @ 81AE0F8 call FallarborTown_ContestLobby_EventScript_1A00F3 lock faceplayer - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq FallarborTown_ContestLobby_EventScript_1AE137 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq FallarborTown_ContestLobby_EventScript_1AE12D end @@ -4601,7 +4601,7 @@ FallarborTown_ContestLobby_EventScript_1AE137:: @ 81AE137 call FallarborTown_ContestLobby_EventScript_1A00F3 lock faceplayer - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq FallarborTown_ContestLobby_EventScript_1AE12D msgbox FallarborTown_ContestLobby_Text_1A7153, 4 setflag 2 @@ -4618,11 +4618,11 @@ FallarborTown_ContestLobby_EventScript_1AE188:: @ 81AE188 LilycoveCity_ContestLobby_EventScript_1AE188:: @ 81AE188 SlateportCity_ContestLobby_EventScript_1AE188:: @ 81AE188 VerdanturfTown_ContestLobby_EventScript_1AE188:: @ 81AE188 - compare 0x4086, 2 + compare_var_to_imm 0x4086, 2 goto_if 5, FallarborTown_ContestLobby_EventScript_1AE1FE setvar 0x8005, 6 special sub_80BF2C4 - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq FallarborTown_ContestLobby_EventScript_1AE1FE switch 0x4088 case 0, FallarborTown_ContestLobby_EventScript_1AE1FE @@ -4659,13 +4659,13 @@ BattleTower_Lobby_EventScript_1AE1FF:: @ 81AE1FF goto_if_eq BattleTower_Lobby_EventScript_1AE2E3 setvar 0x8005, 7 special sub_80BF2C4 - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq BattleTower_Lobby_EventScript_1AE2E3 copyvar 0x8009, 0x8006 msgbox BattleTower_Lobby_Text_1A776D, 5 - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq BattleTower_Lobby_EventScript_1AE241 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq BattleTower_Lobby_EventScript_1AE297 end @@ -4674,9 +4674,9 @@ BattleTower_Lobby_EventScript_1AE241:: @ 81AE241 waittext multichoice 19, 8, 45, 1 copyvar 0x8008, RESULT - compare RESULT, 0 + compare_var_to_imm RESULT, 0 call_if 1, BattleTower_Lobby_EventScript_1AE2A1 - compare RESULT, 1 + compare_var_to_imm RESULT, 1 call_if 1, BattleTower_Lobby_EventScript_1AE2AA msgbox BattleTower_Lobby_Text_1A79EB, 4 setvar 0x8004, 12 @@ -4684,9 +4684,9 @@ BattleTower_Lobby_EventScript_1AE241:: @ 81AE241 call BattleTower_Lobby_EventScript_1A00F3 lock faceplayer - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq BattleTower_Lobby_EventScript_1AE2B3 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq BattleTower_Lobby_EventScript_1AE2D9 end @@ -4704,7 +4704,7 @@ BattleTower_Lobby_EventScript_1AE2AA:: @ 81AE2AA return BattleTower_Lobby_EventScript_1AE2B3:: @ 81AE2B3 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq BattleTower_Lobby_EventScript_1AE2D9 msgbox BattleTower_Lobby_Text_1A7A6E, 4 setflag 2 @@ -4724,11 +4724,11 @@ BattleTower_Lobby_EventScript_1AE2E3:: @ 81AE2E3 end BattleTower_Lobby_EventScript_1AE2ED:: @ 81AE2ED - compare 0x40bc, 0 + compare_var_to_imm 0x40bc, 0 goto_if_eq BattleTower_Lobby_EventScript_1AE30F setvar 0x8005, 7 special sub_80BF2C4 - compare RESULT, 1 + compare_var_to_imm RESULT, 1 goto_if_eq BattleTower_Lobby_EventScript_1AE30F clearflag 918 return @@ -4790,11 +4790,11 @@ Text_RepelWoreOff: @ 81C33EF MauvilleCity_GameCorner_EventScript_1C407E:: @ 81C407E checkitem ITEM_COIN_CASE, 1 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5 setvar 0x8004, 0 event_96 2 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq MauvilleCity_GameCorner_EventScript_1C40DA addvar 0x8004, 128 goto MauvilleCity_GameCorner_EventScript_1C40DA @@ -4802,11 +4802,11 @@ MauvilleCity_GameCorner_EventScript_1C407E:: @ 81C407E MauvilleCity_GameCorner_EventScript_1C40AC:: @ 81C40AC checkitem ITEM_COIN_CASE, 1 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5 setvar 0x8004, 1 event_96 2 - compare RESULT, 0 + compare_var_to_imm RESULT, 0 goto_if_eq MauvilleCity_GameCorner_EventScript_1C40DA addvar 0x8004, 128 goto MauvilleCity_GameCorner_EventScript_1C40DA -- cgit v1.2.3 From 207f8e6a76f6b13855780bb2608be9d8c1f14b15 Mon Sep 17 00:00:00 2001 From: camthesaxman Date: Sun, 24 Sep 2017 17:36:39 -0500 Subject: more script command renaming --- data/event_scripts.s | 104 +++++++++++++++++++++++++-------------------------- 1 file changed, 52 insertions(+), 52 deletions(-) (limited to 'data/event_scripts.s') 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 -- cgit v1.2.3 From 598756eaa47b523bd557a619e05cb23399ac02e5 Mon Sep 17 00:00:00 2001 From: camthesaxman Date: Sun, 24 Sep 2017 17:57:54 -0500 Subject: more script command renaming --- data/event_scripts.s | 64 ++++++++++++++++++++++++++-------------------------- 1 file changed, 32 insertions(+), 32 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index bd14ae5d3..f31a00e2a 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -933,8 +933,8 @@ gUnknown_0819F80B:: @ 819F80B gUnknown_0819F818:: @ 819F818 lock faceplayer - move LAST_TALKED, Movement_19F8F0 - waitmove 0 + applymovement LAST_TALKED, Movement_19F8F0 + waitmovement 0 specialvar RESULT, ScrSpecial_HasTrainerBeenFought compare_var_to_imm RESULT, 0 goto_if 5, EventScript_19F83F @@ -970,8 +970,8 @@ EventScript_19F877: endtrainerbattle gUnknown_0819F878:: @ 819F878 - move LAST_TALKED, Movement_19F8F0 - waitmove 0 + applymovement LAST_TALKED, Movement_19F8F0 + waitmovement 0 special PlayTrainerEncounterMusic reptrainerbattle endtrainerbattle @@ -1022,8 +1022,8 @@ EventScript_19F8DE: end EventScript_19F8E5: - move LAST_TALKED, Movement_19F8F0 - waitmove 0 + applymovement LAST_TALKED, Movement_19F8F0 + waitmovement 0 return Movement_19F8F0:: @@ -1443,12 +1443,12 @@ do_heal_party:: @ 819FD7C inccounter GAME_STAT_USED_POKECENTER message gText_NurseJoy_OkayIllTakeYourPokemon waittext - move 0x800b, OldaleTown_PokemonCenter_1F_Movement_1A083F - waitmove 0 + applymovement 0x800b, OldaleTown_PokemonCenter_1F_Movement_1A083F + waitmovement 0 doanimation 25 checkanimation 25 - move 0x800b, OldaleTown_PokemonCenter_1F_Movement_1A0845 - waitmove 0 + applymovement 0x800b, OldaleTown_PokemonCenter_1F_Movement_1A0845 + waitmovement 0 special ScrSpecial_HealPlayerParty checkflag 273 goto_if 0, OldaleTown_PokemonCenter_1F_EventScript_19FDCE @@ -1458,8 +1458,8 @@ do_heal_party:: @ 819FD7C OldaleTown_PokemonCenter_1F_EventScript_19FDB0:: @ 819FDB0 message gText_NurseJoy_ThankYouForWaiting waittext - move 0x800b, OldaleTown_PokemonCenter_1F_Movement_19FDF4 - waitmove 0 + applymovement 0x800b, OldaleTown_PokemonCenter_1F_Movement_19FDF4 + waitmovement 0 message gText_NurseJoy_WeHopeToSeeYouAgain waittext return @@ -2227,8 +2227,8 @@ BattleTower_Outside_EventScript_1A040E:: @ 81A040E LilycoveCity_Harbor_EventScript_1A040E:: @ 81A040E SlateportCity_Harbor_EventScript_1A040E:: @ 81A040E delay 60 - move 0x8004, SlateportCity_Harbor_Movement_1A041C - waitmove 0 + applymovement 0x8004, SlateportCity_Harbor_Movement_1A041C + waitmovement 0 return SlateportCity_Harbor_Movement_1A041C:: @ 81A041C @@ -2264,12 +2264,12 @@ RusturfTunnel_EventScript_1A0442:: @ 81A0442 EventScript_1A0457: @ unreferenced? delay 30 - move 255, SlateportCity_OceanicMuseum_2F_Movement_1A0841 - waitmove 0 + applymovement 255, SlateportCity_OceanicMuseum_2F_Movement_1A0841 + waitmovement 0 spritevisible 255, 0, 0 delay 30 - move 255, Movement_1A047A - waitmove 0 + applymovement 255, Movement_1A047A + waitmovement 0 delay 30 return @@ -2440,10 +2440,10 @@ Route119_EventScript_1A05AE:: @ 81A05AE Route119_EventScript_1A05C3:: @ 81A05C3 msgbox Route119_Text_171BF6, 4 closebutton - move LAST_TALKED, Route119_Movement_1A0839 - waitmove 0 - move LAST_TALKED, Route119_Movement_1A0662 - waitmove 0 + applymovement LAST_TALKED, Route119_Movement_1A0839 + waitmovement 0 + applymovement LAST_TALKED, Route119_Movement_1A0662 + waitmovement 0 waitse pokecry SPECIES_KECLEON, 2 delay 40 @@ -2548,8 +2548,8 @@ EverGrandeCity_DrakesRoom_EventScript_1A0693:: @ 81A0693 EverGrandeCity_GlaciasRoom_EventScript_1A0693:: @ 81A0693 EverGrandeCity_PhoebesRoom_EventScript_1A0693:: @ 81A0693 EverGrandeCity_SidneysRoom_EventScript_1A0693:: @ 81A0693 - move 255, EverGrandeCity_SidneysRoom_Movement_1A0853 - waitmove 0 + applymovement 255, EverGrandeCity_SidneysRoom_Movement_1A0853 + waitmovement 0 playse 8 setmaptile 6, 1, 836, 0 setmaptile 6, 2, 837, 0 @@ -2570,8 +2570,8 @@ EverGrandeCity_DrakesRoom_EventScript_1A0710:: @ 81A0710 EverGrandeCity_GlaciasRoom_EventScript_1A0710:: @ 81A0710 EverGrandeCity_PhoebesRoom_EventScript_1A0710:: @ 81A0710 EverGrandeCity_SidneysRoom_EventScript_1A0710:: @ 81A0710 - move 255, EverGrandeCity_SidneysRoom_Movement_1A0847 - waitmove 0 + applymovement 255, EverGrandeCity_SidneysRoom_Movement_1A0847 + waitmovement 0 playse 52 setmaptile 5, 12, 518, 1 setmaptile 6, 12, 518, 1 @@ -3724,8 +3724,8 @@ EventScript_1A2DB8: end SecretBase_RedCave1_EventScript_1A2DDE:: @ 81A2DDE - move 255, SecretBase_RedCave1_Movement_1A2E11 - waitmove 0 + applymovement 255, SecretBase_RedCave1_Movement_1A2E11 + waitmovement 0 setvar 0x4097, 1 msgbox SecretBase_RedCave1_Text_198F89, 5 compare_var_to_imm RESULT, 1 @@ -4871,8 +4871,8 @@ SkyPillar_4F_MapScript1_1C6BBF:: @ 81C6BBF S_FallDownHole:: @ 81C6BC5 lockall delay 20 - move 255, GraniteCave_B1F_Movement_1C6BF7 - waitmove 0 + applymovement 255, GraniteCave_B1F_Movement_1C6BF7 + waitmovement 0 playse 43 delay 60 warphole UNDEFINED @@ -4882,8 +4882,8 @@ S_FallDownHole:: @ 81C6BC5 gUnknown_081C6BDE:: @ 81C6BDE lockall delay 20 - move 255, GraniteCave_B1F_Movement_1C6BF7 - waitmove 0 + applymovement 255, GraniteCave_B1F_Movement_1C6BF7 + waitmovement 0 playse 43 delay 60 special sp13F_fall_to_last_warp -- cgit v1.2.3 From 9458b3fad18eea3fbd9168a88dd33e8aa10abcda Mon Sep 17 00:00:00 2001 From: camthesaxman Date: Tue, 26 Sep 2017 14:09:41 -0500 Subject: single compare macro --- data/event_scripts.s | 368 +++++++++++++++++++++++++-------------------------- 1 file changed, 184 insertions(+), 184 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index f31a00e2a..0db608cd5 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -430,7 +430,7 @@ EventScript_15F3E2: EventScript_15F419: msgbox UnknownString_81A38FB, 5 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq EventScript_15F384 closebutton special SecretBasePC_PackUp @@ -476,13 +476,13 @@ gUnknown_0815F49A:: @ 815F49A EventScript_15F4A1: special sub_80BC56C - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq EventScript_15F4E0 - compare_var_to_imm RESULT, 2 + compare RESULT, 2 goto_if_eq EventScript_15F503 special sub_80BC224 msgbox UnknownString_81A3958, 5 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq EventScript_15F452 msgbox UnknownString_81A3A22, 3 special sub_80BC5BC @@ -492,7 +492,7 @@ EventScript_15F4A1: EventScript_15F4E0: msgbox UnknownString_81A3982, 5 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq EventScript_15F452 msgbox UnknownString_81A3A3A, 3 special sub_80BC5BC @@ -526,13 +526,13 @@ gUnknown_0815F523:: @ 815F523 gUnknown_0815F528:: @ 815F528 special GetShieldToyTVDecorationInfo - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq EventScript_15F558 - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq EventScript_15F561 - compare_var_to_imm RESULT, 2 + compare RESULT, 2 goto_if_eq EventScript_15F56A - compare_var_to_imm RESULT, 3 + compare RESULT, 3 goto_if_eq EventScript_15F573 end @@ -936,7 +936,7 @@ gUnknown_0819F818:: @ 819F818 applymovement LAST_TALKED, Movement_19F8F0 waitmovement 0 specialvar RESULT, ScrSpecial_HasTrainerBeenFought - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if 5, EventScript_19F83F special PlayTrainerEncounterMusic special sub_8082524 @@ -950,10 +950,10 @@ gUnknown_0819F840:: @ 819F840 faceplayer call EventScript_19F8E5 specialvar RESULT, ScrSpecial_HasTrainerBeenFought - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if 5, EventScript_19F877 special CheckForAlivePartyMons - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if 5, EventScript_19F870 special PlayTrainerEncounterMusic special sub_8082524 @@ -979,7 +979,7 @@ gUnknown_0819F878:: @ 819F878 gUnknown_0819F887:: @ 819F887 call EventScript_19F8E5 specialvar RESULT, ScrSpecial_GetTrainerEyeRematchFlag - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq EventScript_19F8AD special PlayTrainerEncounterMusic special sub_8082524 @@ -996,10 +996,10 @@ EventScript_19F8AD: gUnknown_0819F8AE:: @ 819F8AE specialvar RESULT, ScrSpecial_GetTrainerEyeRematchFlag - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq EventScript_19F8DD special CheckForAlivePartyMons - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if 5, EventScript_19F8DE special PlayTrainerEncounterMusic special sub_8082524 @@ -1036,15 +1036,15 @@ EventScript_19F8F2: waitbutton reptrainerbattle specialvar RESULT, ScrSpecial_GetTrainerBattleMode - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq EventScript_19F934 - compare_var_to_imm RESULT, 2 + compare RESULT, 2 goto_if_eq EventScript_19F936 - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq EventScript_19F936 - compare_var_to_imm RESULT, 6 + compare RESULT, 6 goto_if_eq EventScript_19F936 - compare_var_to_imm RESULT, 8 + compare RESULT, 8 goto_if_eq EventScript_19F936 EventScript_19F934: @@ -1335,11 +1335,11 @@ EventScript_19FC84: return gUnknown_0819FC9F:: @ 819FC9F - compare_var_to_imm 0x4096, 1 + compare 0x4096, 1 goto_if_eq EventScript_19FCC1 - compare_var_to_imm 0x4096, 2 + compare 0x4096, 2 goto_if_eq EventScript_19FCD7 - compare_var_to_imm 0x4096, 3 + compare 0x4096, 3 goto_if_eq EventScript_19FCF0 end @@ -1433,9 +1433,9 @@ VerdanturfTown_PokemonCenter_1F_EventScript_19FD5B:: @ 819FD5B lock faceplayer msgbox gText_NurseJoy_Welcome, MSGBOX_YESNO - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq do_heal_party - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq dont_heal_party end @@ -1471,9 +1471,9 @@ dont_heal_party:: @ 819FDC7 OldaleTown_PokemonCenter_1F_EventScript_19FDCE:: @ 819FDCE specialvar RESULT, IsPokerusInParty - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_19FDEA - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_19FDB0 end @@ -1498,9 +1498,9 @@ Std_ObtainItem_: @ 819FE07 bufferitem 1, 0x8000 checkitemtype 0x8000 call GetItem_HandlePocket - compare_var_to_imm 0x8007, 0x1 + compare 0x8007, 0x1 call_if 1, Std_ObtainItem_Success - compare_var_to_imm 0x8007, 0x0 + compare 0x8007, 0x0 call_if 1, Std_ObtainItem_Fail return @@ -1515,31 +1515,31 @@ GetItem_HandlePocket: GetItem_HandlePocket_Items: bufferstd 2, 0xE - compare_var_to_imm 0x8007, 1 + compare 0x8007, 1 call_if 1, PlayGetItemFanfare return GetItem_HandlePocket_KeyItems: bufferstd 2, 0xF - compare_var_to_imm 0x8007, 1 + compare 0x8007, 1 call_if 1, PlayGetItemFanfare return GetItem_HandlePocket_PokeBalls: bufferstd 2, 0x10 - compare_var_to_imm 0x8007, 1 + compare 0x8007, 1 call_if 1, PlayGetItemFanfare return GetItem_HandlePocket_TMsHMs: bufferstd 2, 0x11 - compare_var_to_imm 0x8007, 1 + compare 0x8007, 1 call_if 1, PlayGetTMHMFanfare return GetItem_HandlePocket_Berries: bufferstd 2, 0x12 - compare_var_to_imm 0x8007, 1 + compare 0x8007, 1 call_if 1, PlayGetItemFanfare return @@ -1571,9 +1571,9 @@ Std_ObtainDecoration: @ 819FEDA Std_ObtainDecoration_: @ 819FEE8 bufferdecor 1, 0x8000 - compare_var_to_imm 0x8007, 1 + compare 0x8007, 1 call_if 1, Std_ObtainDecoration_Success - compare_var_to_imm 0x8007, 0 + compare 0x8007, 0 call_if 1, Std_ObtainDecoration_Fail return @@ -1599,9 +1599,9 @@ Std_FindItem: @ 819FF21 bufferitem 1, 0x8000 checkitemtype 0x8000 call GetItem_HandlePocket - compare_var_to_imm 0x8007, 1 + compare 0x8007, 1 call_if 1, Std_FindItem_Success - compare_var_to_imm 0x8007, 0 + compare 0x8007, 0 call_if 1, Std_FindItem_Fail release return @@ -1628,9 +1628,9 @@ HiddenItemScript:: @ 819FF7B bufferitem 0x1, 0x8005 checkitemtype 0x8005 call GetItem_HandlePocket - compare_var_to_imm 0x8007, 1 + compare 0x8007, 1 goto_if_eq HiddenItemScript_Success - compare_var_to_imm 0x8007, 0 + compare 0x8007, 0 goto_if_eq HiddenItemScript_Fail end @@ -1654,9 +1654,9 @@ UnusedMixRecordsScript: @ 819FFD5 lock faceplayer msgbox UnusedMixRecordsPromptText, 5 - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq UnusedMixRecordsScript_Yes - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq UnusedMixRecordsScript_Done goto UnusedMixRecordsScript_Done UnusedMixRecordsScript_Yes: @ 819FFFA @@ -1811,13 +1811,13 @@ Route109_EventScript_1A010C:: @ 81A010C UseSurfScript:: @ 81A0117 checkattack MOVE_SURF - compare_var_to_imm RESULT, 6 + compare RESULT, 6 goto_if_eq UseSurfScript_NoMon bufferpartypoke 0, RESULT setanimation 0, RESULT lockall msgbox UseSurfPromptText, 5 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq UseSurfScript_No msgbox UsedSurfText, 4 doanimation 9 @@ -1836,9 +1836,9 @@ Route110_EventScript_1A014E:: @ 81A014E Route119_EventScript_1A014E:: @ 81A014E RustboroCity_EventScript_1A014E:: @ 81A014E checkgender - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq RustboroCity_EventScript_1A0166 - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq RustboroCity_EventScript_1A016C end @@ -1854,9 +1854,9 @@ LavaridgeTown_EventScript_1A0172:: @ 81A0172 Route110_EventScript_1A0172:: @ 81A0172 Route119_EventScript_1A0172:: @ 81A0172 checkgender - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq LavaridgeTown_EventScript_1A018A - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq LavaridgeTown_EventScript_1A0190 end @@ -2136,23 +2136,23 @@ Route109_EventScript_1A02EF:: @ 81A02EF LittlerootTown_ProfessorBirchsLab_EventScript_1A02F4:: @ 81A02F4 Route101_EventScript_1A02F4:: @ 81A02F4 Route103_EventScript_1A02F4:: @ 81A02F4 - compare_var_to_imm 0x4085, 0 + compare 0x4085, 0 goto_if_eq Route101_EventScript_1A14DC - compare_var_to_imm 0x4049, 0 + compare 0x4049, 0 call_if 1, Route101_EventScript_1A0358 - compare_var_to_imm 0x4049, 1 + compare 0x4049, 1 call_if 1, Route101_EventScript_1A0358 - compare_var_to_imm 0x4049, 2 + compare 0x4049, 2 call_if 1, Route101_EventScript_1A0365 - compare_var_to_imm 0x4049, 3 + compare 0x4049, 3 call_if 1, Route101_EventScript_1A0365 - compare_var_to_imm 0x4049, 4 + compare 0x4049, 4 call_if 1, Route101_EventScript_1A0372 - compare_var_to_imm 0x4049, 5 + compare 0x4049, 5 call_if 1, Route101_EventScript_1A0372 - compare_var_to_imm 0x4049, 6 + compare 0x4049, 6 call_if 1, Route101_EventScript_1A0358 - compare_var_to_imm 0x4049, 7 + compare 0x4049, 7 call_if 1, Route101_EventScript_1A0358 return @@ -2183,7 +2183,7 @@ Route103_EventScript_1A037F:: @ 81A037F lock faceplayer msgbox Route101_Text_1C4449, 5 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq Route101_EventScript_1A039B call Route101_EventScript_1A03B0 release @@ -2212,7 +2212,7 @@ Route101_EventScript_1A03B0:: @ 81A03B0 buffernum 1, 0x8009 msgbox Route101_Text_1C44DC, 4 call Route101_EventScript_1A03A5 - compare_var_to_imm 0x800a, 0 + compare 0x800a, 0 goto_if_eq Route101_EventScript_1A14DC setvar 0x8004, 1 specialvar RESULT, ScriptGetPokedexInfo @@ -2279,9 +2279,9 @@ Movement_1A047A: BattleTower_Outside_EventScript_1A047C:: @ 81A047C SouthernIsland_Exterior_EventScript_1A047C:: @ 81A047C - compare_var_to_imm FACING, 1 + compare FACING, 1 call_if 1, BattleTower_Outside_EventScript_160B2F - compare_var_to_imm FACING, 3 + compare FACING, 3 call_if 1, BattleTower_Outside_EventScript_160B3A delay 30 spriteinvisible 255, 0, 0 @@ -2424,7 +2424,7 @@ Route119_EventScript_1A0587:: @ 81A0587 Route119_EventScript_1A0594:: @ 81A0594 Route120_EventScript_1A0594:: @ 81A0594 checkitem ITEM_DEVON_SCOPE, 1 - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq Route119_EventScript_1A05AE msgbox Route119_Text_171B93, 4 release @@ -2432,7 +2432,7 @@ Route120_EventScript_1A0594:: @ 81A0594 Route119_EventScript_1A05AE:: @ 81A05AE msgbox Route119_Text_171BB6, 5 - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq Route119_EventScript_1A05C3 release end @@ -2449,19 +2449,19 @@ Route119_EventScript_1A05C3:: @ 81A05C3 delay 40 waitpokecry setwildbattle SPECIES_KECLEON, 30, ITEM_NONE - compare_var_to_imm 0x8004, 1 + compare 0x8004, 1 call_if 1, Route119_EventScript_1A0646 - compare_var_to_imm 0x8004, 2 + compare 0x8004, 2 call_if 1, Route119_EventScript_1A064A - compare_var_to_imm 0x8004, 3 + compare 0x8004, 3 call_if 1, Route119_EventScript_1A064E - compare_var_to_imm 0x8004, 4 + compare 0x8004, 4 call_if 1, Route119_EventScript_1A0652 - compare_var_to_imm 0x8004, 5 + compare 0x8004, 5 call_if 1, Route119_EventScript_1A0656 - compare_var_to_imm 0x8004, 6 + compare 0x8004, 6 call_if 1, Route119_EventScript_1A065A - compare_var_to_imm 0x8004, 7 + compare 0x8004, 7 call_if 1, Route119_EventScript_1A065E setflag 2145 dowildbattle @@ -3253,7 +3253,7 @@ gUnknown_081A14B8:: @ 81A14B8 lockall special ExecuteWhiteOut waitstate - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq EventScript_1A14CA releaseall end @@ -3597,32 +3597,32 @@ SecretBase_RedCave1_Text_1A2BA4:: @ 81A2BA4 gUnknown_081A2C51:: @ 81A2C51 special sub_80BB70C special sub_80BB63C - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq EventScript_1A2E45 checkattack MOVE_SECRET_POWER setanimation 0, RESULT bufferattack 1, MOVE_SECRET_POWER - compare_var_to_imm 0x8007, 1 + compare 0x8007, 1 goto_if_eq EventScript_1A2CB0 - compare_var_to_imm 0x8007, 2 + compare 0x8007, 2 goto_if_eq EventScript_1A2CB0 - compare_var_to_imm 0x8007, 3 + compare 0x8007, 3 goto_if_eq EventScript_1A2CB0 - compare_var_to_imm 0x8007, 4 + compare 0x8007, 4 goto_if_eq EventScript_1A2CB0 - compare_var_to_imm 0x8007, 5 + compare 0x8007, 5 goto_if_eq EventScript_1A2D08 - compare_var_to_imm 0x8007, 6 + compare 0x8007, 6 goto_if_eq EventScript_1A2D60 end EventScript_1A2CB0: lockall - compare_var_to_imm RESULT, 6 + compare RESULT, 6 goto_if_eq EventScript_1A2CF1 bufferpartypoke 0, RESULT msgbox UnknownString_8198F34, 5 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq EventScript_1A2F3A msgbox UsedCutRockSmashText, 4 closebutton @@ -3649,11 +3649,11 @@ EventScript_1A2CFA: EventScript_1A2D08: lockall - compare_var_to_imm RESULT, 6 + compare RESULT, 6 goto_if_eq EventScript_1A2D49 bufferpartypoke 0, RESULT msgbox UnknownString_81A197B, 5 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq EventScript_1A2F3A msgbox UsedCutRockSmashText, 4 closebutton @@ -3680,11 +3680,11 @@ EventScript_1A2D52: EventScript_1A2D60: lockall - compare_var_to_imm RESULT, 6 + compare RESULT, 6 goto_if_eq EventScript_1A2DA1 bufferpartypoke 0, RESULT msgbox UnknownString_81A1A4B, 5 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq EventScript_1A2F3A msgbox UsedCutRockSmashText, 4 closebutton @@ -3728,7 +3728,7 @@ SecretBase_RedCave1_EventScript_1A2DDE:: @ 81A2DDE waitmovement 0 setvar 0x4097, 1 msgbox SecretBase_RedCave1_Text_198F89, 5 - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A2E08 closebutton playse 9 @@ -3752,7 +3752,7 @@ gUnknown_081A2E14:: @ 81A2E14 setvar 0x4097, 1 playse 9 special sub_80BC114 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq EventScript_1A2E38 clearflag 173 special sub_80BBAF0 @@ -3769,57 +3769,57 @@ EventScript_1A2E38: EventScript_1A2E45: checkattack MOVE_SECRET_POWER - compare_var_to_imm RESULT, 6 + compare RESULT, 6 goto_if_eq EventScript_1A2EF7 setanimation 0, RESULT setorcopyvar 0x8004, RESULT lockall special GetSecretBaseNearbyMapName msgbox UnknownString_81A3C71, 5 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq EventScript_1A2F3A msgbox UnknownString_81A38FB, 5 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq EventScript_1A2F3A fadescreen 1 special sub_80BC50C closebutton fadescreen 0 msgbox UnknownString_81A3CC9, 5 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq EventScript_1A2F3A bufferpartypoke 0, 0x8004 bufferattack 1, MOVE_SECRET_POWER msgbox UsedCutRockSmashText, 4 closebutton closebutton - compare_var_to_imm 0x8007, 1 + compare 0x8007, 1 goto_if_eq gUnknown_081A2CE6 - compare_var_to_imm 0x8007, 2 + compare 0x8007, 2 goto_if_eq gUnknown_081A2CE6 - compare_var_to_imm 0x8007, 3 + compare 0x8007, 3 goto_if_eq gUnknown_081A2CE6 - compare_var_to_imm 0x8007, 4 + compare 0x8007, 4 goto_if_eq gUnknown_081A2CE6 - compare_var_to_imm 0x8007, 5 + compare 0x8007, 5 goto_if_eq gUnknown_081A2D3E - compare_var_to_imm 0x8007, 6 + compare 0x8007, 6 goto_if_eq gUnknown_081A2D96 releaseall end EventScript_1A2EF7:: - compare_var_to_imm 0x8007, 1 + compare 0x8007, 1 goto_if_eq EventScript_1A2CF1 - compare_var_to_imm 0x8007, 2 + compare 0x8007, 2 goto_if_eq EventScript_1A2CF1 - compare_var_to_imm 0x8007, 3 + compare 0x8007, 3 goto_if_eq EventScript_1A2CF1 - compare_var_to_imm 0x8007, 4 + compare 0x8007, 4 goto_if_eq EventScript_1A2CF1 - compare_var_to_imm 0x8007, 5 + compare 0x8007, 5 goto_if_eq EventScript_1A2D49 - compare_var_to_imm 0x8007, 6 + compare 0x8007, 6 goto_if_eq EventScript_1A2DA1 end @@ -3872,10 +3872,10 @@ gUnknown_081A2F8A:: @ 81A2F8A EventScript_1A2F95: special sub_8100A7C - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq EventScript_1A2FBF addvar 0x8004, 1 - compare_var_to_imm 0x8005, 0 + compare 0x8005, 0 goto_if_eq EventScript_1A2F95 disappear 0x8006 setflag 0x8005 @@ -3910,42 +3910,42 @@ SecretBase_YellowCave2_EventScript_1A2FC0:: @ 81A2FC0 SecretBase_YellowCave3_EventScript_1A2FC0:: @ 81A2FC0 SecretBase_YellowCave4_EventScript_1A2FC0:: @ 81A2FC0 special sub_80BCE90 - compare_var_to_imm 0x8004, 0 + compare 0x8004, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A3032 - compare_var_to_imm 0x8004, 1 + compare 0x8004, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A30AE - compare_var_to_imm 0x8004, 2 + compare 0x8004, 2 goto_if_eq SecretBase_RedCave1_EventScript_1A312A - compare_var_to_imm 0x8004, 3 + compare 0x8004, 3 goto_if_eq SecretBase_RedCave1_EventScript_1A31A6 - compare_var_to_imm 0x8004, 4 + compare 0x8004, 4 goto_if_eq SecretBase_RedCave1_EventScript_1A3222 - compare_var_to_imm 0x8004, 5 + compare 0x8004, 5 goto_if_eq SecretBase_RedCave1_EventScript_1A329E - compare_var_to_imm 0x8004, 6 + compare 0x8004, 6 goto_if_eq SecretBase_RedCave1_EventScript_1A331A - compare_var_to_imm 0x8004, 7 + compare 0x8004, 7 goto_if_eq SecretBase_RedCave1_EventScript_1A3396 - compare_var_to_imm 0x8004, 8 + compare 0x8004, 8 goto_if_eq SecretBase_RedCave1_EventScript_1A3412 - compare_var_to_imm 0x8004, 9 + compare 0x8004, 9 goto_if_eq SecretBase_RedCave1_EventScript_1A348E end SecretBase_RedCave1_EventScript_1A3032:: @ 81A3032 checkflag 2052 goto_if 0, SecretBase_RedCave1_EventScript_1A3086 - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A30A5 lock faceplayer msgbox SecretBase_RedCave1_Text_1A1AEA, 5 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A308F setvar RESULT, 1 special sub_80BCE4C call S_DoSaveDialog - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A308F hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A1B83, 4 @@ -3970,17 +3970,17 @@ SecretBase_RedCave1_EventScript_1A30A5:: @ 81A30A5 SecretBase_RedCave1_EventScript_1A30AE:: @ 81A30AE checkflag 2052 goto_if 0, SecretBase_RedCave1_EventScript_1A3102 - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3121 lock faceplayer msgbox SecretBase_RedCave1_Text_1A1E67, 5 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A310B setvar RESULT, 1 special sub_80BCE4C call S_DoSaveDialog - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A310B hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A1F04, 4 @@ -4005,17 +4005,17 @@ SecretBase_RedCave1_EventScript_1A3121:: @ 81A3121 SecretBase_RedCave1_EventScript_1A312A:: @ 81A312A checkflag 2052 goto_if 0, SecretBase_RedCave1_EventScript_1A317E - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A319D lock faceplayer msgbox SecretBase_RedCave1_Text_1A218F, 5 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A3187 setvar RESULT, 1 special sub_80BCE4C call S_DoSaveDialog - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A3187 hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A2220, 4 @@ -4040,17 +4040,17 @@ SecretBase_RedCave1_EventScript_1A319D:: @ 81A319D SecretBase_RedCave1_EventScript_1A31A6:: @ 81A31A6 checkflag 2052 goto_if 0, SecretBase_RedCave1_EventScript_1A31FA - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3219 lock faceplayer msgbox SecretBase_RedCave1_Text_1A24E1, 5 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A3203 setvar RESULT, 1 special sub_80BCE4C call S_DoSaveDialog - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A3203 hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A256F, 4 @@ -4075,17 +4075,17 @@ SecretBase_RedCave1_EventScript_1A3219:: @ 81A3219 SecretBase_RedCave1_EventScript_1A3222:: @ 81A3222 checkflag 2052 goto_if 0, SecretBase_RedCave1_EventScript_1A3276 - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3295 lock faceplayer msgbox SecretBase_RedCave1_Text_1A2830, 5 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A327F setvar RESULT, 1 special sub_80BCE4C call S_DoSaveDialog - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A327F hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A28D7, 4 @@ -4110,17 +4110,17 @@ SecretBase_RedCave1_EventScript_1A3295:: @ 81A3295 SecretBase_RedCave1_EventScript_1A329E:: @ 81A329E checkflag 2052 goto_if 0, SecretBase_RedCave1_EventScript_1A32F2 - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3311 lock faceplayer msgbox SecretBase_RedCave1_Text_1A1CB2, 5 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A32FB setvar RESULT, 1 special sub_80BCE4C call S_DoSaveDialog - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A32FB hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A1D48, 4 @@ -4145,17 +4145,17 @@ SecretBase_RedCave1_EventScript_1A3311:: @ 81A3311 SecretBase_RedCave1_EventScript_1A331A:: @ 81A331A checkflag 2052 goto_if 0, SecretBase_RedCave1_EventScript_1A336E - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A338D lock faceplayer msgbox SecretBase_RedCave1_Text_1A2026, 5 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A3377 setvar RESULT, 1 special sub_80BCE4C call S_DoSaveDialog - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A3377 hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A2095, 4 @@ -4180,17 +4180,17 @@ SecretBase_RedCave1_EventScript_1A338D:: @ 81A338D SecretBase_RedCave1_EventScript_1A3396:: @ 81A3396 checkflag 2052 goto_if 0, SecretBase_RedCave1_EventScript_1A33EA - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3409 lock faceplayer msgbox SecretBase_RedCave1_Text_1A236A, 5 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A33F3 setvar RESULT, 1 special sub_80BCE4C call S_DoSaveDialog - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A33F3 hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A2405, 4 @@ -4215,17 +4215,17 @@ SecretBase_RedCave1_EventScript_1A3409:: @ 81A3409 SecretBase_RedCave1_EventScript_1A3412:: @ 81A3412 checkflag 2052 goto_if 0, SecretBase_RedCave1_EventScript_1A3466 - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3485 lock faceplayer msgbox SecretBase_RedCave1_Text_1A2663, 5 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A346F setvar RESULT, 1 special sub_80BCE4C call S_DoSaveDialog - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A346F hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A2710, 4 @@ -4250,17 +4250,17 @@ SecretBase_RedCave1_EventScript_1A3485:: @ 81A3485 SecretBase_RedCave1_EventScript_1A348E:: @ 81A348E checkflag 2052 goto_if 0, SecretBase_RedCave1_EventScript_1A34E2 - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3501 lock faceplayer msgbox SecretBase_RedCave1_Text_1A2A13, 5 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A34EB setvar RESULT, 1 special sub_80BCE4C call S_DoSaveDialog - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A34EB hidebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A2AE2, 4 @@ -4381,13 +4381,13 @@ SlateportCity_PokemonFanClub_EventScript_1ADE46:: @ 81ADE46 SlateportCity_PokemonFanClub_EventScript_1ADE4D:: @ 81ADE4D setvar 0x8005, 1 special sub_80BF2C4 - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADED6 copyvar 0x8009, 0x8006 msgbox SlateportCity_PokemonFanClub_Text_1A8704, 5 - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADE84 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADEB9 end @@ -4399,9 +4399,9 @@ SlateportCity_PokemonFanClub_EventScript_1ADE84:: @ 81ADE84 call SlateportCity_PokemonFanClub_EventScript_1A00F3 lock faceplayer - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADEC3 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADEB9 end @@ -4426,24 +4426,24 @@ SlateportCity_OceanicMuseum_1F_EventScript_1ADEE0:: @ 81ADEE0 faceplayer setvar 0x8005, 2 special sub_80BF2C4 - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF96 copyvar 0x8009, 0x8006 checkflag 105 goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF25 setflag 105 msgbox SlateportCity_OceanicMuseum_1F_Text_1A927F, 5 - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF44 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF79 end SlateportCity_OceanicMuseum_1F_EventScript_1ADF25:: @ 81ADF25 msgbox SlateportCity_OceanicMuseum_1F_Text_1A934C, 5 - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF44 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF79 end @@ -4455,9 +4455,9 @@ SlateportCity_OceanicMuseum_1F_EventScript_1ADF44:: @ 81ADF44 call SlateportCity_OceanicMuseum_1F_EventScript_1A00F3 lock faceplayer - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF83 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF79 end @@ -4481,17 +4481,17 @@ SlateportCity_PokemonFanClub_EventScript_1ADFA0:: @ 81ADFA0 lock faceplayer specialvar RESULT, sub_80BF544 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADE4D setvar 0x8005, 3 special sub_80BF2C4 - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1AE0AC copyvar 0x8009, 0x8006 msgbox SlateportCity_PokemonFanClub_Text_1A82F1, 5 - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADFE9 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1AE0A2 end @@ -4527,14 +4527,14 @@ SlateportCity_PokemonFanClub_EventScript_1AE04A:: @ 81AE04A call SlateportCity_PokemonFanClub_EventScript_1A00F3 lock faceplayer - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1AE0A2 msgbox SlateportCity_PokemonFanClub_Text_1A852D, 4 setvar 0x8006, 1 call SlateportCity_PokemonFanClub_EventScript_1A00F3 lock faceplayer - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1AE0A2 msgbox SlateportCity_PokemonFanClub_Text_1A85A6, 4 copyvar 0x8007, 0x800a @@ -4562,13 +4562,13 @@ VerdanturfTown_ContestLobby_EventScript_1AE0B6:: @ 81AE0B6 goto_if_eq FallarborTown_ContestLobby_EventScript_1AE17E setvar 0x8005, 6 special sub_80BF2C4 - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq FallarborTown_ContestLobby_EventScript_1AE17E copyvar 0x8009, 0x8006 msgbox FallarborTown_ContestLobby_Text_1A6F7C, 5 - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq FallarborTown_ContestLobby_EventScript_1AE0F8 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq FallarborTown_ContestLobby_EventScript_1AE12D end @@ -4580,9 +4580,9 @@ FallarborTown_ContestLobby_EventScript_1AE0F8:: @ 81AE0F8 call FallarborTown_ContestLobby_EventScript_1A00F3 lock faceplayer - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq FallarborTown_ContestLobby_EventScript_1AE137 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq FallarborTown_ContestLobby_EventScript_1AE12D end @@ -4601,7 +4601,7 @@ FallarborTown_ContestLobby_EventScript_1AE137:: @ 81AE137 call FallarborTown_ContestLobby_EventScript_1A00F3 lock faceplayer - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq FallarborTown_ContestLobby_EventScript_1AE12D msgbox FallarborTown_ContestLobby_Text_1A7153, 4 setflag 2 @@ -4618,11 +4618,11 @@ FallarborTown_ContestLobby_EventScript_1AE188:: @ 81AE188 LilycoveCity_ContestLobby_EventScript_1AE188:: @ 81AE188 SlateportCity_ContestLobby_EventScript_1AE188:: @ 81AE188 VerdanturfTown_ContestLobby_EventScript_1AE188:: @ 81AE188 - compare_var_to_imm 0x4086, 2 + compare 0x4086, 2 goto_if 5, FallarborTown_ContestLobby_EventScript_1AE1FE setvar 0x8005, 6 special sub_80BF2C4 - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq FallarborTown_ContestLobby_EventScript_1AE1FE switch 0x4088 case 0, FallarborTown_ContestLobby_EventScript_1AE1FE @@ -4659,13 +4659,13 @@ BattleTower_Lobby_EventScript_1AE1FF:: @ 81AE1FF goto_if_eq BattleTower_Lobby_EventScript_1AE2E3 setvar 0x8005, 7 special sub_80BF2C4 - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq BattleTower_Lobby_EventScript_1AE2E3 copyvar 0x8009, 0x8006 msgbox BattleTower_Lobby_Text_1A776D, 5 - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq BattleTower_Lobby_EventScript_1AE241 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq BattleTower_Lobby_EventScript_1AE297 end @@ -4674,9 +4674,9 @@ BattleTower_Lobby_EventScript_1AE241:: @ 81AE241 waittext multichoice 19, 8, 45, 1 copyvar 0x8008, RESULT - compare_var_to_imm RESULT, 0 + compare RESULT, 0 call_if 1, BattleTower_Lobby_EventScript_1AE2A1 - compare_var_to_imm RESULT, 1 + compare RESULT, 1 call_if 1, BattleTower_Lobby_EventScript_1AE2AA msgbox BattleTower_Lobby_Text_1A79EB, 4 setvar 0x8004, 12 @@ -4684,9 +4684,9 @@ BattleTower_Lobby_EventScript_1AE241:: @ 81AE241 call BattleTower_Lobby_EventScript_1A00F3 lock faceplayer - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq BattleTower_Lobby_EventScript_1AE2B3 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq BattleTower_Lobby_EventScript_1AE2D9 end @@ -4704,7 +4704,7 @@ BattleTower_Lobby_EventScript_1AE2AA:: @ 81AE2AA return BattleTower_Lobby_EventScript_1AE2B3:: @ 81AE2B3 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq BattleTower_Lobby_EventScript_1AE2D9 msgbox BattleTower_Lobby_Text_1A7A6E, 4 setflag 2 @@ -4724,11 +4724,11 @@ BattleTower_Lobby_EventScript_1AE2E3:: @ 81AE2E3 end BattleTower_Lobby_EventScript_1AE2ED:: @ 81AE2ED - compare_var_to_imm 0x40bc, 0 + compare 0x40bc, 0 goto_if_eq BattleTower_Lobby_EventScript_1AE30F setvar 0x8005, 7 special sub_80BF2C4 - compare_var_to_imm RESULT, 1 + compare RESULT, 1 goto_if_eq BattleTower_Lobby_EventScript_1AE30F clearflag 918 return @@ -4790,11 +4790,11 @@ Text_RepelWoreOff: @ 81C33EF MauvilleCity_GameCorner_EventScript_1C407E:: @ 81C407E checkitem ITEM_COIN_CASE, 1 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5 setvar 0x8004, 0 event_96 2 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq MauvilleCity_GameCorner_EventScript_1C40DA addvar 0x8004, 128 goto MauvilleCity_GameCorner_EventScript_1C40DA @@ -4802,11 +4802,11 @@ MauvilleCity_GameCorner_EventScript_1C407E:: @ 81C407E MauvilleCity_GameCorner_EventScript_1C40AC:: @ 81C40AC checkitem ITEM_COIN_CASE, 1 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5 setvar 0x8004, 1 event_96 2 - compare_var_to_imm RESULT, 0 + compare RESULT, 0 goto_if_eq MauvilleCity_GameCorner_EventScript_1C40DA addvar 0x8004, 128 goto MauvilleCity_GameCorner_EventScript_1C40DA -- cgit v1.2.3 From b4ba35a54c0f6204e34d2814351162c79ea4c0ba Mon Sep 17 00:00:00 2001 From: camthesaxman Date: Tue, 26 Sep 2017 14:33:52 -0500 Subject: more command renaming --- data/event_scripts.s | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 0db608cd5..32cb8d233 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -1607,7 +1607,7 @@ Std_FindItem: @ 819FF21 return Std_FindItem_Success: @ 819FF52 - disappear LAST_TALKED + removeobject LAST_TALKED message Message_FoundOneItem waitfanfare waittext @@ -2254,8 +2254,8 @@ PetalburgCity_Gym_EventScript_1A0424:: @ 81A0424 return RusturfTunnel_EventScript_1A0442:: @ 81A0442 - disappear 1 - disappear 10 + removeobject 1 + removeobject 10 clearflag 808 clearflag 984 setvar 0x409a, 6 @@ -2266,7 +2266,7 @@ EventScript_1A0457: @ unreferenced? delay 30 applymovement 255, SlateportCity_OceanicMuseum_2F_Movement_1A0841 waitmovement 0 - spritevisible 255, 0, 0 + showobject 255, 0, 0 delay 30 applymovement 255, Movement_1A047A waitmovement 0 @@ -2284,7 +2284,7 @@ SouthernIsland_Exterior_EventScript_1A047C:: @ 81A047C compare FACING, 3 call_if 1, BattleTower_Outside_EventScript_160B3A delay 30 - spriteinvisible 255, 0, 0 + hideobject 255, 0, 0 call BattleTower_Outside_EventScript_1A040E return @@ -3877,7 +3877,7 @@ EventScript_1A2F95: addvar 0x8004, 1 compare 0x8005, 0 goto_if_eq EventScript_1A2F95 - disappear 0x8006 + removeobject 0x8006 setflag 0x8005 goto EventScript_1A2F95 end -- cgit v1.2.3 From 676ffb73cad2a5ec4173a09d525fda68dd2bd0f7 Mon Sep 17 00:00:00 2001 From: camthesaxman Date: Sat, 30 Sep 2017 15:38:46 -0500 Subject: stuff... I don't remember --- data/event_scripts.s | 94 ++++++++++++++++++++++++++-------------------------- 1 file changed, 47 insertions(+), 47 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 32cb8d233..1359199d3 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -943,7 +943,7 @@ gUnknown_0819F818:: @ 819F818 goto EventScript_19F8F2 EventScript_19F83F: - endtrainerbattle + ontrainerbattleend gUnknown_0819F840:: @ 819F840 lock @@ -967,14 +967,14 @@ EventScript_19F870: end EventScript_19F877: - endtrainerbattle + ontrainerbattleend gUnknown_0819F878:: @ 819F878 applymovement LAST_TALKED, Movement_19F8F0 waitmovement 0 special PlayTrainerEncounterMusic - reptrainerbattle - endtrainerbattle + battlebegin + ontrainerbattleend gUnknown_0819F887:: @ 819F887 call EventScript_19F8E5 @@ -992,7 +992,7 @@ gUnknown_0819F887:: @ 819F887 end EventScript_19F8AD: - endtrainerbattle + ontrainerbattleend gUnknown_0819F8AE:: @ 819F8AE specialvar RESULT, ScrSpecial_GetTrainerEyeRematchFlag @@ -1012,7 +1012,7 @@ gUnknown_0819F8AE:: @ 819F8AE end EventScript_19F8DD: - endtrainerbattle + ontrainerbattleend EventScript_19F8DE: special ScrSpecial_ShowTrainerNonBattlingSpeech @@ -1034,7 +1034,7 @@ EventScript_19F8F2: special ScrSpecial_ShowTrainerIntroSpeech waittext waitbutton - reptrainerbattle + battlebegin specialvar RESULT, ScrSpecial_GetTrainerBattleMode compare RESULT, 0 goto_if_eq EventScript_19F934 @@ -1052,7 +1052,7 @@ EventScript_19F934: end EventScript_19F936: - endtrainerbattle2 + ontrainerbattleendgoto Std_6:: message 0x0 @@ -1939,66 +1939,66 @@ SootopolisCity_Gym_1F_EventScript_1A01C0:: @ 81A01C0 end DewfordTown_Gym_EventScript_1A021E:: @ 81A021E - cleartrainerflag OPPONENT_JOSH - cleartrainerflag OPPONENT_TOMMY + settrainerflag OPPONENT_JOSH + settrainerflag OPPONENT_TOMMY return DewfordTown_Gym_EventScript_1A0225:: @ 81A0225 - cleartrainerflag OPPONENT_HIDEKI - cleartrainerflag OPPONENT_TESSA - cleartrainerflag OPPONENT_LAURA + settrainerflag OPPONENT_HIDEKI + settrainerflag OPPONENT_TESSA + settrainerflag OPPONENT_LAURA return DewfordTown_Gym_EventScript_1A022F:: @ 81A022F - cleartrainerflag OPPONENT_KIRK - cleartrainerflag OPPONENT_SHAWN - cleartrainerflag OPPONENT_BEN - cleartrainerflag OPPONENT_VIVIAN + settrainerflag OPPONENT_KIRK + settrainerflag OPPONENT_SHAWN + settrainerflag OPPONENT_BEN + settrainerflag OPPONENT_VIVIAN return DewfordTown_Gym_EventScript_1A023C:: @ 81A023C - cleartrainerflag OPPONENT_COLE - cleartrainerflag OPPONENT_AXLE - cleartrainerflag OPPONENT_ANDY - cleartrainerflag OPPONENT_ZANE - cleartrainerflag OPPONENT_SADIE + settrainerflag OPPONENT_COLE + settrainerflag OPPONENT_AXLE + settrainerflag OPPONENT_ANDY + settrainerflag OPPONENT_ZANE + settrainerflag OPPONENT_SADIE return DewfordTown_Gym_EventScript_1A024C:: @ 81A024C - cleartrainerflag OPPONENT_RANDALL - cleartrainerflag OPPONENT_PARKER - cleartrainerflag OPPONENT_GEORGE - cleartrainerflag OPPONENT_BERKE - cleartrainerflag OPPONENT_MARY - cleartrainerflag OPPONENT_LORI - cleartrainerflag OPPONENT_JODY + settrainerflag OPPONENT_RANDALL + settrainerflag OPPONENT_PARKER + settrainerflag OPPONENT_GEORGE + settrainerflag OPPONENT_BERKE + settrainerflag OPPONENT_MARY + settrainerflag OPPONENT_LORI + settrainerflag OPPONENT_JODY return DewfordTown_Gym_EventScript_1A0262:: @ 81A0262 - cleartrainerflag OPPONENT_JARED - cleartrainerflag OPPONENT_TERRELL - cleartrainerflag OPPONENT_KYLEE - cleartrainerflag OPPONENT_WILL + settrainerflag OPPONENT_JARED + settrainerflag OPPONENT_TERRELL + settrainerflag OPPONENT_KYLEE + settrainerflag OPPONENT_WILL return DewfordTown_Gym_EventScript_1A026F:: @ 81A026F - cleartrainerflag OPPONENT_PRESTON - cleartrainerflag OPPONENT_VIRGIL - cleartrainerflag OPPONENT_FRITZ - cleartrainerflag OPPONENT_HANNAH - cleartrainerflag OPPONENT_SAMANTHA - cleartrainerflag OPPONENT_MAURA + settrainerflag OPPONENT_PRESTON + settrainerflag OPPONENT_VIRGIL + settrainerflag OPPONENT_FRITZ + settrainerflag OPPONENT_HANNAH + settrainerflag OPPONENT_SAMANTHA + settrainerflag OPPONENT_MAURA return DewfordTown_Gym_EventScript_1A0282:: @ 81A0282 - cleartrainerflag OPPONENT_ANDREA - cleartrainerflag OPPONENT_CRISSY - cleartrainerflag OPPONENT_BRIANNA_2 - cleartrainerflag OPPONENT_CONNIE - cleartrainerflag OPPONENT_BRIDGET - cleartrainerflag OPPONENT_OLIVIA - cleartrainerflag OPPONENT_TIFFANY - cleartrainerflag OPPONENT_MARISSA + settrainerflag OPPONENT_ANDREA + settrainerflag OPPONENT_CRISSY + settrainerflag OPPONENT_BRIANNA_2 + settrainerflag OPPONENT_CONNIE + settrainerflag OPPONENT_BRIDGET + settrainerflag OPPONENT_OLIVIA + settrainerflag OPPONENT_TIFFANY + settrainerflag OPPONENT_MARISSA return DewfordTown_Gym_EventScript_1A029B:: @ 81A029B -- cgit v1.2.3 From e926119b726839bc687c503db3680899906aad0d Mon Sep 17 00:00:00 2001 From: camthesaxman Date: Sat, 30 Sep 2017 17:04:25 -0500 Subject: update --- data/event_scripts.s | 136 +++++++++++++++++++++++++-------------------------- 1 file changed, 68 insertions(+), 68 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 1359199d3..01120b194 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -390,7 +390,7 @@ gUnknown_0815F36C:: @ 815F36C message UnknownString_81A3A72 doanimation 61 waitstate - waittext + waitmessage waitbutton playse 5 goto EventScript_15F384 @@ -398,7 +398,7 @@ gUnknown_0815F36C:: @ 815F36C EventScript_15F384: message UnknownString_81A3A87 - waittext + waitmessage checkflag 268 goto_if_eq EventScript_15F3A0 goto EventScript_15F3E2 @@ -432,7 +432,7 @@ EventScript_15F419: msgbox UnknownString_81A38FB, 5 compare RESULT, 0 goto_if_eq EventScript_15F384 - closebutton + closemessage special SecretBasePC_PackUp releaseall end @@ -451,7 +451,7 @@ gUnknown_0815F43A:: @ 815F43A playse 2 doanimation 61 waitstate - waittext + waitmessage waitbutton playse 5 goto EventScript_15F452 @@ -459,7 +459,7 @@ gUnknown_0815F43A:: @ 815F43A EventScript_15F452: message UnknownString_81A3A87 - waittext + waitmessage multichoice 0, 0, 7, 0 switch RESULT case 0, EventScript_15F4A1 @@ -503,19 +503,19 @@ EventScript_15F4E0: EventScript_15F503: msgbox UnknownString_81A39C0, 3 special sub_80C683C - closebutton + closemessage releaseall end EventScript_15F511: message UnknownString_81A3AA2 - waittext + waitmessage goto EventScript_15F452 end EventScript_15F51D: special sub_80C683C - closebutton + closemessage releaseall end @@ -890,7 +890,7 @@ Std_2: lock faceplayer message 0x0 - waittext + waitmessage waitbutton release return @@ -898,20 +898,20 @@ Std_2: Std_3: lockall message 0x0 - waittext + waitmessage waitbutton releaseall return Std_4: message 0x0 - waittext + waitmessage waitbutton return Std_5: message 0x0 - waittext + waitmessage yesnobox 20, 8 return @@ -961,7 +961,7 @@ gUnknown_0819F840:: @ 819F840 EventScript_19F870: special ScrSpecial_ShowTrainerNonBattlingSpeech - waittext + waitmessage waitbutton release end @@ -984,7 +984,7 @@ gUnknown_0819F887:: @ 819F887 special PlayTrainerEncounterMusic special sub_8082524 special ScrSpecial_ShowTrainerIntroSpeech - waittext + waitmessage waitbutton special ScrSpecial_StartTrainerEyeRematch waitstate @@ -1004,7 +1004,7 @@ gUnknown_0819F8AE:: @ 819F8AE special PlayTrainerEncounterMusic special sub_8082524 special ScrSpecial_ShowTrainerIntroSpeech - waittext + waitmessage waitbutton special ScrSpecial_StartTrainerEyeRematch waitstate @@ -1016,7 +1016,7 @@ EventScript_19F8DD: EventScript_19F8DE: special ScrSpecial_ShowTrainerNonBattlingSpeech - waittext + waitmessage waitbutton release end @@ -1032,7 +1032,7 @@ Movement_19F8F0:: EventScript_19F8F2: special ScrSpecial_ShowTrainerIntroSpeech - waittext + waitmessage waitbutton battlebegin specialvar RESULT, ScrSpecial_GetTrainerBattleMode @@ -1056,7 +1056,7 @@ EventScript_19F936: Std_6:: message 0x0 - waittext + waitmessage waitbutton release return @@ -1442,7 +1442,7 @@ VerdanturfTown_PokemonCenter_1F_EventScript_19FD5B:: @ 819FD5B do_heal_party:: @ 819FD7C inccounter GAME_STAT_USED_POKECENTER message gText_NurseJoy_OkayIllTakeYourPokemon - waittext + waitmessage applymovement 0x800b, OldaleTown_PokemonCenter_1F_Movement_1A083F waitmovement 0 doanimation 25 @@ -1457,16 +1457,16 @@ do_heal_party:: @ 819FD7C OldaleTown_PokemonCenter_1F_EventScript_19FDB0:: @ 819FDB0 message gText_NurseJoy_ThankYouForWaiting - waittext + waitmessage applymovement 0x800b, OldaleTown_PokemonCenter_1F_Movement_19FDF4 waitmovement 0 message gText_NurseJoy_WeHopeToSeeYouAgain - waittext + waitmessage return dont_heal_party:: @ 819FDC7 message gText_NurseJoy_WeHopeToSeeYouAgain - waittext + waitmessage return OldaleTown_PokemonCenter_1F_EventScript_19FDCE:: @ 819FDCE @@ -1479,7 +1479,7 @@ OldaleTown_PokemonCenter_1F_EventScript_19FDCE:: @ 819FDCE OldaleTown_PokemonCenter_1F_EventScript_19FDEA:: @ 819FDEA message gText_NurseJoy_Pokerus - waittext + waitmessage setflag 273 return @@ -1546,7 +1546,7 @@ GetItem_HandlePocket_Berries: Std_ObtainItem_Success: @ 819FEB7 message Message_ObtainedItem waitfanfare - waittext + waitmessage msgbox Message_PutAwayItem setvar RESULT, 1 return @@ -1581,7 +1581,7 @@ Std_ObtainDecoration_Success: @ 819FF03 playfanfare 0x172 message Message_ObtainedDecoration waitfanfare - waittext + waitmessage msgbox Message_TransferredToPC setvar RESULT, 1 return @@ -1610,7 +1610,7 @@ Std_FindItem_Success: @ 819FF52 removeobject LAST_TALKED message Message_FoundOneItem waitfanfare - waittext + waitmessage msgbox Message_PutAwayItem return @@ -1637,7 +1637,7 @@ HiddenItemScript:: @ 819FF7B HiddenItemScript_Success: message Message_FoundOneItem waitfanfare - waittext + waitmessage msgbox Message_PutAwayItem special SetFlagInVar releaseall @@ -1666,7 +1666,7 @@ UnusedMixRecordsScript_Yes: @ 819FFFA faceplayer UnusedMixRecordsScript_Done: @ 81A0000 message UnusedMixRecordsSeeYouAgainText - waittext + waitmessage waitbutton release end @@ -1682,7 +1682,7 @@ gUnknown_081A0009:: @ 81A0009 EventScript_1A0023: message gPCText_WhichPCShouldBeAccessed - waittext + waitmessage special ScrSpecial_CreatePCMenu waitstate goto EventScript_1A0033 @@ -1810,7 +1810,7 @@ Route109_EventScript_1A010C:: @ 81A010C return UseSurfScript:: @ 81A0117 - checkattack MOVE_SURF + checkpokemove MOVE_SURF compare RESULT, 6 goto_if_eq UseSurfScript_NoMon bufferpartypoke 0, RESULT @@ -2197,7 +2197,7 @@ Route101_EventScript_1A039B:: @ 81A039B Route101_EventScript_1A03A5:: @ 81A03A5 copyvar 0x8004, 0x8009 special ShowPokedexRatingMessage - waittext + waitmessage waitbutton return @@ -2439,7 +2439,7 @@ Route119_EventScript_1A05AE:: @ 81A05AE Route119_EventScript_1A05C3:: @ 81A05C3 msgbox Route119_Text_171BF6, 4 - closebutton + closemessage applymovement LAST_TALKED, Route119_Movement_1A0839 waitmovement 0 applymovement LAST_TALKED, Route119_Movement_1A0662 @@ -2539,7 +2539,7 @@ SlateportCity_OceanicMuseum_2F_EventScript_1A067F:: @ 81A067F bufferitem 0, 0x8004 playfanfare 372 message FallarborTown_House1_Text_1A1498 - waittext + waitmessage waitfanfare removeitem 0x8004, 1 return @@ -3260,7 +3260,7 @@ gUnknown_081A14B8:: @ 81A14B8 EventScript_1A14CA:: message UnknownString_81A1141 - waittext + waitmessage waitbutton special sub_8081924 waitstate @@ -3599,7 +3599,7 @@ gUnknown_081A2C51:: @ 81A2C51 special sub_80BB63C compare RESULT, 1 goto_if_eq EventScript_1A2E45 - checkattack MOVE_SECRET_POWER + checkpokemove MOVE_SECRET_POWER setanimation 0, RESULT bufferattack 1, MOVE_SECRET_POWER compare 0x8007, 1 @@ -3625,7 +3625,7 @@ EventScript_1A2CB0: compare RESULT, 0 goto_if_eq EventScript_1A2F3A msgbox UsedCutRockSmashText, 4 - closebutton + closemessage doanimation 11 waitstate goto EventScript_1A2CFA @@ -3656,7 +3656,7 @@ EventScript_1A2D08: compare RESULT, 0 goto_if_eq EventScript_1A2F3A msgbox UsedCutRockSmashText, 4 - closebutton + closemessage doanimation 26 waitstate goto EventScript_1A2D52 @@ -3687,7 +3687,7 @@ EventScript_1A2D60: compare RESULT, 0 goto_if_eq EventScript_1A2F3A msgbox UsedCutRockSmashText, 4 - closebutton + closemessage doanimation 27 waitstate goto EventScript_1A2DAA @@ -3710,7 +3710,7 @@ EventScript_1A2DAA: end EventScript_1A2DB8: - closebutton + closemessage playse 9 setvar 0x4097, 0 setflag 173 @@ -3730,13 +3730,13 @@ SecretBase_RedCave1_EventScript_1A2DDE:: @ 81A2DDE msgbox SecretBase_RedCave1_Text_198F89, 5 compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A2E08 - closebutton + closemessage playse 9 special sub_80BC440 end SecretBase_RedCave1_EventScript_1A2E08:: @ 81A2E08 - closebutton + closemessage setflag 96 special sub_80BBC78 waitstate @@ -3768,7 +3768,7 @@ EventScript_1A2E38: end EventScript_1A2E45: - checkattack MOVE_SECRET_POWER + checkpokemove MOVE_SECRET_POWER compare RESULT, 6 goto_if_eq EventScript_1A2EF7 setanimation 0, RESULT @@ -3783,7 +3783,7 @@ EventScript_1A2E45: goto_if_eq EventScript_1A2F3A fadescreen 1 special sub_80BC50C - closebutton + closemessage fadescreen 0 msgbox UnknownString_81A3CC9, 5 compare RESULT, 0 @@ -3791,8 +3791,8 @@ EventScript_1A2E45: bufferpartypoke 0, 0x8004 bufferattack 1, MOVE_SECRET_POWER msgbox UsedCutRockSmashText, 4 - closebutton - closebutton + closemessage + closemessage compare 0x8007, 1 goto_if_eq gUnknown_081A2CE6 compare 0x8007, 2 @@ -3824,7 +3824,7 @@ EventScript_1A2EF7:: end EventScript_1A2F3A:: - closebutton + closemessage releaseall end @@ -3947,7 +3947,7 @@ SecretBase_RedCave1_EventScript_1A3032:: @ 81A3032 call S_DoSaveDialog compare RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A308F - hidebox 0, 0, 15, 10 + erasebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A1B83, 4 goto SecretBase_RedCave1_EventScript_1A350A end @@ -3959,7 +3959,7 @@ SecretBase_RedCave1_EventScript_1A3086:: @ 81A3086 SecretBase_RedCave1_EventScript_1A308F:: @ 81A308F setvar RESULT, 0 special sub_80BCE4C - hidebox 0, 0, 15, 10 + erasebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A1B97, 2 end @@ -3982,7 +3982,7 @@ SecretBase_RedCave1_EventScript_1A30AE:: @ 81A30AE call S_DoSaveDialog compare RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A310B - hidebox 0, 0, 15, 10 + erasebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A1F04, 4 goto SecretBase_RedCave1_EventScript_1A350A end @@ -3994,7 +3994,7 @@ SecretBase_RedCave1_EventScript_1A3102:: @ 81A3102 SecretBase_RedCave1_EventScript_1A310B:: @ 81A310B setvar RESULT, 0 special sub_80BCE4C - hidebox 0, 0, 15, 10 + erasebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A1F2E, 2 end @@ -4017,7 +4017,7 @@ SecretBase_RedCave1_EventScript_1A312A:: @ 81A312A call S_DoSaveDialog compare RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A3187 - hidebox 0, 0, 15, 10 + erasebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A2220, 4 goto SecretBase_RedCave1_EventScript_1A350A end @@ -4029,7 +4029,7 @@ SecretBase_RedCave1_EventScript_1A317E:: @ 81A317E SecretBase_RedCave1_EventScript_1A3187:: @ 81A3187 setvar RESULT, 0 special sub_80BCE4C - hidebox 0, 0, 15, 10 + erasebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A2230, 2 end @@ -4052,7 +4052,7 @@ SecretBase_RedCave1_EventScript_1A31A6:: @ 81A31A6 call S_DoSaveDialog compare RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A3203 - hidebox 0, 0, 15, 10 + erasebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A256F, 4 goto SecretBase_RedCave1_EventScript_1A350A end @@ -4064,7 +4064,7 @@ SecretBase_RedCave1_EventScript_1A31FA:: @ 81A31FA SecretBase_RedCave1_EventScript_1A3203:: @ 81A3203 setvar RESULT, 0 special sub_80BCE4C - hidebox 0, 0, 15, 10 + erasebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A258A, 2 end @@ -4087,7 +4087,7 @@ SecretBase_RedCave1_EventScript_1A3222:: @ 81A3222 call S_DoSaveDialog compare RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A327F - hidebox 0, 0, 15, 10 + erasebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A28D7, 4 goto SecretBase_RedCave1_EventScript_1A350A end @@ -4099,7 +4099,7 @@ SecretBase_RedCave1_EventScript_1A3276:: @ 81A3276 SecretBase_RedCave1_EventScript_1A327F:: @ 81A327F setvar RESULT, 0 special sub_80BCE4C - hidebox 0, 0, 15, 10 + erasebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A28F4, 2 end @@ -4122,7 +4122,7 @@ SecretBase_RedCave1_EventScript_1A329E:: @ 81A329E call S_DoSaveDialog compare RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A32FB - hidebox 0, 0, 15, 10 + erasebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A1D48, 4 goto SecretBase_RedCave1_EventScript_1A350A end @@ -4134,7 +4134,7 @@ SecretBase_RedCave1_EventScript_1A32F2:: @ 81A32F2 SecretBase_RedCave1_EventScript_1A32FB:: @ 81A32FB setvar RESULT, 0 special sub_80BCE4C - hidebox 0, 0, 15, 10 + erasebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A1D59, 2 end @@ -4157,7 +4157,7 @@ SecretBase_RedCave1_EventScript_1A331A:: @ 81A331A call S_DoSaveDialog compare RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A3377 - hidebox 0, 0, 15, 10 + erasebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A2095, 4 goto SecretBase_RedCave1_EventScript_1A350A end @@ -4169,7 +4169,7 @@ SecretBase_RedCave1_EventScript_1A336E:: @ 81A336E SecretBase_RedCave1_EventScript_1A3377:: @ 81A3377 setvar RESULT, 0 special sub_80BCE4C - hidebox 0, 0, 15, 10 + erasebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A20AE, 2 end @@ -4192,7 +4192,7 @@ SecretBase_RedCave1_EventScript_1A3396:: @ 81A3396 call S_DoSaveDialog compare RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A33F3 - hidebox 0, 0, 15, 10 + erasebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A2405, 4 goto SecretBase_RedCave1_EventScript_1A350A end @@ -4204,7 +4204,7 @@ SecretBase_RedCave1_EventScript_1A33EA:: @ 81A33EA SecretBase_RedCave1_EventScript_1A33F3:: @ 81A33F3 setvar RESULT, 0 special sub_80BCE4C - hidebox 0, 0, 15, 10 + erasebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A2420, 2 end @@ -4227,7 +4227,7 @@ SecretBase_RedCave1_EventScript_1A3412:: @ 81A3412 call S_DoSaveDialog compare RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A346F - hidebox 0, 0, 15, 10 + erasebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A2710, 4 goto SecretBase_RedCave1_EventScript_1A350A end @@ -4239,7 +4239,7 @@ SecretBase_RedCave1_EventScript_1A3466:: @ 81A3466 SecretBase_RedCave1_EventScript_1A346F:: @ 81A346F setvar RESULT, 0 special sub_80BCE4C - hidebox 0, 0, 15, 10 + erasebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A2736, 2 end @@ -4262,7 +4262,7 @@ SecretBase_RedCave1_EventScript_1A348E:: @ 81A348E call S_DoSaveDialog compare RESULT, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A34EB - hidebox 0, 0, 15, 10 + erasebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A2AE2, 4 goto SecretBase_RedCave1_EventScript_1A350A end @@ -4274,7 +4274,7 @@ SecretBase_RedCave1_EventScript_1A34E2:: @ 81A34E2 SecretBase_RedCave1_EventScript_1A34EB:: @ 81A34EB setvar RESULT, 0 special sub_80BCE4C - hidebox 0, 0, 15, 10 + erasebox 0, 0, 15, 10 msgbox SecretBase_RedCave1_Text_1A2AFB, 2 end @@ -4671,7 +4671,7 @@ BattleTower_Lobby_EventScript_1AE1FF:: @ 81AE1FF BattleTower_Lobby_EventScript_1AE241:: @ 81AE241 message BattleTower_Lobby_Text_1A7823 - waittext + waitmessage multichoice 19, 8, 45, 1 copyvar 0x8008, RESULT compare RESULT, 0 @@ -4919,7 +4919,7 @@ gUnknown_081C6C02:: @ 81C6C02 lockall braillemsg Underwater_SealedChamber_Braille_1C533D waitbutton - hidebox 0, 0, 29, 19 + erasebox 0, 0, 29, 19 releaseall end -- cgit v1.2.3 From 6ca1e8747d0278eb5a8e5d7f5ec74801a3e1aded Mon Sep 17 00:00:00 2001 From: camthesaxman Date: Sun, 1 Oct 2017 11:51:50 -0500 Subject: fix more command names --- data/event_scripts.s | 204 +++++++++++++++++++++++++-------------------------- 1 file changed, 102 insertions(+), 102 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 01120b194..fddae04a9 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -1062,86 +1062,86 @@ Std_6:: return Event_ResetBerryTrees: @ 19F940 - event_8a 2, 7, 5 - event_8a 1, 3, 5 - event_8a 11, 7, 5 - event_8a 13, 3, 5 - event_8a 4, 7, 5 - event_8a 76, 1, 5 - event_8a 8, 1, 5 - event_8a 10, 6, 5 - event_8a 25, 20, 5 - event_8a 26, 2, 5 - event_8a 66, 2, 5 - event_8a 67, 20, 5 - event_8a 69, 22, 5 - event_8a 70, 22, 5 - event_8a 71, 22, 5 - event_8a 55, 17, 5 - event_8a 56, 17, 5 - event_8a 5, 1, 5 - event_8a 6, 6, 5 - event_8a 7, 1, 5 - event_8a 16, 18, 5 - event_8a 17, 18, 5 - event_8a 18, 18, 5 - event_8a 29, 19, 5 - event_8a 28, 19, 5 - event_8a 27, 19, 5 - event_8a 24, 4, 5 - event_8a 23, 3, 5 - event_8a 22, 3, 5 - event_8a 21, 4, 5 - event_8a 19, 16, 5 - event_8a 20, 16, 5 - event_8a 80, 7, 5 - event_8a 81, 7, 5 - event_8a 77, 8, 5 - event_8a 78, 8, 5 - event_8a 68, 8, 5 - event_8a 31, 10, 5 - event_8a 33, 10, 5 - event_8a 34, 21, 5 - event_8a 35, 21, 5 - event_8a 36, 21, 5 - event_8a 83, 24, 5 - event_8a 84, 24, 5 - event_8a 85, 10, 5 - event_8a 86, 6, 5 - event_8a 37, 5, 5 - event_8a 38, 5, 5 - event_8a 39, 5, 5 - event_8a 40, 3, 5 - event_8a 41, 3, 5 - event_8a 42, 3, 5 - event_8a 46, 19, 5 - event_8a 45, 20, 5 - event_8a 44, 18, 5 - event_8a 43, 16, 5 - event_8a 47, 8, 5 - event_8a 48, 5, 5 - event_8a 49, 4, 5 - event_8a 50, 2, 5 - event_8a 52, 18, 5 - event_8a 53, 18, 5 - event_8a 62, 6, 5 - event_8a 64, 6, 5 - event_8a 58, 21, 5 - event_8a 59, 21, 5 - event_8a 60, 25, 5 - event_8a 61, 25, 5 - event_8a 79, 23, 5 - event_8a 14, 23, 5 - event_8a 15, 21, 5 - event_8a 30, 21, 5 - event_8a 65, 25, 5 - event_8a 72, 25, 5 - event_8a 73, 23, 5 - event_8a 74, 23, 5 - event_8a 87, 3, 5 - event_8a 88, 10, 5 - event_8a 89, 4, 5 - event_8a 82, 36, 5 + plantberrytree 2, 7, 5 + plantberrytree 1, 3, 5 + plantberrytree 11, 7, 5 + plantberrytree 13, 3, 5 + plantberrytree 4, 7, 5 + plantberrytree 76, 1, 5 + plantberrytree 8, 1, 5 + plantberrytree 10, 6, 5 + plantberrytree 25, 20, 5 + plantberrytree 26, 2, 5 + plantberrytree 66, 2, 5 + plantberrytree 67, 20, 5 + plantberrytree 69, 22, 5 + plantberrytree 70, 22, 5 + plantberrytree 71, 22, 5 + plantberrytree 55, 17, 5 + plantberrytree 56, 17, 5 + plantberrytree 5, 1, 5 + plantberrytree 6, 6, 5 + plantberrytree 7, 1, 5 + plantberrytree 16, 18, 5 + plantberrytree 17, 18, 5 + plantberrytree 18, 18, 5 + plantberrytree 29, 19, 5 + plantberrytree 28, 19, 5 + plantberrytree 27, 19, 5 + plantberrytree 24, 4, 5 + plantberrytree 23, 3, 5 + plantberrytree 22, 3, 5 + plantberrytree 21, 4, 5 + plantberrytree 19, 16, 5 + plantberrytree 20, 16, 5 + plantberrytree 80, 7, 5 + plantberrytree 81, 7, 5 + plantberrytree 77, 8, 5 + plantberrytree 78, 8, 5 + plantberrytree 68, 8, 5 + plantberrytree 31, 10, 5 + plantberrytree 33, 10, 5 + plantberrytree 34, 21, 5 + plantberrytree 35, 21, 5 + plantberrytree 36, 21, 5 + plantberrytree 83, 24, 5 + plantberrytree 84, 24, 5 + plantberrytree 85, 10, 5 + plantberrytree 86, 6, 5 + plantberrytree 37, 5, 5 + plantberrytree 38, 5, 5 + plantberrytree 39, 5, 5 + plantberrytree 40, 3, 5 + plantberrytree 41, 3, 5 + plantberrytree 42, 3, 5 + plantberrytree 46, 19, 5 + plantberrytree 45, 20, 5 + plantberrytree 44, 18, 5 + plantberrytree 43, 16, 5 + plantberrytree 47, 8, 5 + plantberrytree 48, 5, 5 + plantberrytree 49, 4, 5 + plantberrytree 50, 2, 5 + plantberrytree 52, 18, 5 + plantberrytree 53, 18, 5 + plantberrytree 62, 6, 5 + plantberrytree 64, 6, 5 + plantberrytree 58, 21, 5 + plantberrytree 59, 21, 5 + plantberrytree 60, 25, 5 + plantberrytree 61, 25, 5 + plantberrytree 79, 23, 5 + plantberrytree 14, 23, 5 + plantberrytree 15, 21, 5 + plantberrytree 30, 21, 5 + plantberrytree 65, 25, 5 + plantberrytree 72, 25, 5 + plantberrytree 73, 23, 5 + plantberrytree 74, 23, 5 + plantberrytree 87, 3, 5 + plantberrytree 88, 10, 5 + plantberrytree 89, 4, 5 + plantberrytree 82, 36, 5 return gUnknown_0819FA81:: @ 819FA81 @@ -1495,7 +1495,7 @@ Std_ObtainItem: @ 819FDF7 return Std_ObtainItem_: @ 819FE07 - bufferitem 1, 0x8000 + getitemname 1, 0x8000 checkitemtype 0x8000 call GetItem_HandlePocket compare 0x8007, 0x1 @@ -1514,31 +1514,31 @@ GetItem_HandlePocket: end GetItem_HandlePocket_Items: - bufferstd 2, 0xE + getstdstring 2, 0xE compare 0x8007, 1 call_if 1, PlayGetItemFanfare return GetItem_HandlePocket_KeyItems: - bufferstd 2, 0xF + getstdstring 2, 0xF compare 0x8007, 1 call_if 1, PlayGetItemFanfare return GetItem_HandlePocket_PokeBalls: - bufferstd 2, 0x10 + getstdstring 2, 0x10 compare 0x8007, 1 call_if 1, PlayGetItemFanfare return GetItem_HandlePocket_TMsHMs: - bufferstd 2, 0x11 + getstdstring 2, 0x11 compare 0x8007, 1 call_if 1, PlayGetTMHMFanfare return GetItem_HandlePocket_Berries: - bufferstd 2, 0x12 + getstdstring 2, 0x12 compare 0x8007, 1 call_if 1, PlayGetItemFanfare return @@ -1570,7 +1570,7 @@ Std_ObtainDecoration: @ 819FEDA return Std_ObtainDecoration_: @ 819FEE8 - bufferdecor 1, 0x8000 + getdecorname 1, 0x8000 compare 0x8007, 1 call_if 1, Std_ObtainDecoration_Success compare 0x8007, 0 @@ -1596,7 +1596,7 @@ Std_FindItem: @ 819FF21 waitse additem 0x8000, 0x8001 copyvar 0x8007, RESULT - bufferitem 1, 0x8000 + getitemname 1, 0x8000 checkitemtype 0x8000 call GetItem_HandlePocket compare 0x8007, 1 @@ -1625,7 +1625,7 @@ HiddenItemScript:: @ 819FF7B waitse additem 0x8005, 1 copyvar 0x8007, RESULT - bufferitem 0x1, 0x8005 + getitemname 0x1, 0x8005 checkitemtype 0x8005 call GetItem_HandlePocket compare 0x8007, 1 @@ -1813,7 +1813,7 @@ UseSurfScript:: @ 81A0117 checkpokemove MOVE_SURF compare RESULT, 6 goto_if_eq UseSurfScript_NoMon - bufferpartypoke 0, RESULT + getpartypokename 0, RESULT setanimation 0, RESULT lockall msgbox UseSurfPromptText, 5 @@ -2208,8 +2208,8 @@ Route101_EventScript_1A03B0:: @ 81A03B0 copyvar 0x8008, 0x8005 copyvar 0x8009, 0x8006 copyvar 0x800a, RESULT - buffernum 0, 0x8008 - buffernum 1, 0x8009 + getnumberstring 0, 0x8008 + getnumberstring 1, 0x8009 msgbox Route101_Text_1C44DC, 4 call Route101_EventScript_1A03A5 compare 0x800a, 0 @@ -2218,8 +2218,8 @@ Route101_EventScript_1A03B0:: @ 81A03B0 specialvar RESULT, ScriptGetPokedexInfo copyvar 0x8008, 0x8005 copyvar 0x8009, 0x8006 - buffernum 0, 0x8008 - buffernum 1, 0x8009 + getnumberstring 0, 0x8008 + getnumberstring 1, 0x8009 msgbox Route101_Text_1C4B05, 4 return @@ -2536,7 +2536,7 @@ FallarborTown_House1_EventScript_1A067F:: @ 81A067F GraniteCave_StevensRoom_EventScript_1A067F:: @ 81A067F MtPyre_Summit_EventScript_1A067F:: @ 81A067F SlateportCity_OceanicMuseum_2F_EventScript_1A067F:: @ 81A067F - bufferitem 0, 0x8004 + getitemname 0, 0x8004 playfanfare 372 message FallarborTown_House1_Text_1A1498 waitmessage @@ -3601,7 +3601,7 @@ gUnknown_081A2C51:: @ 81A2C51 goto_if_eq EventScript_1A2E45 checkpokemove MOVE_SECRET_POWER setanimation 0, RESULT - bufferattack 1, MOVE_SECRET_POWER + getmovename 1, MOVE_SECRET_POWER compare 0x8007, 1 goto_if_eq EventScript_1A2CB0 compare 0x8007, 2 @@ -3620,7 +3620,7 @@ EventScript_1A2CB0: lockall compare RESULT, 6 goto_if_eq EventScript_1A2CF1 - bufferpartypoke 0, RESULT + getpartypokename 0, RESULT msgbox UnknownString_8198F34, 5 compare RESULT, 0 goto_if_eq EventScript_1A2F3A @@ -3651,7 +3651,7 @@ EventScript_1A2D08: lockall compare RESULT, 6 goto_if_eq EventScript_1A2D49 - bufferpartypoke 0, RESULT + getpartypokename 0, RESULT msgbox UnknownString_81A197B, 5 compare RESULT, 0 goto_if_eq EventScript_1A2F3A @@ -3682,7 +3682,7 @@ EventScript_1A2D60: lockall compare RESULT, 6 goto_if_eq EventScript_1A2DA1 - bufferpartypoke 0, RESULT + getpartypokename 0, RESULT msgbox UnknownString_81A1A4B, 5 compare RESULT, 0 goto_if_eq EventScript_1A2F3A @@ -3788,8 +3788,8 @@ EventScript_1A2E45: msgbox UnknownString_81A3CC9, 5 compare RESULT, 0 goto_if_eq EventScript_1A2F3A - bufferpartypoke 0, 0x8004 - bufferattack 1, MOVE_SECRET_POWER + getpartypokename 0, 0x8004 + getmovename 1, MOVE_SECRET_POWER msgbox UsedCutRockSmashText, 4 closemessage closemessage @@ -4917,7 +4917,7 @@ gUnknown_081C6C02:: @ 81C6C02 @ 81C6C1D lockall - braillemsg Underwater_SealedChamber_Braille_1C533D + braillemessage Underwater_SealedChamber_Braille_1C533D waitbutton erasebox 0, 0, 29, 19 releaseall -- cgit v1.2.3 From 639493e0ee82d173e58d9a791b37ab08106e16fa Mon Sep 17 00:00:00 2001 From: camthesaxman Date: Sun, 1 Oct 2017 12:07:22 -0500 Subject: fix more command names --- data/event_scripts.s | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index fddae04a9..1ceb9a7c0 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -4764,7 +4764,7 @@ BattleTower_Lobby_EventScript_1AE30F:: @ 81AE30F gUnknown_081B694A:: @ 81B694A lighten 1 - darken 1 + setdarklevel 1 end .include "data/scripts/players_house.inc" @@ -4793,7 +4793,7 @@ MauvilleCity_GameCorner_EventScript_1C407E:: @ 81C407E compare RESULT, 0 goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5 setvar 0x8004, 0 - event_96 2 + getpricereduction 2 compare RESULT, 0 goto_if_eq MauvilleCity_GameCorner_EventScript_1C40DA addvar 0x8004, 128 @@ -4805,7 +4805,7 @@ MauvilleCity_GameCorner_EventScript_1C40AC:: @ 81C40AC compare RESULT, 0 goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5 setvar 0x8004, 1 - event_96 2 + getpricereduction 2 compare RESULT, 0 goto_if_eq MauvilleCity_GameCorner_EventScript_1C40DA addvar 0x8004, 128 -- cgit v1.2.3 From 89092b609a9af15a35b0151442e9881aeab28708 Mon Sep 17 00:00:00 2001 From: camthesaxman Date: Sun, 1 Oct 2017 12:21:52 -0500 Subject: fix more command names --- data/event_scripts.s | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 1ceb9a7c0..eb29c159d 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -388,7 +388,7 @@ gUnknown_0815F36C:: @ 815F36C lockall playse 2 message UnknownString_81A3A72 - doanimation 61 + dofieldeffect 61 waitstate waitmessage waitbutton @@ -449,7 +449,7 @@ gUnknown_0815F43A:: @ 815F43A lockall message UnknownString_81A3A72 playse 2 - doanimation 61 + dofieldeffect 61 waitstate waitmessage waitbutton @@ -520,7 +520,7 @@ EventScript_15F51D: end gUnknown_0815F523:: @ 815F523 - doanimation 52 + dofieldeffect 52 waitstate end @@ -1445,8 +1445,8 @@ do_heal_party:: @ 819FD7C waitmessage applymovement 0x800b, OldaleTown_PokemonCenter_1F_Movement_1A083F waitmovement 0 - doanimation 25 - checkanimation 25 + dofieldeffect 25 + waitfieldeffect 25 applymovement 0x800b, OldaleTown_PokemonCenter_1F_Movement_1A0845 waitmovement 0 special ScrSpecial_HealPlayerParty @@ -1814,13 +1814,13 @@ UseSurfScript:: @ 81A0117 compare RESULT, 6 goto_if_eq UseSurfScript_NoMon getpartypokename 0, RESULT - setanimation 0, RESULT + setfieldeffect 0, RESULT lockall msgbox UseSurfPromptText, 5 compare RESULT, 0 goto_if_eq UseSurfScript_No msgbox UsedSurfText, 4 - doanimation 9 + dofieldeffect 9 UseSurfScript_No: @ 81A014C releaseall UseSurfScript_NoMon: @ 81A014D @@ -1835,7 +1835,7 @@ Route103_EventScript_1A014E:: @ 81A014E Route110_EventScript_1A014E:: @ 81A014E Route119_EventScript_1A014E:: @ 81A014E RustboroCity_EventScript_1A014E:: @ 81A014E - checkgender + checkplayergender compare RESULT, 0 goto_if_eq RustboroCity_EventScript_1A0166 compare RESULT, 1 @@ -1853,7 +1853,7 @@ RustboroCity_EventScript_1A016C:: @ 81A016C LavaridgeTown_EventScript_1A0172:: @ 81A0172 Route110_EventScript_1A0172:: @ 81A0172 Route119_EventScript_1A0172:: @ 81A0172 - checkgender + checkplayergender compare RESULT, 0 goto_if_eq LavaridgeTown_EventScript_1A018A compare RESULT, 1 @@ -2291,7 +2291,7 @@ SouthernIsland_Exterior_EventScript_1A047C:: @ 81A047C CaveOfOrigin_B4F_EventScript_1A04A0:: @ 81A04A0 lockall waitse - pokecry SPECIES_GROUDON_OR_KYOGRE, 2 + playpokecry SPECIES_GROUDON_OR_KYOGRE, 2 waitpokecry setvar 0x4005, 1 releaseall @@ -2346,7 +2346,7 @@ MagmaHideout_B1F_EventScript_1A04FD:: @ 81A04FD faceplayer setwildbattle SPECIES_ELECTRODE, 30, ITEM_NONE waitse - pokecry SPECIES_ELECTRODE, 2 + playpokecry SPECIES_ELECTRODE, 2 delay 40 waitpokecry setflag 977 @@ -2362,7 +2362,7 @@ MagmaHideout_B1F_EventScript_1A051B:: @ 81A051B faceplayer setwildbattle SPECIES_ELECTRODE, 30, ITEM_NONE waitse - pokecry SPECIES_ELECTRODE, 2 + playpokecry SPECIES_ELECTRODE, 2 delay 40 waitpokecry setflag 978 @@ -2445,7 +2445,7 @@ Route119_EventScript_1A05C3:: @ 81A05C3 applymovement LAST_TALKED, Route119_Movement_1A0662 waitmovement 0 waitse - pokecry SPECIES_KECLEON, 2 + playpokecry SPECIES_KECLEON, 2 delay 40 waitpokecry setwildbattle SPECIES_KECLEON, 30, ITEM_NONE @@ -3600,7 +3600,7 @@ gUnknown_081A2C51:: @ 81A2C51 compare RESULT, 1 goto_if_eq EventScript_1A2E45 checkpokemove MOVE_SECRET_POWER - setanimation 0, RESULT + setfieldeffect 0, RESULT getmovename 1, MOVE_SECRET_POWER compare 0x8007, 1 goto_if_eq EventScript_1A2CB0 @@ -3626,14 +3626,14 @@ EventScript_1A2CB0: goto_if_eq EventScript_1A2F3A msgbox UsedCutRockSmashText, 4 closemessage - doanimation 11 + dofieldeffect 11 waitstate goto EventScript_1A2CFA end gUnknown_081A2CE6:: @ 81A2CE6 lockall - doanimation 11 + dofieldeffect 11 waitstate goto EventScript_1A2CFA end @@ -3657,14 +3657,14 @@ EventScript_1A2D08: goto_if_eq EventScript_1A2F3A msgbox UsedCutRockSmashText, 4 closemessage - doanimation 26 + dofieldeffect 26 waitstate goto EventScript_1A2D52 end gUnknown_081A2D3E:: @ 81A2D3E lockall - doanimation 26 + dofieldeffect 26 waitstate goto EventScript_1A2D52 end @@ -3688,14 +3688,14 @@ EventScript_1A2D60: goto_if_eq EventScript_1A2F3A msgbox UsedCutRockSmashText, 4 closemessage - doanimation 27 + dofieldeffect 27 waitstate goto EventScript_1A2DAA end gUnknown_081A2D96:: @ 81A2D96 lockall - doanimation 27 + dofieldeffect 27 waitstate goto EventScript_1A2DAA end @@ -3771,7 +3771,7 @@ EventScript_1A2E45: checkpokemove MOVE_SECRET_POWER compare RESULT, 6 goto_if_eq EventScript_1A2EF7 - setanimation 0, RESULT + setfieldeffect 0, RESULT setorcopyvar 0x8004, RESULT lockall special GetSecretBaseNearbyMapName @@ -4763,7 +4763,7 @@ BattleTower_Lobby_EventScript_1AE30F:: @ 81AE30F .include "data/text/magma_summit.inc" gUnknown_081B694A:: @ 81B694A - lighten 1 + animdarklevel 1 setdarklevel 1 end -- cgit v1.2.3 From 3505da56b15432062be0b49fc9d212b12f0bea15 Mon Sep 17 00:00:00 2001 From: camthesaxman Date: Sun, 1 Oct 2017 12:40:07 -0500 Subject: fix more command names --- data/event_scripts.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index eb29c159d..854b52c9e 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -1440,7 +1440,7 @@ VerdanturfTown_PokemonCenter_1F_EventScript_19FD5B:: @ 819FD5B end do_heal_party:: @ 819FD7C - inccounter GAME_STAT_USED_POKECENTER + incrementgamestat GAME_STAT_USED_POKECENTER message gText_NurseJoy_OkayIllTakeYourPokemon waitmessage applymovement 0x800b, OldaleTown_PokemonCenter_1F_Movement_1A083F @@ -4374,7 +4374,7 @@ FallarborTown_ContestLobby_EventScript_1ADE46:: @ 81ADE46 SlateportCity_OceanicMuseum_1F_EventScript_1ADE46:: @ 81ADE46 SlateportCity_PokemonFanClub_EventScript_1ADE46:: @ 81ADE46 special sub_80BDE48 - inccounter GAME_STAT_GOT_INTERVIEWED + incrementgamestat GAME_STAT_GOT_INTERVIEWED release end -- cgit v1.2.3 From e0e5d070fa7a19235c6e8ba9b57b618ff86b8895 Mon Sep 17 00:00:00 2001 From: sceptillion <33798691+sceptillion@users.noreply.github.com> Date: Sun, 19 Nov 2017 01:31:09 -0800 Subject: decompile fldeff_secret_base_pc --- data/event_scripts.s | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 854b52c9e..6d2a3693c 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -486,7 +486,7 @@ EventScript_15F4A1: goto_if_eq EventScript_15F452 msgbox UnknownString_81A3A22, 3 special sub_80BC5BC - special sub_80C683C + special DoSecretBasePCTurnOffEffect releaseall end @@ -496,13 +496,13 @@ EventScript_15F4E0: goto_if_eq EventScript_15F452 msgbox UnknownString_81A3A3A, 3 special sub_80BC5BC - special sub_80C683C + special DoSecretBasePCTurnOffEffect releaseall end EventScript_15F503: msgbox UnknownString_81A39C0, 3 - special sub_80C683C + special DoSecretBasePCTurnOffEffect closemessage releaseall end @@ -514,7 +514,7 @@ EventScript_15F511: end EventScript_15F51D: - special sub_80C683C + special DoSecretBasePCTurnOffEffect closemessage releaseall end -- cgit v1.2.3 From 5f242ae6cee377d219defa8290ef1c164b003f52 Mon Sep 17 00:00:00 2001 From: camthesaxman Date: Sun, 26 Nov 2017 13:00:26 -0600 Subject: abilities, songs, species constants --- data/event_scripts.s | 1 + 1 file changed, 1 insertion(+) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 6d2a3693c..e735250c5 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -1,3 +1,4 @@ +#include "constants/songs.h" .include "asm/macros.inc" .include "asm/macros/event.inc" .include "constants/constants.inc" -- cgit v1.2.3 From 43349392dc4c79494af0e0727065c57ff78e1e92 Mon Sep 17 00:00:00 2001 From: camthesaxman Date: Sun, 26 Nov 2017 14:04:00 -0600 Subject: easy_chat constants --- data/event_scripts.s | 2 ++ 1 file changed, 2 insertions(+) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index e735250c5..4ef10652b 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -1,4 +1,6 @@ +#include "constants/moves.h" #include "constants/songs.h" +#include "constants/species.h" .include "asm/macros.inc" .include "asm/macros/event.inc" .include "constants/constants.inc" -- cgit v1.2.3 From 026e017a16df44806b95435403a8e3b8dbe78084 Mon Sep 17 00:00:00 2001 From: camthesaxman Date: Sun, 26 Nov 2017 15:10:56 -0600 Subject: flag, vars, items constants --- data/event_scripts.s | 1 + 1 file changed, 1 insertion(+) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 4ef10652b..270a5d787 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -1,3 +1,4 @@ +#include "constants/items.h" #include "constants/moves.h" #include "constants/songs.h" #include "constants/species.h" -- cgit v1.2.3 From 611984671904aa19cf678c59ff2a8682cba09224 Mon Sep 17 00:00:00 2001 From: camthesaxman Date: Sun, 26 Nov 2017 17:01:50 -0600 Subject: opponents, map_objects, hold_effects, game_stat, decorations, battle_move_effects constants --- data/event_scripts.s | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 270a5d787..faa9b8406 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -1,5 +1,9 @@ +#include "constants/decorations.h" +#include "constants/game_stat.h" #include "constants/items.h" +#include "constants/map_objects.h" #include "constants/moves.h" +#include "constants/opponents.h" #include "constants/songs.h" #include "constants/species.h" .include "asm/macros.inc" -- cgit v1.2.3 From 0d56f7654f543100f827ebceaf3491d2d386ac4b Mon Sep 17 00:00:00 2001 From: camthesaxman Date: Mon, 27 Nov 2017 21:17:36 -0600 Subject: fix build --- data/event_scripts.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index faa9b8406..ebc1a0de8 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -4883,7 +4883,7 @@ S_FallDownHole:: @ 81C6BC5 waitmovement 0 playse 43 delay 60 - warphole UNDEFINED + warphole Undefined waitstate end -- cgit v1.2.3 From 2fea5bf7d82e85f4b33857e6eb5b4ddc6e7542d2 Mon Sep 17 00:00:00 2001 From: camthesaxman Date: Mon, 27 Nov 2017 22:12:09 -0600 Subject: convert data files to use constants/map.h --- data/event_scripts.s | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index ebc1a0de8..495f78dfc 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -2,6 +2,7 @@ #include "constants/game_stat.h" #include "constants/items.h" #include "constants/map_objects.h" +#include "constants/maps.h" #include "constants/moves.h" #include "constants/opponents.h" #include "constants/songs.h" @@ -4883,7 +4884,7 @@ S_FallDownHole:: @ 81C6BC5 waitmovement 0 playse 43 delay 60 - warphole Undefined + warphole MAP_UNDEFINED waitstate end -- cgit v1.2.3 From 4d93db09a365cfa68e30be93d94b8c0ad1f89f9b Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Tue, 28 Nov 2017 20:36:12 -0800 Subject: Use constants for temporary map flags --- data/event_scripts.s | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 495f78dfc..ccbb767f5 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -1,4 +1,5 @@ #include "constants/decorations.h" +#include "constants/flags.h" #include "constants/game_stat.h" #include "constants/items.h" #include "constants/map_objects.h" @@ -4567,7 +4568,7 @@ SlateportCity_ContestLobby_EventScript_1AE0B6:: @ 81AE0B6 VerdanturfTown_ContestLobby_EventScript_1AE0B6:: @ 81AE0B6 lock faceplayer - checkflag 2 + checkflag FLAG_TEMP_2 goto_if_eq FallarborTown_ContestLobby_EventScript_1AE17E setvar 0x8005, 6 special sub_80BF2C4 @@ -4613,7 +4614,7 @@ FallarborTown_ContestLobby_EventScript_1AE137:: @ 81AE137 compare RESULT, 0 goto_if_eq FallarborTown_ContestLobby_EventScript_1AE12D msgbox FallarborTown_ContestLobby_Text_1A7153, 4 - setflag 2 + setflag FLAG_TEMP_2 setvar 0x8005, 6 goto FallarborTown_ContestLobby_EventScript_1ADE46 end @@ -4664,7 +4665,7 @@ FallarborTown_ContestLobby_EventScript_1AE1FE:: @ 81AE1FE BattleTower_Lobby_EventScript_1AE1FF:: @ 81AE1FF lock faceplayer - checkflag 2 + checkflag FLAG_TEMP_2 goto_if_eq BattleTower_Lobby_EventScript_1AE2E3 setvar 0x8005, 7 special sub_80BF2C4 @@ -4716,7 +4717,7 @@ BattleTower_Lobby_EventScript_1AE2B3:: @ 81AE2B3 compare RESULT, 0 goto_if_eq BattleTower_Lobby_EventScript_1AE2D9 msgbox BattleTower_Lobby_Text_1A7A6E, 4 - setflag 2 + setflag FLAG_TEMP_2 copyvar 0x8004, 0x8008 setvar 0x8005, 7 goto BattleTower_Lobby_EventScript_1ADE46 -- cgit v1.2.3 From d1b967444e7f0e21b8b5d1a09c8e164bd828da08 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Sat, 2 Dec 2017 12:39:11 -0800 Subject: Label flags up to flag 99. --- data/event_scripts.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index ccbb767f5..dfc251980 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -1155,7 +1155,7 @@ Event_ResetBerryTrees: @ 19F940 return gUnknown_0819FA81:: @ 819FA81 - setflag 86 + setflag FLAG_LINK_CONTEST_ROOM_POKEBALL setflag 769 setflag 770 setflag 771 @@ -3747,7 +3747,7 @@ SecretBase_RedCave1_EventScript_1A2DDE:: @ 81A2DDE SecretBase_RedCave1_EventScript_1A2E08:: @ 81A2E08 closemessage - setflag 96 + setflag FLAG_RECEIVED_SECRET_POWER special sub_80BBC78 waitstate end -- cgit v1.2.3 From 765526b99f50bf6b8c41c69bd6b1dc82471cda2d Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Sat, 2 Dec 2017 14:01:50 -0800 Subject: Label flags up to flag 119. --- data/event_scripts.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index dfc251980..2a4fdebd8 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -4439,9 +4439,9 @@ SlateportCity_OceanicMuseum_1F_EventScript_1ADEE0:: @ 81ADEE0 compare RESULT, 1 goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF96 copyvar 0x8009, 0x8006 - checkflag 105 + checkflag FLAG_OCEANIC_MUSEUM_MET_REPORTER goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF25 - setflag 105 + setflag FLAG_OCEANIC_MUSEUM_MET_REPORTER msgbox SlateportCity_OceanicMuseum_1F_Text_1A927F, 5 compare RESULT, 1 goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF44 -- cgit v1.2.3 From 79e3d29c29335d7e1fb8478b16d100b1844f2da4 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Sat, 2 Dec 2017 14:38:49 -0800 Subject: Use constants for all SYS flags --- data/event_scripts.s | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 2a4fdebd8..97a7d3533 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -1743,7 +1743,7 @@ EventScript_1A00BE: end EventScript_1A00CB: - checkflag 2052 + checkflag SYS_GAME_CLEAR goto_if 0, EventScript_1A00BE playse 2 special AccessHallOfFamePC @@ -3943,7 +3943,7 @@ SecretBase_YellowCave4_EventScript_1A2FC0:: @ 81A2FC0 end SecretBase_RedCave1_EventScript_1A3032:: @ 81A3032 - checkflag 2052 + checkflag SYS_GAME_CLEAR goto_if 0, SecretBase_RedCave1_EventScript_1A3086 compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A30A5 @@ -3978,7 +3978,7 @@ SecretBase_RedCave1_EventScript_1A30A5:: @ 81A30A5 end SecretBase_RedCave1_EventScript_1A30AE:: @ 81A30AE - checkflag 2052 + checkflag SYS_GAME_CLEAR goto_if 0, SecretBase_RedCave1_EventScript_1A3102 compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3121 @@ -4013,7 +4013,7 @@ SecretBase_RedCave1_EventScript_1A3121:: @ 81A3121 end SecretBase_RedCave1_EventScript_1A312A:: @ 81A312A - checkflag 2052 + checkflag SYS_GAME_CLEAR goto_if 0, SecretBase_RedCave1_EventScript_1A317E compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A319D @@ -4048,7 +4048,7 @@ SecretBase_RedCave1_EventScript_1A319D:: @ 81A319D end SecretBase_RedCave1_EventScript_1A31A6:: @ 81A31A6 - checkflag 2052 + checkflag SYS_GAME_CLEAR goto_if 0, SecretBase_RedCave1_EventScript_1A31FA compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3219 @@ -4083,7 +4083,7 @@ SecretBase_RedCave1_EventScript_1A3219:: @ 81A3219 end SecretBase_RedCave1_EventScript_1A3222:: @ 81A3222 - checkflag 2052 + checkflag SYS_GAME_CLEAR goto_if 0, SecretBase_RedCave1_EventScript_1A3276 compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3295 @@ -4118,7 +4118,7 @@ SecretBase_RedCave1_EventScript_1A3295:: @ 81A3295 end SecretBase_RedCave1_EventScript_1A329E:: @ 81A329E - checkflag 2052 + checkflag SYS_GAME_CLEAR goto_if 0, SecretBase_RedCave1_EventScript_1A32F2 compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3311 @@ -4153,7 +4153,7 @@ SecretBase_RedCave1_EventScript_1A3311:: @ 81A3311 end SecretBase_RedCave1_EventScript_1A331A:: @ 81A331A - checkflag 2052 + checkflag SYS_GAME_CLEAR goto_if 0, SecretBase_RedCave1_EventScript_1A336E compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A338D @@ -4188,7 +4188,7 @@ SecretBase_RedCave1_EventScript_1A338D:: @ 81A338D end SecretBase_RedCave1_EventScript_1A3396:: @ 81A3396 - checkflag 2052 + checkflag SYS_GAME_CLEAR goto_if 0, SecretBase_RedCave1_EventScript_1A33EA compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3409 @@ -4223,7 +4223,7 @@ SecretBase_RedCave1_EventScript_1A3409:: @ 81A3409 end SecretBase_RedCave1_EventScript_1A3412:: @ 81A3412 - checkflag 2052 + checkflag SYS_GAME_CLEAR goto_if 0, SecretBase_RedCave1_EventScript_1A3466 compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3485 @@ -4258,7 +4258,7 @@ SecretBase_RedCave1_EventScript_1A3485:: @ 81A3485 end SecretBase_RedCave1_EventScript_1A348E:: @ 81A348E - checkflag 2052 + checkflag SYS_GAME_CLEAR goto_if 0, SecretBase_RedCave1_EventScript_1A34E2 compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3501 -- cgit v1.2.3 From 24a90b9acb243bf5c24a797a2a300a23613813d5 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Sat, 2 Dec 2017 19:12:33 -0800 Subject: Label script flags up to flag 199. --- data/event_scripts.s | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 97a7d3533..d355bff97 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -1307,7 +1307,7 @@ EverGrandeCity_HallOfFame_EventScript_19FC13:: @ 819FC13 call_if 0, EverGrandeCity_HallOfFame_EventScript_19FC70 checkflag 298 call_if 0, EverGrandeCity_HallOfFame_EventScript_19FC5A - checkflag 123 + checkflag FLAG_RECEIVED_HM08 call_if 0, EverGrandeCity_HallOfFame_EventScript_19FC5E return @@ -1402,7 +1402,7 @@ PetalburgCity_PokemonCenter_1F_EventScript_19FD1B:: @ 819FD1B RustboroCity_PokemonCenter_1F_EventScript_19FD1B:: @ 819FD1B SlateportCity_PokemonCenter_1F_EventScript_19FD1B:: @ 819FD1B VerdanturfTown_PokemonCenter_1F_EventScript_19FD1B:: @ 819FD1B - checkflag 188 + checkflag FLAG_RECEIVED_POKENAV goto_if 0, OldaleTown_PokemonCenter_1F_EventScript_1A14DC checkflag 1217 goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_1A14DC @@ -2269,7 +2269,7 @@ RusturfTunnel_EventScript_1A0442:: @ 81A0442 clearflag 808 clearflag 984 setvar 0x409a, 6 - setflag 199 + setflag FLAG_RUSTURF_TUNNEL_OPENED return EventScript_1A0457: @ unreferenced? @@ -3723,7 +3723,7 @@ EventScript_1A2DB8: closemessage playse 9 setvar 0x4097, 0 - setflag 173 + setflag FLAG_SECRET_BASE_UNKNOWN_1 special sub_80BB8CC special sub_80BBAF0 setvar 0x8004, 0 @@ -3764,14 +3764,14 @@ gUnknown_081A2E14:: @ 81A2E14 special sub_80BC114 compare RESULT, 0 goto_if_eq EventScript_1A2E38 - clearflag 173 + clearflag FLAG_SECRET_BASE_UNKNOWN_1 special sub_80BBAF0 setvar 0x4089, 0 waitstate end EventScript_1A2E38: - setflag 173 + setflag FLAG_SECRET_BASE_UNKNOWN_1 special sub_80BBAF0 setvar 0x4089, 0 waitstate @@ -3841,20 +3841,20 @@ EventScript_1A2F3A:: LittlerootTown_BrendansHouse_2F_EventScript_1A2F3D:: @ 81A2F3D LittlerootTown_MaysHouse_2F_EventScript_1A2F3D:: @ 81A2F3D SecretBase_RedCave1_EventScript_1A2F3D:: @ 81A2F3D - setflag 174 - setflag 175 - setflag 176 - setflag 177 - setflag 178 - setflag 179 - setflag 180 - setflag 181 - setflag 182 - setflag 183 - setflag 184 - setflag 185 - setflag 186 - setflag 187 + setflag FLAG_SECRET_BASE_UNKNOWN_2 + setflag FLAG_SECRET_BASE_UNKNOWN_3 + setflag FLAG_SECRET_BASE_UNKNOWN_4 + setflag FLAG_SECRET_BASE_UNKNOWN_5 + setflag FLAG_SECRET_BASE_UNKNOWN_6 + setflag FLAG_SECRET_BASE_UNKNOWN_7 + setflag FLAG_SECRET_BASE_UNKNOWN_8 + setflag FLAG_SECRET_BASE_UNKNOWN_9 + setflag FLAG_SECRET_BASE_UNKNOWN_10 + setflag FLAG_SECRET_BASE_UNKNOWN_11 + setflag FLAG_SECRET_BASE_UNKNOWN_12 + setflag FLAG_SECRET_BASE_UNKNOWN_13 + setflag FLAG_SECRET_BASE_UNKNOWN_14 + setflag FLAG_SECRET_BASE_UNKNOWN_15 return LittlerootTown_BrendansHouse_2F_EventScript_1A2F68:: @ 81A2F68 -- cgit v1.2.3 From c9f38d22060841ac59e56c3f498427f53bc28569 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Sun, 3 Dec 2017 12:32:57 -0800 Subject: Label scripts flags up to flag 256. --- data/event_scripts.s | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index d355bff97..066c29477 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -1303,7 +1303,7 @@ EverGrandeCity_HallOfFame_EventScript_19FC13:: @ 819FC13 special sub_810FAA0 checkflag 291 call_if 0, EverGrandeCity_HallOfFame_EventScript_19FC62 - checkflag 255 + checkflag FLAG_LATIOS_OR_LATIAS_ROAMING call_if 0, EverGrandeCity_HallOfFame_EventScript_19FC70 checkflag 298 call_if 0, EverGrandeCity_HallOfFame_EventScript_19FC5A @@ -1326,7 +1326,7 @@ EverGrandeCity_HallOfFame_EventScript_19FC62:: @ 819FC62 return EverGrandeCity_HallOfFame_EventScript_19FC70:: @ 819FC70 - setflag 2141 + setflag SYS_TV_LATI return S_WhiteOut:: @ 819FC74 @@ -1336,7 +1336,7 @@ S_WhiteOut:: @ 819FC74 end EventScript_19FC84: - checkflag 221 + checkflag FLAG_RECEIVED_GO_GOGGLES goto_if_eq Route101_EventScript_1A14DC checkflag 1213 goto_if 0, Route101_EventScript_1A14DC -- cgit v1.2.3 From 503bd8e491eefea7e26d6882674487f9a9765297 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Sun, 3 Dec 2017 13:20:55 -0800 Subject: Label script flags up to flag 288. --- data/event_scripts.s | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 066c29477..b2414502f 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -409,7 +409,7 @@ gUnknown_0815F36C:: @ 815F36C EventScript_15F384: message UnknownString_81A3A87 waitmessage - checkflag 268 + checkflag FLAG_SECRET_BASE_UNKNOWN_16 goto_if_eq EventScript_15F3A0 goto EventScript_15F3E2 end @@ -1460,7 +1460,7 @@ do_heal_party:: @ 819FD7C applymovement 0x800b, OldaleTown_PokemonCenter_1F_Movement_1A0845 waitmovement 0 special ScrSpecial_HealPlayerParty - checkflag 273 + checkflag FLAG_POKERUS_EXPLAINED goto_if 0, OldaleTown_PokemonCenter_1F_EventScript_19FDCE goto OldaleTown_PokemonCenter_1F_EventScript_19FDB0 end @@ -1490,7 +1490,7 @@ OldaleTown_PokemonCenter_1F_EventScript_19FDCE:: @ 819FDCE OldaleTown_PokemonCenter_1F_EventScript_19FDEA:: @ 819FDEA message gText_NurseJoy_Pokerus waitmessage - setflag 273 + setflag FLAG_POKERUS_EXPLAINED return OldaleTown_PokemonCenter_1F_Movement_19FDF4:: @ 819FDF4 -- cgit v1.2.3 From dde446225f01bab79119a5ad9413d7e779ce4b4b Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Sun, 3 Dec 2017 15:57:11 -0800 Subject: More script flags --- data/event_scripts.s | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index b2414502f..c5c5e25c2 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -1301,11 +1301,11 @@ EverGrandeCity_HallOfFame_EventScript_19FC13:: @ 819FC13 clearflag 860 clearflag 861 special sub_810FAA0 - checkflag 291 + checkflag FLAG_RECEIVED_SS_TICKET call_if 0, EverGrandeCity_HallOfFame_EventScript_19FC62 checkflag FLAG_LATIOS_OR_LATIAS_ROAMING call_if 0, EverGrandeCity_HallOfFame_EventScript_19FC70 - checkflag 298 + checkflag FLAG_RECEIVED_BELDUM call_if 0, EverGrandeCity_HallOfFame_EventScript_19FC5A checkflag FLAG_RECEIVED_HM08 call_if 0, EverGrandeCity_HallOfFame_EventScript_19FC5E @@ -1802,7 +1802,7 @@ LavaridgeTown_Gym_1F_EventScript_1A00FB:: @ 81A00FB MauvilleCity_Gym_EventScript_1A00FB:: @ 81A00FB RustboroCity_Gym_EventScript_1A00FB:: @ 81A00FB clearflag 781 - setflag 296 + setflag FLAG_PETALBURG_MART_EXPANDED_ITEMS return DewfordTown_EventScript_1A0102:: @ 81A0102 -- cgit v1.2.3 From 861bd9292da04e083214f493ac064596fec397b9 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Sun, 3 Dec 2017 16:44:29 -0800 Subject: Use decoration flag constants --- data/event_scripts.s | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index c5c5e25c2..5b01fd85f 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -409,7 +409,7 @@ gUnknown_0815F36C:: @ 815F36C EventScript_15F384: message UnknownString_81A3A87 waitmessage - checkflag FLAG_SECRET_BASE_UNKNOWN_16 + checkflag FLAG_DECORATION_16 goto_if_eq EventScript_15F3A0 goto EventScript_15F3E2 end @@ -3723,7 +3723,7 @@ EventScript_1A2DB8: closemessage playse 9 setvar 0x4097, 0 - setflag FLAG_SECRET_BASE_UNKNOWN_1 + setflag FLAG_DECORATION_1 special sub_80BB8CC special sub_80BBAF0 setvar 0x8004, 0 @@ -3764,14 +3764,14 @@ gUnknown_081A2E14:: @ 81A2E14 special sub_80BC114 compare RESULT, 0 goto_if_eq EventScript_1A2E38 - clearflag FLAG_SECRET_BASE_UNKNOWN_1 + clearflag FLAG_DECORATION_1 special sub_80BBAF0 setvar 0x4089, 0 waitstate end EventScript_1A2E38: - setflag FLAG_SECRET_BASE_UNKNOWN_1 + setflag FLAG_DECORATION_1 special sub_80BBAF0 setvar 0x4089, 0 waitstate @@ -3841,20 +3841,20 @@ EventScript_1A2F3A:: LittlerootTown_BrendansHouse_2F_EventScript_1A2F3D:: @ 81A2F3D LittlerootTown_MaysHouse_2F_EventScript_1A2F3D:: @ 81A2F3D SecretBase_RedCave1_EventScript_1A2F3D:: @ 81A2F3D - setflag FLAG_SECRET_BASE_UNKNOWN_2 - setflag FLAG_SECRET_BASE_UNKNOWN_3 - setflag FLAG_SECRET_BASE_UNKNOWN_4 - setflag FLAG_SECRET_BASE_UNKNOWN_5 - setflag FLAG_SECRET_BASE_UNKNOWN_6 - setflag FLAG_SECRET_BASE_UNKNOWN_7 - setflag FLAG_SECRET_BASE_UNKNOWN_8 - setflag FLAG_SECRET_BASE_UNKNOWN_9 - setflag FLAG_SECRET_BASE_UNKNOWN_10 - setflag FLAG_SECRET_BASE_UNKNOWN_11 - setflag FLAG_SECRET_BASE_UNKNOWN_12 - setflag FLAG_SECRET_BASE_UNKNOWN_13 - setflag FLAG_SECRET_BASE_UNKNOWN_14 - setflag FLAG_SECRET_BASE_UNKNOWN_15 + setflag FLAG_DECORATION_2 + setflag FLAG_DECORATION_3 + setflag FLAG_DECORATION_4 + setflag FLAG_DECORATION_5 + setflag FLAG_DECORATION_6 + setflag FLAG_DECORATION_7 + setflag FLAG_DECORATION_8 + setflag FLAG_DECORATION_9 + setflag FLAG_DECORATION_10 + setflag FLAG_DECORATION_11 + setflag FLAG_DECORATION_12 + setflag FLAG_DECORATION_13 + setflag FLAG_DECORATION_14 + setflag FLAG_DECORATION_15 return LittlerootTown_BrendansHouse_2F_EventScript_1A2F68:: @ 81A2F68 -- cgit v1.2.3 From 8dd25bcad09064f0b3314a71a62ad22f91b42bb3 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Mon, 4 Dec 2017 20:48:25 -0800 Subject: Start using constants for hide-show flags --- data/event_scripts.s | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 5b01fd85f..59e7fef09 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -1159,12 +1159,12 @@ gUnknown_0819FA81:: @ 819FA81 setflag 769 setflag 770 setflag 771 - setflag 721 + setflag FLAG_HIDE_BIRCH_IN_LAB setflag 889 - setflag 726 + setflag FLAG_HIDE_WALLY_PETALBURG setflag 867 - setflag 731 - setflag 732 + setflag FLAG_HIDE_GRUNT_RUSTBORO + setflag FLAG_HIDE_DEVON_RUSTBORO setflag 814 setflag 868 setflag 739 @@ -1175,7 +1175,7 @@ gUnknown_0819FA81:: @ 819FA81 setflag 743 setflag 744 setflag 906 - setflag 737 + setflag FLAG_UNKNOWN_2E1 setflag 747 setflag 748 setflag 749 @@ -1190,7 +1190,7 @@ gUnknown_0819FA81:: @ 819FA81 setflag 781 setflag 782 setflag 783 - setflag 734 + setflag FLAG_HIDE_NORMAN_LITTLEROOT setflag 849 setflag 789 setflag 790 @@ -1283,7 +1283,7 @@ gUnknown_0819FA81:: @ 819FA81 setflag 950 setflag 968 setflag 1133 - setflag 727 + setflag FLAG_HIDE_STEVENS_LETTER setflag 979 setflag 751 setflag 991 @@ -1295,7 +1295,7 @@ EverGrandeCity_HallOfFame_EventScript_19FC13:: @ 819FC13 call EverGrandeCity_HallOfFame_EventScript_19FD09 setflag 869 clearflag 950 - clearflag 727 + clearflag FLAG_HIDE_STEVENS_LETTER setvar 0x40c6, 1 clearflag 751 clearflag 860 @@ -1322,7 +1322,7 @@ EverGrandeCity_HallOfFame_EventScript_19FC5E:: @ 819FC5E EverGrandeCity_HallOfFame_EventScript_19FC62:: @ 819FC62 setvar 0x4082, 3 setvar 0x408c, 3 - clearflag 734 + clearflag FLAG_HIDE_NORMAN_LITTLEROOT return EverGrandeCity_HallOfFame_EventScript_19FC70:: @ 819FC70 @@ -2167,7 +2167,7 @@ Route103_EventScript_1A02F4:: @ 81A02F4 return Route101_EventScript_1A0358:: @ 81A0358 - clearflag 721 + clearflag FLAG_HIDE_BIRCH_IN_LAB clearflag 896 setflag 897 setflag 898 @@ -2175,7 +2175,7 @@ Route101_EventScript_1A0358:: @ 81A0358 Route101_EventScript_1A0365:: @ 81A0365 clearflag 897 - setflag 721 + setflag FLAG_HIDE_BIRCH_IN_LAB setflag 896 setflag 898 return @@ -2183,7 +2183,7 @@ Route101_EventScript_1A0365:: @ 81A0365 Route101_EventScript_1A0372:: @ 81A0372 clearflag 898 setflag 897 - setflag 721 + setflag FLAG_HIDE_BIRCH_IN_LAB setflag 896 return -- cgit v1.2.3 From 65207e03662c639970ef19b372c21b8e28b6f097 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Sat, 9 Dec 2017 14:43:21 -0800 Subject: Label all flags up to 901 --- data/event_scripts.s | 286 +++++++++++++++++++++++++-------------------------- 1 file changed, 143 insertions(+), 143 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 59e7fef09..38bc34845 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -1156,108 +1156,108 @@ Event_ResetBerryTrees: @ 19F940 gUnknown_0819FA81:: @ 819FA81 setflag FLAG_LINK_CONTEST_ROOM_POKEBALL - setflag 769 - setflag 770 - setflag 771 + setflag FLAG_HIDE_VICTORIA_WINSTRATE + setflag FLAG_HIDE_VIVI_WINSTRATE + setflag FLAG_HIDE_VICKI_WINSTRATE setflag FLAG_HIDE_BIRCH_IN_LAB - setflag 889 + setflag FLAG_HIDE_RIVAL_BIRCH_LAB setflag FLAG_HIDE_WALLY_PETALBURG - setflag 867 + setflag FLAG_UNKNOWN_363 setflag FLAG_HIDE_GRUNT_RUSTBORO setflag FLAG_HIDE_DEVON_RUSTBORO - setflag 814 - setflag 868 - setflag 739 - setflag 881 - setflag 738 - setflag 740 - setflag 741 - setflag 743 - setflag 744 + setflag FLAG_HIDE_RIVAL_RUSTBORO + setflag FLAG_HIDE_FAT_MAN_LITTLEROOT + setflag FLAG_HIDE_MR_BRINEY_ROUTE104_HOUSE + setflag FLAG_HIDE_PEEKO_BRINEY_HOUSE + setflag FLAG_HIDE_MR_BRINEY_ROUTE104 + setflag FLAG_HIDE_MR_BRINEY_DEWFORD_TOWN + setflag FLAG_HIDE_MR_BRINEY_ROUTE109 + setflag FLAG_HIDE_MR_BRINEY_BOAT_DEWFORD + setflag FLAG_HIDE_MR_BRINEY_BOAT_ROUTE109 setflag 906 setflag FLAG_UNKNOWN_2E1 - setflag 747 - setflag 748 - setflag 749 - setflag 756 - setflag 774 - setflag 895 - setflag 776 - setflag 777 - setflag 778 - setflag 779 - setflag 780 - setflag 781 - setflag 782 - setflag 783 + setflag FLAG_UNKNOWN_2EB + setflag FLAG_UNKNOWN_2EC + setflag FLAG_UNKNOWN_2ED + setflag FLAG_UNKNOWN_2F4 + setflag FLAG_HIDE_LILYCOVE_CONTEST_ATTENDENT_1 + setflag FLAG_HIDE_ARTIST_LILCOVE_CONTEST + setflag FLAG_HIDE_LILYCOVE_MUSEUM_PAINTING_LADY + setflag FLAG_HIDE_LILYCOVE_MUSEUM_PAINTING_GIRL + setflag FLAG_HIDE_LILYCOVE_MUSEUM_PAINTING_MAN + setflag FLAG_HIDE_LILYCOVE_MUSEUM_PAINTER + setflag FLAG_HIDE_LILYCOVE_MUSEUM_VISITORS + setflag FLAG_HIDE_PETALBURG_GYM_GUIDE + setflag FLAG_UNKNOWN_30E + setflag FLAG_UNKNOWN_30F setflag FLAG_HIDE_NORMAN_LITTLEROOT - setflag 849 - setflag 789 - setflag 790 - setflag 791 - setflag 792 - setflag 797 - setflag 798 - setflag 799 - setflag 901 + setflag FLAG_HIDE_MAY_PICHU_DOLL + setflag FLAG_HIDE_FANCLUB_OLD_LADY + setflag FLAG_HIDE_FANCLUB_BOY + setflag FLAG_HIDE_FANCLUB_LITTLE_BOY + setflag FLAG_HIDE_FANCLUB_LADY + setflag FLAG_HIDE_GABBY_AND_TY_ROUTE118_1 + setflag FLAG_HIDE_GABBY_AND_TY_ROUTE120 + setflag FLAG_HIDE_GABBY_AND_TY_ROUTE111_2 + setflag FLAG_HIDE_GABBY_AND_TY_ROUTE118_2 setflag 902 setflag 903 setflag 904 - setflag 800 - setflag 801 - setflag 803 - setflag 802 - setflag 806 - setflag 808 - setflag 809 + setflag FLAG_HIDE_CONTEST_REPORTER_FALLARBOR + setflag FLAG_HIDE_CONTEST_REPORTER_VERDANTURF + setflag FLAG_HIDE_CONTEST_REPORTER_SLATEPORT + setflag FLAG_HIDE_CONTEST_REPORTER_LILYCOVE + setflag FLAG_HIDE_WALLY_WANDAS_HOUSE + setflag FLAG_HIDE_BOYFRIEND_WANDAS_HOUSE + setflag FLAG_HIDE_WALLY_FATHER_WANDAS_HOUSE setflag 984 - setflag 811 - setflag 812 - setflag 866 - setflag 815 - setflag 816 - setflag 869 - setflag 823 - setflag 828 - setflag 829 - setflag 831 - setflag 859 - setflag 841 - setflag 843 - setflag 844 - setflag 847 - setflag 845 - setflag 846 - setflag 860 - setflag 861 - setflag 835 - setflag 840 - setflag 848 - setflag 851 - setflag 855 - setflag 856 + setflag FLAG_HIDE_WALLY_FATHER_PETALBURG + setflag FLAG_HIDE_WALLY_MOTHER_PETALBURG + setflag FLAG_HIDE_WALLY_PETALBURG_GYM + setflag FLAG_HIDE_WALLACE_SOOTOPOLIS_GYM + setflag FLAG_HIDE_WALLACE_SOOTOPOLIS + setflag FLAG_HIDE_BRINEY_SLATEPORT_SHIPYARD + setflag FLAG_UNKNOWN_337 + setflag FLAG_HIDE_EVIL_LEADER_SEAFLOOR_CAVERN + setflag FLAG_HIDE_OTHER_LEADER_SEAFLOOR_CAVERN + setflag FLAG_HIDE_OTHER_TEAM_GRUNTS_SEAFLOOR_CAVERN + setflag FLAG_HIDE_AWAKENED_MON_SEAFLOOR_CAVERN + setflag FLAG_HIDE_STERN_SLATEPORT_HARBOR + setflag FLAG_UNKNOWN_34B + setflag FLAG_UNKNOWN_34C + setflag FLAG_UNKNOWN_34F + setflag FLAG_HIDE_GRUNT_1_SLATEPORT_HARBOR + setflag FLAG_HIDE_GRUNT_2_SLATEPORT_HARBOR + setflag FLAG_HIDE_SS_TIDAL_SLATEPORT_HARBOR + setflag FLAG_HIDE_SS_TIDAL_LILYCOVE_HARBOR + setflag FLAG_HIDE_GABBY_AND_TY_SLATEPORT + setflag FLAG_HIDE_STERN_SLATEPORT + setflag FLAG_HIDE_SUBMARINE_SHADOW_SLATEPORT_HARBOR + setflag FLAG_HIDE_RIVAL_ROUTE119 + setflag FLAG_HIDE_CAVE_OF_ORIGIN_ENTRANCE_WOMAN_1 + setflag FLAG_HIDE_CAVE_OF_ORIGIN_ENTRANCE_WOMAN_2 setflag 973 - setflag 870 - setflag 872 - setflag 877 - setflag 879 - setflag 891 - setflag 880 - setflag 878 - setflag 807 + setflag FLAG_HIDE_LANETTE + setflag FLAG_HIDE_TRICKMASTER_ENTRANCE + setflag FLAG_HIDE_MT_CHIMNEY_PEOPLE + setflag FLAG_HIDE_BRINEY_RUSTURF_TUNNEL + setflag FLAG_HIDE_BRINEY_ROUTE116 + setflag FLAG_HIDE_PEEKO_RUSTURF_TUNNEL + setflag FLAG_HIDE_GRUNT_RUSTURF_TUNNEL + setflag FLAG_HIDE_BOYFRIEND_RUSTURF_TUNNEL setflag 983 - setflag 886 - setflag 884 - setflag 885 + setflag FLAG_HIDE_EVIL_TEAM_LEADER_OCEANIC_MUSEUM_2F + setflag FLAG_HIDE_GRUNT_1_OCEANIC_MUSEUM_2F + setflag FLAG_HIDE_GRUNT_2_OCEANIC_MUSEUM_2F setflag 961 - setflag 888 + setflag FLAG_HIDE_BATTLE_TOWER_OPPONENT setflag 941 - setflag 752 - setflag 757 - setflag 892 - setflag 896 - setflag 897 - setflag 898 + setflag FLAG_HIDE_MOM_LITTLEROOT + setflag FLAG_HIDE_MOM_UPSTAIRS + setflag FLAG_HIDE_WEATHER_INSTITUTE_WORKERS_1F + setflag FLAG_UNKNOWN_BIRCH_380 + setflag FLAG_HIDE_BIRCH_ROUTE101 + setflag FLAG_HIDE_BIRCH_ROUTE103 setflag 909 setflag 910 setflag 911 @@ -1274,18 +1274,18 @@ gUnknown_0819FA81:: @ 819FA81 setflag 939 setflag 940 setflag 928 - setflag 834 + setflag FLAG_HIDE_STEVEN_ROUTE128 setflag 944 setflag 945 setflag 947 setflag 948 - setflag 858 + setflag FLAG_HIDE_WALLY_BATTLE_VICTORY_ROAD setflag 950 setflag 968 setflag 1133 setflag FLAG_HIDE_STEVENS_LETTER setflag 979 - setflag 751 + setflag FLAG_HIDE_WALLY_DEFEATED_VICTORY_ROAD setflag 991 call Event_ResetBerryTrees end @@ -1293,13 +1293,13 @@ gUnknown_0819FA81:: @ 819FA81 EverGrandeCity_HallOfFame_EventScript_19FC13:: @ 819FC13 clearflag 925 call EverGrandeCity_HallOfFame_EventScript_19FD09 - setflag 869 + setflag FLAG_HIDE_BRINEY_SLATEPORT_SHIPYARD clearflag 950 clearflag FLAG_HIDE_STEVENS_LETTER setvar 0x40c6, 1 - clearflag 751 - clearflag 860 - clearflag 861 + clearflag FLAG_HIDE_WALLY_DEFEATED_VICTORY_ROAD + clearflag FLAG_HIDE_SS_TIDAL_SLATEPORT_HARBOR + clearflag FLAG_HIDE_SS_TIDAL_LILYCOVE_HARBOR special sub_810FAA0 checkflag FLAG_RECEIVED_SS_TICKET call_if 0, EverGrandeCity_HallOfFame_EventScript_19FC62 @@ -1354,35 +1354,35 @@ gUnknown_0819FC9F:: @ 819FC9F end EventScript_19FCC1: - setflag 740 - setflag 743 - setflag 741 - setflag 744 - clearflag 742 - clearflag 739 - clearflag 881 + setflag FLAG_HIDE_MR_BRINEY_DEWFORD_TOWN + setflag FLAG_HIDE_MR_BRINEY_BOAT_DEWFORD + setflag FLAG_HIDE_MR_BRINEY_ROUTE109 + setflag FLAG_HIDE_MR_BRINEY_BOAT_ROUTE109 + clearflag FLAG_HIDE_MR_BRINEY_BOAT_ROUTE104 + clearflag FLAG_HIDE_MR_BRINEY_ROUTE104_HOUSE + clearflag FLAG_HIDE_PEEKO_BRINEY_HOUSE end EventScript_19FCD7: - setflag 741 - setflag 744 - setflag 738 - setflag 742 - setflag 739 - setflag 881 - clearflag 740 - clearflag 743 + setflag FLAG_HIDE_MR_BRINEY_ROUTE109 + setflag FLAG_HIDE_MR_BRINEY_BOAT_ROUTE109 + setflag FLAG_HIDE_MR_BRINEY_ROUTE104 + setflag FLAG_HIDE_MR_BRINEY_BOAT_ROUTE104 + setflag FLAG_HIDE_MR_BRINEY_ROUTE104_HOUSE + setflag FLAG_HIDE_PEEKO_BRINEY_HOUSE + clearflag FLAG_HIDE_MR_BRINEY_DEWFORD_TOWN + clearflag FLAG_HIDE_MR_BRINEY_BOAT_DEWFORD end EventScript_19FCF0: - setflag 738 - setflag 742 - setflag 739 - setflag 881 - setflag 740 - setflag 743 - clearflag 741 - clearflag 744 + setflag FLAG_HIDE_MR_BRINEY_ROUTE104 + setflag FLAG_HIDE_MR_BRINEY_BOAT_ROUTE104 + setflag FLAG_HIDE_MR_BRINEY_ROUTE104_HOUSE + setflag FLAG_HIDE_PEEKO_BRINEY_HOUSE + setflag FLAG_HIDE_MR_BRINEY_DEWFORD_TOWN + setflag FLAG_HIDE_MR_BRINEY_BOAT_DEWFORD + clearflag FLAG_HIDE_MR_BRINEY_ROUTE109 + clearflag FLAG_HIDE_MR_BRINEY_BOAT_ROUTE109 end EverGrandeCity_HallOfFame_EventScript_19FD09:: @ 819FD09 @@ -1406,11 +1406,11 @@ VerdanturfTown_PokemonCenter_1F_EventScript_19FD1B:: @ 819FD1B goto_if 0, OldaleTown_PokemonCenter_1F_EventScript_1A14DC checkflag 1217 goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_1A14DC - checkflag 742 + checkflag FLAG_HIDE_MR_BRINEY_BOAT_ROUTE104 goto_if 0, OldaleTown_PokemonCenter_1F_EventScript_19FD49 - checkflag 740 + checkflag FLAG_HIDE_MR_BRINEY_DEWFORD_TOWN goto_if 0, OldaleTown_PokemonCenter_1F_EventScript_19FD4F - checkflag 741 + checkflag FLAG_HIDE_MR_BRINEY_ROUTE109 goto_if 0, OldaleTown_PokemonCenter_1F_EventScript_19FD55 return @@ -1801,7 +1801,7 @@ DewfordTown_Gym_EventScript_1A00FB:: @ 81A00FB LavaridgeTown_Gym_1F_EventScript_1A00FB:: @ 81A00FB MauvilleCity_Gym_EventScript_1A00FB:: @ 81A00FB RustboroCity_Gym_EventScript_1A00FB:: @ 81A00FB - clearflag 781 + clearflag FLAG_HIDE_PETALBURG_GYM_GUIDE setflag FLAG_PETALBURG_MART_EXPANDED_ITEMS return @@ -2168,23 +2168,23 @@ Route103_EventScript_1A02F4:: @ 81A02F4 Route101_EventScript_1A0358:: @ 81A0358 clearflag FLAG_HIDE_BIRCH_IN_LAB - clearflag 896 - setflag 897 - setflag 898 + clearflag FLAG_UNKNOWN_BIRCH_380 + setflag FLAG_HIDE_BIRCH_ROUTE101 + setflag FLAG_HIDE_BIRCH_ROUTE103 return Route101_EventScript_1A0365:: @ 81A0365 - clearflag 897 + clearflag FLAG_HIDE_BIRCH_ROUTE101 setflag FLAG_HIDE_BIRCH_IN_LAB - setflag 896 - setflag 898 + setflag FLAG_UNKNOWN_BIRCH_380 + setflag FLAG_HIDE_BIRCH_ROUTE103 return Route101_EventScript_1A0372:: @ 81A0372 - clearflag 898 - setflag 897 + clearflag FLAG_HIDE_BIRCH_ROUTE103 + setflag FLAG_HIDE_BIRCH_ROUTE101 setflag FLAG_HIDE_BIRCH_IN_LAB - setflag 896 + setflag FLAG_UNKNOWN_BIRCH_380 return LittlerootTown_ProfessorBirchsLab_EventScript_1A037F:: @ 81A037F @@ -2252,21 +2252,21 @@ SlateportCity_Harbor_Movement_1A041C:: @ 81A041C step_end PetalburgCity_Gym_EventScript_1A0424:: @ 81A0424 - setflag 740 - setflag 743 - setflag 741 - setflag 744 - setflag 738 - setflag 742 - setflag 739 - setflag 881 + setflag FLAG_HIDE_MR_BRINEY_DEWFORD_TOWN + setflag FLAG_HIDE_MR_BRINEY_BOAT_DEWFORD + setflag FLAG_HIDE_MR_BRINEY_ROUTE109 + setflag FLAG_HIDE_MR_BRINEY_BOAT_ROUTE109 + setflag FLAG_HIDE_MR_BRINEY_ROUTE104 + setflag FLAG_HIDE_MR_BRINEY_BOAT_ROUTE104 + setflag FLAG_HIDE_MR_BRINEY_ROUTE104_HOUSE + setflag FLAG_HIDE_PEEKO_BRINEY_HOUSE setvar 0x4096, 0 return RusturfTunnel_EventScript_1A0442:: @ 81A0442 removeobject 1 removeobject 10 - clearflag 808 + clearflag FLAG_HIDE_BOYFRIEND_WANDAS_HOUSE clearflag 984 setvar 0x409a, 6 setflag FLAG_RUSTURF_TUNNEL_OPENED @@ -4644,19 +4644,19 @@ VerdanturfTown_ContestLobby_EventScript_1AE188:: @ 81AE188 end FallarborTown_ContestLobby_EventScript_1AE1EE:: @ 81AE1EE - clearflag 800 + clearflag FLAG_HIDE_CONTEST_REPORTER_FALLARBOR return FallarborTown_ContestLobby_EventScript_1AE1F2:: @ 81AE1F2 - clearflag 801 + clearflag FLAG_HIDE_CONTEST_REPORTER_VERDANTURF return FallarborTown_ContestLobby_EventScript_1AE1F6:: @ 81AE1F6 - clearflag 803 + clearflag FLAG_HIDE_CONTEST_REPORTER_SLATEPORT return FallarborTown_ContestLobby_EventScript_1AE1FA:: @ 81AE1FA - clearflag 802 + clearflag FLAG_HIDE_CONTEST_REPORTER_LILYCOVE return FallarborTown_ContestLobby_EventScript_1AE1FE:: @ 81AE1FE -- cgit v1.2.3 From 58bf5392b36bc3a5c3559f218aff9f751dd90a64 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Sun, 10 Dec 2017 15:41:21 -0800 Subject: Label flags up to 973 --- data/event_scripts.s | 70 ++++++++++++++++++++++++++-------------------------- 1 file changed, 35 insertions(+), 35 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 38bc34845..a84a2dd12 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -1174,7 +1174,7 @@ gUnknown_0819FA81:: @ 819FA81 setflag FLAG_HIDE_MR_BRINEY_ROUTE109 setflag FLAG_HIDE_MR_BRINEY_BOAT_DEWFORD setflag FLAG_HIDE_MR_BRINEY_BOAT_ROUTE109 - setflag 906 + setflag FLAG_HIDE_FLOWER_SHOP_WORKER_OUTSIDE setflag FLAG_UNKNOWN_2E1 setflag FLAG_UNKNOWN_2EB setflag FLAG_UNKNOWN_2EC @@ -1197,12 +1197,12 @@ gUnknown_0819FA81:: @ 819FA81 setflag FLAG_HIDE_FANCLUB_LITTLE_BOY setflag FLAG_HIDE_FANCLUB_LADY setflag FLAG_HIDE_GABBY_AND_TY_ROUTE118_1 - setflag FLAG_HIDE_GABBY_AND_TY_ROUTE120 + setflag FLAG_HIDE_GABBY_AND_TY_ROUTE120_1 setflag FLAG_HIDE_GABBY_AND_TY_ROUTE111_2 setflag FLAG_HIDE_GABBY_AND_TY_ROUTE118_2 - setflag 902 - setflag 903 - setflag 904 + setflag FLAG_HIDE_GABBY_AND_TY_ROUTE120_2 + setflag FLAG_HIDE_GABBY_AND_TY_ROUTE111_3 + setflag FLAG_HIDE_GABBY_AND_TY_ROUTE118_3 setflag FLAG_HIDE_CONTEST_REPORTER_FALLARBOR setflag FLAG_HIDE_CONTEST_REPORTER_VERDANTURF setflag FLAG_HIDE_CONTEST_REPORTER_SLATEPORT @@ -1249,39 +1249,39 @@ gUnknown_0819FA81:: @ 819FA81 setflag FLAG_HIDE_EVIL_TEAM_LEADER_OCEANIC_MUSEUM_2F setflag FLAG_HIDE_GRUNT_1_OCEANIC_MUSEUM_2F setflag FLAG_HIDE_GRUNT_2_OCEANIC_MUSEUM_2F - setflag 961 + setflag FLAG_HIDE_OCEANIC_MUSEUM_VISITORS setflag FLAG_HIDE_BATTLE_TOWER_OPPONENT - setflag 941 + setflag FLAG_HIDE_AWARD_MAN_BATTLE_TOWER setflag FLAG_HIDE_MOM_LITTLEROOT setflag FLAG_HIDE_MOM_UPSTAIRS setflag FLAG_HIDE_WEATHER_INSTITUTE_WORKERS_1F setflag FLAG_UNKNOWN_BIRCH_380 setflag FLAG_HIDE_BIRCH_ROUTE101 setflag FLAG_HIDE_BIRCH_ROUTE103 - setflag 909 - setflag 910 - setflag 911 - setflag 915 - setflag 912 - setflag 920 - setflag 921 - setflag 922 - setflag 923 - setflag 925 - setflag 929 - setflag 930 - setflag 934 - setflag 939 - setflag 940 - setflag 928 + setflag FLAG_HIDE_FERRY_SAILOR_LILYCOVE + setflag FLAG_HIDE_LATIOS_OR_LATIAS_FLYING + setflag FLAG_HIDE_LATIOS_OR_LATIAS_STATIONARY + setflag FLAG_UNKNOWN_393 + setflag FLAG_HIDE_WATTSON_MAUVILLE + setflag FLAG_HIDE_RIVAL_CHAMPIONS_ROOM + setflag FLAG_HIDE_BIRCH_CHAMPIONS_ROOM + setflag FLAG_HIDE_RIVAL_ON_BIKE_ROUTE110 + setflag FLAG_HIDE_RIVAL_ROUTE119_ON_BIKE + setflag FLAG_HIDE_LILYCOVE_MOTEL_PEOPLE + setflag FLAG_HIDE_RIVAL_LAVARIDGE_1 + setflag FLAG_HIDE_RIVAL_LAVARIDGE_2 + setflag FLAG_HIDE_WINGULL_MOSSDEEP_HOUSE + setflag FLAG_HIDE_OTHER_TEAM_METEOR_FALLS_1F + setflag FLAG_HIDE_SLUDGE_BOMB_MAN_DEWFORD_HALL + setflag FLAG_HIDE_PROF_COSMO_FALLARBOR setflag FLAG_HIDE_STEVEN_ROUTE128 - setflag 944 - setflag 945 - setflag 947 - setflag 948 + setflag FLAG_HIDE_EVIL_LEADER_ROUTE128 + setflag FLAG_HIDE_OTHER_LEADER_ROUTE128 + setflag FLAG_HIDE_DEVON_EMPLOYEE_ROUTE116 + setflag FLAG_HIDE_TM_SALESMAN_SLATEPORT setflag FLAG_HIDE_WALLY_BATTLE_VICTORY_ROAD - setflag 950 - setflag 968 + setflag FLAG_HIDE_BRINEY_AND_PEEKO_SS_TIDAL + setflag FLAG_HIDE_BELDUM_BALL_STEVENS_HOUSE setflag 1133 setflag FLAG_HIDE_STEVENS_LETTER setflag 979 @@ -1291,10 +1291,10 @@ gUnknown_0819FA81:: @ 819FA81 end EverGrandeCity_HallOfFame_EventScript_19FC13:: @ 819FC13 - clearflag 925 + clearflag FLAG_HIDE_LILYCOVE_MOTEL_PEOPLE call EverGrandeCity_HallOfFame_EventScript_19FD09 setflag FLAG_HIDE_BRINEY_SLATEPORT_SHIPYARD - clearflag 950 + clearflag FLAG_HIDE_BRINEY_AND_PEEKO_SS_TIDAL clearflag FLAG_HIDE_STEVENS_LETTER setvar 0x40c6, 1 clearflag FLAG_HIDE_WALLY_DEFEATED_VICTORY_ROAD @@ -1312,7 +1312,7 @@ EverGrandeCity_HallOfFame_EventScript_19FC13:: @ 819FC13 return EverGrandeCity_HallOfFame_EventScript_19FC5A:: @ 819FC5A - clearflag 968 + clearflag FLAG_HIDE_BELDUM_BALL_STEVENS_HOUSE return EverGrandeCity_HallOfFame_EventScript_19FC5E:: @ 819FC5E @@ -1340,7 +1340,7 @@ EventScript_19FC84: goto_if_eq Route101_EventScript_1A14DC checkflag 1213 goto_if 0, Route101_EventScript_1A14DC - clearflag 929 + clearflag FLAG_HIDE_RIVAL_LAVARIDGE_1 setvar 0x4053, 2 return @@ -4740,11 +4740,11 @@ BattleTower_Lobby_EventScript_1AE2ED:: @ 81AE2ED special sub_80BF2C4 compare RESULT, 1 goto_if_eq BattleTower_Lobby_EventScript_1AE30F - clearflag 918 + clearflag FLAG_HIDE_REPORTER_BATTLE_TOWER return BattleTower_Lobby_EventScript_1AE30F:: @ 81AE30F - setflag 918 + setflag FLAG_HIDE_REPORTER_BATTLE_TOWER return .include "data/scripts/gabby_and_ty.inc" -- cgit v1.2.3 From 8d346b1baba8296f1a795b9add8f8f5ca5108d9f Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Thu, 14 Dec 2017 20:10:36 -0800 Subject: A few more flags --- data/event_scripts.s | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index a84a2dd12..f703eb327 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -1236,7 +1236,7 @@ gUnknown_0819FA81:: @ 819FA81 setflag FLAG_HIDE_RIVAL_ROUTE119 setflag FLAG_HIDE_CAVE_OF_ORIGIN_ENTRANCE_WOMAN_1 setflag FLAG_HIDE_CAVE_OF_ORIGIN_ENTRANCE_WOMAN_2 - setflag 973 + setflag FLAG_HIDE_STEVEN_SOOTOPOLIS setflag FLAG_HIDE_LANETTE setflag FLAG_HIDE_TRICKMASTER_ENTRANCE setflag FLAG_HIDE_MT_CHIMNEY_PEOPLE @@ -2359,7 +2359,7 @@ MagmaHideout_B1F_EventScript_1A04FD:: @ 81A04FD playpokecry SPECIES_ELECTRODE, 2 delay 40 waitpokecry - setflag 977 + setflag FLAG_HIDE_ELECTRODE_1_HIDEOUT setflag 2145 dowildbattle clearflag 2145 @@ -2375,7 +2375,7 @@ MagmaHideout_B1F_EventScript_1A051B:: @ 81A051B playpokecry SPECIES_ELECTRODE, 2 delay 40 waitpokecry - setflag 978 + setflag FLAG_HIDE_ELECTRODE_2_HIDEOUT setflag 2145 dowildbattle clearflag 2145 -- cgit v1.2.3 From 03c75cfd9cfe896ab5ac78edf746fc1c1b24ef75 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Fri, 15 Dec 2017 10:49:58 -0800 Subject: Finish all regular hide-show flags --- data/event_scripts.s | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index f703eb327..ca7b99d21 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -1210,7 +1210,7 @@ gUnknown_0819FA81:: @ 819FA81 setflag FLAG_HIDE_WALLY_WANDAS_HOUSE setflag FLAG_HIDE_BOYFRIEND_WANDAS_HOUSE setflag FLAG_HIDE_WALLY_FATHER_WANDAS_HOUSE - setflag 984 + setflag FLAG_HIDE_GIRLFRIEND_WANDAS_HOUSE setflag FLAG_HIDE_WALLY_FATHER_PETALBURG setflag FLAG_HIDE_WALLY_MOTHER_PETALBURG setflag FLAG_HIDE_WALLY_PETALBURG_GYM @@ -1245,7 +1245,7 @@ gUnknown_0819FA81:: @ 819FA81 setflag FLAG_HIDE_PEEKO_RUSTURF_TUNNEL setflag FLAG_HIDE_GRUNT_RUSTURF_TUNNEL setflag FLAG_HIDE_BOYFRIEND_RUSTURF_TUNNEL - setflag 983 + setflag FLAG_HIDE_GIRLFRIEND_RUSTURF_TUNNEL setflag FLAG_HIDE_EVIL_TEAM_LEADER_OCEANIC_MUSEUM_2F setflag FLAG_HIDE_GRUNT_1_OCEANIC_MUSEUM_2F setflag FLAG_HIDE_GRUNT_2_OCEANIC_MUSEUM_2F @@ -1284,9 +1284,9 @@ gUnknown_0819FA81:: @ 819FA81 setflag FLAG_HIDE_BELDUM_BALL_STEVENS_HOUSE setflag 1133 setflag FLAG_HIDE_STEVENS_LETTER - setflag 979 + setflag FLAG_HIDE_RIVAL_OLDALE_TOWN setflag FLAG_HIDE_WALLY_DEFEATED_VICTORY_ROAD - setflag 991 + setflag FLAG_HIDE_BOY_ROUTE101 call Event_ResetBerryTrees end @@ -2267,7 +2267,7 @@ RusturfTunnel_EventScript_1A0442:: @ 81A0442 removeobject 1 removeobject 10 clearflag FLAG_HIDE_BOYFRIEND_WANDAS_HOUSE - clearflag 984 + clearflag FLAG_HIDE_GIRLFRIEND_WANDAS_HOUSE setvar 0x409a, 6 setflag FLAG_RUSTURF_TUNNEL_OPENED return @@ -2480,31 +2480,31 @@ Route119_EventScript_1A05C3:: @ 81A05C3 end Route119_EventScript_1A0646:: @ 81A0646 - setflag 982 + setflag FLAG_HIDE_KECLEON_ROUTE120_3 return Route119_EventScript_1A064A:: @ 81A064A - setflag 985 + setflag FLAG_HIDE_KECLEON_ROUTE120_4 return Route119_EventScript_1A064E:: @ 81A064E - setflag 986 + setflag FLAG_HIDE_KECLEON_ROUTE120_5 return Route119_EventScript_1A0652:: @ 81A0652 - setflag 987 + setflag FLAG_HIDE_KECLEON_ROUTE120_6 return Route119_EventScript_1A0656:: @ 81A0656 - setflag 988 + setflag FLAG_HIDE_KECLEON_ROUTE120_7 return Route119_EventScript_1A065A:: @ 81A065A - setflag 989 + setflag FLAG_HIDE_KECLEON_ROUTE119_1 return Route119_EventScript_1A065E:: @ 81A065E - setflag 990 + setflag FLAG_HIDE_KECLEON_ROUTE119_2 return FortreeCity_Movement_1A0662:: @ 81A0662 -- cgit v1.2.3 From 0a634a60c938b91635af51c1a991a0f45578b313 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Fri, 15 Dec 2017 11:46:10 -0800 Subject: Label item flags --- data/event_scripts.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index ca7b99d21..df79de3d1 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -1282,7 +1282,7 @@ gUnknown_0819FA81:: @ 819FA81 setflag FLAG_HIDE_WALLY_BATTLE_VICTORY_ROAD setflag FLAG_HIDE_BRINEY_AND_PEEKO_SS_TIDAL setflag FLAG_HIDE_BELDUM_BALL_STEVENS_HOUSE - setflag 1133 + setflag FLAG_ITEM_MOSSDEEP_STEVENS_HOUSE_1 setflag FLAG_HIDE_STEVENS_LETTER setflag FLAG_HIDE_RIVAL_OLDALE_TOWN setflag FLAG_HIDE_WALLY_DEFEATED_VICTORY_ROAD @@ -1316,7 +1316,7 @@ EverGrandeCity_HallOfFame_EventScript_19FC5A:: @ 819FC5A return EverGrandeCity_HallOfFame_EventScript_19FC5E:: @ 819FC5E - clearflag 1133 + clearflag FLAG_ITEM_MOSSDEEP_STEVENS_HOUSE_1 return EverGrandeCity_HallOfFame_EventScript_19FC62:: @ 819FC62 -- cgit v1.2.3 From b14cdde8bd4afda2b0b73bb72b3cffc6961a5790 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Fri, 15 Dec 2017 14:59:25 -0800 Subject: Label landmark and daily flags. --- data/event_scripts.s | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index df79de3d1..0a250d570 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -1338,7 +1338,7 @@ S_WhiteOut:: @ 819FC74 EventScript_19FC84: checkflag FLAG_RECEIVED_GO_GOGGLES goto_if_eq Route101_EventScript_1A14DC - checkflag 1213 + checkflag FLAG_DEFEATED_LAVARIDGE_GYM goto_if 0, Route101_EventScript_1A14DC clearflag FLAG_HIDE_RIVAL_LAVARIDGE_1 setvar 0x4053, 2 @@ -1386,10 +1386,10 @@ EventScript_19FCF0: end EverGrandeCity_HallOfFame_EventScript_19FD09:: @ 819FD09 - clearflag 1245 - clearflag 1246 - clearflag 1247 - clearflag 1248 + clearflag FLAG_DEFEATED_ELITE_4_SYDNEY + clearflag FLAG_DEFEATED_ELITE_4_PHOEBE + clearflag FLAG_DEFEATED_ELITE_4_GLACIA + clearflag FLAG_DEFEATED_ELITE_4_DRAKE setvar 0x409c, 0 return @@ -1404,7 +1404,7 @@ SlateportCity_PokemonCenter_1F_EventScript_19FD1B:: @ 819FD1B VerdanturfTown_PokemonCenter_1F_EventScript_19FD1B:: @ 819FD1B checkflag FLAG_RECEIVED_POKENAV goto_if 0, OldaleTown_PokemonCenter_1F_EventScript_1A14DC - checkflag 1217 + checkflag FLAG_DEFEATED_PETALBURG_GYM goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_1A14DC checkflag FLAG_HIDE_MR_BRINEY_BOAT_ROUTE104 goto_if 0, OldaleTown_PokemonCenter_1F_EventScript_19FD49 @@ -1717,9 +1717,9 @@ EventScript_1A0070: EventScript_1A0085: playse 2 - checkflag 2123 + checkflag SYS_PC_LANETTE call_if 0, EventScript_1A00AC - checkflag 2123 + checkflag SYS_PC_LANETTE call_if 1, EventScript_1A00B5 msgbox UnknownString_81A0A35, 4 special ShowPokemonStorageSystem @@ -2360,9 +2360,9 @@ MagmaHideout_B1F_EventScript_1A04FD:: @ 81A04FD delay 40 waitpokecry setflag FLAG_HIDE_ELECTRODE_1_HIDEOUT - setflag 2145 + setflag SYS_CTRL_OBJ_DELETE dowildbattle - clearflag 2145 + clearflag SYS_CTRL_OBJ_DELETE release end @@ -2376,9 +2376,9 @@ MagmaHideout_B1F_EventScript_1A051B:: @ 81A051B delay 40 waitpokecry setflag FLAG_HIDE_ELECTRODE_2_HIDEOUT - setflag 2145 + setflag SYS_CTRL_OBJ_DELETE dowildbattle - clearflag 2145 + clearflag SYS_CTRL_OBJ_DELETE release end @@ -2473,9 +2473,9 @@ Route119_EventScript_1A05C3:: @ 81A05C3 call_if 1, Route119_EventScript_1A065A compare 0x8004, 7 call_if 1, Route119_EventScript_1A065E - setflag 2145 + setflag SYS_CTRL_OBJ_DELETE dowildbattle - clearflag 2145 + clearflag SYS_CTRL_OBJ_DELETE release end -- cgit v1.2.3 From 88716f4c0e053a984eeb4bef92fefa42027dd22a Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Sun, 17 Dec 2017 20:07:53 -0800 Subject: Use FLAG_ prefix for all flags --- data/event_scripts.s | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 0a250d570..bbeac074c 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -1326,7 +1326,7 @@ EverGrandeCity_HallOfFame_EventScript_19FC62:: @ 819FC62 return EverGrandeCity_HallOfFame_EventScript_19FC70:: @ 819FC70 - setflag SYS_TV_LATI + setflag FLAG_SYS_TV_LATI return S_WhiteOut:: @ 819FC74 @@ -1717,9 +1717,9 @@ EventScript_1A0070: EventScript_1A0085: playse 2 - checkflag SYS_PC_LANETTE + checkflag FLAG_SYS_PC_LANETTE call_if 0, EventScript_1A00AC - checkflag SYS_PC_LANETTE + checkflag FLAG_SYS_PC_LANETTE call_if 1, EventScript_1A00B5 msgbox UnknownString_81A0A35, 4 special ShowPokemonStorageSystem @@ -1743,7 +1743,7 @@ EventScript_1A00BE: end EventScript_1A00CB: - checkflag SYS_GAME_CLEAR + checkflag FLAG_SYS_GAME_CLEAR goto_if 0, EventScript_1A00BE playse 2 special AccessHallOfFamePC @@ -2360,9 +2360,9 @@ MagmaHideout_B1F_EventScript_1A04FD:: @ 81A04FD delay 40 waitpokecry setflag FLAG_HIDE_ELECTRODE_1_HIDEOUT - setflag SYS_CTRL_OBJ_DELETE + setflag FLAG_SYS_CTRL_OBJ_DELETE dowildbattle - clearflag SYS_CTRL_OBJ_DELETE + clearflag FLAG_SYS_CTRL_OBJ_DELETE release end @@ -2376,9 +2376,9 @@ MagmaHideout_B1F_EventScript_1A051B:: @ 81A051B delay 40 waitpokecry setflag FLAG_HIDE_ELECTRODE_2_HIDEOUT - setflag SYS_CTRL_OBJ_DELETE + setflag FLAG_SYS_CTRL_OBJ_DELETE dowildbattle - clearflag SYS_CTRL_OBJ_DELETE + clearflag FLAG_SYS_CTRL_OBJ_DELETE release end @@ -2473,9 +2473,9 @@ Route119_EventScript_1A05C3:: @ 81A05C3 call_if 1, Route119_EventScript_1A065A compare 0x8004, 7 call_if 1, Route119_EventScript_1A065E - setflag SYS_CTRL_OBJ_DELETE + setflag FLAG_SYS_CTRL_OBJ_DELETE dowildbattle - clearflag SYS_CTRL_OBJ_DELETE + clearflag FLAG_SYS_CTRL_OBJ_DELETE release end @@ -3943,7 +3943,7 @@ SecretBase_YellowCave4_EventScript_1A2FC0:: @ 81A2FC0 end SecretBase_RedCave1_EventScript_1A3032:: @ 81A3032 - checkflag SYS_GAME_CLEAR + checkflag FLAG_SYS_GAME_CLEAR goto_if 0, SecretBase_RedCave1_EventScript_1A3086 compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A30A5 @@ -3978,7 +3978,7 @@ SecretBase_RedCave1_EventScript_1A30A5:: @ 81A30A5 end SecretBase_RedCave1_EventScript_1A30AE:: @ 81A30AE - checkflag SYS_GAME_CLEAR + checkflag FLAG_SYS_GAME_CLEAR goto_if 0, SecretBase_RedCave1_EventScript_1A3102 compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3121 @@ -4013,7 +4013,7 @@ SecretBase_RedCave1_EventScript_1A3121:: @ 81A3121 end SecretBase_RedCave1_EventScript_1A312A:: @ 81A312A - checkflag SYS_GAME_CLEAR + checkflag FLAG_SYS_GAME_CLEAR goto_if 0, SecretBase_RedCave1_EventScript_1A317E compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A319D @@ -4048,7 +4048,7 @@ SecretBase_RedCave1_EventScript_1A319D:: @ 81A319D end SecretBase_RedCave1_EventScript_1A31A6:: @ 81A31A6 - checkflag SYS_GAME_CLEAR + checkflag FLAG_SYS_GAME_CLEAR goto_if 0, SecretBase_RedCave1_EventScript_1A31FA compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3219 @@ -4083,7 +4083,7 @@ SecretBase_RedCave1_EventScript_1A3219:: @ 81A3219 end SecretBase_RedCave1_EventScript_1A3222:: @ 81A3222 - checkflag SYS_GAME_CLEAR + checkflag FLAG_SYS_GAME_CLEAR goto_if 0, SecretBase_RedCave1_EventScript_1A3276 compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3295 @@ -4118,7 +4118,7 @@ SecretBase_RedCave1_EventScript_1A3295:: @ 81A3295 end SecretBase_RedCave1_EventScript_1A329E:: @ 81A329E - checkflag SYS_GAME_CLEAR + checkflag FLAG_SYS_GAME_CLEAR goto_if 0, SecretBase_RedCave1_EventScript_1A32F2 compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3311 @@ -4153,7 +4153,7 @@ SecretBase_RedCave1_EventScript_1A3311:: @ 81A3311 end SecretBase_RedCave1_EventScript_1A331A:: @ 81A331A - checkflag SYS_GAME_CLEAR + checkflag FLAG_SYS_GAME_CLEAR goto_if 0, SecretBase_RedCave1_EventScript_1A336E compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A338D @@ -4188,7 +4188,7 @@ SecretBase_RedCave1_EventScript_1A338D:: @ 81A338D end SecretBase_RedCave1_EventScript_1A3396:: @ 81A3396 - checkflag SYS_GAME_CLEAR + checkflag FLAG_SYS_GAME_CLEAR goto_if 0, SecretBase_RedCave1_EventScript_1A33EA compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3409 @@ -4223,7 +4223,7 @@ SecretBase_RedCave1_EventScript_1A3409:: @ 81A3409 end SecretBase_RedCave1_EventScript_1A3412:: @ 81A3412 - checkflag SYS_GAME_CLEAR + checkflag FLAG_SYS_GAME_CLEAR goto_if 0, SecretBase_RedCave1_EventScript_1A3466 compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3485 @@ -4258,7 +4258,7 @@ SecretBase_RedCave1_EventScript_1A3485:: @ 81A3485 end SecretBase_RedCave1_EventScript_1A348E:: @ 81A348E - checkflag SYS_GAME_CLEAR + checkflag FLAG_SYS_GAME_CLEAR goto_if 0, SecretBase_RedCave1_EventScript_1A34E2 compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3501 -- cgit v1.2.3 From a753c44277c050fb24aaf97a8947c7f54e0dacd7 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Wed, 20 Dec 2017 19:58:17 -0600 Subject: Use event script macro names from pokeemerald --- data/event_scripts.s | 378 +++++++++++++++++++++++++-------------------------- 1 file changed, 189 insertions(+), 189 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index bbeac074c..3fd344b13 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -401,7 +401,7 @@ gUnknown_0815F36C:: @ 815F36C dofieldeffect 61 waitstate waitmessage - waitbutton + waitbuttonpress playse 5 goto EventScript_15F384 end @@ -462,7 +462,7 @@ gUnknown_0815F43A:: @ 815F43A dofieldeffect 61 waitstate waitmessage - waitbutton + waitbuttonpress playse 5 goto EventScript_15F452 end @@ -901,7 +901,7 @@ Std_2: faceplayer message 0x0 waitmessage - waitbutton + waitbuttonpress release return @@ -909,14 +909,14 @@ Std_3: lockall message 0x0 waitmessage - waitbutton + waitbuttonpress releaseall return Std_4: message 0x0 waitmessage - waitbutton + waitbuttonpress return Std_5: @@ -953,7 +953,7 @@ gUnknown_0819F818:: @ 819F818 goto EventScript_19F8F2 EventScript_19F83F: - ontrainerbattleend + gotopostbattlescript gUnknown_0819F840:: @ 819F840 lock @@ -972,19 +972,19 @@ gUnknown_0819F840:: @ 819F840 EventScript_19F870: special ScrSpecial_ShowTrainerNonBattlingSpeech waitmessage - waitbutton + waitbuttonpress release end EventScript_19F877: - ontrainerbattleend + gotopostbattlescript gUnknown_0819F878:: @ 819F878 applymovement LAST_TALKED, Movement_19F8F0 waitmovement 0 special PlayTrainerEncounterMusic - battlebegin - ontrainerbattleend + trainerbattlebegin + gotopostbattlescript gUnknown_0819F887:: @ 819F887 call EventScript_19F8E5 @@ -995,14 +995,14 @@ gUnknown_0819F887:: @ 819F887 special sub_8082524 special ScrSpecial_ShowTrainerIntroSpeech waitmessage - waitbutton + waitbuttonpress special ScrSpecial_StartTrainerEyeRematch waitstate releaseall end EventScript_19F8AD: - ontrainerbattleend + gotopostbattlescript gUnknown_0819F8AE:: @ 819F8AE specialvar RESULT, ScrSpecial_GetTrainerEyeRematchFlag @@ -1015,19 +1015,19 @@ gUnknown_0819F8AE:: @ 819F8AE special sub_8082524 special ScrSpecial_ShowTrainerIntroSpeech waitmessage - waitbutton + waitbuttonpress special ScrSpecial_StartTrainerEyeRematch waitstate releaseall end EventScript_19F8DD: - ontrainerbattleend + gotopostbattlescript EventScript_19F8DE: special ScrSpecial_ShowTrainerNonBattlingSpeech waitmessage - waitbutton + waitbuttonpress release end @@ -1043,8 +1043,8 @@ Movement_19F8F0:: EventScript_19F8F2: special ScrSpecial_ShowTrainerIntroSpeech waitmessage - waitbutton - battlebegin + waitbuttonpress + trainerbattlebegin specialvar RESULT, ScrSpecial_GetTrainerBattleMode compare RESULT, 0 goto_if_eq EventScript_19F934 @@ -1062,96 +1062,96 @@ EventScript_19F934: end EventScript_19F936: - ontrainerbattleendgoto + gotobeatenscript Std_6:: message 0x0 waitmessage - waitbutton + waitbuttonpress release return Event_ResetBerryTrees: @ 19F940 - plantberrytree 2, 7, 5 - plantberrytree 1, 3, 5 - plantberrytree 11, 7, 5 - plantberrytree 13, 3, 5 - plantberrytree 4, 7, 5 - plantberrytree 76, 1, 5 - plantberrytree 8, 1, 5 - plantberrytree 10, 6, 5 - plantberrytree 25, 20, 5 - plantberrytree 26, 2, 5 - plantberrytree 66, 2, 5 - plantberrytree 67, 20, 5 - plantberrytree 69, 22, 5 - plantberrytree 70, 22, 5 - plantberrytree 71, 22, 5 - plantberrytree 55, 17, 5 - plantberrytree 56, 17, 5 - plantberrytree 5, 1, 5 - plantberrytree 6, 6, 5 - plantberrytree 7, 1, 5 - plantberrytree 16, 18, 5 - plantberrytree 17, 18, 5 - plantberrytree 18, 18, 5 - plantberrytree 29, 19, 5 - plantberrytree 28, 19, 5 - plantberrytree 27, 19, 5 - plantberrytree 24, 4, 5 - plantberrytree 23, 3, 5 - plantberrytree 22, 3, 5 - plantberrytree 21, 4, 5 - plantberrytree 19, 16, 5 - plantberrytree 20, 16, 5 - plantberrytree 80, 7, 5 - plantberrytree 81, 7, 5 - plantberrytree 77, 8, 5 - plantberrytree 78, 8, 5 - plantberrytree 68, 8, 5 - plantberrytree 31, 10, 5 - plantberrytree 33, 10, 5 - plantberrytree 34, 21, 5 - plantberrytree 35, 21, 5 - plantberrytree 36, 21, 5 - plantberrytree 83, 24, 5 - plantberrytree 84, 24, 5 - plantberrytree 85, 10, 5 - plantberrytree 86, 6, 5 - plantberrytree 37, 5, 5 - plantberrytree 38, 5, 5 - plantberrytree 39, 5, 5 - plantberrytree 40, 3, 5 - plantberrytree 41, 3, 5 - plantberrytree 42, 3, 5 - plantberrytree 46, 19, 5 - plantberrytree 45, 20, 5 - plantberrytree 44, 18, 5 - plantberrytree 43, 16, 5 - plantberrytree 47, 8, 5 - plantberrytree 48, 5, 5 - plantberrytree 49, 4, 5 - plantberrytree 50, 2, 5 - plantberrytree 52, 18, 5 - plantberrytree 53, 18, 5 - plantberrytree 62, 6, 5 - plantberrytree 64, 6, 5 - plantberrytree 58, 21, 5 - plantberrytree 59, 21, 5 - plantberrytree 60, 25, 5 - plantberrytree 61, 25, 5 - plantberrytree 79, 23, 5 - plantberrytree 14, 23, 5 - plantberrytree 15, 21, 5 - plantberrytree 30, 21, 5 - plantberrytree 65, 25, 5 - plantberrytree 72, 25, 5 - plantberrytree 73, 23, 5 - plantberrytree 74, 23, 5 - plantberrytree 87, 3, 5 - plantberrytree 88, 10, 5 - plantberrytree 89, 4, 5 - plantberrytree 82, 36, 5 + setberrytree 2, 7, 5 + setberrytree 1, 3, 5 + setberrytree 11, 7, 5 + setberrytree 13, 3, 5 + setberrytree 4, 7, 5 + setberrytree 76, 1, 5 + setberrytree 8, 1, 5 + setberrytree 10, 6, 5 + setberrytree 25, 20, 5 + setberrytree 26, 2, 5 + setberrytree 66, 2, 5 + setberrytree 67, 20, 5 + setberrytree 69, 22, 5 + setberrytree 70, 22, 5 + setberrytree 71, 22, 5 + setberrytree 55, 17, 5 + setberrytree 56, 17, 5 + setberrytree 5, 1, 5 + setberrytree 6, 6, 5 + setberrytree 7, 1, 5 + setberrytree 16, 18, 5 + setberrytree 17, 18, 5 + setberrytree 18, 18, 5 + setberrytree 29, 19, 5 + setberrytree 28, 19, 5 + setberrytree 27, 19, 5 + setberrytree 24, 4, 5 + setberrytree 23, 3, 5 + setberrytree 22, 3, 5 + setberrytree 21, 4, 5 + setberrytree 19, 16, 5 + setberrytree 20, 16, 5 + setberrytree 80, 7, 5 + setberrytree 81, 7, 5 + setberrytree 77, 8, 5 + setberrytree 78, 8, 5 + setberrytree 68, 8, 5 + setberrytree 31, 10, 5 + setberrytree 33, 10, 5 + setberrytree 34, 21, 5 + setberrytree 35, 21, 5 + setberrytree 36, 21, 5 + setberrytree 83, 24, 5 + setberrytree 84, 24, 5 + setberrytree 85, 10, 5 + setberrytree 86, 6, 5 + setberrytree 37, 5, 5 + setberrytree 38, 5, 5 + setberrytree 39, 5, 5 + setberrytree 40, 3, 5 + setberrytree 41, 3, 5 + setberrytree 42, 3, 5 + setberrytree 46, 19, 5 + setberrytree 45, 20, 5 + setberrytree 44, 18, 5 + setberrytree 43, 16, 5 + setberrytree 47, 8, 5 + setberrytree 48, 5, 5 + setberrytree 49, 4, 5 + setberrytree 50, 2, 5 + setberrytree 52, 18, 5 + setberrytree 53, 18, 5 + setberrytree 62, 6, 5 + setberrytree 64, 6, 5 + setberrytree 58, 21, 5 + setberrytree 59, 21, 5 + setberrytree 60, 25, 5 + setberrytree 61, 25, 5 + setberrytree 79, 23, 5 + setberrytree 14, 23, 5 + setberrytree 15, 21, 5 + setberrytree 30, 21, 5 + setberrytree 65, 25, 5 + setberrytree 72, 25, 5 + setberrytree 73, 23, 5 + setberrytree 74, 23, 5 + setberrytree 87, 3, 5 + setberrytree 88, 10, 5 + setberrytree 89, 4, 5 + setberrytree 82, 36, 5 return gUnknown_0819FA81:: @ 819FA81 @@ -1499,13 +1499,13 @@ OldaleTown_PokemonCenter_1F_Movement_19FDF4:: @ 819FDF4 step_end Std_ObtainItem: @ 819FDF7 - additem 0x8000, 0x8001 + giveitem 0x8000, 0x8001 copyvar 0x8007, RESULT call Std_ObtainItem_ return Std_ObtainItem_: @ 819FE07 - getitemname 1, 0x8000 + bufferitemname 1, 0x8000 checkitemtype 0x8000 call GetItem_HandlePocket compare 0x8007, 0x1 @@ -1524,31 +1524,31 @@ GetItem_HandlePocket: end GetItem_HandlePocket_Items: - getstdstring 2, 0xE + bufferstdstring 2, 0xE compare 0x8007, 1 call_if 1, PlayGetItemFanfare return GetItem_HandlePocket_KeyItems: - getstdstring 2, 0xF + bufferstdstring 2, 0xF compare 0x8007, 1 call_if 1, PlayGetItemFanfare return GetItem_HandlePocket_PokeBalls: - getstdstring 2, 0x10 + bufferstdstring 2, 0x10 compare 0x8007, 1 call_if 1, PlayGetItemFanfare return GetItem_HandlePocket_TMsHMs: - getstdstring 2, 0x11 + bufferstdstring 2, 0x11 compare 0x8007, 1 call_if 1, PlayGetTMHMFanfare return GetItem_HandlePocket_Berries: - getstdstring 2, 0x12 + bufferstdstring 2, 0x12 compare 0x8007, 1 call_if 1, PlayGetItemFanfare return @@ -1574,13 +1574,13 @@ PlayGetTMHMFanfare: return Std_ObtainDecoration: @ 819FEDA - adddecor 0x8000 + givedecoration 0x8000 copyvar 0x8007, RESULT call Std_ObtainDecoration_ return Std_ObtainDecoration_: @ 819FEE8 - getdecorname 1, 0x8000 + bufferdecorationname 1, 0x8000 compare 0x8007, 1 call_if 1, Std_ObtainDecoration_Success compare 0x8007, 0 @@ -1604,9 +1604,9 @@ Std_FindItem: @ 819FF21 lock faceplayer waitse - additem 0x8000, 0x8001 + giveitem 0x8000, 0x8001 copyvar 0x8007, RESULT - getitemname 1, 0x8000 + bufferitemname 1, 0x8000 checkitemtype 0x8000 call GetItem_HandlePocket compare 0x8007, 1 @@ -1633,9 +1633,9 @@ Std_FindItem_Fail: @ 819FF65 HiddenItemScript:: @ 819FF7B lockall waitse - additem 0x8005, 1 + giveitem 0x8005, 1 copyvar 0x8007, RESULT - getitemname 0x1, 0x8005 + bufferitemname 0x1, 0x8005 checkitemtype 0x8005 call GetItem_HandlePocket compare 0x8007, 1 @@ -1677,7 +1677,7 @@ UnusedMixRecordsScript_Yes: @ 819FFFA UnusedMixRecordsScript_Done: @ 81A0000 message UnusedMixRecordsSeeYouAgainText waitmessage - waitbutton + waitbuttonpress release end @@ -1820,11 +1820,11 @@ Route109_EventScript_1A010C:: @ 81A010C return UseSurfScript:: @ 81A0117 - checkpokemove MOVE_SURF + checkpartymove MOVE_SURF compare RESULT, 6 goto_if_eq UseSurfScript_NoMon - getpartypokename 0, RESULT - setfieldeffect 0, RESULT + bufferpartymonnick 0, RESULT + setfieldeffectargument 0, RESULT lockall msgbox UseSurfPromptText, 5 compare RESULT, 0 @@ -2208,7 +2208,7 @@ Route101_EventScript_1A03A5:: @ 81A03A5 copyvar 0x8004, 0x8009 special ShowPokedexRatingMessage waitmessage - waitbutton + waitbuttonpress return EverGrandeCity_ChampionsRoom_EventScript_1A03B0:: @ 81A03B0 @@ -2218,8 +2218,8 @@ Route101_EventScript_1A03B0:: @ 81A03B0 copyvar 0x8008, 0x8005 copyvar 0x8009, 0x8006 copyvar 0x800a, RESULT - getnumberstring 0, 0x8008 - getnumberstring 1, 0x8009 + buffernumberstring 0, 0x8008 + buffernumberstring 1, 0x8009 msgbox Route101_Text_1C44DC, 4 call Route101_EventScript_1A03A5 compare 0x800a, 0 @@ -2228,8 +2228,8 @@ Route101_EventScript_1A03B0:: @ 81A03B0 specialvar RESULT, ScriptGetPokedexInfo copyvar 0x8008, 0x8005 copyvar 0x8009, 0x8006 - getnumberstring 0, 0x8008 - getnumberstring 1, 0x8009 + buffernumberstring 0, 0x8008 + buffernumberstring 1, 0x8009 msgbox Route101_Text_1C4B05, 4 return @@ -2276,7 +2276,7 @@ EventScript_1A0457: @ unreferenced? delay 30 applymovement 255, SlateportCity_OceanicMuseum_2F_Movement_1A0841 waitmovement 0 - showobject 255, 0, 0 + showobjectat 255, MAP_PETALBURG_CITY delay 30 applymovement 255, Movement_1A047A waitmovement 0 @@ -2294,15 +2294,15 @@ SouthernIsland_Exterior_EventScript_1A047C:: @ 81A047C compare FACING, 3 call_if 1, BattleTower_Outside_EventScript_160B3A delay 30 - hideobject 255, 0, 0 + hideobjectat 255, MAP_PETALBURG_CITY call BattleTower_Outside_EventScript_1A040E return CaveOfOrigin_B4F_EventScript_1A04A0:: @ 81A04A0 lockall waitse - playpokecry SPECIES_GROUDON_OR_KYOGRE, 2 - waitpokecry + playmoncry SPECIES_GROUDON_OR_KYOGRE, 2 + waitmoncry setvar 0x4005, 1 releaseall end @@ -2356,9 +2356,9 @@ MagmaHideout_B1F_EventScript_1A04FD:: @ 81A04FD faceplayer setwildbattle SPECIES_ELECTRODE, 30, ITEM_NONE waitse - playpokecry SPECIES_ELECTRODE, 2 + playmoncry SPECIES_ELECTRODE, 2 delay 40 - waitpokecry + waitmoncry setflag FLAG_HIDE_ELECTRODE_1_HIDEOUT setflag FLAG_SYS_CTRL_OBJ_DELETE dowildbattle @@ -2372,9 +2372,9 @@ MagmaHideout_B1F_EventScript_1A051B:: @ 81A051B faceplayer setwildbattle SPECIES_ELECTRODE, 30, ITEM_NONE waitse - playpokecry SPECIES_ELECTRODE, 2 + playmoncry SPECIES_ELECTRODE, 2 delay 40 - waitpokecry + waitmoncry setflag FLAG_HIDE_ELECTRODE_2_HIDEOUT setflag FLAG_SYS_CTRL_OBJ_DELETE dowildbattle @@ -2455,9 +2455,9 @@ Route119_EventScript_1A05C3:: @ 81A05C3 applymovement LAST_TALKED, Route119_Movement_1A0662 waitmovement 0 waitse - playpokecry SPECIES_KECLEON, 2 + playmoncry SPECIES_KECLEON, 2 delay 40 - waitpokecry + waitmoncry setwildbattle SPECIES_KECLEON, 30, ITEM_NONE compare 0x8004, 1 call_if 1, Route119_EventScript_1A0646 @@ -2546,12 +2546,12 @@ FallarborTown_House1_EventScript_1A067F:: @ 81A067F GraniteCave_StevensRoom_EventScript_1A067F:: @ 81A067F MtPyre_Summit_EventScript_1A067F:: @ 81A067F SlateportCity_OceanicMuseum_2F_EventScript_1A067F:: @ 81A067F - getitemname 0, 0x8004 + bufferitemname 0, 0x8004 playfanfare 372 message FallarborTown_House1_Text_1A1498 waitmessage waitfanfare - removeitem 0x8004, 1 + takeitem 0x8004, 1 return EverGrandeCity_DrakesRoom_EventScript_1A0693:: @ 81A0693 @@ -2561,18 +2561,18 @@ EverGrandeCity_SidneysRoom_EventScript_1A0693:: @ 81A0693 applymovement 255, EverGrandeCity_SidneysRoom_Movement_1A0853 waitmovement 0 playse 8 - setmaptile 6, 1, 836, 0 - setmaptile 6, 2, 837, 0 - setmaptile 0, 2, 734, 1 - setmaptile 1, 2, 733, 1 - setmaptile 2, 2, 734, 1 - setmaptile 3, 2, 733, 1 - setmaptile 4, 2, 734, 1 - setmaptile 8, 2, 733, 1 - setmaptile 9, 2, 734, 1 - setmaptile 10, 2, 733, 1 - setmaptile 11, 2, 734, 1 - setmaptile 12, 2, 733, 1 + setmetatile 6, 1, 836, 0 + setmetatile 6, 2, 837, 0 + setmetatile 0, 2, 734, 1 + setmetatile 1, 2, 733, 1 + setmetatile 2, 2, 734, 1 + setmetatile 3, 2, 733, 1 + setmetatile 4, 2, 734, 1 + setmetatile 8, 2, 733, 1 + setmetatile 9, 2, 734, 1 + setmetatile 10, 2, 733, 1 + setmetatile 11, 2, 734, 1 + setmetatile 12, 2, 733, 1 special DrawWholeMapView return @@ -2583,12 +2583,12 @@ EverGrandeCity_SidneysRoom_EventScript_1A0710:: @ 81A0710 applymovement 255, EverGrandeCity_SidneysRoom_Movement_1A0847 waitmovement 0 playse 52 - setmaptile 5, 12, 518, 1 - setmaptile 6, 12, 518, 1 - setmaptile 7, 12, 518, 1 - setmaptile 5, 13, 526, 1 - setmaptile 6, 13, 526, 1 - setmaptile 7, 13, 526, 1 + setmetatile 5, 12, 518, 1 + setmetatile 6, 12, 518, 1 + setmetatile 7, 12, 518, 1 + setmetatile 5, 13, 526, 1 + setmetatile 6, 13, 526, 1 + setmetatile 7, 13, 526, 1 special DrawWholeMapView return @@ -2596,36 +2596,36 @@ EverGrandeCity_DrakesRoom_EventScript_1A0757:: @ 81A0757 EverGrandeCity_GlaciasRoom_EventScript_1A0757:: @ 81A0757 EverGrandeCity_PhoebesRoom_EventScript_1A0757:: @ 81A0757 EverGrandeCity_SidneysRoom_EventScript_1A0757:: @ 81A0757 - setmaptile 6, 1, 836, 0 - setmaptile 6, 2, 837, 0 - setmaptile 5, 12, 518, 1 - setmaptile 6, 12, 518, 1 - setmaptile 7, 12, 518, 1 - setmaptile 5, 13, 526, 1 - setmaptile 6, 13, 526, 1 - setmaptile 7, 13, 526, 1 - setmaptile 0, 2, 734, 1 - setmaptile 1, 2, 733, 1 - setmaptile 2, 2, 734, 1 - setmaptile 3, 2, 733, 1 - setmaptile 4, 2, 734, 1 - setmaptile 8, 2, 733, 1 - setmaptile 9, 2, 734, 1 - setmaptile 10, 2, 733, 1 - setmaptile 11, 2, 734, 1 - setmaptile 12, 2, 733, 1 + setmetatile 6, 1, 836, 0 + setmetatile 6, 2, 837, 0 + setmetatile 5, 12, 518, 1 + setmetatile 6, 12, 518, 1 + setmetatile 7, 12, 518, 1 + setmetatile 5, 13, 526, 1 + setmetatile 6, 13, 526, 1 + setmetatile 7, 13, 526, 1 + setmetatile 0, 2, 734, 1 + setmetatile 1, 2, 733, 1 + setmetatile 2, 2, 734, 1 + setmetatile 3, 2, 733, 1 + setmetatile 4, 2, 734, 1 + setmetatile 8, 2, 733, 1 + setmetatile 9, 2, 734, 1 + setmetatile 10, 2, 733, 1 + setmetatile 11, 2, 734, 1 + setmetatile 12, 2, 733, 1 return EverGrandeCity_DrakesRoom_EventScript_1A07FA:: @ 81A07FA EverGrandeCity_GlaciasRoom_EventScript_1A07FA:: @ 81A07FA EverGrandeCity_PhoebesRoom_EventScript_1A07FA:: @ 81A07FA EverGrandeCity_SidneysRoom_EventScript_1A07FA:: @ 81A07FA - setmaptile 5, 12, 518, 1 - setmaptile 6, 12, 518, 1 - setmaptile 7, 12, 518, 1 - setmaptile 5, 13, 526, 1 - setmaptile 6, 13, 526, 1 - setmaptile 7, 13, 526, 1 + setmetatile 5, 12, 518, 1 + setmetatile 6, 12, 518, 1 + setmetatile 7, 12, 518, 1 + setmetatile 5, 13, 526, 1 + setmetatile 6, 13, 526, 1 + setmetatile 7, 13, 526, 1 return SlateportCity_Movement_1A0831:: @ 81A0831 @@ -3271,7 +3271,7 @@ gUnknown_081A14B8:: @ 81A14B8 EventScript_1A14CA:: message UnknownString_81A1141 waitmessage - waitbutton + waitbuttonpress special sub_8081924 waitstate fadescreen 1 @@ -3609,9 +3609,9 @@ gUnknown_081A2C51:: @ 81A2C51 special sub_80BB63C compare RESULT, 1 goto_if_eq EventScript_1A2E45 - checkpokemove MOVE_SECRET_POWER - setfieldeffect 0, RESULT - getmovename 1, MOVE_SECRET_POWER + checkpartymove MOVE_SECRET_POWER + setfieldeffectargument 0, RESULT + buffermovename 1, MOVE_SECRET_POWER compare 0x8007, 1 goto_if_eq EventScript_1A2CB0 compare 0x8007, 2 @@ -3630,7 +3630,7 @@ EventScript_1A2CB0: lockall compare RESULT, 6 goto_if_eq EventScript_1A2CF1 - getpartypokename 0, RESULT + bufferpartymonnick 0, RESULT msgbox UnknownString_8198F34, 5 compare RESULT, 0 goto_if_eq EventScript_1A2F3A @@ -3661,7 +3661,7 @@ EventScript_1A2D08: lockall compare RESULT, 6 goto_if_eq EventScript_1A2D49 - getpartypokename 0, RESULT + bufferpartymonnick 0, RESULT msgbox UnknownString_81A197B, 5 compare RESULT, 0 goto_if_eq EventScript_1A2F3A @@ -3692,7 +3692,7 @@ EventScript_1A2D60: lockall compare RESULT, 6 goto_if_eq EventScript_1A2DA1 - getpartypokename 0, RESULT + bufferpartymonnick 0, RESULT msgbox UnknownString_81A1A4B, 5 compare RESULT, 0 goto_if_eq EventScript_1A2F3A @@ -3778,10 +3778,10 @@ EventScript_1A2E38: end EventScript_1A2E45: - checkpokemove MOVE_SECRET_POWER + checkpartymove MOVE_SECRET_POWER compare RESULT, 6 goto_if_eq EventScript_1A2EF7 - setfieldeffect 0, RESULT + setfieldeffectargument 0, RESULT setorcopyvar 0x8004, RESULT lockall special GetSecretBaseNearbyMapName @@ -3798,8 +3798,8 @@ EventScript_1A2E45: msgbox UnknownString_81A3CC9, 5 compare RESULT, 0 goto_if_eq EventScript_1A2F3A - getpartypokename 0, 0x8004 - getmovename 1, MOVE_SECRET_POWER + bufferpartymonnick 0, 0x8004 + buffermovename 1, MOVE_SECRET_POWER msgbox UsedCutRockSmashText, 4 closemessage closemessage @@ -4773,8 +4773,8 @@ BattleTower_Lobby_EventScript_1AE30F:: @ 81AE30F .include "data/text/magma_summit.inc" gUnknown_081B694A:: @ 81B694A - animdarklevel 1 - setdarklevel 1 + animateflash 1 + setflashradius 1 end .include "data/scripts/players_house.inc" @@ -4928,7 +4928,7 @@ gUnknown_081C6C02:: @ 81C6C02 @ 81C6C1D lockall braillemessage Underwater_SealedChamber_Braille_1C533D - waitbutton + waitbuttonpress erasebox 0, 0, 29, 19 releaseall end -- cgit v1.2.3 From 754e911b4e95205bafa5dc93242da9cee3f2c5c6 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Thu, 21 Dec 2017 11:40:26 -0600 Subject: Rename gScript* vars to gSpecialVar_* --- data/event_scripts.s | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 3fd344b13..76b080a5b 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -32,12 +32,12 @@ gSpecialVars:: .4byte gSpecialVar_0x8009 .4byte gSpecialVar_0x800A .4byte gSpecialVar_0x800B - .4byte gScriptFacing - .4byte gScriptResult - .4byte gScriptItemId - .4byte gScriptLastTalked - .4byte gScriptContestRank - .4byte gScriptContestCategory + .4byte gSpecialVar_Facing + .4byte gSpecialVar_Result + .4byte gSpecialVar_ItemId + .4byte gSpecialVar_LastTalked + .4byte gSpecialVar_ContestRank + .4byte gSpecialVar_ContestCategory .include "data/specials.inc" -- cgit v1.2.3 From 4b5ad9de049a63b101b2bf5f2f2cb92beb26e5fb Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Fri, 22 Dec 2017 12:36:12 -0600 Subject: Name and use temp var constants --- data/event_scripts.s | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 76b080a5b..b18e4eb1a 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/vars.h" .include "asm/macros.inc" .include "asm/macros/event.inc" .include "constants/constants.inc" @@ -2132,14 +2133,14 @@ Event_WorldMap:: @ 81A02D6 DewfordTown_EventScript_1A02E7:: @ 81A02E7 Route104_EventScript_1A02E7:: @ 81A02E7 Route109_EventScript_1A02E7:: @ 81A02E7 - setflag 0x4001 + setflag FLAG_SPECIAL_FLAG_1 playbgm 431, 0 return DewfordTown_EventScript_1A02EF:: @ 81A02EF Route104_EventScript_1A02EF:: @ 81A02EF Route109_EventScript_1A02EF:: @ 81A02EF - clearflag 0x4001 + clearflag FLAG_SPECIAL_FLAG_1 fadedefaultbgm return @@ -2303,7 +2304,7 @@ CaveOfOrigin_B4F_EventScript_1A04A0:: @ 81A04A0 waitse playmoncry SPECIES_GROUDON_OR_KYOGRE, 2 waitmoncry - setvar 0x4005, 1 + setvar VAR_TEMP_5, 1 releaseall end @@ -2312,20 +2313,20 @@ CaveOfOrigin_B1F_EventScript_1A04AF:: @ 81A04AF CaveOfOrigin_B2F_EventScript_1A04AF:: @ 81A04AF CaveOfOrigin_B3F_EventScript_1A04AF:: @ 81A04AF lockall - setvar 0x4001, 1 + setvar VAR_TEMP_1, 1 goto CaveOfOrigin_1F_EventScript_1A04D3 end CaveOfOrigin_B2F_EventScript_1A04BB:: @ 81A04BB CaveOfOrigin_B3F_EventScript_1A04BB:: @ 81A04BB lockall - setvar 0x4002, 1 + setvar VAR_TEMP_2, 1 goto CaveOfOrigin_B2F_EventScript_1A04D3 end @ 81A04C7 lockall - setvar 0x4003, 1 + setvar VAR_TEMP_3, 1 goto CaveOfOrigin_B2F_EventScript_1A04D3 end @@ -2343,11 +2344,11 @@ CaveOfOrigin_B1F_EventScript_1A04E3:: @ 81A04E3 CaveOfOrigin_B2F_EventScript_1A04E3:: @ 81A04E3 CaveOfOrigin_B3F_EventScript_1A04E3:: @ 81A04E3 CaveOfOrigin_B4F_EventScript_1A04E3:: @ 81A04E3 - setvar 0x4001, 1 - setvar 0x4002, 1 - setvar 0x4003, 1 - setvar 0x4004, 1 - setvar 0x4005, 1 + setvar VAR_TEMP_1, 1 + setvar VAR_TEMP_2, 1 + setvar VAR_TEMP_3, 1 + setvar VAR_TEMP_4, 1 + setvar VAR_TEMP_5, 1 return AquaHideout_B1F_EventScript_1A04FD:: @ 81A04FD -- cgit v1.2.3 From e696b89ff2902c283207e5f712ccc6c59f174555 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Fri, 22 Dec 2017 13:27:24 -0600 Subject: Name and use dynamic object gfx id vars --- data/event_scripts.s | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index b18e4eb1a..d66ec1eb3 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -1854,11 +1854,11 @@ RustboroCity_EventScript_1A014E:: @ 81A014E end RustboroCity_EventScript_1A0166:: @ 81A0166 - setvar 0x4010, 105 + setvar VAR_OBJ_GFX_ID_0, MAP_OBJ_GFX_RIVAL_MAY_NORMAL return RustboroCity_EventScript_1A016C:: @ 81A016C - setvar 0x4010, 100 + setvar VAR_OBJ_GFX_ID_0, MAP_OBJ_GFX_RIVAL_BRENDAN_NORMAL return LavaridgeTown_EventScript_1A0172:: @ 81A0172 @@ -1872,11 +1872,11 @@ Route119_EventScript_1A0172:: @ 81A0172 end LavaridgeTown_EventScript_1A018A:: @ 81A018A - setvar 0x4013, 106 + setvar VAR_OBJ_GFX_ID_3, MAP_OBJ_GFX_RIVAL_MAY_MACH_BIKE return LavaridgeTown_EventScript_1A0190:: @ 81A0190 - setvar 0x4013, 101 + setvar VAR_OBJ_GFX_ID_3, MAP_OBJ_GFX_RIVAL_BRENDAN_MACH_BIKE return AquaHideout_1F_EventScript_1A0196:: @ 81A0196 @@ -1903,30 +1903,30 @@ SeafloorCavern_Room4_EventScript_1A0196:: @ 81A0196 SeafloorCavern_Room9_EventScript_1A0196:: @ 81A0196 SlateportCity_OceanicMuseum_2F_EventScript_1A0196:: @ 81A0196 .ifdef SAPPHIRE - setvar 0x4011, 117 - setvar 0x4012, 118 - setvar 0x4014, 119 - setvar 0x4015, 120 - setvar 0x4016, 195 - setvar 0x4017, 196 + setvar VAR_OBJ_GFX_ID_1, MAP_OBJ_GFX_AQUA_MEMBER_M + setvar VAR_OBJ_GFX_ID_2, MAP_OBJ_GFX_AQUA_MEMBER_F + setvar VAR_OBJ_GFX_ID_4, MAP_OBJ_GFX_MAGMA_MEMBER_M + setvar VAR_OBJ_GFX_ID_5, MAP_OBJ_GFX_MAGMA_MEMBER_F + setvar VAR_OBJ_GFX_ID_6, MAP_OBJ_GFX_ARCHIE + setvar VAR_OBJ_GFX_ID_7, MAP_OBJ_GFX_MAXIE .else - setvar 0x4011, 119 - setvar 0x4012, 120 - setvar 0x4014, 117 - setvar 0x4015, 118 - setvar 0x4016, 196 - setvar 0x4017, 195 + setvar VAR_OBJ_GFX_ID_1, MAP_OBJ_GFX_MAGMA_MEMBER_M + setvar VAR_OBJ_GFX_ID_2, MAP_OBJ_GFX_MAGMA_MEMBER_F + setvar VAR_OBJ_GFX_ID_4, MAP_OBJ_GFX_AQUA_MEMBER_M + setvar VAR_OBJ_GFX_ID_5, MAP_OBJ_GFX_AQUA_MEMBER_F + setvar VAR_OBJ_GFX_ID_6, MAP_OBJ_GFX_MAXIE + setvar VAR_OBJ_GFX_ID_7, MAP_OBJ_GFX_ARCHIE .endif return CaveOfOrigin_B4F_EventScript_1A01B5:: @ 81A01B5 SeafloorCavern_Room9_EventScript_1A01B5:: @ 81A01B5 .ifdef SAPPHIRE - setvar 0x4018, 197 - setvar 0x4019, 205 + setvar VAR_OBJ_GFX_ID_8, MAP_OBJ_GFX_KYOGRE_1 + setvar VAR_OBJ_GFX_ID_9, MAP_OBJ_GFX_KYOGRE_2 .else - setvar 0x4018, 198 - setvar 0x4019, 206 + setvar VAR_OBJ_GFX_ID_8, MAP_OBJ_GFX_GROUDON_1 + setvar VAR_OBJ_GFX_ID_9, MAP_OBJ_GFX_GROUDON_2 .endif return -- cgit v1.2.3 From 51247c3eb9dc1f8ecf4298ada62ed7c2f768b50e Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Sat, 23 Dec 2017 10:41:27 -0600 Subject: Name and use general purpose vars --- data/event_scripts.s | 72 ++++++++++++++++++++++++++-------------------------- 1 file changed, 36 insertions(+), 36 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index d66ec1eb3..5677d2470 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -1297,7 +1297,7 @@ EverGrandeCity_HallOfFame_EventScript_19FC13:: @ 819FC13 setflag FLAG_HIDE_BRINEY_SLATEPORT_SHIPYARD clearflag FLAG_HIDE_BRINEY_AND_PEEKO_SS_TIDAL clearflag FLAG_HIDE_STEVENS_LETTER - setvar 0x40c6, 1 + setvar VAR_STEVENS_HOUSE_STATE, 1 clearflag FLAG_HIDE_WALLY_DEFEATED_VICTORY_ROAD clearflag FLAG_HIDE_SS_TIDAL_SLATEPORT_HARBOR clearflag FLAG_HIDE_SS_TIDAL_LILYCOVE_HARBOR @@ -1321,8 +1321,8 @@ EverGrandeCity_HallOfFame_EventScript_19FC5E:: @ 819FC5E return EverGrandeCity_HallOfFame_EventScript_19FC62:: @ 819FC62 - setvar 0x4082, 3 - setvar 0x408c, 3 + setvar VAR_LITTLEROOT_HOUSES_STATE, 3 + setvar VAR_LITTLEROOT_HOUSES_STATE_2, 3 clearflag FLAG_HIDE_NORMAN_LITTLEROOT return @@ -1342,15 +1342,15 @@ EventScript_19FC84: checkflag FLAG_DEFEATED_LAVARIDGE_GYM goto_if 0, Route101_EventScript_1A14DC clearflag FLAG_HIDE_RIVAL_LAVARIDGE_1 - setvar 0x4053, 2 + setvar VAR_LAVARIDGE_RIVAL_STATE, 2 return gUnknown_0819FC9F:: @ 819FC9F - compare 0x4096, 1 + compare VAR_BRINEY_LOCATION, 1 goto_if_eq EventScript_19FCC1 - compare 0x4096, 2 + compare VAR_BRINEY_LOCATION, 2 goto_if_eq EventScript_19FCD7 - compare 0x4096, 3 + compare VAR_BRINEY_LOCATION, 3 goto_if_eq EventScript_19FCF0 end @@ -1391,7 +1391,7 @@ EverGrandeCity_HallOfFame_EventScript_19FD09:: @ 819FD09 clearflag FLAG_DEFEATED_ELITE_4_PHOEBE clearflag FLAG_DEFEATED_ELITE_4_GLACIA clearflag FLAG_DEFEATED_ELITE_4_DRAKE - setvar 0x409c, 0 + setvar VAR_ELITE_4_STATE, 0 return DewfordTown_PokemonCenter_1F_EventScript_19FD1B:: @ 819FD1B @@ -1416,15 +1416,15 @@ VerdanturfTown_PokemonCenter_1F_EventScript_19FD1B:: @ 819FD1B return OldaleTown_PokemonCenter_1F_EventScript_19FD49:: @ 819FD49 - setvar 0x4096, 1 + setvar VAR_BRINEY_LOCATION, 1 return OldaleTown_PokemonCenter_1F_EventScript_19FD4F:: @ 819FD4F - setvar 0x4096, 2 + setvar VAR_BRINEY_LOCATION, 2 return OldaleTown_PokemonCenter_1F_EventScript_19FD55:: @ 819FD55 - setvar 0x4096, 3 + setvar VAR_BRINEY_LOCATION, 3 return DewfordTown_PokemonCenter_1F_EventScript_19FD5B:: @ 819FD5B @@ -1816,8 +1816,8 @@ DewfordTown_Hall_EventScript_1A0102:: @ 81A0102 DewfordTown_EventScript_1A010C:: @ 81A010C Route104_MrBrineysHouse_EventScript_1A010C:: @ 81A010C Route109_EventScript_1A010C:: @ 81A010C - copyvar 0x8008, 0x4096 - setvar 0x4096, 0 + copyvar 0x8008, VAR_BRINEY_LOCATION + setvar VAR_BRINEY_LOCATION, 0 return UseSurfScript:: @ 81A0117 @@ -2147,23 +2147,23 @@ Route109_EventScript_1A02EF:: @ 81A02EF LittlerootTown_ProfessorBirchsLab_EventScript_1A02F4:: @ 81A02F4 Route101_EventScript_1A02F4:: @ 81A02F4 Route103_EventScript_1A02F4:: @ 81A02F4 - compare 0x4085, 0 + compare VAR_PETALBURG_GYM_STATE, 0 goto_if_eq Route101_EventScript_1A14DC - compare 0x4049, 0 + compare VAR_BIRCH_STATE, 0 call_if 1, Route101_EventScript_1A0358 - compare 0x4049, 1 + compare VAR_BIRCH_STATE, 1 call_if 1, Route101_EventScript_1A0358 - compare 0x4049, 2 + compare VAR_BIRCH_STATE, 2 call_if 1, Route101_EventScript_1A0365 - compare 0x4049, 3 + compare VAR_BIRCH_STATE, 3 call_if 1, Route101_EventScript_1A0365 - compare 0x4049, 4 + compare VAR_BIRCH_STATE, 4 call_if 1, Route101_EventScript_1A0372 - compare 0x4049, 5 + compare VAR_BIRCH_STATE, 5 call_if 1, Route101_EventScript_1A0372 - compare 0x4049, 6 + compare VAR_BIRCH_STATE, 6 call_if 1, Route101_EventScript_1A0358 - compare 0x4049, 7 + compare VAR_BIRCH_STATE, 7 call_if 1, Route101_EventScript_1A0358 return @@ -2261,7 +2261,7 @@ PetalburgCity_Gym_EventScript_1A0424:: @ 81A0424 setflag FLAG_HIDE_MR_BRINEY_BOAT_ROUTE104 setflag FLAG_HIDE_MR_BRINEY_ROUTE104_HOUSE setflag FLAG_HIDE_PEEKO_BRINEY_HOUSE - setvar 0x4096, 0 + setvar VAR_BRINEY_LOCATION, 0 return RusturfTunnel_EventScript_1A0442:: @ 81A0442 @@ -2269,7 +2269,7 @@ RusturfTunnel_EventScript_1A0442:: @ 81A0442 removeobject 10 clearflag FLAG_HIDE_BOYFRIEND_WANDAS_HOUSE clearflag FLAG_HIDE_GIRLFRIEND_WANDAS_HOUSE - setvar 0x409a, 6 + setvar VAR_RUSTURF_TUNNEL_STATE, 6 setflag FLAG_RUSTURF_TUNNEL_OPENED return @@ -3723,21 +3723,21 @@ EventScript_1A2DAA: EventScript_1A2DB8: closemessage playse 9 - setvar 0x4097, 0 + setvar VAR_0x4097, 0 setflag FLAG_DECORATION_1 special sub_80BB8CC special sub_80BBAF0 setvar 0x8004, 0 setvar 0x8005, 0 special sub_80BBDD0 - setvar 0x4089, 1 + setvar VAR_0x4089, 1 waitstate end SecretBase_RedCave1_EventScript_1A2DDE:: @ 81A2DDE applymovement 255, SecretBase_RedCave1_Movement_1A2E11 waitmovement 0 - setvar 0x4097, 1 + setvar VAR_0x4097, 1 msgbox SecretBase_RedCave1_Text_198F89, 5 compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A2E08 @@ -3760,21 +3760,21 @@ SecretBase_RedCave1_Movement_1A2E11:: @ 81A2E11 gUnknown_081A2E14:: @ 81A2E14 lockall - setvar 0x4097, 1 + setvar VAR_0x4097, 1 playse 9 special sub_80BC114 compare RESULT, 0 goto_if_eq EventScript_1A2E38 clearflag FLAG_DECORATION_1 special sub_80BBAF0 - setvar 0x4089, 0 + setvar VAR_0x4089, 0 waitstate end EventScript_1A2E38: setflag FLAG_DECORATION_1 special sub_80BBAF0 - setvar 0x4089, 0 + setvar VAR_0x4089, 0 waitstate end @@ -3864,7 +3864,7 @@ SecretBase_RedCave1_EventScript_1A2F68:: @ 81A2F68 setvar 0x8004, 0 setvar 0x8005, 0 special sub_80BBDD0 - setvar 0x4089, 1 + setvar VAR_0x4089, 1 end gUnknown_081A2F7B:: @ 81A2F7B @@ -4629,13 +4629,13 @@ FallarborTown_ContestLobby_EventScript_1AE188:: @ 81AE188 LilycoveCity_ContestLobby_EventScript_1AE188:: @ 81AE188 SlateportCity_ContestLobby_EventScript_1AE188:: @ 81AE188 VerdanturfTown_ContestLobby_EventScript_1AE188:: @ 81AE188 - compare 0x4086, 2 + compare VAR_LINK_CONTEST_ROOM_STATE, 2 goto_if 5, FallarborTown_ContestLobby_EventScript_1AE1FE setvar 0x8005, 6 special sub_80BF2C4 compare RESULT, 1 goto_if_eq FallarborTown_ContestLobby_EventScript_1AE1FE - switch 0x4088 + switch VAR_CONTEST_LOCATION case 0, FallarborTown_ContestLobby_EventScript_1AE1FE case 2, FallarborTown_ContestLobby_EventScript_1AE1EE case 1, FallarborTown_ContestLobby_EventScript_1AE1F2 @@ -4735,7 +4735,7 @@ BattleTower_Lobby_EventScript_1AE2E3:: @ 81AE2E3 end BattleTower_Lobby_EventScript_1AE2ED:: @ 81AE2ED - compare 0x40bc, 0 + compare VAR_BRAVO_TRAINER_BATTLE_TOWER_ON, 0 goto_if_eq BattleTower_Lobby_EventScript_1AE30F setvar 0x8005, 7 special sub_80BF2C4 @@ -4869,14 +4869,14 @@ GraniteCave_B1F_MapScript2_1C6BB5:: @ 81C6BB5 MtPyre_2F_MapScript2_1C6BB5:: @ 81C6BB5 SkyPillar_2F_MapScript2_1C6BB5:: @ 81C6BB5 SkyPillar_4F_MapScript2_1C6BB5:: @ 81C6BB5 - map_script_2 0x4022, 0, S_FallDownHole + map_script_2 VAR_ICE_STEP_COUNT, 0, S_FallDownHole .2byte 0 GraniteCave_B1F_MapScript1_1C6BBF:: @ 81C6BBF MtPyre_2F_MapScript1_1C6BBF:: @ 81C6BBF SkyPillar_2F_MapScript1_1C6BBF:: @ 81C6BBF SkyPillar_4F_MapScript1_1C6BBF:: @ 81C6BBF - copyvar 0x4022, 0x1 + copyvar VAR_ICE_STEP_COUNT, 0x1 end S_FallDownHole:: @ 81C6BC5 -- cgit v1.2.3 From 1c8b05e7b059a98d4259f4129896d0cc1eaa3847 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Sun, 24 Dec 2017 10:11:43 -0600 Subject: Name and use constants for special vars --- data/event_scripts.s | 309 +++++++++++++++++++++++++-------------------------- 1 file changed, 154 insertions(+), 155 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 5677d2470..5170a0707 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -12,7 +12,6 @@ .include "asm/macros.inc" .include "asm/macros/event.inc" .include "constants/constants.inc" - .include "constants/variables.inc" .section script_data, "aw", %progbits @@ -1454,11 +1453,11 @@ do_heal_party:: @ 819FD7C incrementgamestat GAME_STAT_USED_POKECENTER message gText_NurseJoy_OkayIllTakeYourPokemon waitmessage - applymovement 0x800b, OldaleTown_PokemonCenter_1F_Movement_1A083F + applymovement SPECIALVAR_B, OldaleTown_PokemonCenter_1F_Movement_1A083F waitmovement 0 dofieldeffect 25 waitfieldeffect 25 - applymovement 0x800b, OldaleTown_PokemonCenter_1F_Movement_1A0845 + applymovement SPECIALVAR_B, OldaleTown_PokemonCenter_1F_Movement_1A0845 waitmovement 0 special ScrSpecial_HealPlayerParty checkflag FLAG_POKERUS_EXPLAINED @@ -1469,7 +1468,7 @@ do_heal_party:: @ 819FD7C OldaleTown_PokemonCenter_1F_EventScript_19FDB0:: @ 819FDB0 message gText_NurseJoy_ThankYouForWaiting waitmessage - applymovement 0x800b, OldaleTown_PokemonCenter_1F_Movement_19FDF4 + applymovement SPECIALVAR_B, OldaleTown_PokemonCenter_1F_Movement_19FDF4 waitmovement 0 message gText_NurseJoy_WeHopeToSeeYouAgain waitmessage @@ -1500,18 +1499,18 @@ OldaleTown_PokemonCenter_1F_Movement_19FDF4:: @ 819FDF4 step_end Std_ObtainItem: @ 819FDF7 - giveitem 0x8000, 0x8001 - copyvar 0x8007, RESULT + giveitem SPECIALVAR_0, SPECIALVAR_1 + copyvar SPECIALVAR_7, RESULT call Std_ObtainItem_ return Std_ObtainItem_: @ 819FE07 - bufferitemname 1, 0x8000 - checkitemtype 0x8000 + bufferitemname 1, SPECIALVAR_0 + checkitemtype SPECIALVAR_0 call GetItem_HandlePocket - compare 0x8007, 0x1 + compare SPECIALVAR_7, 0x1 call_if 1, Std_ObtainItem_Success - compare 0x8007, 0x0 + compare SPECIALVAR_7, 0x0 call_if 1, Std_ObtainItem_Fail return @@ -1526,31 +1525,31 @@ GetItem_HandlePocket: GetItem_HandlePocket_Items: bufferstdstring 2, 0xE - compare 0x8007, 1 + compare SPECIALVAR_7, 1 call_if 1, PlayGetItemFanfare return GetItem_HandlePocket_KeyItems: bufferstdstring 2, 0xF - compare 0x8007, 1 + compare SPECIALVAR_7, 1 call_if 1, PlayGetItemFanfare return GetItem_HandlePocket_PokeBalls: bufferstdstring 2, 0x10 - compare 0x8007, 1 + compare SPECIALVAR_7, 1 call_if 1, PlayGetItemFanfare return GetItem_HandlePocket_TMsHMs: bufferstdstring 2, 0x11 - compare 0x8007, 1 + compare SPECIALVAR_7, 1 call_if 1, PlayGetTMHMFanfare return GetItem_HandlePocket_Berries: bufferstdstring 2, 0x12 - compare 0x8007, 1 + compare SPECIALVAR_7, 1 call_if 1, PlayGetItemFanfare return @@ -1575,16 +1574,16 @@ PlayGetTMHMFanfare: return Std_ObtainDecoration: @ 819FEDA - givedecoration 0x8000 - copyvar 0x8007, RESULT + givedecoration SPECIALVAR_0 + copyvar SPECIALVAR_7, RESULT call Std_ObtainDecoration_ return Std_ObtainDecoration_: @ 819FEE8 - bufferdecorationname 1, 0x8000 - compare 0x8007, 1 + bufferdecorationname 1, SPECIALVAR_0 + compare SPECIALVAR_7, 1 call_if 1, Std_ObtainDecoration_Success - compare 0x8007, 0 + compare SPECIALVAR_7, 0 call_if 1, Std_ObtainDecoration_Fail return @@ -1605,14 +1604,14 @@ Std_FindItem: @ 819FF21 lock faceplayer waitse - giveitem 0x8000, 0x8001 - copyvar 0x8007, RESULT - bufferitemname 1, 0x8000 - checkitemtype 0x8000 + giveitem SPECIALVAR_0, SPECIALVAR_1 + copyvar SPECIALVAR_7, RESULT + bufferitemname 1, SPECIALVAR_0 + checkitemtype SPECIALVAR_0 call GetItem_HandlePocket - compare 0x8007, 1 + compare SPECIALVAR_7, 1 call_if 1, Std_FindItem_Success - compare 0x8007, 0 + compare SPECIALVAR_7, 0 call_if 1, Std_FindItem_Fail release return @@ -1634,14 +1633,14 @@ Std_FindItem_Fail: @ 819FF65 HiddenItemScript:: @ 819FF7B lockall waitse - giveitem 0x8005, 1 - copyvar 0x8007, RESULT - bufferitemname 0x1, 0x8005 - checkitemtype 0x8005 + giveitem SPECIALVAR_5, 1 + copyvar SPECIALVAR_7, RESULT + bufferitemname 0x1, SPECIALVAR_5 + checkitemtype SPECIALVAR_5 call GetItem_HandlePocket - compare 0x8007, 1 + compare SPECIALVAR_7, 1 goto_if_eq HiddenItemScript_Success - compare 0x8007, 0 + compare SPECIALVAR_7, 0 goto_if_eq HiddenItemScript_Fail end @@ -1684,7 +1683,7 @@ UnusedMixRecordsScript_Done: @ 81A0000 gUnknown_081A0009:: @ 81A0009 lockall - setvar 0x8004, 0 + setvar SPECIALVAR_4, 0 special DoPCTurnOnEffect playse 4 msgbox UnknownString_81A09EC, 4 @@ -1737,7 +1736,7 @@ EventScript_1A00B5: return EventScript_1A00BE: - setvar 0x8004, 0 + setvar SPECIALVAR_4, 0 playse 3 special DoPCTurnOffEffect releaseall @@ -1809,14 +1808,14 @@ RustboroCity_Gym_EventScript_1A00FB:: @ 81A00FB DewfordTown_EventScript_1A0102:: @ 81A0102 DewfordTown_Hall_EventScript_1A0102:: @ 81A0102 dodailyevents - setvar 0x8004, 0 + setvar SPECIALVAR_4, 0 special sub_80FA5BC return DewfordTown_EventScript_1A010C:: @ 81A010C Route104_MrBrineysHouse_EventScript_1A010C:: @ 81A010C Route109_EventScript_1A010C:: @ 81A010C - copyvar 0x8008, VAR_BRINEY_LOCATION + copyvar SPECIALVAR_8, VAR_BRINEY_LOCATION setvar VAR_BRINEY_LOCATION, 0 return @@ -1938,7 +1937,7 @@ MossdeepCity_Gym_EventScript_1A01C0:: @ 81A01C0 PetalburgCity_Gym_EventScript_1A01C0:: @ 81A01C0 RustboroCity_Gym_EventScript_1A01C0:: @ 81A01C0 SootopolisCity_Gym_1F_EventScript_1A01C0:: @ 81A01C0 - switch 0x8008 + switch SPECIALVAR_8 case 1, DewfordTown_Gym_EventScript_1A021E case 2, DewfordTown_Gym_EventScript_1A0225 case 3, DewfordTown_Gym_EventScript_1A022F @@ -2206,7 +2205,7 @@ Route101_EventScript_1A039B:: @ 81A039B end Route101_EventScript_1A03A5:: @ 81A03A5 - copyvar 0x8004, 0x8009 + copyvar SPECIALVAR_4, SPECIALVAR_9 special ShowPokedexRatingMessage waitmessage waitbuttonpress @@ -2214,23 +2213,23 @@ Route101_EventScript_1A03A5:: @ 81A03A5 EverGrandeCity_ChampionsRoom_EventScript_1A03B0:: @ 81A03B0 Route101_EventScript_1A03B0:: @ 81A03B0 - setvar 0x8004, 0 + setvar SPECIALVAR_4, 0 specialvar RESULT, ScriptGetPokedexInfo - copyvar 0x8008, 0x8005 - copyvar 0x8009, 0x8006 - copyvar 0x800a, RESULT - buffernumberstring 0, 0x8008 - buffernumberstring 1, 0x8009 + copyvar SPECIALVAR_8, SPECIALVAR_5 + copyvar SPECIALVAR_9, SPECIALVAR_6 + copyvar SPECIALVAR_A, RESULT + buffernumberstring 0, SPECIALVAR_8 + buffernumberstring 1, SPECIALVAR_9 msgbox Route101_Text_1C44DC, 4 call Route101_EventScript_1A03A5 - compare 0x800a, 0 + compare SPECIALVAR_A, 0 goto_if_eq Route101_EventScript_1A14DC - setvar 0x8004, 1 + setvar SPECIALVAR_4, 1 specialvar RESULT, ScriptGetPokedexInfo - copyvar 0x8008, 0x8005 - copyvar 0x8009, 0x8006 - buffernumberstring 0, 0x8008 - buffernumberstring 1, 0x8009 + copyvar SPECIALVAR_8, SPECIALVAR_5 + copyvar SPECIALVAR_9, SPECIALVAR_6 + buffernumberstring 0, SPECIALVAR_8 + buffernumberstring 1, SPECIALVAR_9 msgbox Route101_Text_1C4B05, 4 return @@ -2238,7 +2237,7 @@ BattleTower_Outside_EventScript_1A040E:: @ 81A040E LilycoveCity_Harbor_EventScript_1A040E:: @ 81A040E SlateportCity_Harbor_EventScript_1A040E:: @ 81A040E delay 60 - applymovement 0x8004, SlateportCity_Harbor_Movement_1A041C + applymovement SPECIALVAR_4, SlateportCity_Harbor_Movement_1A041C waitmovement 0 return @@ -2332,8 +2331,8 @@ CaveOfOrigin_B3F_EventScript_1A04BB:: @ 81A04BB CaveOfOrigin_1F_EventScript_1A04D3:: @ 81A04D3 CaveOfOrigin_B2F_EventScript_1A04D3:: @ 81A04D3 - setvar 0x8004, 1 - setvar 0x8005, 1 + setvar SPECIALVAR_4, 1 + setvar SPECIALVAR_5, 1 special sub_810F758 waitstate releaseall @@ -2386,49 +2385,49 @@ MagmaHideout_B1F_EventScript_1A051B:: @ 81A051B Route120_EventScript_1A0539:: @ 81A0539 lock faceplayer - setvar 0x8004, 1 + setvar SPECIALVAR_4, 1 goto Route120_EventScript_1A0594 end Route120_EventScript_1A0546:: @ 81A0546 lock faceplayer - setvar 0x8004, 2 + setvar SPECIALVAR_4, 2 goto Route120_EventScript_1A0594 end Route120_EventScript_1A0553:: @ 81A0553 lock faceplayer - setvar 0x8004, 3 + setvar SPECIALVAR_4, 3 goto Route120_EventScript_1A0594 end Route120_EventScript_1A0560:: @ 81A0560 lock faceplayer - setvar 0x8004, 4 + setvar SPECIALVAR_4, 4 goto Route120_EventScript_1A0594 end Route120_EventScript_1A056D:: @ 81A056D lock faceplayer - setvar 0x8004, 5 + setvar SPECIALVAR_4, 5 goto Route120_EventScript_1A0594 end Route119_EventScript_1A057A:: @ 81A057A lock faceplayer - setvar 0x8004, 6 + setvar SPECIALVAR_4, 6 goto Route119_EventScript_1A0594 end Route119_EventScript_1A0587:: @ 81A0587 lock faceplayer - setvar 0x8004, 7 + setvar SPECIALVAR_4, 7 goto Route119_EventScript_1A0594 end @@ -2460,19 +2459,19 @@ Route119_EventScript_1A05C3:: @ 81A05C3 delay 40 waitmoncry setwildbattle SPECIES_KECLEON, 30, ITEM_NONE - compare 0x8004, 1 + compare SPECIALVAR_4, 1 call_if 1, Route119_EventScript_1A0646 - compare 0x8004, 2 + compare SPECIALVAR_4, 2 call_if 1, Route119_EventScript_1A064A - compare 0x8004, 3 + compare SPECIALVAR_4, 3 call_if 1, Route119_EventScript_1A064E - compare 0x8004, 4 + compare SPECIALVAR_4, 4 call_if 1, Route119_EventScript_1A0652 - compare 0x8004, 5 + compare SPECIALVAR_4, 5 call_if 1, Route119_EventScript_1A0656 - compare 0x8004, 6 + compare SPECIALVAR_4, 6 call_if 1, Route119_EventScript_1A065A - compare 0x8004, 7 + compare SPECIALVAR_4, 7 call_if 1, Route119_EventScript_1A065E setflag FLAG_SYS_CTRL_OBJ_DELETE dowildbattle @@ -2547,12 +2546,12 @@ FallarborTown_House1_EventScript_1A067F:: @ 81A067F GraniteCave_StevensRoom_EventScript_1A067F:: @ 81A067F MtPyre_Summit_EventScript_1A067F:: @ 81A067F SlateportCity_OceanicMuseum_2F_EventScript_1A067F:: @ 81A067F - bufferitemname 0, 0x8004 + bufferitemname 0, SPECIALVAR_4 playfanfare 372 message FallarborTown_House1_Text_1A1498 waitmessage waitfanfare - takeitem 0x8004, 1 + takeitem SPECIALVAR_4, 1 return EverGrandeCity_DrakesRoom_EventScript_1A0693:: @ 81A0693 @@ -3613,17 +3612,17 @@ gUnknown_081A2C51:: @ 81A2C51 checkpartymove MOVE_SECRET_POWER setfieldeffectargument 0, RESULT buffermovename 1, MOVE_SECRET_POWER - compare 0x8007, 1 + compare SPECIALVAR_7, 1 goto_if_eq EventScript_1A2CB0 - compare 0x8007, 2 + compare SPECIALVAR_7, 2 goto_if_eq EventScript_1A2CB0 - compare 0x8007, 3 + compare SPECIALVAR_7, 3 goto_if_eq EventScript_1A2CB0 - compare 0x8007, 4 + compare SPECIALVAR_7, 4 goto_if_eq EventScript_1A2CB0 - compare 0x8007, 5 + compare SPECIALVAR_7, 5 goto_if_eq EventScript_1A2D08 - compare 0x8007, 6 + compare SPECIALVAR_7, 6 goto_if_eq EventScript_1A2D60 end @@ -3727,8 +3726,8 @@ EventScript_1A2DB8: setflag FLAG_DECORATION_1 special sub_80BB8CC special sub_80BBAF0 - setvar 0x8004, 0 - setvar 0x8005, 0 + setvar SPECIALVAR_4, 0 + setvar SPECIALVAR_5, 0 special sub_80BBDD0 setvar VAR_0x4089, 1 waitstate @@ -3783,7 +3782,7 @@ EventScript_1A2E45: compare RESULT, 6 goto_if_eq EventScript_1A2EF7 setfieldeffectargument 0, RESULT - setorcopyvar 0x8004, RESULT + setorcopyvar SPECIALVAR_4, RESULT lockall special GetSecretBaseNearbyMapName msgbox UnknownString_81A3C71, 5 @@ -3799,38 +3798,38 @@ EventScript_1A2E45: msgbox UnknownString_81A3CC9, 5 compare RESULT, 0 goto_if_eq EventScript_1A2F3A - bufferpartymonnick 0, 0x8004 + bufferpartymonnick 0, SPECIALVAR_4 buffermovename 1, MOVE_SECRET_POWER msgbox UsedCutRockSmashText, 4 closemessage closemessage - compare 0x8007, 1 + compare SPECIALVAR_7, 1 goto_if_eq gUnknown_081A2CE6 - compare 0x8007, 2 + compare SPECIALVAR_7, 2 goto_if_eq gUnknown_081A2CE6 - compare 0x8007, 3 + compare SPECIALVAR_7, 3 goto_if_eq gUnknown_081A2CE6 - compare 0x8007, 4 + compare SPECIALVAR_7, 4 goto_if_eq gUnknown_081A2CE6 - compare 0x8007, 5 + compare SPECIALVAR_7, 5 goto_if_eq gUnknown_081A2D3E - compare 0x8007, 6 + compare SPECIALVAR_7, 6 goto_if_eq gUnknown_081A2D96 releaseall end EventScript_1A2EF7:: - compare 0x8007, 1 + compare SPECIALVAR_7, 1 goto_if_eq EventScript_1A2CF1 - compare 0x8007, 2 + compare SPECIALVAR_7, 2 goto_if_eq EventScript_1A2CF1 - compare 0x8007, 3 + compare SPECIALVAR_7, 3 goto_if_eq EventScript_1A2CF1 - compare 0x8007, 4 + compare SPECIALVAR_7, 4 goto_if_eq EventScript_1A2CF1 - compare 0x8007, 5 + compare SPECIALVAR_7, 5 goto_if_eq EventScript_1A2D49 - compare 0x8007, 6 + compare SPECIALVAR_7, 6 goto_if_eq EventScript_1A2DA1 end @@ -3861,14 +3860,14 @@ SecretBase_RedCave1_EventScript_1A2F3D:: @ 81A2F3D LittlerootTown_BrendansHouse_2F_EventScript_1A2F68:: @ 81A2F68 LittlerootTown_MaysHouse_2F_EventScript_1A2F68:: @ 81A2F68 SecretBase_RedCave1_EventScript_1A2F68:: @ 81A2F68 - setvar 0x8004, 0 - setvar 0x8005, 0 + setvar SPECIALVAR_4, 0 + setvar SPECIALVAR_5, 0 special sub_80BBDD0 setvar VAR_0x4089, 1 end gUnknown_081A2F7B:: @ 81A2F7B - setvar 0x8005, 0 + setvar SPECIALVAR_5, 0 goto EventScript_1A2F86 end @@ -3877,7 +3876,7 @@ EventScript_1A2F86: end gUnknown_081A2F8A:: @ 81A2F8A - setvar 0x8004, 0 + setvar SPECIALVAR_4, 0 goto EventScript_1A2F95 end @@ -3885,11 +3884,11 @@ EventScript_1A2F95: special sub_8100A7C compare RESULT, 1 goto_if_eq EventScript_1A2FBF - addvar 0x8004, 1 - compare 0x8005, 0 + addvar SPECIALVAR_4, 1 + compare SPECIALVAR_5, 0 goto_if_eq EventScript_1A2F95 - removeobject 0x8006 - setflag 0x8005 + removeobject SPECIALVAR_6 + setflag SPECIALVAR_5 goto EventScript_1A2F95 end @@ -3921,25 +3920,25 @@ SecretBase_YellowCave2_EventScript_1A2FC0:: @ 81A2FC0 SecretBase_YellowCave3_EventScript_1A2FC0:: @ 81A2FC0 SecretBase_YellowCave4_EventScript_1A2FC0:: @ 81A2FC0 special sub_80BCE90 - compare 0x8004, 0 + compare SPECIALVAR_4, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A3032 - compare 0x8004, 1 + compare SPECIALVAR_4, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A30AE - compare 0x8004, 2 + compare SPECIALVAR_4, 2 goto_if_eq SecretBase_RedCave1_EventScript_1A312A - compare 0x8004, 3 + compare SPECIALVAR_4, 3 goto_if_eq SecretBase_RedCave1_EventScript_1A31A6 - compare 0x8004, 4 + compare SPECIALVAR_4, 4 goto_if_eq SecretBase_RedCave1_EventScript_1A3222 - compare 0x8004, 5 + compare SPECIALVAR_4, 5 goto_if_eq SecretBase_RedCave1_EventScript_1A329E - compare 0x8004, 6 + compare SPECIALVAR_4, 6 goto_if_eq SecretBase_RedCave1_EventScript_1A331A - compare 0x8004, 7 + compare SPECIALVAR_4, 7 goto_if_eq SecretBase_RedCave1_EventScript_1A3396 - compare 0x8004, 8 + compare SPECIALVAR_4, 8 goto_if_eq SecretBase_RedCave1_EventScript_1A3412 - compare 0x8004, 9 + compare SPECIALVAR_4, 9 goto_if_eq SecretBase_RedCave1_EventScript_1A348E end @@ -4295,8 +4294,8 @@ SecretBase_RedCave1_EventScript_1A3501:: @ 81A3501 SecretBase_RedCave1_EventScript_1A350A:: @ 81A350A special sub_80BCE1C - setvar 0x8004, 1 - setvar 0x8005, 0 + setvar SPECIALVAR_4, 1 + setvar SPECIALVAR_5, 0 special sub_813556C waitstate special ScrSpecial_HealPlayerParty @@ -4390,11 +4389,11 @@ SlateportCity_PokemonFanClub_EventScript_1ADE46:: @ 81ADE46 end SlateportCity_PokemonFanClub_EventScript_1ADE4D:: @ 81ADE4D - setvar 0x8005, 1 + setvar SPECIALVAR_5, 1 special sub_80BF2C4 compare RESULT, 1 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADED6 - copyvar 0x8009, 0x8006 + copyvar SPECIALVAR_9, SPECIALVAR_6 msgbox SlateportCity_PokemonFanClub_Text_1A8704, 5 compare RESULT, 1 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADE84 @@ -4404,9 +4403,9 @@ SlateportCity_PokemonFanClub_EventScript_1ADE4D:: @ 81ADE4D SlateportCity_PokemonFanClub_EventScript_1ADE84:: @ 81ADE84 msgbox SlateportCity_PokemonFanClub_Text_1A87CA, 4 - setvar 0x8004, 5 - copyvar 0x8005, 0x8009 - setvar 0x8006, 1 + setvar SPECIALVAR_4, 5 + copyvar SPECIALVAR_5, SPECIALVAR_9 + setvar SPECIALVAR_6, 1 call SlateportCity_PokemonFanClub_EventScript_1A00F3 lock faceplayer @@ -4423,7 +4422,7 @@ SlateportCity_PokemonFanClub_EventScript_1ADEB9:: @ 81ADEB9 SlateportCity_PokemonFanClub_EventScript_1ADEC3:: @ 81ADEC3 msgbox SlateportCity_PokemonFanClub_Text_1A8818, 4 - setvar 0x8005, 1 + setvar SPECIALVAR_5, 1 goto SlateportCity_PokemonFanClub_EventScript_1ADE46 end @@ -4435,11 +4434,11 @@ SlateportCity_PokemonFanClub_EventScript_1ADED6:: @ 81ADED6 SlateportCity_OceanicMuseum_1F_EventScript_1ADEE0:: @ 81ADEE0 lock faceplayer - setvar 0x8005, 2 + setvar SPECIALVAR_5, 2 special sub_80BF2C4 compare RESULT, 1 goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF96 - copyvar 0x8009, 0x8006 + copyvar SPECIALVAR_9, SPECIALVAR_6 checkflag FLAG_OCEANIC_MUSEUM_MET_REPORTER goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF25 setflag FLAG_OCEANIC_MUSEUM_MET_REPORTER @@ -4460,9 +4459,9 @@ SlateportCity_OceanicMuseum_1F_EventScript_1ADF25:: @ 81ADF25 SlateportCity_OceanicMuseum_1F_EventScript_1ADF44:: @ 81ADF44 msgbox SlateportCity_OceanicMuseum_1F_Text_1A93D1, 4 - setvar 0x8004, 5 - copyvar 0x8005, 0x8009 - setvar 0x8006, 0 + setvar SPECIALVAR_4, 5 + copyvar SPECIALVAR_5, SPECIALVAR_9 + setvar SPECIALVAR_6, 0 call SlateportCity_OceanicMuseum_1F_EventScript_1A00F3 lock faceplayer @@ -4479,7 +4478,7 @@ SlateportCity_OceanicMuseum_1F_EventScript_1ADF79:: @ 81ADF79 SlateportCity_OceanicMuseum_1F_EventScript_1ADF83:: @ 81ADF83 msgbox SlateportCity_OceanicMuseum_1F_Text_1A949A, 4 - setvar 0x8005, 2 + setvar SPECIALVAR_5, 2 goto SlateportCity_OceanicMuseum_1F_EventScript_1ADE46 end @@ -4494,11 +4493,11 @@ SlateportCity_PokemonFanClub_EventScript_1ADFA0:: @ 81ADFA0 specialvar RESULT, sub_80BF544 compare RESULT, 0 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADE4D - setvar 0x8005, 3 + setvar SPECIALVAR_5, 3 special sub_80BF2C4 compare RESULT, 1 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1AE0AC - copyvar 0x8009, 0x8006 + copyvar SPECIALVAR_9, SPECIALVAR_6 msgbox SlateportCity_PokemonFanClub_Text_1A82F1, 5 compare RESULT, 1 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADFE9 @@ -4509,7 +4508,7 @@ SlateportCity_PokemonFanClub_EventScript_1ADFA0:: @ 81ADFA0 SlateportCity_PokemonFanClub_EventScript_1ADFE9:: @ 81ADFE9 msgbox SlateportCity_PokemonFanClub_Text_1A83D0, 4 random 3 - copyvar 0x800a, RESULT + copyvar SPECIALVAR_A, RESULT switch RESULT case 0, SlateportCity_PokemonFanClub_EventScript_1AE020 case 1, SlateportCity_PokemonFanClub_EventScript_1AE02E @@ -4532,24 +4531,24 @@ SlateportCity_PokemonFanClub_EventScript_1AE03C:: @ 81AE03C end SlateportCity_PokemonFanClub_EventScript_1AE04A:: @ 81AE04A - setvar 0x8004, 7 - copyvar 0x8005, 0x8009 - setvar 0x8006, 0 + setvar SPECIALVAR_4, 7 + copyvar SPECIALVAR_5, SPECIALVAR_9 + setvar SPECIALVAR_6, 0 call SlateportCity_PokemonFanClub_EventScript_1A00F3 lock faceplayer compare RESULT, 0 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1AE0A2 msgbox SlateportCity_PokemonFanClub_Text_1A852D, 4 - setvar 0x8006, 1 + setvar SPECIALVAR_6, 1 call SlateportCity_PokemonFanClub_EventScript_1A00F3 lock faceplayer compare RESULT, 0 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1AE0A2 msgbox SlateportCity_PokemonFanClub_Text_1A85A6, 4 - copyvar 0x8007, 0x800a - setvar 0x8005, 3 + copyvar SPECIALVAR_7, SPECIALVAR_A + setvar SPECIALVAR_5, 3 goto SlateportCity_PokemonFanClub_EventScript_1ADE46 end @@ -4571,11 +4570,11 @@ VerdanturfTown_ContestLobby_EventScript_1AE0B6:: @ 81AE0B6 faceplayer checkflag FLAG_TEMP_2 goto_if_eq FallarborTown_ContestLobby_EventScript_1AE17E - setvar 0x8005, 6 + setvar SPECIALVAR_5, 6 special sub_80BF2C4 compare RESULT, 1 goto_if_eq FallarborTown_ContestLobby_EventScript_1AE17E - copyvar 0x8009, 0x8006 + copyvar SPECIALVAR_9, SPECIALVAR_6 msgbox FallarborTown_ContestLobby_Text_1A6F7C, 5 compare RESULT, 1 goto_if_eq FallarborTown_ContestLobby_EventScript_1AE0F8 @@ -4585,9 +4584,9 @@ VerdanturfTown_ContestLobby_EventScript_1AE0B6:: @ 81AE0B6 FallarborTown_ContestLobby_EventScript_1AE0F8:: @ 81AE0F8 msgbox FallarborTown_ContestLobby_Text_1A704E, 4 - setvar 0x8004, 11 - copyvar 0x8005, 0x8009 - setvar 0x8006, 0 + setvar SPECIALVAR_4, 11 + copyvar SPECIALVAR_5, SPECIALVAR_9 + setvar SPECIALVAR_6, 0 call FallarborTown_ContestLobby_EventScript_1A00F3 lock faceplayer @@ -4603,12 +4602,12 @@ FallarborTown_ContestLobby_EventScript_1AE12D:: @ 81AE12D end FallarborTown_ContestLobby_EventScript_1AE137:: @ 81AE137 - setvar 0x8004, 24 + setvar SPECIALVAR_4, 24 special SetContestCategoryStringVarForInterview msgbox FallarborTown_ContestLobby_Text_1A70A5, 4 - setvar 0x8004, 11 - copyvar 0x8005, 0x8009 - setvar 0x8006, 1 + setvar SPECIALVAR_4, 11 + copyvar SPECIALVAR_5, SPECIALVAR_9 + setvar SPECIALVAR_6, 1 call FallarborTown_ContestLobby_EventScript_1A00F3 lock faceplayer @@ -4616,7 +4615,7 @@ FallarborTown_ContestLobby_EventScript_1AE137:: @ 81AE137 goto_if_eq FallarborTown_ContestLobby_EventScript_1AE12D msgbox FallarborTown_ContestLobby_Text_1A7153, 4 setflag FLAG_TEMP_2 - setvar 0x8005, 6 + setvar SPECIALVAR_5, 6 goto FallarborTown_ContestLobby_EventScript_1ADE46 end @@ -4631,7 +4630,7 @@ SlateportCity_ContestLobby_EventScript_1AE188:: @ 81AE188 VerdanturfTown_ContestLobby_EventScript_1AE188:: @ 81AE188 compare VAR_LINK_CONTEST_ROOM_STATE, 2 goto_if 5, FallarborTown_ContestLobby_EventScript_1AE1FE - setvar 0x8005, 6 + setvar SPECIALVAR_5, 6 special sub_80BF2C4 compare RESULT, 1 goto_if_eq FallarborTown_ContestLobby_EventScript_1AE1FE @@ -4668,11 +4667,11 @@ BattleTower_Lobby_EventScript_1AE1FF:: @ 81AE1FF faceplayer checkflag FLAG_TEMP_2 goto_if_eq BattleTower_Lobby_EventScript_1AE2E3 - setvar 0x8005, 7 + setvar SPECIALVAR_5, 7 special sub_80BF2C4 compare RESULT, 1 goto_if_eq BattleTower_Lobby_EventScript_1AE2E3 - copyvar 0x8009, 0x8006 + copyvar SPECIALVAR_9, SPECIALVAR_6 msgbox BattleTower_Lobby_Text_1A776D, 5 compare RESULT, 1 goto_if_eq BattleTower_Lobby_EventScript_1AE241 @@ -4684,14 +4683,14 @@ BattleTower_Lobby_EventScript_1AE241:: @ 81AE241 message BattleTower_Lobby_Text_1A7823 waitmessage multichoice 19, 8, 45, 1 - copyvar 0x8008, RESULT + copyvar SPECIALVAR_8, RESULT compare RESULT, 0 call_if 1, BattleTower_Lobby_EventScript_1AE2A1 compare RESULT, 1 call_if 1, BattleTower_Lobby_EventScript_1AE2AA msgbox BattleTower_Lobby_Text_1A79EB, 4 - setvar 0x8004, 12 - copyvar 0x8005, 0x8009 + setvar SPECIALVAR_4, 12 + copyvar SPECIALVAR_5, SPECIALVAR_9 call BattleTower_Lobby_EventScript_1A00F3 lock faceplayer @@ -4719,8 +4718,8 @@ BattleTower_Lobby_EventScript_1AE2B3:: @ 81AE2B3 goto_if_eq BattleTower_Lobby_EventScript_1AE2D9 msgbox BattleTower_Lobby_Text_1A7A6E, 4 setflag FLAG_TEMP_2 - copyvar 0x8004, 0x8008 - setvar 0x8005, 7 + copyvar SPECIALVAR_4, SPECIALVAR_8 + setvar SPECIALVAR_5, 7 goto BattleTower_Lobby_EventScript_1ADE46 end @@ -4737,7 +4736,7 @@ BattleTower_Lobby_EventScript_1AE2E3:: @ 81AE2E3 BattleTower_Lobby_EventScript_1AE2ED:: @ 81AE2ED compare VAR_BRAVO_TRAINER_BATTLE_TOWER_ON, 0 goto_if_eq BattleTower_Lobby_EventScript_1AE30F - setvar 0x8005, 7 + setvar SPECIALVAR_5, 7 special sub_80BF2C4 compare RESULT, 1 goto_if_eq BattleTower_Lobby_EventScript_1AE30F @@ -4803,11 +4802,11 @@ MauvilleCity_GameCorner_EventScript_1C407E:: @ 81C407E checkitem ITEM_COIN_CASE, 1 compare RESULT, 0 goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5 - setvar 0x8004, 0 + setvar SPECIALVAR_4, 0 getpricereduction 2 compare RESULT, 0 goto_if_eq MauvilleCity_GameCorner_EventScript_1C40DA - addvar 0x8004, 128 + addvar SPECIALVAR_4, 128 goto MauvilleCity_GameCorner_EventScript_1C40DA end @@ -4815,11 +4814,11 @@ MauvilleCity_GameCorner_EventScript_1C40AC:: @ 81C40AC checkitem ITEM_COIN_CASE, 1 compare RESULT, 0 goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5 - setvar 0x8004, 1 + setvar SPECIALVAR_4, 1 getpricereduction 2 compare RESULT, 0 goto_if_eq MauvilleCity_GameCorner_EventScript_1C40DA - addvar 0x8004, 128 + addvar SPECIALVAR_4, 128 goto MauvilleCity_GameCorner_EventScript_1C40DA end -- cgit v1.2.3 From 2c4d972f7c5a79ca94dca599b6e7b9e2c769cf70 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Sun, 24 Dec 2017 14:00:44 -0600 Subject: 'VAR_SPECIAL_X' instead of 'SPECIALVAR_X' --- data/event_scripts.s | 308 +++++++++++++++++++++++++-------------------------- 1 file changed, 154 insertions(+), 154 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 5170a0707..7b69ac338 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -1453,11 +1453,11 @@ do_heal_party:: @ 819FD7C incrementgamestat GAME_STAT_USED_POKECENTER message gText_NurseJoy_OkayIllTakeYourPokemon waitmessage - applymovement SPECIALVAR_B, OldaleTown_PokemonCenter_1F_Movement_1A083F + applymovement VAR_SPECIAL_B, OldaleTown_PokemonCenter_1F_Movement_1A083F waitmovement 0 dofieldeffect 25 waitfieldeffect 25 - applymovement SPECIALVAR_B, OldaleTown_PokemonCenter_1F_Movement_1A0845 + applymovement VAR_SPECIAL_B, OldaleTown_PokemonCenter_1F_Movement_1A0845 waitmovement 0 special ScrSpecial_HealPlayerParty checkflag FLAG_POKERUS_EXPLAINED @@ -1468,7 +1468,7 @@ do_heal_party:: @ 819FD7C OldaleTown_PokemonCenter_1F_EventScript_19FDB0:: @ 819FDB0 message gText_NurseJoy_ThankYouForWaiting waitmessage - applymovement SPECIALVAR_B, OldaleTown_PokemonCenter_1F_Movement_19FDF4 + applymovement VAR_SPECIAL_B, OldaleTown_PokemonCenter_1F_Movement_19FDF4 waitmovement 0 message gText_NurseJoy_WeHopeToSeeYouAgain waitmessage @@ -1499,18 +1499,18 @@ OldaleTown_PokemonCenter_1F_Movement_19FDF4:: @ 819FDF4 step_end Std_ObtainItem: @ 819FDF7 - giveitem SPECIALVAR_0, SPECIALVAR_1 - copyvar SPECIALVAR_7, RESULT + giveitem VAR_SPECIAL_0, VAR_SPECIAL_1 + copyvar VAR_SPECIAL_7, RESULT call Std_ObtainItem_ return Std_ObtainItem_: @ 819FE07 - bufferitemname 1, SPECIALVAR_0 - checkitemtype SPECIALVAR_0 + bufferitemname 1, VAR_SPECIAL_0 + checkitemtype VAR_SPECIAL_0 call GetItem_HandlePocket - compare SPECIALVAR_7, 0x1 + compare VAR_SPECIAL_7, 0x1 call_if 1, Std_ObtainItem_Success - compare SPECIALVAR_7, 0x0 + compare VAR_SPECIAL_7, 0x0 call_if 1, Std_ObtainItem_Fail return @@ -1525,31 +1525,31 @@ GetItem_HandlePocket: GetItem_HandlePocket_Items: bufferstdstring 2, 0xE - compare SPECIALVAR_7, 1 + compare VAR_SPECIAL_7, 1 call_if 1, PlayGetItemFanfare return GetItem_HandlePocket_KeyItems: bufferstdstring 2, 0xF - compare SPECIALVAR_7, 1 + compare VAR_SPECIAL_7, 1 call_if 1, PlayGetItemFanfare return GetItem_HandlePocket_PokeBalls: bufferstdstring 2, 0x10 - compare SPECIALVAR_7, 1 + compare VAR_SPECIAL_7, 1 call_if 1, PlayGetItemFanfare return GetItem_HandlePocket_TMsHMs: bufferstdstring 2, 0x11 - compare SPECIALVAR_7, 1 + compare VAR_SPECIAL_7, 1 call_if 1, PlayGetTMHMFanfare return GetItem_HandlePocket_Berries: bufferstdstring 2, 0x12 - compare SPECIALVAR_7, 1 + compare VAR_SPECIAL_7, 1 call_if 1, PlayGetItemFanfare return @@ -1574,16 +1574,16 @@ PlayGetTMHMFanfare: return Std_ObtainDecoration: @ 819FEDA - givedecoration SPECIALVAR_0 - copyvar SPECIALVAR_7, RESULT + givedecoration VAR_SPECIAL_0 + copyvar VAR_SPECIAL_7, RESULT call Std_ObtainDecoration_ return Std_ObtainDecoration_: @ 819FEE8 - bufferdecorationname 1, SPECIALVAR_0 - compare SPECIALVAR_7, 1 + bufferdecorationname 1, VAR_SPECIAL_0 + compare VAR_SPECIAL_7, 1 call_if 1, Std_ObtainDecoration_Success - compare SPECIALVAR_7, 0 + compare VAR_SPECIAL_7, 0 call_if 1, Std_ObtainDecoration_Fail return @@ -1604,14 +1604,14 @@ Std_FindItem: @ 819FF21 lock faceplayer waitse - giveitem SPECIALVAR_0, SPECIALVAR_1 - copyvar SPECIALVAR_7, RESULT - bufferitemname 1, SPECIALVAR_0 - checkitemtype SPECIALVAR_0 + giveitem VAR_SPECIAL_0, VAR_SPECIAL_1 + copyvar VAR_SPECIAL_7, RESULT + bufferitemname 1, VAR_SPECIAL_0 + checkitemtype VAR_SPECIAL_0 call GetItem_HandlePocket - compare SPECIALVAR_7, 1 + compare VAR_SPECIAL_7, 1 call_if 1, Std_FindItem_Success - compare SPECIALVAR_7, 0 + compare VAR_SPECIAL_7, 0 call_if 1, Std_FindItem_Fail release return @@ -1633,14 +1633,14 @@ Std_FindItem_Fail: @ 819FF65 HiddenItemScript:: @ 819FF7B lockall waitse - giveitem SPECIALVAR_5, 1 - copyvar SPECIALVAR_7, RESULT - bufferitemname 0x1, SPECIALVAR_5 - checkitemtype SPECIALVAR_5 + giveitem VAR_SPECIAL_5, 1 + copyvar VAR_SPECIAL_7, RESULT + bufferitemname 0x1, VAR_SPECIAL_5 + checkitemtype VAR_SPECIAL_5 call GetItem_HandlePocket - compare SPECIALVAR_7, 1 + compare VAR_SPECIAL_7, 1 goto_if_eq HiddenItemScript_Success - compare SPECIALVAR_7, 0 + compare VAR_SPECIAL_7, 0 goto_if_eq HiddenItemScript_Fail end @@ -1683,7 +1683,7 @@ UnusedMixRecordsScript_Done: @ 81A0000 gUnknown_081A0009:: @ 81A0009 lockall - setvar SPECIALVAR_4, 0 + setvar VAR_SPECIAL_4, 0 special DoPCTurnOnEffect playse 4 msgbox UnknownString_81A09EC, 4 @@ -1736,7 +1736,7 @@ EventScript_1A00B5: return EventScript_1A00BE: - setvar SPECIALVAR_4, 0 + setvar VAR_SPECIAL_4, 0 playse 3 special DoPCTurnOffEffect releaseall @@ -1808,14 +1808,14 @@ RustboroCity_Gym_EventScript_1A00FB:: @ 81A00FB DewfordTown_EventScript_1A0102:: @ 81A0102 DewfordTown_Hall_EventScript_1A0102:: @ 81A0102 dodailyevents - setvar SPECIALVAR_4, 0 + setvar VAR_SPECIAL_4, 0 special sub_80FA5BC return DewfordTown_EventScript_1A010C:: @ 81A010C Route104_MrBrineysHouse_EventScript_1A010C:: @ 81A010C Route109_EventScript_1A010C:: @ 81A010C - copyvar SPECIALVAR_8, VAR_BRINEY_LOCATION + copyvar VAR_SPECIAL_8, VAR_BRINEY_LOCATION setvar VAR_BRINEY_LOCATION, 0 return @@ -1937,7 +1937,7 @@ MossdeepCity_Gym_EventScript_1A01C0:: @ 81A01C0 PetalburgCity_Gym_EventScript_1A01C0:: @ 81A01C0 RustboroCity_Gym_EventScript_1A01C0:: @ 81A01C0 SootopolisCity_Gym_1F_EventScript_1A01C0:: @ 81A01C0 - switch SPECIALVAR_8 + switch VAR_SPECIAL_8 case 1, DewfordTown_Gym_EventScript_1A021E case 2, DewfordTown_Gym_EventScript_1A0225 case 3, DewfordTown_Gym_EventScript_1A022F @@ -2205,7 +2205,7 @@ Route101_EventScript_1A039B:: @ 81A039B end Route101_EventScript_1A03A5:: @ 81A03A5 - copyvar SPECIALVAR_4, SPECIALVAR_9 + copyvar VAR_SPECIAL_4, VAR_SPECIAL_9 special ShowPokedexRatingMessage waitmessage waitbuttonpress @@ -2213,23 +2213,23 @@ Route101_EventScript_1A03A5:: @ 81A03A5 EverGrandeCity_ChampionsRoom_EventScript_1A03B0:: @ 81A03B0 Route101_EventScript_1A03B0:: @ 81A03B0 - setvar SPECIALVAR_4, 0 + setvar VAR_SPECIAL_4, 0 specialvar RESULT, ScriptGetPokedexInfo - copyvar SPECIALVAR_8, SPECIALVAR_5 - copyvar SPECIALVAR_9, SPECIALVAR_6 - copyvar SPECIALVAR_A, RESULT - buffernumberstring 0, SPECIALVAR_8 - buffernumberstring 1, SPECIALVAR_9 + copyvar VAR_SPECIAL_8, VAR_SPECIAL_5 + copyvar VAR_SPECIAL_9, VAR_SPECIAL_6 + copyvar VAR_SPECIAL_A, RESULT + buffernumberstring 0, VAR_SPECIAL_8 + buffernumberstring 1, VAR_SPECIAL_9 msgbox Route101_Text_1C44DC, 4 call Route101_EventScript_1A03A5 - compare SPECIALVAR_A, 0 + compare VAR_SPECIAL_A, 0 goto_if_eq Route101_EventScript_1A14DC - setvar SPECIALVAR_4, 1 + setvar VAR_SPECIAL_4, 1 specialvar RESULT, ScriptGetPokedexInfo - copyvar SPECIALVAR_8, SPECIALVAR_5 - copyvar SPECIALVAR_9, SPECIALVAR_6 - buffernumberstring 0, SPECIALVAR_8 - buffernumberstring 1, SPECIALVAR_9 + copyvar VAR_SPECIAL_8, VAR_SPECIAL_5 + copyvar VAR_SPECIAL_9, VAR_SPECIAL_6 + buffernumberstring 0, VAR_SPECIAL_8 + buffernumberstring 1, VAR_SPECIAL_9 msgbox Route101_Text_1C4B05, 4 return @@ -2237,7 +2237,7 @@ BattleTower_Outside_EventScript_1A040E:: @ 81A040E LilycoveCity_Harbor_EventScript_1A040E:: @ 81A040E SlateportCity_Harbor_EventScript_1A040E:: @ 81A040E delay 60 - applymovement SPECIALVAR_4, SlateportCity_Harbor_Movement_1A041C + applymovement VAR_SPECIAL_4, SlateportCity_Harbor_Movement_1A041C waitmovement 0 return @@ -2331,8 +2331,8 @@ CaveOfOrigin_B3F_EventScript_1A04BB:: @ 81A04BB CaveOfOrigin_1F_EventScript_1A04D3:: @ 81A04D3 CaveOfOrigin_B2F_EventScript_1A04D3:: @ 81A04D3 - setvar SPECIALVAR_4, 1 - setvar SPECIALVAR_5, 1 + setvar VAR_SPECIAL_4, 1 + setvar VAR_SPECIAL_5, 1 special sub_810F758 waitstate releaseall @@ -2385,49 +2385,49 @@ MagmaHideout_B1F_EventScript_1A051B:: @ 81A051B Route120_EventScript_1A0539:: @ 81A0539 lock faceplayer - setvar SPECIALVAR_4, 1 + setvar VAR_SPECIAL_4, 1 goto Route120_EventScript_1A0594 end Route120_EventScript_1A0546:: @ 81A0546 lock faceplayer - setvar SPECIALVAR_4, 2 + setvar VAR_SPECIAL_4, 2 goto Route120_EventScript_1A0594 end Route120_EventScript_1A0553:: @ 81A0553 lock faceplayer - setvar SPECIALVAR_4, 3 + setvar VAR_SPECIAL_4, 3 goto Route120_EventScript_1A0594 end Route120_EventScript_1A0560:: @ 81A0560 lock faceplayer - setvar SPECIALVAR_4, 4 + setvar VAR_SPECIAL_4, 4 goto Route120_EventScript_1A0594 end Route120_EventScript_1A056D:: @ 81A056D lock faceplayer - setvar SPECIALVAR_4, 5 + setvar VAR_SPECIAL_4, 5 goto Route120_EventScript_1A0594 end Route119_EventScript_1A057A:: @ 81A057A lock faceplayer - setvar SPECIALVAR_4, 6 + setvar VAR_SPECIAL_4, 6 goto Route119_EventScript_1A0594 end Route119_EventScript_1A0587:: @ 81A0587 lock faceplayer - setvar SPECIALVAR_4, 7 + setvar VAR_SPECIAL_4, 7 goto Route119_EventScript_1A0594 end @@ -2459,19 +2459,19 @@ Route119_EventScript_1A05C3:: @ 81A05C3 delay 40 waitmoncry setwildbattle SPECIES_KECLEON, 30, ITEM_NONE - compare SPECIALVAR_4, 1 + compare VAR_SPECIAL_4, 1 call_if 1, Route119_EventScript_1A0646 - compare SPECIALVAR_4, 2 + compare VAR_SPECIAL_4, 2 call_if 1, Route119_EventScript_1A064A - compare SPECIALVAR_4, 3 + compare VAR_SPECIAL_4, 3 call_if 1, Route119_EventScript_1A064E - compare SPECIALVAR_4, 4 + compare VAR_SPECIAL_4, 4 call_if 1, Route119_EventScript_1A0652 - compare SPECIALVAR_4, 5 + compare VAR_SPECIAL_4, 5 call_if 1, Route119_EventScript_1A0656 - compare SPECIALVAR_4, 6 + compare VAR_SPECIAL_4, 6 call_if 1, Route119_EventScript_1A065A - compare SPECIALVAR_4, 7 + compare VAR_SPECIAL_4, 7 call_if 1, Route119_EventScript_1A065E setflag FLAG_SYS_CTRL_OBJ_DELETE dowildbattle @@ -2546,12 +2546,12 @@ FallarborTown_House1_EventScript_1A067F:: @ 81A067F GraniteCave_StevensRoom_EventScript_1A067F:: @ 81A067F MtPyre_Summit_EventScript_1A067F:: @ 81A067F SlateportCity_OceanicMuseum_2F_EventScript_1A067F:: @ 81A067F - bufferitemname 0, SPECIALVAR_4 + bufferitemname 0, VAR_SPECIAL_4 playfanfare 372 message FallarborTown_House1_Text_1A1498 waitmessage waitfanfare - takeitem SPECIALVAR_4, 1 + takeitem VAR_SPECIAL_4, 1 return EverGrandeCity_DrakesRoom_EventScript_1A0693:: @ 81A0693 @@ -3612,17 +3612,17 @@ gUnknown_081A2C51:: @ 81A2C51 checkpartymove MOVE_SECRET_POWER setfieldeffectargument 0, RESULT buffermovename 1, MOVE_SECRET_POWER - compare SPECIALVAR_7, 1 + compare VAR_SPECIAL_7, 1 goto_if_eq EventScript_1A2CB0 - compare SPECIALVAR_7, 2 + compare VAR_SPECIAL_7, 2 goto_if_eq EventScript_1A2CB0 - compare SPECIALVAR_7, 3 + compare VAR_SPECIAL_7, 3 goto_if_eq EventScript_1A2CB0 - compare SPECIALVAR_7, 4 + compare VAR_SPECIAL_7, 4 goto_if_eq EventScript_1A2CB0 - compare SPECIALVAR_7, 5 + compare VAR_SPECIAL_7, 5 goto_if_eq EventScript_1A2D08 - compare SPECIALVAR_7, 6 + compare VAR_SPECIAL_7, 6 goto_if_eq EventScript_1A2D60 end @@ -3726,8 +3726,8 @@ EventScript_1A2DB8: setflag FLAG_DECORATION_1 special sub_80BB8CC special sub_80BBAF0 - setvar SPECIALVAR_4, 0 - setvar SPECIALVAR_5, 0 + setvar VAR_SPECIAL_4, 0 + setvar VAR_SPECIAL_5, 0 special sub_80BBDD0 setvar VAR_0x4089, 1 waitstate @@ -3782,7 +3782,7 @@ EventScript_1A2E45: compare RESULT, 6 goto_if_eq EventScript_1A2EF7 setfieldeffectargument 0, RESULT - setorcopyvar SPECIALVAR_4, RESULT + setorcopyvar VAR_SPECIAL_4, RESULT lockall special GetSecretBaseNearbyMapName msgbox UnknownString_81A3C71, 5 @@ -3798,38 +3798,38 @@ EventScript_1A2E45: msgbox UnknownString_81A3CC9, 5 compare RESULT, 0 goto_if_eq EventScript_1A2F3A - bufferpartymonnick 0, SPECIALVAR_4 + bufferpartymonnick 0, VAR_SPECIAL_4 buffermovename 1, MOVE_SECRET_POWER msgbox UsedCutRockSmashText, 4 closemessage closemessage - compare SPECIALVAR_7, 1 + compare VAR_SPECIAL_7, 1 goto_if_eq gUnknown_081A2CE6 - compare SPECIALVAR_7, 2 + compare VAR_SPECIAL_7, 2 goto_if_eq gUnknown_081A2CE6 - compare SPECIALVAR_7, 3 + compare VAR_SPECIAL_7, 3 goto_if_eq gUnknown_081A2CE6 - compare SPECIALVAR_7, 4 + compare VAR_SPECIAL_7, 4 goto_if_eq gUnknown_081A2CE6 - compare SPECIALVAR_7, 5 + compare VAR_SPECIAL_7, 5 goto_if_eq gUnknown_081A2D3E - compare SPECIALVAR_7, 6 + compare VAR_SPECIAL_7, 6 goto_if_eq gUnknown_081A2D96 releaseall end EventScript_1A2EF7:: - compare SPECIALVAR_7, 1 + compare VAR_SPECIAL_7, 1 goto_if_eq EventScript_1A2CF1 - compare SPECIALVAR_7, 2 + compare VAR_SPECIAL_7, 2 goto_if_eq EventScript_1A2CF1 - compare SPECIALVAR_7, 3 + compare VAR_SPECIAL_7, 3 goto_if_eq EventScript_1A2CF1 - compare SPECIALVAR_7, 4 + compare VAR_SPECIAL_7, 4 goto_if_eq EventScript_1A2CF1 - compare SPECIALVAR_7, 5 + compare VAR_SPECIAL_7, 5 goto_if_eq EventScript_1A2D49 - compare SPECIALVAR_7, 6 + compare VAR_SPECIAL_7, 6 goto_if_eq EventScript_1A2DA1 end @@ -3860,14 +3860,14 @@ SecretBase_RedCave1_EventScript_1A2F3D:: @ 81A2F3D LittlerootTown_BrendansHouse_2F_EventScript_1A2F68:: @ 81A2F68 LittlerootTown_MaysHouse_2F_EventScript_1A2F68:: @ 81A2F68 SecretBase_RedCave1_EventScript_1A2F68:: @ 81A2F68 - setvar SPECIALVAR_4, 0 - setvar SPECIALVAR_5, 0 + setvar VAR_SPECIAL_4, 0 + setvar VAR_SPECIAL_5, 0 special sub_80BBDD0 setvar VAR_0x4089, 1 end gUnknown_081A2F7B:: @ 81A2F7B - setvar SPECIALVAR_5, 0 + setvar VAR_SPECIAL_5, 0 goto EventScript_1A2F86 end @@ -3876,7 +3876,7 @@ EventScript_1A2F86: end gUnknown_081A2F8A:: @ 81A2F8A - setvar SPECIALVAR_4, 0 + setvar VAR_SPECIAL_4, 0 goto EventScript_1A2F95 end @@ -3884,11 +3884,11 @@ EventScript_1A2F95: special sub_8100A7C compare RESULT, 1 goto_if_eq EventScript_1A2FBF - addvar SPECIALVAR_4, 1 - compare SPECIALVAR_5, 0 + addvar VAR_SPECIAL_4, 1 + compare VAR_SPECIAL_5, 0 goto_if_eq EventScript_1A2F95 - removeobject SPECIALVAR_6 - setflag SPECIALVAR_5 + removeobject VAR_SPECIAL_6 + setflag VAR_SPECIAL_5 goto EventScript_1A2F95 end @@ -3920,25 +3920,25 @@ SecretBase_YellowCave2_EventScript_1A2FC0:: @ 81A2FC0 SecretBase_YellowCave3_EventScript_1A2FC0:: @ 81A2FC0 SecretBase_YellowCave4_EventScript_1A2FC0:: @ 81A2FC0 special sub_80BCE90 - compare SPECIALVAR_4, 0 + compare VAR_SPECIAL_4, 0 goto_if_eq SecretBase_RedCave1_EventScript_1A3032 - compare SPECIALVAR_4, 1 + compare VAR_SPECIAL_4, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A30AE - compare SPECIALVAR_4, 2 + compare VAR_SPECIAL_4, 2 goto_if_eq SecretBase_RedCave1_EventScript_1A312A - compare SPECIALVAR_4, 3 + compare VAR_SPECIAL_4, 3 goto_if_eq SecretBase_RedCave1_EventScript_1A31A6 - compare SPECIALVAR_4, 4 + compare VAR_SPECIAL_4, 4 goto_if_eq SecretBase_RedCave1_EventScript_1A3222 - compare SPECIALVAR_4, 5 + compare VAR_SPECIAL_4, 5 goto_if_eq SecretBase_RedCave1_EventScript_1A329E - compare SPECIALVAR_4, 6 + compare VAR_SPECIAL_4, 6 goto_if_eq SecretBase_RedCave1_EventScript_1A331A - compare SPECIALVAR_4, 7 + compare VAR_SPECIAL_4, 7 goto_if_eq SecretBase_RedCave1_EventScript_1A3396 - compare SPECIALVAR_4, 8 + compare VAR_SPECIAL_4, 8 goto_if_eq SecretBase_RedCave1_EventScript_1A3412 - compare SPECIALVAR_4, 9 + compare VAR_SPECIAL_4, 9 goto_if_eq SecretBase_RedCave1_EventScript_1A348E end @@ -4294,8 +4294,8 @@ SecretBase_RedCave1_EventScript_1A3501:: @ 81A3501 SecretBase_RedCave1_EventScript_1A350A:: @ 81A350A special sub_80BCE1C - setvar SPECIALVAR_4, 1 - setvar SPECIALVAR_5, 0 + setvar VAR_SPECIAL_4, 1 + setvar VAR_SPECIAL_5, 0 special sub_813556C waitstate special ScrSpecial_HealPlayerParty @@ -4389,11 +4389,11 @@ SlateportCity_PokemonFanClub_EventScript_1ADE46:: @ 81ADE46 end SlateportCity_PokemonFanClub_EventScript_1ADE4D:: @ 81ADE4D - setvar SPECIALVAR_5, 1 + setvar VAR_SPECIAL_5, 1 special sub_80BF2C4 compare RESULT, 1 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADED6 - copyvar SPECIALVAR_9, SPECIALVAR_6 + copyvar VAR_SPECIAL_9, VAR_SPECIAL_6 msgbox SlateportCity_PokemonFanClub_Text_1A8704, 5 compare RESULT, 1 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADE84 @@ -4403,9 +4403,9 @@ SlateportCity_PokemonFanClub_EventScript_1ADE4D:: @ 81ADE4D SlateportCity_PokemonFanClub_EventScript_1ADE84:: @ 81ADE84 msgbox SlateportCity_PokemonFanClub_Text_1A87CA, 4 - setvar SPECIALVAR_4, 5 - copyvar SPECIALVAR_5, SPECIALVAR_9 - setvar SPECIALVAR_6, 1 + setvar VAR_SPECIAL_4, 5 + copyvar VAR_SPECIAL_5, VAR_SPECIAL_9 + setvar VAR_SPECIAL_6, 1 call SlateportCity_PokemonFanClub_EventScript_1A00F3 lock faceplayer @@ -4422,7 +4422,7 @@ SlateportCity_PokemonFanClub_EventScript_1ADEB9:: @ 81ADEB9 SlateportCity_PokemonFanClub_EventScript_1ADEC3:: @ 81ADEC3 msgbox SlateportCity_PokemonFanClub_Text_1A8818, 4 - setvar SPECIALVAR_5, 1 + setvar VAR_SPECIAL_5, 1 goto SlateportCity_PokemonFanClub_EventScript_1ADE46 end @@ -4434,11 +4434,11 @@ SlateportCity_PokemonFanClub_EventScript_1ADED6:: @ 81ADED6 SlateportCity_OceanicMuseum_1F_EventScript_1ADEE0:: @ 81ADEE0 lock faceplayer - setvar SPECIALVAR_5, 2 + setvar VAR_SPECIAL_5, 2 special sub_80BF2C4 compare RESULT, 1 goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF96 - copyvar SPECIALVAR_9, SPECIALVAR_6 + copyvar VAR_SPECIAL_9, VAR_SPECIAL_6 checkflag FLAG_OCEANIC_MUSEUM_MET_REPORTER goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF25 setflag FLAG_OCEANIC_MUSEUM_MET_REPORTER @@ -4459,9 +4459,9 @@ SlateportCity_OceanicMuseum_1F_EventScript_1ADF25:: @ 81ADF25 SlateportCity_OceanicMuseum_1F_EventScript_1ADF44:: @ 81ADF44 msgbox SlateportCity_OceanicMuseum_1F_Text_1A93D1, 4 - setvar SPECIALVAR_4, 5 - copyvar SPECIALVAR_5, SPECIALVAR_9 - setvar SPECIALVAR_6, 0 + setvar VAR_SPECIAL_4, 5 + copyvar VAR_SPECIAL_5, VAR_SPECIAL_9 + setvar VAR_SPECIAL_6, 0 call SlateportCity_OceanicMuseum_1F_EventScript_1A00F3 lock faceplayer @@ -4478,7 +4478,7 @@ SlateportCity_OceanicMuseum_1F_EventScript_1ADF79:: @ 81ADF79 SlateportCity_OceanicMuseum_1F_EventScript_1ADF83:: @ 81ADF83 msgbox SlateportCity_OceanicMuseum_1F_Text_1A949A, 4 - setvar SPECIALVAR_5, 2 + setvar VAR_SPECIAL_5, 2 goto SlateportCity_OceanicMuseum_1F_EventScript_1ADE46 end @@ -4493,11 +4493,11 @@ SlateportCity_PokemonFanClub_EventScript_1ADFA0:: @ 81ADFA0 specialvar RESULT, sub_80BF544 compare RESULT, 0 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADE4D - setvar SPECIALVAR_5, 3 + setvar VAR_SPECIAL_5, 3 special sub_80BF2C4 compare RESULT, 1 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1AE0AC - copyvar SPECIALVAR_9, SPECIALVAR_6 + copyvar VAR_SPECIAL_9, VAR_SPECIAL_6 msgbox SlateportCity_PokemonFanClub_Text_1A82F1, 5 compare RESULT, 1 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADFE9 @@ -4508,7 +4508,7 @@ SlateportCity_PokemonFanClub_EventScript_1ADFA0:: @ 81ADFA0 SlateportCity_PokemonFanClub_EventScript_1ADFE9:: @ 81ADFE9 msgbox SlateportCity_PokemonFanClub_Text_1A83D0, 4 random 3 - copyvar SPECIALVAR_A, RESULT + copyvar VAR_SPECIAL_A, RESULT switch RESULT case 0, SlateportCity_PokemonFanClub_EventScript_1AE020 case 1, SlateportCity_PokemonFanClub_EventScript_1AE02E @@ -4531,24 +4531,24 @@ SlateportCity_PokemonFanClub_EventScript_1AE03C:: @ 81AE03C end SlateportCity_PokemonFanClub_EventScript_1AE04A:: @ 81AE04A - setvar SPECIALVAR_4, 7 - copyvar SPECIALVAR_5, SPECIALVAR_9 - setvar SPECIALVAR_6, 0 + setvar VAR_SPECIAL_4, 7 + copyvar VAR_SPECIAL_5, VAR_SPECIAL_9 + setvar VAR_SPECIAL_6, 0 call SlateportCity_PokemonFanClub_EventScript_1A00F3 lock faceplayer compare RESULT, 0 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1AE0A2 msgbox SlateportCity_PokemonFanClub_Text_1A852D, 4 - setvar SPECIALVAR_6, 1 + setvar VAR_SPECIAL_6, 1 call SlateportCity_PokemonFanClub_EventScript_1A00F3 lock faceplayer compare RESULT, 0 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1AE0A2 msgbox SlateportCity_PokemonFanClub_Text_1A85A6, 4 - copyvar SPECIALVAR_7, SPECIALVAR_A - setvar SPECIALVAR_5, 3 + copyvar VAR_SPECIAL_7, VAR_SPECIAL_A + setvar VAR_SPECIAL_5, 3 goto SlateportCity_PokemonFanClub_EventScript_1ADE46 end @@ -4570,11 +4570,11 @@ VerdanturfTown_ContestLobby_EventScript_1AE0B6:: @ 81AE0B6 faceplayer checkflag FLAG_TEMP_2 goto_if_eq FallarborTown_ContestLobby_EventScript_1AE17E - setvar SPECIALVAR_5, 6 + setvar VAR_SPECIAL_5, 6 special sub_80BF2C4 compare RESULT, 1 goto_if_eq FallarborTown_ContestLobby_EventScript_1AE17E - copyvar SPECIALVAR_9, SPECIALVAR_6 + copyvar VAR_SPECIAL_9, VAR_SPECIAL_6 msgbox FallarborTown_ContestLobby_Text_1A6F7C, 5 compare RESULT, 1 goto_if_eq FallarborTown_ContestLobby_EventScript_1AE0F8 @@ -4584,9 +4584,9 @@ VerdanturfTown_ContestLobby_EventScript_1AE0B6:: @ 81AE0B6 FallarborTown_ContestLobby_EventScript_1AE0F8:: @ 81AE0F8 msgbox FallarborTown_ContestLobby_Text_1A704E, 4 - setvar SPECIALVAR_4, 11 - copyvar SPECIALVAR_5, SPECIALVAR_9 - setvar SPECIALVAR_6, 0 + setvar VAR_SPECIAL_4, 11 + copyvar VAR_SPECIAL_5, VAR_SPECIAL_9 + setvar VAR_SPECIAL_6, 0 call FallarborTown_ContestLobby_EventScript_1A00F3 lock faceplayer @@ -4602,12 +4602,12 @@ FallarborTown_ContestLobby_EventScript_1AE12D:: @ 81AE12D end FallarborTown_ContestLobby_EventScript_1AE137:: @ 81AE137 - setvar SPECIALVAR_4, 24 + setvar VAR_SPECIAL_4, 24 special SetContestCategoryStringVarForInterview msgbox FallarborTown_ContestLobby_Text_1A70A5, 4 - setvar SPECIALVAR_4, 11 - copyvar SPECIALVAR_5, SPECIALVAR_9 - setvar SPECIALVAR_6, 1 + setvar VAR_SPECIAL_4, 11 + copyvar VAR_SPECIAL_5, VAR_SPECIAL_9 + setvar VAR_SPECIAL_6, 1 call FallarborTown_ContestLobby_EventScript_1A00F3 lock faceplayer @@ -4615,7 +4615,7 @@ FallarborTown_ContestLobby_EventScript_1AE137:: @ 81AE137 goto_if_eq FallarborTown_ContestLobby_EventScript_1AE12D msgbox FallarborTown_ContestLobby_Text_1A7153, 4 setflag FLAG_TEMP_2 - setvar SPECIALVAR_5, 6 + setvar VAR_SPECIAL_5, 6 goto FallarborTown_ContestLobby_EventScript_1ADE46 end @@ -4630,7 +4630,7 @@ SlateportCity_ContestLobby_EventScript_1AE188:: @ 81AE188 VerdanturfTown_ContestLobby_EventScript_1AE188:: @ 81AE188 compare VAR_LINK_CONTEST_ROOM_STATE, 2 goto_if 5, FallarborTown_ContestLobby_EventScript_1AE1FE - setvar SPECIALVAR_5, 6 + setvar VAR_SPECIAL_5, 6 special sub_80BF2C4 compare RESULT, 1 goto_if_eq FallarborTown_ContestLobby_EventScript_1AE1FE @@ -4667,11 +4667,11 @@ BattleTower_Lobby_EventScript_1AE1FF:: @ 81AE1FF faceplayer checkflag FLAG_TEMP_2 goto_if_eq BattleTower_Lobby_EventScript_1AE2E3 - setvar SPECIALVAR_5, 7 + setvar VAR_SPECIAL_5, 7 special sub_80BF2C4 compare RESULT, 1 goto_if_eq BattleTower_Lobby_EventScript_1AE2E3 - copyvar SPECIALVAR_9, SPECIALVAR_6 + copyvar VAR_SPECIAL_9, VAR_SPECIAL_6 msgbox BattleTower_Lobby_Text_1A776D, 5 compare RESULT, 1 goto_if_eq BattleTower_Lobby_EventScript_1AE241 @@ -4683,14 +4683,14 @@ BattleTower_Lobby_EventScript_1AE241:: @ 81AE241 message BattleTower_Lobby_Text_1A7823 waitmessage multichoice 19, 8, 45, 1 - copyvar SPECIALVAR_8, RESULT + copyvar VAR_SPECIAL_8, RESULT compare RESULT, 0 call_if 1, BattleTower_Lobby_EventScript_1AE2A1 compare RESULT, 1 call_if 1, BattleTower_Lobby_EventScript_1AE2AA msgbox BattleTower_Lobby_Text_1A79EB, 4 - setvar SPECIALVAR_4, 12 - copyvar SPECIALVAR_5, SPECIALVAR_9 + setvar VAR_SPECIAL_4, 12 + copyvar VAR_SPECIAL_5, VAR_SPECIAL_9 call BattleTower_Lobby_EventScript_1A00F3 lock faceplayer @@ -4718,8 +4718,8 @@ BattleTower_Lobby_EventScript_1AE2B3:: @ 81AE2B3 goto_if_eq BattleTower_Lobby_EventScript_1AE2D9 msgbox BattleTower_Lobby_Text_1A7A6E, 4 setflag FLAG_TEMP_2 - copyvar SPECIALVAR_4, SPECIALVAR_8 - setvar SPECIALVAR_5, 7 + copyvar VAR_SPECIAL_4, VAR_SPECIAL_8 + setvar VAR_SPECIAL_5, 7 goto BattleTower_Lobby_EventScript_1ADE46 end @@ -4736,7 +4736,7 @@ BattleTower_Lobby_EventScript_1AE2E3:: @ 81AE2E3 BattleTower_Lobby_EventScript_1AE2ED:: @ 81AE2ED compare VAR_BRAVO_TRAINER_BATTLE_TOWER_ON, 0 goto_if_eq BattleTower_Lobby_EventScript_1AE30F - setvar SPECIALVAR_5, 7 + setvar VAR_SPECIAL_5, 7 special sub_80BF2C4 compare RESULT, 1 goto_if_eq BattleTower_Lobby_EventScript_1AE30F @@ -4802,11 +4802,11 @@ MauvilleCity_GameCorner_EventScript_1C407E:: @ 81C407E checkitem ITEM_COIN_CASE, 1 compare RESULT, 0 goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5 - setvar SPECIALVAR_4, 0 + setvar VAR_SPECIAL_4, 0 getpricereduction 2 compare RESULT, 0 goto_if_eq MauvilleCity_GameCorner_EventScript_1C40DA - addvar SPECIALVAR_4, 128 + addvar VAR_SPECIAL_4, 128 goto MauvilleCity_GameCorner_EventScript_1C40DA end @@ -4814,11 +4814,11 @@ MauvilleCity_GameCorner_EventScript_1C40AC:: @ 81C40AC checkitem ITEM_COIN_CASE, 1 compare RESULT, 0 goto_if_eq MauvilleCity_GameCorner_EventScript_1572B5 - setvar SPECIALVAR_4, 1 + setvar VAR_SPECIAL_4, 1 getpricereduction 2 compare RESULT, 0 goto_if_eq MauvilleCity_GameCorner_EventScript_1C40DA - addvar SPECIALVAR_4, 128 + addvar VAR_SPECIAL_4, 128 goto MauvilleCity_GameCorner_EventScript_1C40DA end -- cgit v1.2.3 From 2da819cabb04e623dfb3830ad57ac6eed91efc65 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Mon, 1 Jan 2018 09:34:13 -0600 Subject: Label TV specials, and port over some TV changes from pokeemerald --- data/event_scripts.s | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 7b69ac338..5ff370f99 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -4383,14 +4383,14 @@ BattleTower_Lobby_EventScript_1ADE46:: @ 81ADE46 FallarborTown_ContestLobby_EventScript_1ADE46:: @ 81ADE46 SlateportCity_OceanicMuseum_1F_EventScript_1ADE46:: @ 81ADE46 SlateportCity_PokemonFanClub_EventScript_1ADE46:: @ 81ADE46 - special sub_80BDE48 + special InterviewAfter incrementgamestat GAME_STAT_GOT_INTERVIEWED release end SlateportCity_PokemonFanClub_EventScript_1ADE4D:: @ 81ADE4D setvar VAR_SPECIAL_5, 1 - special sub_80BF2C4 + special InterviewBefore compare RESULT, 1 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADED6 copyvar VAR_SPECIAL_9, VAR_SPECIAL_6 @@ -4435,7 +4435,7 @@ SlateportCity_OceanicMuseum_1F_EventScript_1ADEE0:: @ 81ADEE0 lock faceplayer setvar VAR_SPECIAL_5, 2 - special sub_80BF2C4 + special InterviewBefore compare RESULT, 1 goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF96 copyvar VAR_SPECIAL_9, VAR_SPECIAL_6 @@ -4490,11 +4490,11 @@ SlateportCity_OceanicMuseum_1F_EventScript_1ADF96:: @ 81ADF96 SlateportCity_PokemonFanClub_EventScript_1ADFA0:: @ 81ADFA0 lock faceplayer - specialvar RESULT, sub_80BF544 + specialvar RESULT, LeadMonNicknamed compare RESULT, 0 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1ADE4D setvar VAR_SPECIAL_5, 3 - special sub_80BF2C4 + special InterviewBefore compare RESULT, 1 goto_if_eq SlateportCity_PokemonFanClub_EventScript_1AE0AC copyvar VAR_SPECIAL_9, VAR_SPECIAL_6 @@ -4571,7 +4571,7 @@ VerdanturfTown_ContestLobby_EventScript_1AE0B6:: @ 81AE0B6 checkflag FLAG_TEMP_2 goto_if_eq FallarborTown_ContestLobby_EventScript_1AE17E setvar VAR_SPECIAL_5, 6 - special sub_80BF2C4 + special InterviewBefore compare RESULT, 1 goto_if_eq FallarborTown_ContestLobby_EventScript_1AE17E copyvar VAR_SPECIAL_9, VAR_SPECIAL_6 @@ -4631,7 +4631,7 @@ VerdanturfTown_ContestLobby_EventScript_1AE188:: @ 81AE188 compare VAR_LINK_CONTEST_ROOM_STATE, 2 goto_if 5, FallarborTown_ContestLobby_EventScript_1AE1FE setvar VAR_SPECIAL_5, 6 - special sub_80BF2C4 + special InterviewBefore compare RESULT, 1 goto_if_eq FallarborTown_ContestLobby_EventScript_1AE1FE switch VAR_CONTEST_LOCATION @@ -4668,7 +4668,7 @@ BattleTower_Lobby_EventScript_1AE1FF:: @ 81AE1FF checkflag FLAG_TEMP_2 goto_if_eq BattleTower_Lobby_EventScript_1AE2E3 setvar VAR_SPECIAL_5, 7 - special sub_80BF2C4 + special InterviewBefore compare RESULT, 1 goto_if_eq BattleTower_Lobby_EventScript_1AE2E3 copyvar VAR_SPECIAL_9, VAR_SPECIAL_6 @@ -4737,7 +4737,7 @@ BattleTower_Lobby_EventScript_1AE2ED:: @ 81AE2ED compare VAR_BRAVO_TRAINER_BATTLE_TOWER_ON, 0 goto_if_eq BattleTower_Lobby_EventScript_1AE30F setvar VAR_SPECIAL_5, 7 - special sub_80BF2C4 + special InterviewBefore compare RESULT, 1 goto_if_eq BattleTower_Lobby_EventScript_1AE30F clearflag FLAG_HIDE_REPORTER_BATTLE_TOWER -- cgit v1.2.3 From 56e2fe07d4e46ab73320d33a457802da48f9729a Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Mon, 1 Jan 2018 10:00:10 -0600 Subject: Label trendy phrase specials --- data/event_scripts.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 5ff370f99..898df7f3d 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -1809,7 +1809,7 @@ DewfordTown_EventScript_1A0102:: @ 81A0102 DewfordTown_Hall_EventScript_1A0102:: @ 81A0102 dodailyevents setvar VAR_SPECIAL_4, 0 - special sub_80FA5BC + special BufferTrendyPhraseString return DewfordTown_EventScript_1A010C:: @ 81A010C -- cgit v1.2.3 From 7158286302493c6fe34068926b351292af2cb6a9 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Mon, 1 Jan 2018 13:59:39 -0600 Subject: Label a bunch more specials --- data/event_scripts.s | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 898df7f3d..7d59b5234 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -490,7 +490,7 @@ EventScript_15F4A1: goto_if_eq EventScript_15F4E0 compare RESULT, 2 goto_if_eq EventScript_15F503 - special sub_80BC224 + special BufferSecretBaseOwnerName msgbox UnknownString_81A3958, 5 compare RESULT, 0 goto_if_eq EventScript_15F452 @@ -2538,7 +2538,7 @@ MossdeepCity_StevensHouse_EventScript_1A0678:: @ 81A0678 RustboroCity_DevonCorp_2F_EventScript_1A0678:: @ 81A0678 SlateportCity_House1_EventScript_1A0678:: @ 81A0678 fadescreen 1 - special sub_80BF9F8 + special ChangePokemonNickname waitstate return @@ -3792,7 +3792,7 @@ EventScript_1A2E45: compare RESULT, 0 goto_if_eq EventScript_1A2F3A fadescreen 1 - special sub_80BC50C + special MoveSecretBase closemessage fadescreen 0 msgbox UnknownString_81A3CC9, 5 @@ -4296,7 +4296,7 @@ SecretBase_RedCave1_EventScript_1A350A:: @ 81A350A special sub_80BCE1C setvar VAR_SPECIAL_4, 1 setvar VAR_SPECIAL_5, 0 - special sub_813556C + special StartSpecialBattle waitstate special ScrSpecial_HealPlayerParty release -- cgit v1.2.3 From 5c427e8afed44ed3720cf97d6748fa9e806c9b83 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Thu, 4 Jan 2018 14:37:52 -0800 Subject: Use song constants in scripts --- data/event_scripts.s | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 7d59b5234..b751a2e63 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -396,13 +396,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 @@ -458,12 +458,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 @@ -1566,11 +1566,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 +1588,7 @@ Std_ObtainDecoration_: @ 819FEE8 return Std_ObtainDecoration_Success: @ 819FF03 - playfanfare 0x172 + playfanfare BGM_FANFA4 message Message_ObtainedDecoration waitfanfare waitmessage @@ -1685,7 +1685,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 +1708,7 @@ EventScript_1A0033: end EventScript_1A0070: - playse 2 + playse SE_PC_LOGON msgbox UnknownString_81A0A54, 4 special PlayerPC waitstate @@ -1716,7 +1716,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 +1737,7 @@ EventScript_1A00B5: EventScript_1A00BE: setvar VAR_SPECIAL_4, 0 - playse 3 + playse SE_PC_OFF special DoPCTurnOffEffect releaseall end @@ -1745,7 +1745,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 @@ -2105,7 +2105,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 +2114,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 +2133,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 @@ -2547,7 +2547,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 +2560,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 +2582,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 @@ -3721,7 +3721,7 @@ EventScript_1A2DAA: EventScript_1A2DB8: closemessage - playse 9 + playse SE_KAIDAN setvar VAR_0x4097, 0 setflag FLAG_DECORATION_1 special sub_80BB8CC @@ -3741,7 +3741,7 @@ SecretBase_RedCave1_EventScript_1A2DDE:: @ 81A2DDE compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A2E08 closemessage - playse 9 + playse SE_KAIDAN special sub_80BC440 end @@ -3760,7 +3760,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 @@ -4883,7 +4883,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 +4894,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 -- cgit v1.2.3 From 88c42ade4bfb4a285444c327663e72c7f438adea Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Thu, 4 Jan 2018 14:52:51 -0800 Subject: Use weather constants in scripts (and giveegg) --- data/event_scripts.s | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index b751a2e63..8b0011893 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" @@ -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 -- cgit v1.2.3 From f0097860b0098ae465204152fb3a38d69422b27e Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Thu, 4 Jan 2018 16:19:02 -0800 Subject: Use MSGBOX_YESNO and YES/NO constants for yes/no message boxes --- data/event_scripts.s | 138 +++++++++++++++++++++++++-------------------------- 1 file changed, 69 insertions(+), 69 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 8b0011893..1ed419b52 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -440,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 @@ -492,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 @@ -502,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 @@ -1444,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 @@ -1664,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 @@ -1827,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 @@ -2193,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 @@ -2442,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 @@ -3632,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 @@ -3663,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 @@ -3694,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 @@ -3738,8 +3738,8 @@ 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 SE_KAIDAN @@ -3786,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 @@ -3950,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 @@ -3985,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 @@ -4020,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 @@ -4055,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 @@ -4090,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 @@ -4125,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 @@ -4160,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 @@ -4195,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 @@ -4230,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 @@ -4265,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 @@ -4395,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 @@ -4443,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 @@ -4499,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 @@ -4576,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 @@ -4673,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 -- cgit v1.2.3 From aed64560bc222e4ea5ccec266c0d77859a05eaac Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Fri, 5 Jan 2018 11:36:47 -0800 Subject: Add friendly macros for goto_if and call_if variants --- data/event_scripts.s | 157 +++++++++++++++++++++------------------------------ 1 file changed, 64 insertions(+), 93 deletions(-) (limited to 'data/event_scripts.s') diff --git a/data/event_scripts.s b/data/event_scripts.s index 1ed419b52..1c8cff8d6 100644 --- a/data/event_scripts.s +++ b/data/event_scripts.s @@ -410,8 +410,7 @@ gUnknown_0815F36C:: @ 815F36C EventScript_15F384: message UnknownString_81A3A87 waitmessage - checkflag FLAG_DECORATION_16 - goto_if_eq EventScript_15F3A0 + goto_if_set FLAG_DECORATION_16, EventScript_15F3A0 goto EventScript_15F3E2 end @@ -948,7 +947,7 @@ gUnknown_0819F818:: @ 819F818 waitmovement 0 specialvar RESULT, ScrSpecial_HasTrainerBeenFought compare RESULT, 0 - goto_if 5, EventScript_19F83F + goto_if_ne EventScript_19F83F special PlayTrainerEncounterMusic special sub_8082524 goto EventScript_19F8F2 @@ -962,10 +961,10 @@ gUnknown_0819F840:: @ 819F840 call EventScript_19F8E5 specialvar RESULT, ScrSpecial_HasTrainerBeenFought compare RESULT, 0 - goto_if 5, EventScript_19F877 + goto_if_ne EventScript_19F877 special CheckForAlivePartyMons compare RESULT, 0 - goto_if 5, EventScript_19F870 + goto_if_ne EventScript_19F870 special PlayTrainerEncounterMusic special sub_8082524 goto EventScript_19F8F2 @@ -1011,7 +1010,7 @@ gUnknown_0819F8AE:: @ 819F8AE goto_if_eq EventScript_19F8DD special CheckForAlivePartyMons compare RESULT, 0 - goto_if 5, EventScript_19F8DE + goto_if_ne EventScript_19F8DE special PlayTrainerEncounterMusic special sub_8082524 special ScrSpecial_ShowTrainerIntroSpeech @@ -1302,14 +1301,10 @@ EverGrandeCity_HallOfFame_EventScript_19FC13:: @ 819FC13 clearflag FLAG_HIDE_SS_TIDAL_SLATEPORT_HARBOR clearflag FLAG_HIDE_SS_TIDAL_LILYCOVE_HARBOR special sub_810FAA0 - checkflag FLAG_RECEIVED_SS_TICKET - call_if 0, EverGrandeCity_HallOfFame_EventScript_19FC62 - checkflag FLAG_LATIOS_OR_LATIAS_ROAMING - call_if 0, EverGrandeCity_HallOfFame_EventScript_19FC70 - checkflag FLAG_RECEIVED_BELDUM - call_if 0, EverGrandeCity_HallOfFame_EventScript_19FC5A - checkflag FLAG_RECEIVED_HM08 - call_if 0, EverGrandeCity_HallOfFame_EventScript_19FC5E + call_if_unset FLAG_RECEIVED_SS_TICKET, EverGrandeCity_HallOfFame_EventScript_19FC62 + call_if_unset FLAG_LATIOS_OR_LATIAS_ROAMING, EverGrandeCity_HallOfFame_EventScript_19FC70 + call_if_unset FLAG_RECEIVED_BELDUM, EverGrandeCity_HallOfFame_EventScript_19FC5A + call_if_unset FLAG_RECEIVED_HM08, EverGrandeCity_HallOfFame_EventScript_19FC5E return EverGrandeCity_HallOfFame_EventScript_19FC5A:: @ 819FC5A @@ -1337,10 +1332,8 @@ S_WhiteOut:: @ 819FC74 end EventScript_19FC84: - checkflag FLAG_RECEIVED_GO_GOGGLES - goto_if_eq Route101_EventScript_1A14DC - checkflag FLAG_DEFEATED_LAVARIDGE_GYM - goto_if 0, Route101_EventScript_1A14DC + goto_if_set FLAG_RECEIVED_GO_GOGGLES, Route101_EventScript_1A14DC + goto_if_unset FLAG_DEFEATED_LAVARIDGE_GYM, Route101_EventScript_1A14DC clearflag FLAG_HIDE_RIVAL_LAVARIDGE_1 setvar VAR_LAVARIDGE_RIVAL_STATE, 2 return @@ -1403,16 +1396,11 @@ PetalburgCity_PokemonCenter_1F_EventScript_19FD1B:: @ 819FD1B RustboroCity_PokemonCenter_1F_EventScript_19FD1B:: @ 819FD1B SlateportCity_PokemonCenter_1F_EventScript_19FD1B:: @ 819FD1B VerdanturfTown_PokemonCenter_1F_EventScript_19FD1B:: @ 819FD1B - checkflag FLAG_RECEIVED_POKENAV - goto_if 0, OldaleTown_PokemonCenter_1F_EventScript_1A14DC - checkflag FLAG_DEFEATED_PETALBURG_GYM - goto_if_eq OldaleTown_PokemonCenter_1F_EventScript_1A14DC - checkflag FLAG_HIDE_MR_BRINEY_BOAT_ROUTE104 - goto_if 0, OldaleTown_PokemonCenter_1F_EventScript_19FD49 - checkflag FLAG_HIDE_MR_BRINEY_DEWFORD_TOWN - goto_if 0, OldaleTown_PokemonCenter_1F_EventScript_19FD4F - checkflag FLAG_HIDE_MR_BRINEY_ROUTE109 - goto_if 0, OldaleTown_PokemonCenter_1F_EventScript_19FD55 + goto_if_unset FLAG_RECEIVED_POKENAV, OldaleTown_PokemonCenter_1F_EventScript_1A14DC + goto_if_set FLAG_DEFEATED_PETALBURG_GYM, OldaleTown_PokemonCenter_1F_EventScript_1A14DC + goto_if_unset FLAG_HIDE_MR_BRINEY_BOAT_ROUTE104, OldaleTown_PokemonCenter_1F_EventScript_19FD49 + goto_if_unset FLAG_HIDE_MR_BRINEY_DEWFORD_TOWN, OldaleTown_PokemonCenter_1F_EventScript_19FD4F + goto_if_unset FLAG_HIDE_MR_BRINEY_ROUTE109, OldaleTown_PokemonCenter_1F_EventScript_19FD55 return OldaleTown_PokemonCenter_1F_EventScript_19FD49:: @ 819FD49 @@ -1461,8 +1449,7 @@ do_heal_party:: @ 819FD7C applymovement VAR_SPECIAL_B, OldaleTown_PokemonCenter_1F_Movement_1A0845 waitmovement 0 special ScrSpecial_HealPlayerParty - checkflag FLAG_POKERUS_EXPLAINED - goto_if 0, OldaleTown_PokemonCenter_1F_EventScript_19FDCE + goto_if_unset FLAG_POKERUS_EXPLAINED, OldaleTown_PokemonCenter_1F_EventScript_19FDCE goto OldaleTown_PokemonCenter_1F_EventScript_19FDB0 end @@ -1510,9 +1497,9 @@ Std_ObtainItem_: @ 819FE07 checkitemtype VAR_SPECIAL_0 call GetItem_HandlePocket compare VAR_SPECIAL_7, 0x1 - call_if 1, Std_ObtainItem_Success + call_if_eq Std_ObtainItem_Success compare VAR_SPECIAL_7, 0x0 - call_if 1, Std_ObtainItem_Fail + call_if_eq Std_ObtainItem_Fail return GetItem_HandlePocket: @@ -1527,31 +1514,31 @@ GetItem_HandlePocket: GetItem_HandlePocket_Items: bufferstdstring 2, 0xE compare VAR_SPECIAL_7, 1 - call_if 1, PlayGetItemFanfare + call_if_eq PlayGetItemFanfare return GetItem_HandlePocket_KeyItems: bufferstdstring 2, 0xF compare VAR_SPECIAL_7, 1 - call_if 1, PlayGetItemFanfare + call_if_eq PlayGetItemFanfare return GetItem_HandlePocket_PokeBalls: bufferstdstring 2, 0x10 compare VAR_SPECIAL_7, 1 - call_if 1, PlayGetItemFanfare + call_if_eq PlayGetItemFanfare return GetItem_HandlePocket_TMsHMs: bufferstdstring 2, 0x11 compare VAR_SPECIAL_7, 1 - call_if 1, PlayGetTMHMFanfare + call_if_eq PlayGetTMHMFanfare return GetItem_HandlePocket_Berries: bufferstdstring 2, 0x12 compare VAR_SPECIAL_7, 1 - call_if 1, PlayGetItemFanfare + call_if_eq PlayGetItemFanfare return Std_ObtainItem_Success: @ 819FEB7 @@ -1583,9 +1570,9 @@ Std_ObtainDecoration: @ 819FEDA Std_ObtainDecoration_: @ 819FEE8 bufferdecorationname 1, VAR_SPECIAL_0 compare VAR_SPECIAL_7, 1 - call_if 1, Std_ObtainDecoration_Success + call_if_eq Std_ObtainDecoration_Success compare VAR_SPECIAL_7, 0 - call_if 1, Std_ObtainDecoration_Fail + call_if_eq Std_ObtainDecoration_Fail return Std_ObtainDecoration_Success: @ 819FF03 @@ -1611,9 +1598,9 @@ Std_FindItem: @ 819FF21 checkitemtype VAR_SPECIAL_0 call GetItem_HandlePocket compare VAR_SPECIAL_7, 1 - call_if 1, Std_FindItem_Success + call_if_eq Std_FindItem_Success compare VAR_SPECIAL_7, 0 - call_if 1, Std_FindItem_Fail + call_if_eq Std_FindItem_Fail release return @@ -1718,10 +1705,8 @@ EventScript_1A0070: EventScript_1A0085: playse SE_PC_LOGON - checkflag FLAG_SYS_PC_LANETTE - call_if 0, EventScript_1A00AC - checkflag FLAG_SYS_PC_LANETTE - call_if 1, EventScript_1A00B5 + call_if_unset FLAG_SYS_PC_LANETTE, EventScript_1A00AC + call_if_set FLAG_SYS_PC_LANETTE, EventScript_1A00B5 msgbox UnknownString_81A0A35, 4 special ShowPokemonStorageSystem waitstate @@ -1744,8 +1729,7 @@ EventScript_1A00BE: end EventScript_1A00CB: - checkflag FLAG_SYS_GAME_CLEAR - goto_if 0, EventScript_1A00BE + goto_if_unset FLAG_SYS_GAME_CLEAR, EventScript_1A00BE playse SE_PC_LOGON special AccessHallOfFamePC waitstate @@ -2150,21 +2134,21 @@ Route103_EventScript_1A02F4:: @ 81A02F4 compare VAR_PETALBURG_GYM_STATE, 0 goto_if_eq Route101_EventScript_1A14DC compare VAR_BIRCH_STATE, 0 - call_if 1, Route101_EventScript_1A0358 + call_if_eq Route101_EventScript_1A0358 compare VAR_BIRCH_STATE, 1 - call_if 1, Route101_EventScript_1A0358 + call_if_eq Route101_EventScript_1A0358 compare VAR_BIRCH_STATE, 2 - call_if 1, Route101_EventScript_1A0365 + call_if_eq Route101_EventScript_1A0365 compare VAR_BIRCH_STATE, 3 - call_if 1, Route101_EventScript_1A0365 + call_if_eq Route101_EventScript_1A0365 compare VAR_BIRCH_STATE, 4 - call_if 1, Route101_EventScript_1A0372 + call_if_eq Route101_EventScript_1A0372 compare VAR_BIRCH_STATE, 5 - call_if 1, Route101_EventScript_1A0372 + call_if_eq Route101_EventScript_1A0372 compare VAR_BIRCH_STATE, 6 - call_if 1, Route101_EventScript_1A0358 + call_if_eq Route101_EventScript_1A0358 compare VAR_BIRCH_STATE, 7 - call_if 1, Route101_EventScript_1A0358 + call_if_eq Route101_EventScript_1A0358 return Route101_EventScript_1A0358:: @ 81A0358 @@ -2291,9 +2275,9 @@ Movement_1A047A: BattleTower_Outside_EventScript_1A047C:: @ 81A047C SouthernIsland_Exterior_EventScript_1A047C:: @ 81A047C compare FACING, 1 - call_if 1, BattleTower_Outside_EventScript_160B2F + call_if_eq BattleTower_Outside_EventScript_160B2F compare FACING, 3 - call_if 1, BattleTower_Outside_EventScript_160B3A + call_if_eq BattleTower_Outside_EventScript_160B3A delay 30 hideobjectat 255, MAP_PETALBURG_CITY call BattleTower_Outside_EventScript_1A040E @@ -2461,19 +2445,19 @@ Route119_EventScript_1A05C3:: @ 81A05C3 waitmoncry setwildbattle SPECIES_KECLEON, 30, ITEM_NONE compare VAR_SPECIAL_4, 1 - call_if 1, Route119_EventScript_1A0646 + call_if_eq Route119_EventScript_1A0646 compare VAR_SPECIAL_4, 2 - call_if 1, Route119_EventScript_1A064A + call_if_eq Route119_EventScript_1A064A compare VAR_SPECIAL_4, 3 - call_if 1, Route119_EventScript_1A064E + call_if_eq Route119_EventScript_1A064E compare VAR_SPECIAL_4, 4 - call_if 1, Route119_EventScript_1A0652 + call_if_eq Route119_EventScript_1A0652 compare VAR_SPECIAL_4, 5 - call_if 1, Route119_EventScript_1A0656 + call_if_eq Route119_EventScript_1A0656 compare VAR_SPECIAL_4, 6 - call_if 1, Route119_EventScript_1A065A + call_if_eq Route119_EventScript_1A065A compare VAR_SPECIAL_4, 7 - call_if 1, Route119_EventScript_1A065E + call_if_eq Route119_EventScript_1A065E setflag FLAG_SYS_CTRL_OBJ_DELETE dowildbattle clearflag FLAG_SYS_CTRL_OBJ_DELETE @@ -3944,8 +3928,7 @@ SecretBase_YellowCave4_EventScript_1A2FC0:: @ 81A2FC0 end SecretBase_RedCave1_EventScript_1A3032:: @ 81A3032 - checkflag FLAG_SYS_GAME_CLEAR - goto_if 0, SecretBase_RedCave1_EventScript_1A3086 + goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_1A3086 compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A30A5 lock @@ -3979,8 +3962,7 @@ SecretBase_RedCave1_EventScript_1A30A5:: @ 81A30A5 end SecretBase_RedCave1_EventScript_1A30AE:: @ 81A30AE - checkflag FLAG_SYS_GAME_CLEAR - goto_if 0, SecretBase_RedCave1_EventScript_1A3102 + goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_1A3102 compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3121 lock @@ -4014,8 +3996,7 @@ SecretBase_RedCave1_EventScript_1A3121:: @ 81A3121 end SecretBase_RedCave1_EventScript_1A312A:: @ 81A312A - checkflag FLAG_SYS_GAME_CLEAR - goto_if 0, SecretBase_RedCave1_EventScript_1A317E + goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_1A317E compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A319D lock @@ -4049,8 +4030,7 @@ SecretBase_RedCave1_EventScript_1A319D:: @ 81A319D end SecretBase_RedCave1_EventScript_1A31A6:: @ 81A31A6 - checkflag FLAG_SYS_GAME_CLEAR - goto_if 0, SecretBase_RedCave1_EventScript_1A31FA + goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_1A31FA compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3219 lock @@ -4084,8 +4064,7 @@ SecretBase_RedCave1_EventScript_1A3219:: @ 81A3219 end SecretBase_RedCave1_EventScript_1A3222:: @ 81A3222 - checkflag FLAG_SYS_GAME_CLEAR - goto_if 0, SecretBase_RedCave1_EventScript_1A3276 + goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_1A3276 compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3295 lock @@ -4119,8 +4098,7 @@ SecretBase_RedCave1_EventScript_1A3295:: @ 81A3295 end SecretBase_RedCave1_EventScript_1A329E:: @ 81A329E - checkflag FLAG_SYS_GAME_CLEAR - goto_if 0, SecretBase_RedCave1_EventScript_1A32F2 + goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_1A32F2 compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3311 lock @@ -4154,8 +4132,7 @@ SecretBase_RedCave1_EventScript_1A3311:: @ 81A3311 end SecretBase_RedCave1_EventScript_1A331A:: @ 81A331A - checkflag FLAG_SYS_GAME_CLEAR - goto_if 0, SecretBase_RedCave1_EventScript_1A336E + goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_1A336E compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A338D lock @@ -4189,8 +4166,7 @@ SecretBase_RedCave1_EventScript_1A338D:: @ 81A338D end SecretBase_RedCave1_EventScript_1A3396:: @ 81A3396 - checkflag FLAG_SYS_GAME_CLEAR - goto_if 0, SecretBase_RedCave1_EventScript_1A33EA + goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_1A33EA compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3409 lock @@ -4224,8 +4200,7 @@ SecretBase_RedCave1_EventScript_1A3409:: @ 81A3409 end SecretBase_RedCave1_EventScript_1A3412:: @ 81A3412 - checkflag FLAG_SYS_GAME_CLEAR - goto_if 0, SecretBase_RedCave1_EventScript_1A3466 + goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_1A3466 compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3485 lock @@ -4259,8 +4234,7 @@ SecretBase_RedCave1_EventScript_1A3485:: @ 81A3485 end SecretBase_RedCave1_EventScript_1A348E:: @ 81A348E - checkflag FLAG_SYS_GAME_CLEAR - goto_if 0, SecretBase_RedCave1_EventScript_1A34E2 + goto_if_unset FLAG_SYS_GAME_CLEAR, SecretBase_RedCave1_EventScript_1A34E2 compare RESULT, 1 goto_if_eq SecretBase_RedCave1_EventScript_1A3501 lock @@ -4440,8 +4414,7 @@ SlateportCity_OceanicMuseum_1F_EventScript_1ADEE0:: @ 81ADEE0 compare RESULT, 1 goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF96 copyvar VAR_SPECIAL_9, VAR_SPECIAL_6 - checkflag FLAG_OCEANIC_MUSEUM_MET_REPORTER - goto_if_eq SlateportCity_OceanicMuseum_1F_EventScript_1ADF25 + goto_if_set FLAG_OCEANIC_MUSEUM_MET_REPORTER, SlateportCity_OceanicMuseum_1F_EventScript_1ADF25 setflag FLAG_OCEANIC_MUSEUM_MET_REPORTER msgbox SlateportCity_OceanicMuseum_1F_Text_1A927F, MSGBOX_YESNO compare RESULT, YES @@ -4569,8 +4542,7 @@ SlateportCity_ContestLobby_EventScript_1AE0B6:: @ 81AE0B6 VerdanturfTown_ContestLobby_EventScript_1AE0B6:: @ 81AE0B6 lock faceplayer - checkflag FLAG_TEMP_2 - goto_if_eq FallarborTown_ContestLobby_EventScript_1AE17E + goto_if_set FLAG_TEMP_2, FallarborTown_ContestLobby_EventScript_1AE17E setvar VAR_SPECIAL_5, 6 special InterviewBefore compare RESULT, 1 @@ -4630,7 +4602,7 @@ LilycoveCity_ContestLobby_EventScript_1AE188:: @ 81AE188 SlateportCity_ContestLobby_EventScript_1AE188:: @ 81AE188 VerdanturfTown_ContestLobby_EventScript_1AE188:: @ 81AE188 compare VAR_LINK_CONTEST_ROOM_STATE, 2 - goto_if 5, FallarborTown_ContestLobby_EventScript_1AE1FE + goto_if_ne FallarborTown_ContestLobby_EventScript_1AE1FE setvar VAR_SPECIAL_5, 6 special InterviewBefore compare RESULT, 1 @@ -4666,8 +4638,7 @@ FallarborTown_ContestLobby_EventScript_1AE1FE:: @ 81AE1FE BattleTower_Lobby_EventScript_1AE1FF:: @ 81AE1FF lock faceplayer - checkflag FLAG_TEMP_2 - goto_if_eq BattleTower_Lobby_EventScript_1AE2E3 + goto_if_set FLAG_TEMP_2, BattleTower_Lobby_EventScript_1AE2E3 setvar VAR_SPECIAL_5, 7 special InterviewBefore compare RESULT, 1 @@ -4686,9 +4657,9 @@ BattleTower_Lobby_EventScript_1AE241:: @ 81AE241 multichoice 19, 8, 45, 1 copyvar VAR_SPECIAL_8, RESULT compare RESULT, 0 - call_if 1, BattleTower_Lobby_EventScript_1AE2A1 + call_if_eq BattleTower_Lobby_EventScript_1AE2A1 compare RESULT, 1 - call_if 1, BattleTower_Lobby_EventScript_1AE2AA + call_if_eq BattleTower_Lobby_EventScript_1AE2AA msgbox BattleTower_Lobby_Text_1A79EB, 4 setvar VAR_SPECIAL_4, 12 copyvar VAR_SPECIAL_5, VAR_SPECIAL_9 -- cgit v1.2.3