summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/battle_ai_scripts.s255
-rw-r--r--data/battle_anim_scripts.s30
-rw-r--r--data/battle_scripts_1.s456
-rw-r--r--data/event_scripts.s2
-rw-r--r--data/maps/BattleFrontier_BattlePyramidFloor/scripts.inc2
-rw-r--r--data/maps/BattleFrontier_BattlePyramidTop/scripts.inc6
-rw-r--r--data/maps/BirthIsland_Exterior/scripts.inc2
-rw-r--r--data/maps/EverGrandeCity_ChampionsRoom/scripts.inc6
-rw-r--r--data/maps/EverGrandeCity_DrakesRoom/scripts.inc2
-rw-r--r--data/maps/EverGrandeCity_GlaciasRoom/scripts.inc2
-rw-r--r--data/maps/EverGrandeCity_PhoebesRoom/scripts.inc2
-rw-r--r--data/maps/EverGrandeCity_SidneysRoom/scripts.inc2
-rw-r--r--data/maps/LavaridgeTown/scripts.inc4
-rw-r--r--data/maps/LilycoveCity/scripts.inc6
-rw-r--r--data/maps/LilycoveCity_ContestLobby/scripts.inc18
-rw-r--r--data/maps/LilycoveCity_LilycoveMuseum_2F/scripts.inc12
-rw-r--r--data/maps/LilycoveCity_PokemonTrainerFanClub/scripts.inc2
-rw-r--r--data/maps/LittlerootTown_BrendansHouse_1F/scripts.inc2
-rw-r--r--data/maps/LittlerootTown_BrendansHouse_2F/scripts.inc2
-rw-r--r--data/maps/LittlerootTown_MaysHouse_1F/scripts.inc2
-rw-r--r--data/maps/LittlerootTown_MaysHouse_2F/scripts.inc2
-rw-r--r--data/maps/MagmaHideout_2F_2R/map.json2
-rw-r--r--data/maps/MagmaHideout_4F/map.json2
-rw-r--r--data/maps/MagmaHideout_4F/scripts.inc2
-rw-r--r--data/maps/MeteorFalls_1F_1R/scripts.inc4
-rw-r--r--data/maps/MtChimney/scripts.inc2
-rw-r--r--data/maps/MtPyre_Summit/scripts.inc2
-rw-r--r--data/maps/OldaleTown/scripts.inc2
-rw-r--r--data/maps/PetalburgCity/scripts.inc2
-rw-r--r--data/maps/PetalburgCity_Gym/scripts.inc4
-rw-r--r--data/maps/PetalburgWoods/scripts.inc4
-rw-r--r--data/maps/Route101/scripts.inc2
-rw-r--r--data/maps/Route103/scripts.inc4
-rw-r--r--data/maps/Route104/scripts.inc4
-rw-r--r--data/maps/Route110/scripts.inc4
-rw-r--r--data/maps/Route119/scripts.inc4
-rw-r--r--data/maps/Route121/scripts.inc2
-rw-r--r--data/maps/RustboroCity/scripts.inc6
-rw-r--r--data/maps/RustboroCity_DevonCorp_3F/scripts.inc2
-rw-r--r--data/maps/RusturfTunnel/scripts.inc2
-rw-r--r--data/maps/SeafloorCavern_Room9/scripts.inc2
-rw-r--r--data/maps/SlateportCity/scripts.inc2
-rw-r--r--data/maps/SlateportCity_OceanicMuseum_2F/scripts.inc2
-rw-r--r--data/maps/map_groups.json138
-rw-r--r--data/script_cmd_table.inc2
-rw-r--r--data/scripts/contest_hall.inc2
-rw-r--r--data/scripts/gabby_and_ty.inc6
-rw-r--r--data/scripts/item_ball_scripts.inc4
-rw-r--r--data/scripts/players_house.inc4
-rw-r--r--data/scripts/tv.inc8
-rw-r--r--data/specials.inc20
-rw-r--r--data/text/berry_descriptions.inc258
-rw-r--r--data/text/contest_painting.inc2
-rw-r--r--data/text/tv.inc26
54 files changed, 434 insertions, 915 deletions
diff --git a/data/battle_ai_scripts.s b/data/battle_ai_scripts.s
index 56be92c5e..4867f4261 100644
--- a/data/battle_ai_scripts.s
+++ b/data/battle_ai_scripts.s
@@ -7,6 +7,7 @@
#include "constants/hold_effects.h"
#include "constants/pokemon.h"
.include "asm/macros/battle_ai_script.inc"
+ .include "constants/constants.inc"
.section script_data, "aw", %progbits
@@ -17,11 +18,11 @@ gBattleAI_ScriptsTable:: @ 82DBEF8
.4byte AI_CheckViability @ AI_SCRIPT_CHECK_VIABILITY
.4byte AI_SetupFirstTurn @ AI_SCRIPT_SETUP_FIRST_TURN
.4byte AI_Risky @ AI_SCRIPT_RISKY
- .4byte AI_PreferStrongestMove @ AI_SCRIPT_PREFER_STRONGEST_MOVE
+ .4byte AI_PreferPowerExtremes @ AI_SCRIPT_PREFER_POWER_EXTREMES
.4byte AI_PreferBatonPass @ AI_SCRIPT_PREFER_BATON_PASS
.4byte AI_DoubleBattle @ AI_SCRIPT_DOUBLE_BATTLE
.4byte AI_HPAware @ AI_SCRIPT_HP_AWARE
- .4byte AI_Unknown @ AI_SCRIPT_UNKNOWN
+ .4byte AI_TrySunnyDayStart @ AI_SCRIPT_TRY_SUNNY_DAY_START
.4byte AI_Ret
.4byte AI_Ret
.4byte AI_Ret
@@ -50,8 +51,7 @@ AI_CheckBadMove:
if_move MOVE_FISSURE, AI_CBM_CheckIfNegatesType
if_move MOVE_HORN_DRILL, AI_CBM_CheckIfNegatesType
get_how_powerful_move_is
- if_equal 0, AI_CheckBadMove_CheckSoundproof
-
+ if_equal MOVE_POWER_OTHER, AI_CheckBadMove_CheckSoundproof
AI_CBM_CheckIfNegatesType: @ 82DBF92
if_type_effectiveness AI_EFFECTIVENESS_x0, Score_Minus10
get_ability AI_TARGET
@@ -84,11 +84,9 @@ CheckIfWonderGuardCancelsMove: @ 82DBFE4
CheckIfLevitateCancelsGroundMove: @ 82DBFEF
get_curr_move_type
if_equal_ TYPE_GROUND, Score_Minus10
-
AI_CheckBadMove_CheckSoundproof_: @ 82DBFF7
get_how_powerful_move_is
- if_equal 0, AI_CheckBadMove_CheckSoundproof
-
+ if_equal MOVE_POWER_OTHER, AI_CheckBadMove_CheckSoundproof @ Pointless check
AI_CheckBadMove_CheckSoundproof: @ 82DBFFE
get_ability AI_TARGET
if_not_equal ABILITY_SOUNDPROOF, AI_CheckBadMove_CheckEffect
@@ -101,7 +99,6 @@ AI_CheckBadMove_CheckSoundproof: @ 82DBFFE
if_move MOVE_UPROAR, Score_Minus10
if_move MOVE_METAL_SOUND, Score_Minus10
if_move MOVE_GRASS_WHISTLE, Score_Minus10
-
AI_CheckBadMove_CheckEffect: @ 82DC045
if_effect EFFECT_SLEEP, AI_CBM_Sleep
if_effect EFFECT_EXPLOSION, AI_CBM_Explosion
@@ -247,7 +244,6 @@ AI_CBM_DreamEater: @ 82DC330
AI_CBM_BellyDrum: @ 82DC341
if_hp_less_than AI_USER, 51, Score_Minus10
-
AI_CBM_AttackUp: @ 82DC348
if_stat_level_equal AI_USER, STAT_ATK, MAX_STAT_STAGE, Score_Minus10
end
@@ -307,7 +303,6 @@ AI_CBM_AccDown: @ 82DC3D9
AI_CBM_EvasionDown: @ 82DC3EE
if_stat_level_equal AI_TARGET, STAT_EVASION, MIN_STAT_STAGE, Score_Minus10
-
CheckIfAbilityBlocksStatChange: @ 82DC3F6
get_ability AI_TARGET
if_equal ABILITY_CLEAR_BODY, Score_Minus10
@@ -368,7 +363,6 @@ AI_CBM_OneHitKO: @ 82DC4D0
AI_CBM_Magnitude: @ 82DC4E5
get_ability AI_TARGET
if_equal ABILITY_LEVITATE, Score_Minus10
-
AI_CBM_HighRiskForDamage: @ 82DC4ED
if_type_effectiveness AI_EFFECTIVENESS_x0, Score_Minus10
get_ability AI_TARGET
@@ -486,7 +480,6 @@ AI_CBM_Safeguard: @ 82DC635
AI_CBM_Memento: @ 82DC640
if_stat_level_equal AI_TARGET, STAT_ATK, MIN_STAT_STAGE, Score_Minus10
if_stat_level_equal AI_TARGET, STAT_SPATK, MIN_STAT_STAGE, Score_Minus8
-
AI_CBM_BatonPass: @ 82DC650
count_usable_party_mons AI_USER
if_equal 0, Score_Minus10
@@ -510,7 +503,7 @@ AI_CBM_FutureSight: @ 82DC669
AI_CBM_FakeOut: @ 82DC680
is_first_turn_for AI_USER
- if_equal 0, Score_Minus10
+ if_equal FALSE, Score_Minus10
end
AI_CBM_Stockpile: @ 82DC689
@@ -558,7 +551,7 @@ AI_CBM_Ingrain: @ 82DC6F4
AI_CBM_Recycle: @ 82DC6FF
get_used_held_item AI_USER
- if_equal 0, Score_Minus10
+ if_equal ITEM_NONE, Score_Minus10
end
AI_CBM_Imprison: @ 82DC708
@@ -788,7 +781,6 @@ AI_CV_Sleep: @ 82DCA92
AI_CV_SleepEncourageSlpDamage: @ 82DCAA5
if_random_less_than 128, AI_CV_Sleep_End
score +1
-
AI_CV_Sleep_End: @ 82DCAAD
end
@@ -800,7 +792,6 @@ AI_CV_Absorb: @ 82DCAAE
AI_CV_AbsorbEncourageMaybe: @ 82DCABF
if_random_less_than 50, AI_CV_Absorb_End
score -3
-
AI_CV_Absorb_End: @ 82DCAC7
end
@@ -810,7 +801,6 @@ AI_CV_SelfKO: @ 82DCAC8
if_stat_level_less_than AI_TARGET, STAT_EVASION, 10, AI_CV_SelfKO_Encourage1
if_random_less_than 128, AI_CV_SelfKO_Encourage1
score -1
-
AI_CV_SelfKO_Encourage1: @ 82DCAE2
if_hp_less_than AI_USER, 80, AI_CV_SelfKO_Encourage2
if_target_faster AI_CV_SelfKO_Encourage2
@@ -821,7 +811,6 @@ AI_CV_SelfKO_Encourage2: @ 82DCAFA
if_hp_more_than AI_USER, 50, AI_CV_SelfKO_Encourage4
if_random_less_than 128, AI_CV_SelfKO_Encourage3
score +1
-
AI_CV_SelfKO_Encourage3: @ 82DCB09
if_hp_more_than AI_USER, 30, AI_CV_SelfKO_End
if_random_less_than 50, AI_CV_SelfKO_End
@@ -831,7 +820,6 @@ AI_CV_SelfKO_Encourage3: @ 82DCB09
AI_CV_SelfKO_Encourage4: @ 82DCB1D
if_random_less_than 50, AI_CV_SelfKO_End
score -1
-
AI_CV_SelfKO_End: @ 82DCB25
end
@@ -842,7 +830,6 @@ AI_CV_DreamEater: @ 82DCB26
AI_CV_DreamEater_ScoreDown1: @ 82DCB37
score -1
-
AI_CV_DreamEater_End: @ 82DCB39
end
@@ -859,7 +846,6 @@ AI_CV_MirrorMove2: @ 82DCB58
if_in_hwords AI_CV_MirrorMove_EncouragedMovesToMirror, AI_CV_MirrorMove_End
if_random_less_than 80, AI_CV_MirrorMove_End
score -1
-
AI_CV_MirrorMove_End: @ 82DCB6B
end
@@ -915,15 +901,12 @@ AI_CV_AttackUp2: @ 82DCBD1
if_hp_not_equal AI_USER, 100, AI_CV_AttackUp3
if_random_less_than 128, AI_CV_AttackUp3
score +2
-
AI_CV_AttackUp3: @ 82DCBE0
if_hp_more_than AI_USER, 70, AI_CV_AttackUp_End
if_hp_less_than AI_USER, 40, AI_CV_AttackUp_ScoreDown2
if_random_less_than 40, AI_CV_AttackUp_End
-
AI_CV_AttackUp_ScoreDown2: @ 82DCBF4
score -2
-
AI_CV_AttackUp_End: @ 82DCBF6
end
@@ -937,11 +920,9 @@ AI_CV_DefenseUp2: @ 82DCC0C
if_hp_not_equal AI_USER, 100, AI_CV_DefenseUp3
if_random_less_than 128, AI_CV_DefenseUp3
score +2
-
AI_CV_DefenseUp3: @ 82DCC1B
if_hp_less_than AI_USER, 70, AI_CV_DefenseUp4
if_random_less_than 200, AI_CV_DefenseUp_End
-
AI_CV_DefenseUp4: @ 82DCC28
if_hp_less_than AI_USER, 40, AI_CV_DefenseUp_ScoreDown2
get_last_used_bank_move AI_TARGET
@@ -951,13 +932,10 @@ AI_CV_DefenseUp4: @ 82DCC28
get_move_type_from_result
if_not_in_bytes AI_CV_DefenseUp_PhysicalTypes, AI_CV_DefenseUp_ScoreDown2
if_random_less_than 60, AI_CV_DefenseUp_End
-
AI_CV_DefenseUp5: @ 82DCC4A
if_random_less_than 60, AI_CV_DefenseUp_End
-
AI_CV_DefenseUp_ScoreDown2: @ 82DCC50
score -2
-
AI_CV_DefenseUp_End: @ 82DCC52
end
@@ -981,7 +959,6 @@ AI_CV_SpeedUp: @ 82DCC5D
AI_CV_SpeedUp2: @ 82DCC6A
if_random_less_than 70, AI_CV_SpeedUp_End
score +3
-
AI_CV_SpeedUp_End: @ 82DCC72
end
@@ -995,15 +972,12 @@ AI_CV_SpAtkUp2: @ 82DCC88
if_hp_not_equal AI_USER, 100, AI_CV_SpAtkUp3
if_random_less_than 128, AI_CV_SpAtkUp3
score +2
-
AI_CV_SpAtkUp3: @ 82DCC97
if_hp_more_than AI_USER, 70, AI_CV_SpAtkUp_End
if_hp_less_than AI_USER, 40, AI_CV_SpAtkUp_ScoreDown2
if_random_less_than 70, AI_CV_SpAtkUp_End
-
AI_CV_SpAtkUp_ScoreDown2: @ 82DCCAB
score -2
-
AI_CV_SpAtkUp_End: @ 82DCCAD
end
@@ -1017,11 +991,9 @@ AI_CV_SpDefUp2: @ 82DCCC3
if_hp_not_equal AI_USER, 100, AI_CV_SpDefUp3
if_random_less_than 128, AI_CV_SpDefUp3
score +2
-
AI_CV_SpDefUp3: @ 82DCCD2
if_hp_less_than AI_USER, 70, AI_CV_SpDefUp4
if_random_less_than 200, AI_CV_SpDefUp_End
-
AI_CV_SpDefUp4: @ 82DCCDF
if_hp_less_than AI_USER, 40, AI_CV_SpDefUp_ScoreDown2
get_last_used_bank_move AI_TARGET
@@ -1031,13 +1003,10 @@ AI_CV_SpDefUp4: @ 82DCCDF
get_move_type_from_result
if_in_bytes AI_CV_SpDefUp_PhysicalTypes, AI_CV_SpDefUp_ScoreDown2
if_random_less_than 60, AI_CV_SpDefUp_End
-
AI_CV_SpDefUp5: @ 82DCD01
if_random_less_than 60, AI_CV_SpDefUp_End
-
AI_CV_SpDefUp_ScoreDown2: @ 82DCD07
score -2
-
AI_CV_SpDefUp_End: @ 82DCD09
end
@@ -1057,11 +1026,9 @@ AI_CV_AccuracyUp:
if_stat_level_less_than AI_USER, STAT_ACC, 9, AI_CV_AccuracyUp2
if_random_less_than 50, AI_CV_AccuracyUp2
score -2
-
AI_CV_AccuracyUp2:
if_hp_more_than AI_USER, 70, AI_CV_AccuracyUp_End
score -2
-
AI_CV_AccuracyUp_End:
end
@@ -1069,46 +1036,37 @@ AI_CV_EvasionUp:
if_hp_less_than AI_USER, 90, AI_CV_EvasionUp2
if_random_less_than 100, AI_CV_EvasionUp2
score +3
-
AI_CV_EvasionUp2:
if_stat_level_less_than AI_USER, STAT_EVASION, 9, AI_CV_EvasionUp3
if_random_less_than 128, AI_CV_EvasionUp3
score -1
-
AI_CV_EvasionUp3:
if_not_status AI_TARGET, STATUS1_TOXIC_POISON, AI_CV_EvasionUp5
if_hp_more_than AI_USER, 50, AI_CV_EvasionUp4
if_random_less_than 80, AI_CV_EvasionUp5
-
AI_CV_EvasionUp4:
if_random_less_than 50, AI_CV_EvasionUp5
score +3
-
AI_CV_EvasionUp5:
if_not_status3 AI_TARGET, STATUS3_LEECHSEED, AI_CV_EvasionUp6
if_random_less_than 70, AI_CV_EvasionUp6
score +3
-
AI_CV_EvasionUp6:
if_not_status3 AI_USER, STATUS3_ROOTED, AI_CV_EvasionUp7
if_random_less_than 128, AI_CV_EvasionUp7
score +2
-
AI_CV_EvasionUp7:
if_not_status2 AI_TARGET, STATUS2_CURSED, AI_CV_EvasionUp8
if_random_less_than 70, AI_CV_EvasionUp8
score +3
-
AI_CV_EvasionUp8:
if_hp_more_than AI_USER, 70, AI_CV_EvasionUp_End
if_stat_level_equal AI_USER, STAT_EVASION, DEFAULT_STAT_STAGE, AI_CV_EvasionUp_End
if_hp_less_than AI_USER, 40, AI_CV_EvasionUp_ScoreDown2
if_hp_less_than AI_TARGET, 40, AI_CV_EvasionUp_ScoreDown2
if_random_less_than 70, AI_CV_EvasionUp_End
-
AI_CV_EvasionUp_ScoreDown2:
score -2
-
AI_CV_EvasionUp_End:
end
@@ -1121,11 +1079,9 @@ AI_CV_AlwaysHit:
AI_CV_AlwaysHit_ScoreUp1:
score +1
-
AI_CV_AlwaysHit2:
if_random_less_than 100, AI_CV_AlwaysHit_End
score +1
-
AI_CV_AlwaysHit_End:
end
@@ -1134,16 +1090,13 @@ AI_CV_AttackDown: @ 82DCDF8
score -1
if_hp_more_than AI_USER, 90, AI_CV_AttackDown2
score -1
-
AI_CV_AttackDown2: @ 82DCE0B
if_stat_level_more_than AI_TARGET, STAT_ATK, 3, AI_CV_AttackDown3
if_random_less_than 50, AI_CV_AttackDown3
score -2
-
AI_CV_AttackDown3: @ 82DCE1B
if_hp_more_than AI_TARGET, 70, AI_CV_AttackDown4
score -2
-
AI_CV_AttackDown4: @ 82DCE24
get_target_type1
if_in_bytes AI_CV_AttackDown_UnknownTypeList, AI_CV_AttackDown_End
@@ -1151,7 +1104,6 @@ AI_CV_AttackDown4: @ 82DCE24
if_in_bytes AI_CV_AttackDown_UnknownTypeList, AI_CV_AttackDown_End
if_random_less_than 50, AI_CV_AttackDown_End
score -2
-
AI_CV_AttackDown_End: @ 82DCE42
end
@@ -1167,15 +1119,12 @@ AI_CV_AttackDown_UnknownTypeList:
AI_CV_DefenseDown:
if_hp_less_than AI_USER, 70, AI_CV_DefenseDown2
if_stat_level_more_than AI_TARGET, STAT_DEF, 3, AI_CV_DefenseDown3
-
AI_CV_DefenseDown2:
if_random_less_than 50, AI_CV_DefenseDown3
score -2
-
AI_CV_DefenseDown3:
if_hp_more_than AI_TARGET, 70, AI_CV_DefenseDown_End
score -2
-
AI_CV_DefenseDown_End:
end
@@ -1193,7 +1142,6 @@ AI_CV_SpeedDown: @ 82DCE81
AI_CV_SpeedDown2: @ 82DCE8E
if_random_less_than 70, AI_CV_SpeedDown_End
score +2
-
AI_CV_SpeedDown_End: @ 82DCE96
end
@@ -1202,16 +1150,13 @@ AI_CV_SpAtkDown:
score -1
if_hp_more_than AI_USER, 90, AI_CV_SpAtkDown2
score -1
-
AI_CV_SpAtkDown2:
if_stat_level_more_than AI_TARGET, STAT_SPATK, 3, AI_CV_SpAtkDown3
if_random_less_than 50, AI_CV_SpAtkDown3
score -2
-
AI_CV_SpAtkDown3:
if_hp_more_than AI_TARGET, 70, AI_CV_SpAtkDown4
score -2
-
AI_CV_SpAtkDown4:
get_target_type1
if_in_bytes AI_CV_SpAtkDown_SpecialTypeList, AI_CV_SpAtkDown_End
@@ -1219,7 +1164,6 @@ AI_CV_SpAtkDown4:
if_in_bytes AI_CV_SpAtkDown_SpecialTypeList, AI_CV_SpAtkDown_End
if_random_less_than 50, AI_CV_SpAtkDown_End
score -2
-
AI_CV_SpAtkDown_End: @ 82DCEE1
end
@@ -1237,76 +1181,61 @@ AI_CV_SpAtkDown_SpecialTypeList: @ 82DCEE2
AI_CV_SpDefDown: @ 82DCEEB
if_hp_less_than AI_USER, 70, AI_CV_SpDefDown2
if_stat_level_more_than AI_TARGET, STAT_SPDEF, 3, AI_CV_SpDefDown3
-
AI_CV_SpDefDown2: @ 82DCEFA
if_random_less_than 50, AI_CV_SpDefDown3
score -2
-
AI_CV_SpDefDown3: @ 82DCF02
if_hp_more_than AI_TARGET, 70, AI_CV_SpDefDown_End
score -2
-
AI_CV_SpDefDown_End: @ 82DCF0B
end
AI_CV_AccuracyDown: @ 82DCF0C
if_hp_less_than AI_USER, 70, AI_CV_AccuracyDown2
if_hp_more_than AI_TARGET, 70, AI_CV_AccuracyDown3
-
AI_CV_AccuracyDown2:
if_random_less_than 100, AI_CV_AccuracyDown3
score -1
-
AI_CV_AccuracyDown3:
if_stat_level_more_than AI_USER, STAT_ACC, 4, AI_CV_AccuracyDown4
if_random_less_than 80, AI_CV_AccuracyDown4
score -2
-
AI_CV_AccuracyDown4:
if_not_status AI_TARGET, STATUS1_TOXIC_POISON, AI_CV_AccuracyDown5
if_random_less_than 70, AI_CV_AccuracyDown5
score +2
-
AI_CV_AccuracyDown5:
if_not_status3 AI_TARGET, STATUS3_LEECHSEED, AI_CV_AccuracyDown6
if_random_less_than 70, AI_CV_AccuracyDown6
score +2
-
AI_CV_AccuracyDown6:
if_not_status3 AI_USER, STATUS3_ROOTED, AI_CV_AccuracyDown7
if_random_less_than 128, AI_CV_AccuracyDown7
score +1
-
AI_CV_AccuracyDown7:
if_not_status2 AI_TARGET, STATUS2_CURSED, AI_CV_AccuracyDown8
if_random_less_than 70, AI_CV_AccuracyDown8
score +2
-
AI_CV_AccuracyDown8:
if_hp_more_than AI_USER, 70, AI_CV_AccuracyDown_End
if_stat_level_equal AI_TARGET, STAT_ACC, DEFAULT_STAT_STAGE, AI_CV_AccuracyDown_End
if_hp_less_than AI_USER, 40, AI_CV_AccuracyDown_ScoreDown2
if_hp_less_than AI_TARGET, 40, AI_CV_AccuracyDown_ScoreDown2
if_random_less_than 70, AI_CV_AccuracyDown_End
-
AI_CV_AccuracyDown_ScoreDown2:
score -2
-
AI_CV_AccuracyDown_End:
end
AI_CV_EvasionDown:
if_hp_less_than AI_USER, 70, AI_CV_EvasionDown2
if_stat_level_more_than AI_TARGET, STAT_EVASION, 3, AI_CV_EvasionDown3
-
AI_CV_EvasionDown2:
if_random_less_than 50, AI_CV_EvasionDown3
score -2
-
AI_CV_EvasionDown3:
if_hp_more_than AI_TARGET, 70, AI_CV_EvasionDown_End
score -2
-
AI_CV_EvasionDown_End:
end
@@ -1326,7 +1255,6 @@ AI_CV_Haze:
AI_CV_Haze2:
if_random_less_than 50, AI_CV_Haze3
score -3
-
AI_CV_Haze3:
if_stat_level_more_than AI_TARGET, STAT_ATK, 8, AI_CV_Haze4
if_stat_level_more_than AI_TARGET, STAT_DEF, 8, AI_CV_Haze4
@@ -1345,14 +1273,12 @@ AI_CV_Haze3:
AI_CV_Haze4:
if_random_less_than 50, AI_CV_Haze_End
score +3
-
AI_CV_Haze_End:
end
AI_CV_Bide:
if_hp_more_than AI_USER, 90, AI_CV_Bide_End
score -2
-
AI_CV_Bide_End:
end
@@ -1368,19 +1294,16 @@ AI_CV_Roar:
AI_CV_Roar2:
if_random_less_than 128, AI_CV_Roar_End
score +2
-
AI_CV_Roar_End:
end
AI_CV_Conversion:
if_hp_more_than AI_USER, 90, AI_CV_Conversion2
score -2
-
AI_CV_Conversion2:
get_turn_count
if_equal 0, AI_CV_Conversion_End
if_random_less_than 200, Score_Minus2
-
AI_CV_Conversion_End:
end
@@ -1393,7 +1316,6 @@ AI_CV_HealWeather:
AI_CV_HealWeather_ScoreDown2:
score -2
-
AI_CV_Heal:
if_hp_equal AI_USER, 100, AI_CV_Heal3
if_target_faster AI_CV_Heal4
@@ -1404,7 +1326,6 @@ AI_CV_Heal2:
if_hp_less_than AI_USER, 50, AI_CV_Heal5
if_hp_more_than AI_USER, 80, AI_CV_Heal3
if_random_less_than 70, AI_CV_Heal5
-
AI_CV_Heal3:
score -3
goto AI_CV_Heal_End
@@ -1418,11 +1339,9 @@ AI_CV_Heal4:
AI_CV_Heal5:
if_doesnt_have_move_with_effect AI_TARGET, EFFECT_SNATCH, AI_CV_Heal6
if_random_less_than 100, AI_CV_Heal_End
-
AI_CV_Heal6:
if_random_less_than 20, AI_CV_Heal_End
score +2
-
AI_CV_Heal_End:
end
@@ -1431,12 +1350,10 @@ AI_CV_Toxic:
if_hp_more_than AI_USER, 50, AI_CV_Toxic2
if_random_less_than 50, AI_CV_Toxic2
score -3
-
AI_CV_Toxic2:
if_hp_more_than AI_TARGET, 50, AI_CV_Toxic3
if_random_less_than 50, AI_CV_Toxic3
score -3
-
AI_CV_Toxic3:
if_has_move_with_effect AI_USER, EFFECT_SPECIAL_DEFENSE_UP, AI_CV_Toxic4
if_has_move_with_effect AI_USER, EFFECT_PROTECT, AI_CV_Toxic4
@@ -1445,7 +1362,6 @@ AI_CV_Toxic3:
AI_CV_Toxic4:
if_random_less_than 60, AI_CV_Toxic_End
score +2
-
AI_CV_Toxic_End:
end
@@ -1456,10 +1372,8 @@ AI_CV_LightScreen:
get_target_type2
if_in_bytes AI_CV_LightScreen_SpecialTypeList, AI_CV_LightScreen_End
if_random_less_than 50, AI_CV_LightScreen_End
-
AI_CV_LightScreen_ScoreDown2:
score -2
-
AI_CV_LightScreen_End:
end
@@ -1484,7 +1398,6 @@ AI_CV_Rest2:
if_hp_less_than AI_USER, 40, AI_CV_Rest6
if_hp_more_than AI_USER, 50, AI_CV_Rest3
if_random_less_than 70, AI_CV_Rest6
-
AI_CV_Rest3:
score -3
goto AI_CV_Rest_End
@@ -1493,7 +1406,6 @@ AI_CV_Rest4:
if_hp_less_than AI_USER, 60, AI_CV_Rest6
if_hp_more_than AI_USER, 70, AI_CV_Rest5
if_random_less_than 50, AI_CV_Rest6
-
AI_CV_Rest5:
score -3
goto AI_CV_Rest_End
@@ -1501,11 +1413,9 @@ AI_CV_Rest5:
AI_CV_Rest6:
if_doesnt_have_move_with_effect AI_TARGET, EFFECT_SNATCH, AI_CV_Rest7
if_random_less_than 50, AI_CV_Rest_End
-
AI_CV_Rest7:
if_random_less_than 10, AI_CV_Rest_End
score +3
-
AI_CV_Rest_End:
end
@@ -1515,7 +1425,6 @@ AI_CV_OneHitKO:
AI_CV_SuperFang:
if_hp_more_than AI_TARGET, 50, AI_CV_SuperFang_End
score -1
-
AI_CV_SuperFang_End:
end
@@ -1529,7 +1438,6 @@ AI_CV_Trap:
AI_CV_Trap2:
if_random_less_than 128, AI_CV_Trap_End
score +1
-
AI_CV_Trap_End:
end
@@ -1543,28 +1451,23 @@ AI_CV_HighCrit:
AI_CV_HighCrit2:
if_random_less_than 128, AI_CV_HighCrit_End
score +1
-
AI_CV_HighCrit_End:
end
AI_CV_Swagger:
if_has_move AI_USER, MOVE_PSYCH_UP, AI_CV_SwaggerHasPsychUp
-
AI_CV_Flatter:
if_random_less_than 128, AI_CV_Confuse
score +1
-
AI_CV_Confuse:
if_hp_more_than AI_TARGET, 70, AI_CV_Confuse_End
if_random_less_than 128, AI_CV_Confuse2
score -1
-
AI_CV_Confuse2:
if_hp_more_than AI_TARGET, 50, AI_CV_Confuse_End
score -1
if_hp_more_than AI_TARGET, 30, AI_CV_Confuse_End
score -1
-
AI_CV_Confuse_End:
end
@@ -1578,7 +1481,6 @@ AI_CV_SwaggerHasPsychUp:
AI_CV_SwaggerHasPsychUp_Minus5:
score -5
-
AI_CV_SwaggerHasPsychUp_End:
end
@@ -1589,10 +1491,8 @@ AI_CV_Reflect:
get_target_type2
if_in_bytes AI_CV_Reflect_PhysicalTypeList, AI_CV_Reflect_End
if_random_less_than 50, AI_CV_Reflect_End
-
AI_CV_Reflect_ScoreDown2:
score -2
-
AI_CV_Reflect_End:
end
@@ -1611,10 +1511,8 @@ AI_CV_Reflect_PhysicalTypeList:
AI_CV_Poison:
if_hp_less_than AI_USER, 50, AI_CV_Poison_ScoreDown1
if_hp_more_than AI_TARGET, 50, AI_CV_Poison_End
-
AI_CV_Poison_ScoreDown1:
score -1
-
AI_CV_Poison_End:
end
@@ -1627,7 +1525,6 @@ AI_CV_Paralyze:
AI_CV_Paralyze2:
if_random_less_than 20, AI_CV_Paralyze_End
score +3
-
AI_CV_Paralyze_End:
end
@@ -1636,11 +1533,9 @@ AI_CV_VitalThrow:
if_hp_more_than AI_USER, 60, AI_CV_VitalThrow_End
if_hp_less_than AI_USER, 40, AI_CV_VitalThrow2
if_random_less_than 180, AI_CV_VitalThrow_End
-
AI_CV_VitalThrow2:
if_random_less_than 50, AI_CV_VitalThrow_End
score -1
-
AI_CV_VitalThrow_End:
end
@@ -1650,15 +1545,12 @@ AI_CV_Substitute:
if_hp_more_than AI_USER, 50, AI_CV_Substitute2
if_random_less_than 100, AI_CV_Substitute2
score -1
-
AI_CV_Substitute2:
if_random_less_than 100, AI_CV_Substitute3
score -1
-
AI_CV_Substitute3:
if_random_less_than 100, AI_CV_Substitute4
score -1
-
AI_CV_Substitute4:
if_target_faster AI_CV_Substitute_End
get_last_used_bank_move AI_TARGET
@@ -1682,11 +1574,9 @@ AI_CV_Substitute6:
AI_CV_Substitute7:
if_status3 AI_TARGET, STATUS3_LEECHSEED, AI_CV_Substitute_End
-
AI_CV_Substitute8:
if_random_less_than 100, AI_CV_Substitute_End
score +1
-
AI_CV_Substitute_End:
end
@@ -1699,10 +1589,8 @@ AI_CV_Recharge:
AI_CV_Recharge2:
if_hp_less_than AI_USER, 60, AI_CV_Recharge_End
-
AI_CV_Recharge_ScoreDown1:
score -1
-
AI_CV_Recharge_End:
end
@@ -1717,7 +1605,6 @@ AI_CV_Disable:
AI_CV_Disable2:
if_random_less_than 100, AI_CV_Disable_End
score -1
-
AI_CV_Disable_End:
end
@@ -1728,12 +1615,10 @@ AI_CV_Counter:
if_hp_more_than AI_USER, 30, AI_CV_Counter2
if_random_less_than 10, AI_CV_Counter2
score -1
-
AI_CV_Counter2:
if_hp_more_than AI_USER, 50, AI_CV_Counter3
if_random_less_than 100, AI_CV_Counter3
score -1
-
AI_CV_Counter3:
if_has_move AI_USER, MOVE_MIRROR_COAT, AI_CV_Counter7
get_last_used_bank_move AI_TARGET
@@ -1742,7 +1627,6 @@ AI_CV_Counter3:
if_target_not_taunted AI_CV_Counter4
if_random_less_than 100, AI_CV_Counter4
score +1
-
AI_CV_Counter4:
get_last_used_bank_move AI_TARGET
get_move_type_from_result
@@ -1755,24 +1639,20 @@ AI_CV_Counter5:
if_target_not_taunted AI_CV_Counter6
if_random_less_than 100, AI_CV_Counter6
score +1
-
AI_CV_Counter6:
get_target_type1
if_in_bytes AI_CV_Counter_PhysicalTypeList, AI_CV_Counter_End
get_target_type2
if_in_bytes AI_CV_Counter_PhysicalTypeList, AI_CV_Counter_End
if_random_less_than 50, AI_CV_Counter_End
-
AI_CV_Counter7:
if_random_less_than 100, AI_CV_Counter8
score +4
-
AI_CV_Counter8:
end
AI_CV_Counter_ScoreDown1:
score -1
-
AI_CV_Counter_End:
end
@@ -1794,7 +1674,6 @@ AI_CV_Encore:
get_last_used_bank_move AI_TARGET
get_move_effect_from_result
if_not_in_bytes AI_CV_Encore_EncouragedMovesToEncore, AI_CV_Encore_ScoreDown2
-
AI_CV_Encore2:
if_random_less_than 30, AI_CV_Encore_End
score +3
@@ -1802,7 +1681,6 @@ AI_CV_Encore2:
AI_CV_Encore_ScoreDown2:
score -2
-
AI_CV_Encore_End:
end
@@ -1885,7 +1763,6 @@ AI_CV_PainSplit2:
AI_CV_PainSplit_ScoreDown1:
score -1
-
AI_CV_PainSplit_End:
end
@@ -1896,7 +1773,6 @@ AI_CV_Snore:
AI_CV_LockOn:
if_random_less_than 128, AI_CV_LockOn_End
score +2
-
AI_CV_LockOn_End:
end
@@ -1911,17 +1787,14 @@ AI_CV_DestinyBond:
if_hp_more_than AI_USER, 70, AI_CV_DestinyBond_End
if_random_less_than 128, AI_CV_DestinyBond2
score +1
-
AI_CV_DestinyBond2:
if_hp_more_than AI_USER, 50, AI_CV_DestinyBond_End
if_random_less_than 128, AI_CV_DestinyBond3
score +1
-
AI_CV_DestinyBond3:
if_hp_more_than AI_USER, 30, AI_CV_DestinyBond_End
if_random_less_than 100, AI_CV_DestinyBond_End
score +2
-
AI_CV_DestinyBond_End:
end
@@ -1939,7 +1812,6 @@ AI_CV_Flail2:
AI_CV_Flail_ScoreUp1:
score +1
-
AI_CV_Flail3:
if_random_less_than 100, AI_CV_Flail_End
score +1
@@ -1947,7 +1819,6 @@ AI_CV_Flail3:
AI_CV_Flail_ScoreDown1:
score -1
-
AI_CV_Flail_End:
end
@@ -1955,7 +1826,6 @@ AI_CV_HealBell:
if_status AI_TARGET, STATUS1_ANY, AI_CV_HealBell_End
if_status_in_party AI_TARGET, STATUS1_ANY, AI_CV_HealBell_End
score -5
-
AI_CV_HealBell_End:
end
@@ -1968,7 +1838,6 @@ AI_CV_Thief:
AI_CV_Thief_ScoreDown2:
score -2
-
AI_CV_Thief_End:
end
@@ -1990,12 +1859,10 @@ AI_CV_Curse:
if_stat_level_more_than AI_USER, STAT_DEF, 9, AI_CV_Curse_End
if_random_less_than 128, AI_CV_Curse2
score +1
-
AI_CV_Curse2:
if_stat_level_more_than AI_USER, STAT_DEF, 7, AI_CV_Curse_End
if_random_less_than 128, AI_CV_Curse3
score +1
-
AI_CV_Curse3:
if_stat_level_more_than AI_USER, STAT_DEF, DEFAULT_STAT_STAGE, AI_CV_Curse_End
if_random_less_than 128, AI_CV_Curse_End
@@ -2005,7 +1872,6 @@ AI_CV_Curse3:
AI_CV_Curse4:
if_hp_more_than AI_USER, 80, AI_CV_Curse_End
score -1
-
AI_CV_Curse_End:
end
@@ -2033,11 +1899,9 @@ AI_CV_Protect:
AI_CV_Protect_ScoreUp2:
score +2
-
AI_CV_Protect2:
if_random_less_than 128, AI_CV_Protect4
score -1
-
AI_CV_Protect4:
get_protect_count AI_USER
if_equal 0, AI_CV_Protect_End
@@ -2050,10 +1914,8 @@ AI_CV_Protect3:
get_last_used_bank_move AI_TARGET
get_move_effect_from_result
if_not_equal EFFECT_LOCK_ON, AI_CV_Protect_End
-
AI_CV_Protect_ScoreDown2:
score -2
-
AI_CV_Protect_End:
end
@@ -2078,18 +1940,15 @@ AI_CV_Foresight:
AI_CV_Foresight2:
if_random_less_than 80, AI_CV_Foresight_End
-
AI_CV_Foresight3:
if_random_less_than 80, AI_CV_Foresight_End
score +2
-
AI_CV_Foresight_End:
end
AI_CV_Endure:
if_hp_less_than AI_USER, 4, AI_CV_Endure2
if_hp_less_than AI_USER, 35, AI_CV_Endure3
-
AI_CV_Endure2:
score -1
goto AI_CV_Endure_End
@@ -2097,7 +1956,6 @@ AI_CV_Endure2:
AI_CV_Endure3:
if_random_less_than 70, AI_CV_Endure_End
score +1
-
AI_CV_Endure_End:
end
@@ -2116,7 +1974,6 @@ AI_CV_BatonPass2:
AI_CV_BatonPass3:
if_hp_more_than AI_USER, 70, AI_CV_BatonPass_End
-
AI_CV_BatonPass4:
if_random_less_than 80, AI_CV_BatonPass_End
score +2
@@ -2137,10 +1994,8 @@ AI_CV_BatonPass7:
AI_CV_BatonPass8:
if_hp_less_than AI_USER, 70, AI_CV_BatonPass_End
-
AI_CV_BatonPass_ScoreDown2:
score -2
-
AI_CV_BatonPass_End:
end
@@ -2160,7 +2015,6 @@ AI_CV_Pursuit:
AI_CV_Pursuit2:
if_random_less_than 128, AI_CV_Pursuit_End
score +1
-
AI_CV_Pursuit_End:
end
@@ -2168,7 +2022,6 @@ AI_CV_RainDance:
if_user_faster AI_CV_RainDance2
get_ability AI_USER
if_equal ABILITY_SWIFT_SWIM, AI_CV_RainDance3
-
AI_CV_RainDance2:
if_hp_less_than AI_USER, 40, AI_CV_RainDance_ScoreDown1
get_weather
@@ -2185,7 +2038,6 @@ AI_CV_RainDance3:
AI_CV_RainDance_ScoreDown1:
score -1
-
AI_CV_RainDance_End:
end
@@ -2203,7 +2055,6 @@ AI_CV_SunnyDay2:
AI_CV_SunnyDay_ScoreDown1:
score -1
-
AI_CV_SunnyDay_End:
end
@@ -2213,7 +2064,6 @@ AI_CV_BellyDrum:
AI_CV_BellyDrum_ScoreDown2:
score -2
-
AI_CV_BellyDrum_End:
end
@@ -2236,14 +2086,12 @@ AI_CV_PsychUp2:
AI_CV_PsychUp_ScoreUp1:
score +1
-
AI_CV_PsychUp3:
score +1
end
AI_CV_PsychUp_ScoreDown2:
score -2
-
AI_CV_PsychUp_End:
end
@@ -2254,12 +2102,10 @@ AI_CV_MirrorCoat:
if_hp_more_than AI_USER, 30, AI_CV_MirrorCoat2
if_random_less_than 10, AI_CV_MirrorCoat2
score -1
-
AI_CV_MirrorCoat2:
if_hp_more_than AI_USER, 50, AI_CV_MirrorCoat3
if_random_less_than 100, AI_CV_MirrorCoat3
score -1
-
AI_CV_MirrorCoat3:
if_has_move AI_USER, MOVE_COUNTER, AI_CV_MirrorCoat_ScoreUp4
get_last_used_bank_move AI_TARGET
@@ -2268,7 +2114,6 @@ AI_CV_MirrorCoat3:
if_target_not_taunted AI_CV_MirrorCoat4
if_random_less_than 100, AI_CV_MirrorCoat4
score +1
-
AI_CV_MirrorCoat4:
get_last_used_bank_move AI_TARGET
get_move_type_from_result
@@ -2281,24 +2126,20 @@ AI_CV_MirrorCoat5:
if_target_not_taunted AI_CV_MirrorCoat6
if_random_less_than 100, AI_CV_MirrorCoat6
score +1
-
AI_CV_MirrorCoat6:
get_target_type1
if_in_bytes AI_CV_MirrorCoat_SpecialTypeList, AI_CV_MirrorCoat_End
get_target_type2
if_in_bytes AI_CV_MirrorCoat_SpecialTypeList, AI_CV_MirrorCoat_End
if_random_less_than 50, AI_CV_MirrorCoat_End
-
AI_CV_MirrorCoat_ScoreUp4:
if_random_less_than 100, AI_CV_MirrorCoat_ScoreUp4_End
score +4
-
AI_CV_MirrorCoat_ScoreUp4_End:
end
AI_CV_MirrorCoat_ScoreDown1:
score -1
-
AI_CV_MirrorCoat_End:
end
@@ -2323,7 +2164,6 @@ AI_CV_ChargeUpMove:
AI_CV_ChargeUpMove_ScoreDown2:
score -2
-
AI_CV_ChargeUpMove_End:
end
@@ -2360,7 +2200,6 @@ AI_CV_SemiInvulnerable_CheckIceType:
if_equal TYPE_ICE, AI_CV_SemiInvulnerable_TryEncourage
get_user_type2
if_equal TYPE_ICE, AI_CV_SemiInvulnerable_TryEncourage
-
AI_CV_SemiInvulnerable5:
if_target_faster AI_CV_SemiInvulnerable_End
get_last_used_bank_move AI_TARGET
@@ -2371,7 +2210,6 @@ AI_CV_SemiInvulnerable5:
AI_CV_SemiInvulnerable_TryEncourage:
if_random_less_than 80, AI_CV_SemiInvulnerable_End
score +1
-
AI_CV_SemiInvulnerable_End:
end
@@ -2390,7 +2228,6 @@ AI_CV_SpitUp:
if_less_than 2, AI_CV_SpitUp_End
if_random_less_than 80, AI_CV_SpitUp_End
score +2
-
AI_CV_SpitUp_End:
end
@@ -2408,7 +2245,6 @@ AI_CV_Hail2:
AI_CV_Hail_ScoreDown1:
score -1
-
AI_CV_Hail_End:
end
@@ -2442,10 +2278,8 @@ AI_CV_FocusPunch2:
AI_CV_FocusPunch3:
if_random_less_than 100, AI_CV_FocusPunch_End
if_status2 AI_USER, STATUS2_SUBSTITUTE, Score_Plus5
-
AI_CV_FocusPunch_ScoreUp1:
score +1
-
AI_CV_FocusPunch_End:
end
@@ -2455,7 +2289,6 @@ AI_CV_SmellingSalt:
AI_CV_SmellingSalt_ScoreUp1:
score +1
-
AI_CV_SmellingSalt_End:
end
@@ -2463,7 +2296,6 @@ AI_CV_Trick:
get_hold_effect AI_USER
if_in_bytes AI_CV_Trick_EffectsToEncourage2, AI_CV_Trick3
if_in_bytes AI_CV_Trick_EffectsToEncourage, AI_CV_Trick4
-
AI_CV_Trick2:
score -3
goto AI_CV_Trick_End
@@ -2479,7 +2311,6 @@ AI_CV_Trick4:
if_in_bytes AI_CV_Trick_EffectsToEncourage, AI_CV_Trick2
if_random_less_than 50, AI_CV_Trick_End
score +2
-
AI_CV_Trick_End:
end
@@ -2502,7 +2333,6 @@ AI_CV_ChangeSelfAbility:
if_in_bytes AI_CV_ChangeSelfAbility_AbilitiesToEncourage, AI_CV_ChangeSelfAbility2
get_ability AI_TARGET
if_in_bytes AI_CV_ChangeSelfAbility_AbilitiesToEncourage, AI_CV_ChangeSelfAbility3
-
AI_CV_ChangeSelfAbility2:
score -1
goto AI_CV_ChangeSelfAbility_End
@@ -2510,7 +2340,6 @@ AI_CV_ChangeSelfAbility2:
AI_CV_ChangeSelfAbility3:
if_random_less_than 50, AI_CV_ChangeSelfAbility_End
score +2
-
AI_CV_ChangeSelfAbility_End:
end
@@ -2543,10 +2372,8 @@ AI_CV_Superpower:
AI_CV_Superpower2:
if_hp_less_than AI_USER, 60, AI_CV_Superpower_End
-
AI_CV_Superpower_ScoreDown1:
score -1
-
AI_CV_Superpower_End:
end
@@ -2554,21 +2381,18 @@ AI_CV_MagicCoat:
if_hp_more_than AI_TARGET, 30, AI_CV_MagicCoat2
if_random_less_than 100, AI_CV_MagicCoat2
score -1
-
AI_CV_MagicCoat2:
is_first_turn_for AI_USER
- if_equal 0, AI_CV_MagicCoat4
+ if_equal FALSE, AI_CV_MagicCoat4
if_random_less_than 150, AI_CV_MagicCoat_End
score +1
goto AI_CV_MagicCoat_End
AI_CV_MagicCoat3:
if_random_less_than 50, AI_CV_MagicCoat_End
-
AI_CV_MagicCoat4:
if_random_less_than 30, AI_CV_MagicCoat_End
score -1
-
AI_CV_MagicCoat_End:
end
@@ -2581,7 +2405,6 @@ AI_CV_Recycle:
AI_CV_Recycle_ScoreDown2:
score -2
-
AI_CV_Recycle_End:
end
@@ -2601,7 +2424,6 @@ AI_CV_Revenge:
AI_CV_Revenge_ScoreDown2:
score -2
-
AI_CV_Revenge_End:
end
@@ -2611,7 +2433,6 @@ AI_CV_BrickBreak:
AI_CV_BrickBreak_ScoreUp1:
score +1
-
AI_CV_BrickBreak_End:
end
@@ -2621,7 +2442,6 @@ AI_CV_KnockOff:
if_more_than 0, AI_CV_KnockOff_End
if_random_less_than 180, AI_CV_KnockOff_End
score +1
-
AI_CV_KnockOff_End:
end
@@ -2639,7 +2459,6 @@ AI_CV_Endeavor2:
AI_CV_Endeavor_ScoreDown1:
score -1
-
AI_CV_Endeavor_End:
end
@@ -2652,10 +2471,8 @@ AI_CV_Eruption:
AI_CV_Eruption2:
if_hp_more_than AI_TARGET, 70, AI_CV_Eruption_End
-
AI_CV_Eruption_ScoreDown1:
score -1
-
AI_CV_Eruption_End:
end
@@ -2664,7 +2481,6 @@ AI_CV_Imprison:
if_more_than 0, AI_CV_Imprison_End
if_random_less_than 100, AI_CV_Imprison_End
score +2
-
AI_CV_Imprison_End:
end
@@ -2674,13 +2490,12 @@ AI_CV_Refresh:
AI_CV_Refresh_ScoreDown1:
score -1
-
AI_CV_Refresh_End:
end
AI_CV_Snatch:
is_first_turn_for AI_USER
- if_equal 1, AI_CV_Snatch3
+ if_equal TRUE, AI_CV_Snatch3
if_random_less_than 30, AI_CV_Snatch_End
if_target_faster AI_CV_Snatch2
if_hp_not_equal AI_USER, 100, AI_CV_Snatch5
@@ -2707,7 +2522,6 @@ AI_CV_Snatch4:
AI_CV_Snatch5:
if_random_less_than 30, AI_CV_Snatch_End
score -2
-
AI_CV_Snatch_End:
end
@@ -2725,7 +2539,6 @@ AI_CV_MudSport2:
AI_CV_MudSport_ScoreDown1:
score -1
-
AI_CV_MudSport_End:
end
@@ -2738,10 +2551,8 @@ AI_CV_Overheat:
AI_CV_Overheat2:
if_hp_more_than AI_USER, 80, AI_CV_Overheat_End
-
AI_CV_Overheat_ScoreDown1:
score -1
-
AI_CV_Overheat_End:
end
@@ -2759,7 +2570,6 @@ AI_CV_WaterSport2:
AI_CV_WaterSport_ScoreDown1:
score -1
-
AI_CV_WaterSport_End:
end
@@ -2773,7 +2583,6 @@ AI_CV_DragonDance:
AI_CV_DragonDance2:
if_random_less_than 128, AI_CV_DragonDance_End
score +1
-
AI_CV_DragonDance_End:
end
@@ -2794,10 +2603,8 @@ AI_TryToFaint_TryToEncourageQuickAttack:
if_effect EFFECT_EXPLOSION, AI_TryToFaint_End
if_not_effect EFFECT_QUICK_ATTACK, AI_TryToFaint_ScoreUp4
score +2
-
AI_TryToFaint_ScoreUp4:
score +4
-
AI_TryToFaint_End:
end
@@ -2809,7 +2616,6 @@ AI_SetupFirstTurn:
if_not_in_bytes AI_SetupFirstTurn_SetupEffectsToEncourage, AI_SetupFirstTurn_End
if_random_less_than 80, AI_SetupFirstTurn_End
score +2
-
AI_SetupFirstTurn_End:
end
@@ -2871,14 +2677,15 @@ AI_SetupFirstTurn_SetupEffectsToEncourage:
.byte EFFECT_CAMOUFLAGE
.byte -1
-AI_PreferStrongestMove:
+@ ~60% chance to prefer moves that do 0 or 1 damage, or are in sIgnoredPowerfulMoveEffects
+@ Oddly this group includes moves like Explosion and Eruption, so the AI strategy isn't very coherent
+AI_PreferPowerExtremes:
if_target_is_ally AI_Ret
get_how_powerful_move_is
- if_not_equal 0, AI_PreferStrongestMove_End
- if_random_less_than 100, AI_PreferStrongestMove_End
+ if_not_equal MOVE_POWER_OTHER, AI_PreferPowerExtremes_End
+ if_random_less_than 100, AI_PreferPowerExtremes_End
score +2
-
-AI_PreferStrongestMove_End:
+AI_PreferPowerExtremes_End:
end
AI_Risky:
@@ -2887,7 +2694,6 @@ AI_Risky:
if_not_in_bytes AI_Risky_EffectsToEncourage, AI_Risky_End
if_random_less_than 128, AI_Risky_End
score +2
-
AI_Risky_End:
end
@@ -2918,10 +2724,9 @@ AI_PreferBatonPass:
count_usable_party_mons AI_USER
if_equal 0, AI_PreferBatonPassEnd
get_how_powerful_move_is
- if_not_equal 0, AI_PreferBatonPassEnd
+ if_not_equal MOVE_POWER_OTHER, AI_PreferBatonPassEnd
if_has_move_with_effect AI_USER, EFFECT_BATON_PASS, AI_PreferBatonPass_GoForBatonPass
if_random_less_than 80, AI_Risky_End
-
AI_PreferBatonPass_GoForBatonPass:
if_move MOVE_SWORDS_DANCE, AI_PreferBatonPass2
if_move MOVE_DRAGON_DANCE, AI_PreferBatonPass2
@@ -2930,7 +2735,6 @@ AI_PreferBatonPass_GoForBatonPass:
if_move MOVE_BATON_PASS, AI_PreferBatonPass_EncourageIfHighStats
if_random_less_than 20, AI_Risky_End
score +3
-
AI_PreferBatonPass2:
get_turn_count
if_equal 0, Score_Plus5
@@ -2977,7 +2781,7 @@ AI_DoubleBattle:
AI_DoubleBattlePartnerHasHelpingHand:
get_how_powerful_move_is
- if_not_equal 0, Score_Plus1
+ if_not_equal MOVE_POWER_OTHER, Score_Plus1
end
AI_DoubleBattleCheckUserStatus:
@@ -2986,7 +2790,7 @@ AI_DoubleBattleCheckUserStatus:
AI_DoubleBattleCheckUserStatus2:
get_how_powerful_move_is
- if_equal MOVE_POWER_DISCOURAGED, Score_Minus5
+ if_equal MOVE_POWER_OTHER, Score_Minus5
score +1
if_equal MOVE_MOST_POWERFUL, Score_Plus2
end
@@ -3013,7 +2817,6 @@ AI_DoubleBattleElectricMove:
score -2
if_no_type AI_TARGET_PARTNER, TYPE_GROUND, AI_DoubleBattleElectricMoveEnd
score -8
-
AI_DoubleBattleElectricMoveEnd:
end
@@ -3026,10 +2829,9 @@ AI_DoubleBattleFireMove2:
AI_TryOnAlly:
get_how_powerful_move_is
- if_equal 0, AI_TryStatusMoveOnAlly
+ if_equal MOVE_POWER_OTHER, AI_TryStatusMoveOnAlly
get_curr_move_type
if_equal TYPE_FIRE, AI_TryFireMoveOnAlly
-
AI_DiscourageOnAlly:
goto Score_Minus30
@@ -3096,7 +2898,6 @@ AI_TrySwaggerOnAlly:
AI_TrySwaggerOnAlly2:
if_stat_level_more_than AI_TARGET, STAT_ATK, 7, AI_TrySwaggerOnAlly_End
score +3
-
AI_TrySwaggerOnAlly_End:
end
@@ -3125,7 +2926,6 @@ AI_HPAware_UserHasMediumHP:
AI_HPAware_TryToDiscourage:
if_random_less_than 50, AI_HPAware_ConsiderTarget
score -2
-
AI_HPAware_ConsiderTarget:
if_hp_more_than AI_TARGET, 70, AI_HPAware_TargetHasHighHP
if_hp_more_than AI_TARGET, 30, AI_HPAware_TargetHasMediumHP
@@ -3146,7 +2946,6 @@ AI_HPAware_TargetHasMediumHP:
AI_HPAware_TargetTryToDiscourage:
if_random_less_than 50, AI_HPAware_End
score -2
-
AI_HPAware_End:
end
@@ -3368,15 +3167,18 @@ AI_HPAware_DiscouragedEffectsWhenTargetLowHP: @ 82DE2B1
.byte EFFECT_DRAGON_DANCE
.byte -1
-AI_Unknown:
+@ Given the AI_TryOnAlly at the beginning it's possible that this was the start of a more
+@ comprehensive double battle AI script
+AI_TrySunnyDayStart:
if_target_is_ally AI_TryOnAlly
- if_not_effect EFFECT_SUNNY_DAY, AI_Unknown_End
- if_equal 0, AI_Unknown_End
+ if_not_effect EFFECT_SUNNY_DAY, AI_TrySunnyDayStart_End
+.ifndef BUGFIX @ funcResult has not been set in this script yet, below call is nonsense
+ if_equal FALSE, AI_TrySunnyDayStart_End
+.endif
is_first_turn_for AI_USER
- if_equal 0, AI_Unknown_End
+ if_equal FALSE, AI_TrySunnyDayStart_End
score +5
-
-AI_Unknown_End: @ 82DE308
+AI_TrySunnyDayStart_End: @ 82DE308
end
AI_Roaming:
@@ -3388,7 +3190,6 @@ AI_Roaming:
if_equal ABILITY_LEVITATE, AI_Roaming_Flee
get_ability AI_TARGET
if_equal ABILITY_ARENA_TRAP, AI_Roaming_End
-
AI_Roaming_Flee: @ 82DE335
flee
diff --git a/data/battle_anim_scripts.s b/data/battle_anim_scripts.s
index d1c9bc78b..e7aad6a93 100644
--- a/data/battle_anim_scripts.s
+++ b/data/battle_anim_scripts.s
@@ -1656,12 +1656,12 @@ Explosion1:
Move_DEFENSE_CURL:
loadspritegfx ANIM_TAG_ECLIPSING_ORB
loopsewithpan SE_M_TRI_ATTACK, SOUND_PAN_ATTACKER, 18, 3
- createvisualtask AnimTask_SetGreyscaleOrOriginalPal, 5, ANIM_ATTACKER, 0
+ createvisualtask AnimTask_SetGrayscaleOrOriginalPal, 5, ANIM_ATTACKER, 0
createvisualtask AnimTask_DefenseCurlDeformMon, 5
waitforvisualfinish
createsprite gEclipsingOrbSpriteTemplate, ANIM_ATTACKER, 2, 0, 6, 0, 1
waitforvisualfinish
- createvisualtask AnimTask_SetGreyscaleOrOriginalPal, 5, ANIM_ATTACKER, 1
+ createvisualtask AnimTask_SetGrayscaleOrOriginalPal, 5, ANIM_ATTACKER, 1
waitforvisualfinish
end
@@ -7254,7 +7254,7 @@ Move_IRON_TAIL:
createvisualtask AnimTask_ShakeMon, 2, ANIM_TARGET, 3, 0, 6, 1
playsewithpan SE_M_VITAL_THROW2, SOUND_PAN_TARGET
waitforvisualfinish
- createvisualtask AnimTask_SetGreyscaleOrOriginalPal, 5, ANIM_ATTACKER, 1
+ createvisualtask AnimTask_SetGrayscaleOrOriginalPal, 5, ANIM_ATTACKER, 1
clearmonbg ANIM_TARGET
blendoff
waitforvisualfinish
@@ -7274,7 +7274,7 @@ Move_POISON_TAIL:
createvisualtask AnimTask_ShakeMon, 2, ANIM_TARGET, 3, 0, 6, 1
playsewithpan SE_M_VITAL_THROW2, SOUND_PAN_TARGET
waitforvisualfinish
- createvisualtask AnimTask_SetGreyscaleOrOriginalPal, 5, ANIM_ATTACKER, 1
+ createvisualtask AnimTask_SetGrayscaleOrOriginalPal, 5, ANIM_ATTACKER, 1
clearmonbg ANIM_TARGET
blendoff
call PoisonBubblesEffect
@@ -7551,7 +7551,7 @@ Move_DISABLE:
playsewithpan SE_M_DETECT, SOUND_PAN_ATTACKER
createsprite gSpinningSparkleSpriteTemplate, ANIM_ATTACKER, 13, 24, -16
waitforvisualfinish
- createvisualtask AnimTask_GrowAndGreyscale, 5
+ createvisualtask AnimTask_GrowAndGrayscale, 5
loopsewithpan SE_M_BIND, SOUND_PAN_TARGET, 15, 4
waitforvisualfinish
delay 1
@@ -7946,16 +7946,16 @@ Move_PERISH_SONG:
panse_1B SE_M_PERISH_SONG, SOUND_PAN_ATTACKER, SOUND_PAN_TARGET, +2, 0
delay 80
createsprite gSimplePaletteBlendSpriteTemplate, ANIM_ATTACKER, 2, 1, 3, 0, 16, RGB_BLACK
- createvisualtask AnimTask_SetGreyscaleOrOriginalPal, 5, 4, 0
- createvisualtask AnimTask_SetGreyscaleOrOriginalPal, 5, 5, 0
- createvisualtask AnimTask_SetGreyscaleOrOriginalPal, 5, 6, 0
- createvisualtask AnimTask_SetGreyscaleOrOriginalPal, 5, 7, 0
+ createvisualtask AnimTask_SetGrayscaleOrOriginalPal, 5, 4, 0
+ createvisualtask AnimTask_SetGrayscaleOrOriginalPal, 5, 5, 0
+ createvisualtask AnimTask_SetGrayscaleOrOriginalPal, 5, 6, 0
+ createvisualtask AnimTask_SetGrayscaleOrOriginalPal, 5, 7, 0
delay 100
createsprite gSimplePaletteBlendSpriteTemplate, ANIM_ATTACKER, 2, 1, 3, 16, 0, RGB_BLACK
- createvisualtask AnimTask_SetGreyscaleOrOriginalPal, 5, 4, 1
- createvisualtask AnimTask_SetGreyscaleOrOriginalPal, 5, 5, 1
- createvisualtask AnimTask_SetGreyscaleOrOriginalPal, 5, 6, 1
- createvisualtask AnimTask_SetGreyscaleOrOriginalPal, 5, 7, 1
+ createvisualtask AnimTask_SetGrayscaleOrOriginalPal, 5, 4, 1
+ createvisualtask AnimTask_SetGrayscaleOrOriginalPal, 5, 5, 1
+ createvisualtask AnimTask_SetGrayscaleOrOriginalPal, 5, 6, 1
+ createvisualtask AnimTask_SetGrayscaleOrOriginalPal, 5, 7, 1
waitforvisualfinish
end
@@ -9573,7 +9573,7 @@ Move_DOOM_DESIRE:
createvisualtask GetIsDoomDesireHitTurn, 2
delay 1
monbg ANIM_ATK_PARTNER
- createvisualtask AnimTask_SetGreyscaleOrOriginalPal, 5, ANIM_TARGET, FALSE
+ createvisualtask AnimTask_SetGrayscaleOrOriginalPal, 5, ANIM_TARGET, FALSE
createsprite gSimplePaletteBlendSpriteTemplate, ANIM_ATTACKER, 2, 1, 1, 0, 4, RGB_BLACK
waitforvisualfinish
setalpha 8, 8
@@ -9581,7 +9581,7 @@ Move_DOOM_DESIRE:
createvisualtask AnimTask_ScaleMonAndRestore, 5, -4, -4, 15, ANIM_ATTACKER, 1
waitforvisualfinish
delay 20
- createvisualtask AnimTask_SetGreyscaleOrOriginalPal, 5, ANIM_TARGET, TRUE
+ createvisualtask AnimTask_SetGrayscaleOrOriginalPal, 5, ANIM_TARGET, TRUE
createsprite gSimplePaletteBlendSpriteTemplate, ANIM_ATTACKER, 2, 1, 1, 4, 0, RGB_BLACK
waitforvisualfinish
clearmonbg ANIM_ATK_PARTNER
diff --git a/data/battle_scripts_1.s b/data/battle_scripts_1.s
index 045db19c5..1577765cd 100644
--- a/data/battle_scripts_1.s
+++ b/data/battle_scripts_1.s
@@ -17,243 +17,221 @@
.align 2
gBattleScriptsForMoveEffects:: @ 82D86A8
- .4byte BattleScript_EffectHit
- .4byte BattleScript_EffectSleep
- .4byte BattleScript_EffectPoisonHit
- .4byte BattleScript_EffectAbsorb
- .4byte BattleScript_EffectBurnHit
- .4byte BattleScript_EffectFreezeHit
- .4byte BattleScript_EffectParalyzeHit
- .4byte BattleScript_EffectExplosion
- .4byte BattleScript_EffectDreamEater
- .4byte BattleScript_EffectMirrorMove
- .4byte BattleScript_EffectAttackUp
- .4byte BattleScript_EffectDefenseUp
- .4byte BattleScript_EffectSpeedUp
- .4byte BattleScript_EffectSpecialAttackUp
- .4byte BattleScript_EffectSpecialDefenseUp
- .4byte BattleScript_EffectAccuracyUp
- .4byte BattleScript_EffectEvasionUp
- .4byte BattleScript_EffectAlwaysHit
- .4byte BattleScript_EffectAttackDown
- .4byte BattleScript_EffectDefenseDown
- .4byte BattleScript_EffectSpeedDown
- .4byte BattleScript_EffectSpecialAttackDown
- .4byte BattleScript_EffectSpecialDefenseDown
- .4byte BattleScript_EffectAccuracyDown
- .4byte BattleScript_EffectEvasionDown
- .4byte BattleScript_EffectHaze
- .4byte BattleScript_EffectBide
- .4byte BattleScript_EffectRampage
- .4byte BattleScript_EffectRoar
- .4byte BattleScript_EffectMultiHit
- .4byte BattleScript_EffectConversion
- .4byte BattleScript_EffectFlinchHit
- .4byte BattleScript_EffectRestoreHp
- .4byte BattleScript_EffectToxic
- .4byte BattleScript_EffectPayDay
- .4byte BattleScript_EffectLightScreen
- .4byte BattleScript_EffectTriAttack
- .4byte BattleScript_EffectRest
- .4byte BattleScript_EffectOHKO
- .4byte BattleScript_EffectRazorWind
- .4byte BattleScript_EffectSuperFang
- .4byte BattleScript_EffectDragonRage
- .4byte BattleScript_EffectTrap
- .4byte BattleScript_EffectHighCritical
- .4byte BattleScript_EffectDoubleHit
- .4byte BattleScript_EffectRecoilIfMiss
- .4byte BattleScript_EffectMist
- .4byte BattleScript_EffectFocusEnergy
- .4byte BattleScript_EffectRecoil
- .4byte BattleScript_EffectConfuse
- .4byte BattleScript_EffectAttackUp2
- .4byte BattleScript_EffectDefenseUp2
- .4byte BattleScript_EffectSpeedUp2
- .4byte BattleScript_EffectSpecialAttackUp2
- .4byte BattleScript_EffectSpecialDefenseUp2
- .4byte BattleScript_EffectAccuracyUp2
- .4byte BattleScript_EffectEvasionUp2
- .4byte BattleScript_EffectTransform
- .4byte BattleScript_EffectAttackDown2
- .4byte BattleScript_EffectDefenseDown2
- .4byte BattleScript_EffectSpeedDown2
- .4byte BattleScript_EffectSpecialAttackDown2
- .4byte BattleScript_EffectSpecialDefenseDown2
- .4byte BattleScript_EffectAccuracyDown2
- .4byte BattleScript_EffectEvasionDown2
- .4byte BattleScript_EffectReflect
- .4byte BattleScript_EffectPoison
- .4byte BattleScript_EffectParalyze
- .4byte BattleScript_EffectAttackDownHit
- .4byte BattleScript_EffectDefenseDownHit
- .4byte BattleScript_EffectSpeedDownHit
- .4byte BattleScript_EffectSpecialAttackDownHit
- .4byte BattleScript_EffectSpecialDefenseDownHit
- .4byte BattleScript_EffectAccuracyDownHit
- .4byte BattleScript_EffectEvasionDownHit
- .4byte BattleScript_EffectSkyAttack
- .4byte BattleScript_EffectConfuseHit
- .4byte BattleScript_EffectTwineedle
- .4byte BattleScript_EffectVitalThrow
- .4byte BattleScript_EffectSubstitute
- .4byte BattleScript_EffectRecharge
- .4byte BattleScript_EffectRage
- .4byte BattleScript_EffectMimic
- .4byte BattleScript_EffectMetronome
- .4byte BattleScript_EffectLeechSeed
- .4byte BattleScript_EffectSplash
- .4byte BattleScript_EffectDisable
- .4byte BattleScript_EffectLevelDamage
- .4byte BattleScript_EffectPsywave
- .4byte BattleScript_EffectCounter
- .4byte BattleScript_EffectEncore
- .4byte BattleScript_EffectPainSplit
- .4byte BattleScript_EffectSnore
- .4byte BattleScript_EffectConversion2
- .4byte BattleScript_EffectLockOn
- .4byte BattleScript_EffectSketch
- .4byte BattleScript_EffectUnused60//Thaw
- .4byte BattleScript_EffectSleepTalk
- .4byte BattleScript_EffectDestinyBond
- .4byte BattleScript_EffectFlail
- .4byte BattleScript_EffectSpite
- .4byte BattleScript_EffectFalseSwipe
- .4byte BattleScript_EffectHealBell
- .4byte BattleScript_EffectQuickAttack
- .4byte BattleScript_EffectTripleKick
- .4byte BattleScript_EffectThief
- .4byte BattleScript_EffectMeanLook
- .4byte BattleScript_EffectNightmare
- .4byte BattleScript_EffectMinimize
- .4byte BattleScript_EffectCurse
- .4byte BattleScript_EffectUnused6e
- .4byte BattleScript_EffectProtect
- .4byte BattleScript_EffectSpikes
- .4byte BattleScript_EffectForesight
- .4byte BattleScript_EffectPerishSong
- .4byte BattleScript_EffectSandstorm
- .4byte BattleScript_EffectEndure
- .4byte BattleScript_EffectRollout
- .4byte BattleScript_EffectSwagger
- .4byte BattleScript_EffectFuryCutter
- .4byte BattleScript_EffectAttract
- .4byte BattleScript_EffectReturn
- .4byte BattleScript_EffectPresent
- .4byte BattleScript_EffectFrustration
- .4byte BattleScript_EffectSafeguard
- .4byte BattleScript_EffectThawHit
- .4byte BattleScript_EffectMagnitude
- .4byte BattleScript_EffectBatonPass
- .4byte BattleScript_EffectPursuit
- .4byte BattleScript_EffectRapidSpin
- .4byte BattleScript_EffectSonicboom
- .4byte BattleScript_EffectUnused83
- .4byte BattleScript_EffectMorningSun
- .4byte BattleScript_EffectSynthesis
- .4byte BattleScript_EffectMoonlight
- .4byte BattleScript_EffectHiddenPower
- .4byte BattleScript_EffectRainDance
- .4byte BattleScript_EffectSunnyDay
- .4byte BattleScript_EffectDefenseUpHit
- .4byte BattleScript_EffectAttackUpHit
- .4byte BattleScript_EffectAllStatsUpHit
- .4byte BattleScript_EffectUnused8d
- .4byte BattleScript_EffectBellyDrum
- .4byte BattleScript_EffectPsychUp
- .4byte BattleScript_EffectMirrorCoat
- .4byte BattleScript_EffectSkullBash
- .4byte BattleScript_EffectTwister
- .4byte BattleScript_EffectEarthquake
- .4byte BattleScript_EffectFutureSight
- .4byte BattleScript_EffectGust
- .4byte BattleScript_EffectStomp
- .4byte BattleScript_EffectSolarbeam
- .4byte BattleScript_EffectThunder
- .4byte BattleScript_EffectTeleport
- .4byte BattleScript_EffectBeatUp
- .4byte BattleScript_EffectSemiInvulnerable
- .4byte BattleScript_EffectDefenseCurl
- .4byte BattleScript_EffectSoftboiled
- .4byte BattleScript_EffectFakeOut
- .4byte BattleScript_EffectUproar
- .4byte BattleScript_EffectStockpile
- .4byte BattleScript_EffectSpitUp
- .4byte BattleScript_EffectSwallow
- .4byte BattleScript_EffectUnusedA3
- .4byte BattleScript_EffectHail
- .4byte BattleScript_EffectTorment
- .4byte BattleScript_EffectFlatter
- .4byte BattleScript_EffectWillOWisp
- .4byte BattleScript_EffectMemento
- .4byte BattleScript_EffectFacade
- .4byte BattleScript_EffectFocusPunch
- .4byte BattleScript_EffectSmellingsalt
- .4byte BattleScript_EffectFollowMe
- .4byte BattleScript_EffectNaturePower
- .4byte BattleScript_EffectCharge
- .4byte BattleScript_EffectTaunt
- .4byte BattleScript_EffectHelpingHand
- .4byte BattleScript_EffectTrick
- .4byte BattleScript_EffectRolePlay
- .4byte BattleScript_EffectWish
- .4byte BattleScript_EffectAssist
- .4byte BattleScript_EffectIngrain
- .4byte BattleScript_EffectSuperpower
- .4byte BattleScript_EffectMagicCoat
- .4byte BattleScript_EffectRecycle
- .4byte BattleScript_EffectRevenge
- .4byte BattleScript_EffectBrickBreak
- .4byte BattleScript_EffectYawn
- .4byte BattleScript_EffectKnockOff
- .4byte BattleScript_EffectEndeavor
- .4byte BattleScript_EffectEruption
- .4byte BattleScript_EffectSkillSwap
- .4byte BattleScript_EffectImprison
- .4byte BattleScript_EffectRefresh
- .4byte BattleScript_EffectGrudge
- .4byte BattleScript_EffectSnatch
- .4byte BattleScript_EffectLowKick
- .4byte BattleScript_EffectSecretPower
- .4byte BattleScript_EffectDoubleEdge
- .4byte BattleScript_EffectTeeterDance
- .4byte BattleScript_EffectBlazeKick
- .4byte BattleScript_EffectMudSport
- .4byte BattleScript_EffectPoisonFang
- .4byte BattleScript_EffectWeatherBall
- .4byte BattleScript_EffectOverheat
- .4byte BattleScript_EffectTickle
- .4byte BattleScript_EffectCosmicPower
- .4byte BattleScript_EffectSkyUppercut
- .4byte BattleScript_EffectBulkUp
- .4byte BattleScript_EffectPoisonTail
- .4byte BattleScript_EffectWaterSport
- .4byte BattleScript_EffectCalmMind
- .4byte BattleScript_EffectDragonDance
- .4byte BattleScript_EffectCamouflage
-
-BattleScript_EffectSpeedUp::
-BattleScript_EffectSpecialDefenseUp::
-BattleScript_EffectAccuracyUp::
-BattleScript_EffectAlwaysHit::
-BattleScript_EffectSpecialAttackDown::
-BattleScript_EffectSpecialDefenseDown::
-BattleScript_EffectHighCritical::
-BattleScript_EffectAccuracyUp2::
-BattleScript_EffectEvasionUp2::
-BattleScript_EffectSpecialAttackDown2::
-BattleScript_EffectAccuracyDown2::
-BattleScript_EffectEvasionDown2::
-BattleScript_EffectEvasionDownHit::
-BattleScript_EffectVitalThrow::
-BattleScript_EffectUnused60::
-BattleScript_EffectFalseSwipe::
-BattleScript_EffectQuickAttack::
-BattleScript_EffectUnused6e::
-BattleScript_EffectPursuit::
-BattleScript_EffectUnused83::
-BattleScript_EffectUnused8d::
-BattleScript_EffectUnusedA3::
+ .4byte BattleScript_EffectHit @ EFFECT_HIT
+ .4byte BattleScript_EffectSleep @ EFFECT_SLEEP
+ .4byte BattleScript_EffectPoisonHit @ EFFECT_POISON_HIT
+ .4byte BattleScript_EffectAbsorb @ EFFECT_ABSORB
+ .4byte BattleScript_EffectBurnHit @ EFFECT_BURN_HIT
+ .4byte BattleScript_EffectFreezeHit @ EFFECT_FREEZE_HIT
+ .4byte BattleScript_EffectParalyzeHit @ EFFECT_PARALYZE_HIT
+ .4byte BattleScript_EffectExplosion @ EFFECT_EXPLOSION
+ .4byte BattleScript_EffectDreamEater @ EFFECT_DREAM_EATER
+ .4byte BattleScript_EffectMirrorMove @ EFFECT_MIRROR_MOVE
+ .4byte BattleScript_EffectAttackUp @ EFFECT_ATTACK_UP
+ .4byte BattleScript_EffectDefenseUp @ EFFECT_DEFENSE_UP
+ .4byte BattleScript_EffectHit @ EFFECT_SPEED_UP
+ .4byte BattleScript_EffectSpecialAttackUp @ EFFECT_SPECIAL_ATTACK_UP
+ .4byte BattleScript_EffectHit @ EFFECT_SPECIAL_DEFENSE_UP
+ .4byte BattleScript_EffectHit @ EFFECT_ACCURACY_UP
+ .4byte BattleScript_EffectEvasionUp @ EFFECT_EVASION_UP
+ .4byte BattleScript_EffectHit @ EFFECT_ALWAYS_HIT
+ .4byte BattleScript_EffectAttackDown @ EFFECT_ATTACK_DOWN
+ .4byte BattleScript_EffectDefenseDown @ EFFECT_DEFENSE_DOWN
+ .4byte BattleScript_EffectSpeedDown @ EFFECT_SPEED_DOWN
+ .4byte BattleScript_EffectHit @ EFFECT_SPECIAL_ATTACK_DOWN
+ .4byte BattleScript_EffectHit @ EFFECT_SPECIAL_DEFENSE_DOWN
+ .4byte BattleScript_EffectAccuracyDown @ EFFECT_ACCURACY_DOWN
+ .4byte BattleScript_EffectEvasionDown @ EFFECT_EVASION_DOWN
+ .4byte BattleScript_EffectHaze @ EFFECT_HAZE
+ .4byte BattleScript_EffectBide @ EFFECT_BIDE
+ .4byte BattleScript_EffectRampage @ EFFECT_RAMPAGE
+ .4byte BattleScript_EffectRoar @ EFFECT_ROAR
+ .4byte BattleScript_EffectMultiHit @ EFFECT_MULTI_HIT
+ .4byte BattleScript_EffectConversion @ EFFECT_CONVERSION
+ .4byte BattleScript_EffectFlinchHit @ EFFECT_FLINCH_HIT
+ .4byte BattleScript_EffectRestoreHp @ EFFECT_RESTORE_HP
+ .4byte BattleScript_EffectToxic @ EFFECT_TOXIC
+ .4byte BattleScript_EffectPayDay @ EFFECT_PAY_DAY
+ .4byte BattleScript_EffectLightScreen @ EFFECT_LIGHT_SCREEN
+ .4byte BattleScript_EffectTriAttack @ EFFECT_TRI_ATTACK
+ .4byte BattleScript_EffectRest @ EFFECT_REST
+ .4byte BattleScript_EffectOHKO @ EFFECT_OHKO
+ .4byte BattleScript_EffectRazorWind @ EFFECT_RAZOR_WIND
+ .4byte BattleScript_EffectSuperFang @ EFFECT_SUPER_FANG
+ .4byte BattleScript_EffectDragonRage @ EFFECT_DRAGON_RAGE
+ .4byte BattleScript_EffectTrap @ EFFECT_TRAP
+ .4byte BattleScript_EffectHit @ EFFECT_HIGH_CRITICAL
+ .4byte BattleScript_EffectDoubleHit @ EFFECT_DOUBLE_HIT
+ .4byte BattleScript_EffectRecoilIfMiss @ EFFECT_RECOIL_IF_MISS
+ .4byte BattleScript_EffectMist @ EFFECT_MIST
+ .4byte BattleScript_EffectFocusEnergy @ EFFECT_FOCUS_ENERGY
+ .4byte BattleScript_EffectRecoil @ EFFECT_RECOIL
+ .4byte BattleScript_EffectConfuse @ EFFECT_CONFUSE
+ .4byte BattleScript_EffectAttackUp2 @ EFFECT_ATTACK_UP_2
+ .4byte BattleScript_EffectDefenseUp2 @ EFFECT_DEFENSE_UP_2
+ .4byte BattleScript_EffectSpeedUp2 @ EFFECT_SPEED_UP_2
+ .4byte BattleScript_EffectSpecialAttackUp2 @ EFFECT_SPECIAL_ATTACK_UP_2
+ .4byte BattleScript_EffectSpecialDefenseUp2 @ EFFECT_SPECIAL_DEFENSE_UP_2
+ .4byte BattleScript_EffectHit @ EFFECT_ACCURACY_UP_2
+ .4byte BattleScript_EffectHit @ EFFECT_EVASION_UP_2
+ .4byte BattleScript_EffectTransform @ EFFECT_TRANSFORM
+ .4byte BattleScript_EffectAttackDown2 @ EFFECT_ATTACK_DOWN_2
+ .4byte BattleScript_EffectDefenseDown2 @ EFFECT_DEFENSE_DOWN_2
+ .4byte BattleScript_EffectSpeedDown2 @ EFFECT_SPEED_DOWN_2
+ .4byte BattleScript_EffectHit @ EFFECT_SPECIAL_ATTACK_DOWN_2
+ .4byte BattleScript_EffectSpecialDefenseDown2 @ EFFECT_SPECIAL_DEFENSE_DOWN_2
+ .4byte BattleScript_EffectHit @ EFFECT_ACCURACY_DOWN_2
+ .4byte BattleScript_EffectHit @ EFFECT_EVASION_DOWN_2
+ .4byte BattleScript_EffectReflect @ EFFECT_REFLECT
+ .4byte BattleScript_EffectPoison @ EFFECT_POISON
+ .4byte BattleScript_EffectParalyze @ EFFECT_PARALYZE
+ .4byte BattleScript_EffectAttackDownHit @ EFFECT_ATTACK_DOWN_HIT
+ .4byte BattleScript_EffectDefenseDownHit @ EFFECT_DEFENSE_DOWN_HIT
+ .4byte BattleScript_EffectSpeedDownHit @ EFFECT_SPEED_DOWN_HIT
+ .4byte BattleScript_EffectSpecialAttackDownHit @ EFFECT_SPECIAL_ATTACK_DOWN_HIT
+ .4byte BattleScript_EffectSpecialDefenseDownHit @ EFFECT_SPECIAL_DEFENSE_DOWN_HIT
+ .4byte BattleScript_EffectAccuracyDownHit @ EFFECT_ACCURACY_DOWN_HIT
+ .4byte BattleScript_EffectHit @ EFFECT_EVASION_DOWN_HIT
+ .4byte BattleScript_EffectSkyAttack @ EFFECT_SKY_ATTACK
+ .4byte BattleScript_EffectConfuseHit @ EFFECT_CONFUSE_HIT
+ .4byte BattleScript_EffectTwineedle @ EFFECT_TWINEEDLE
+ .4byte BattleScript_EffectHit @ EFFECT_VITAL_THROW
+ .4byte BattleScript_EffectSubstitute @ EFFECT_SUBSTITUTE
+ .4byte BattleScript_EffectRecharge @ EFFECT_RECHARGE
+ .4byte BattleScript_EffectRage @ EFFECT_RAGE
+ .4byte BattleScript_EffectMimic @ EFFECT_MIMIC
+ .4byte BattleScript_EffectMetronome @ EFFECT_METRONOME
+ .4byte BattleScript_EffectLeechSeed @ EFFECT_LEECH_SEED
+ .4byte BattleScript_EffectSplash @ EFFECT_SPLASH
+ .4byte BattleScript_EffectDisable @ EFFECT_DISABLE
+ .4byte BattleScript_EffectLevelDamage @ EFFECT_LEVEL_DAMAGE
+ .4byte BattleScript_EffectPsywave @ EFFECT_PSYWAVE
+ .4byte BattleScript_EffectCounter @ EFFECT_COUNTER
+ .4byte BattleScript_EffectEncore @ EFFECT_ENCORE
+ .4byte BattleScript_EffectPainSplit @ EFFECT_PAIN_SPLIT
+ .4byte BattleScript_EffectSnore @ EFFECT_SNORE
+ .4byte BattleScript_EffectConversion2 @ EFFECT_CONVERSION_2
+ .4byte BattleScript_EffectLockOn @ EFFECT_LOCK_ON
+ .4byte BattleScript_EffectSketch @ EFFECT_SKETCH
+ .4byte BattleScript_EffectHit @ EFFECT_UNUSED_60
+ .4byte BattleScript_EffectSleepTalk @ EFFECT_SLEEP_TALK
+ .4byte BattleScript_EffectDestinyBond @ EFFECT_DESTINY_BOND
+ .4byte BattleScript_EffectFlail @ EFFECT_FLAIL
+ .4byte BattleScript_EffectSpite @ EFFECT_SPITE
+ .4byte BattleScript_EffectHit @ EFFECT_FALSE_SWIPE
+ .4byte BattleScript_EffectHealBell @ EFFECT_HEAL_BELL
+ .4byte BattleScript_EffectHit @ EFFECT_QUICK_ATTACK
+ .4byte BattleScript_EffectTripleKick @ EFFECT_TRIPLE_KICK
+ .4byte BattleScript_EffectThief @ EFFECT_THIEF
+ .4byte BattleScript_EffectMeanLook @ EFFECT_MEAN_LOOK
+ .4byte BattleScript_EffectNightmare @ EFFECT_NIGHTMARE
+ .4byte BattleScript_EffectMinimize @ EFFECT_MINIMIZE
+ .4byte BattleScript_EffectCurse @ EFFECT_CURSE
+ .4byte BattleScript_EffectHit @ EFFECT_UNUSED_6E
+ .4byte BattleScript_EffectProtect @ EFFECT_PROTECT
+ .4byte BattleScript_EffectSpikes @ EFFECT_SPIKES
+ .4byte BattleScript_EffectForesight @ EFFECT_FORESIGHT
+ .4byte BattleScript_EffectPerishSong @ EFFECT_PERISH_SONG
+ .4byte BattleScript_EffectSandstorm @ EFFECT_SANDSTORM
+ .4byte BattleScript_EffectEndure @ EFFECT_ENDURE
+ .4byte BattleScript_EffectRollout @ EFFECT_ROLLOUT
+ .4byte BattleScript_EffectSwagger @ EFFECT_SWAGGER
+ .4byte BattleScript_EffectFuryCutter @ EFFECT_FURY_CUTTER
+ .4byte BattleScript_EffectAttract @ EFFECT_ATTRACT
+ .4byte BattleScript_EffectReturn @ EFFECT_RETURN
+ .4byte BattleScript_EffectPresent @ EFFECT_PRESENT
+ .4byte BattleScript_EffectFrustration @ EFFECT_FRUSTRATION
+ .4byte BattleScript_EffectSafeguard @ EFFECT_SAFEGUARD
+ .4byte BattleScript_EffectThawHit @ EFFECT_THAW_HIT
+ .4byte BattleScript_EffectMagnitude @ EFFECT_MAGNITUDE
+ .4byte BattleScript_EffectBatonPass @ EFFECT_BATON_PASS
+ .4byte BattleScript_EffectHit @ EFFECT_PURSUIT
+ .4byte BattleScript_EffectRapidSpin @ EFFECT_RAPID_SPIN
+ .4byte BattleScript_EffectSonicboom @ EFFECT_SONICBOOM
+ .4byte BattleScript_EffectHit @ EFFECT_UNUSED_83
+ .4byte BattleScript_EffectMorningSun @ EFFECT_MORNING_SUN
+ .4byte BattleScript_EffectSynthesis @ EFFECT_SYNTHESIS
+ .4byte BattleScript_EffectMoonlight @ EFFECT_MOONLIGHT
+ .4byte BattleScript_EffectHiddenPower @ EFFECT_HIDDEN_POWER
+ .4byte BattleScript_EffectRainDance @ EFFECT_RAIN_DANCE
+ .4byte BattleScript_EffectSunnyDay @ EFFECT_SUNNY_DAY
+ .4byte BattleScript_EffectDefenseUpHit @ EFFECT_DEFENSE_UP_HIT
+ .4byte BattleScript_EffectAttackUpHit @ EFFECT_ATTACK_UP_HIT
+ .4byte BattleScript_EffectAllStatsUpHit @ EFFECT_ALL_STATS_UP_HIT
+ .4byte BattleScript_EffectHit @ EFFECT_UNUSED_8D
+ .4byte BattleScript_EffectBellyDrum @ EFFECT_BELLY_DRUM
+ .4byte BattleScript_EffectPsychUp @ EFFECT_PSYCH_UP
+ .4byte BattleScript_EffectMirrorCoat @ EFFECT_MIRROR_COAT
+ .4byte BattleScript_EffectSkullBash @ EFFECT_SKULL_BASH
+ .4byte BattleScript_EffectTwister @ EFFECT_TWISTER
+ .4byte BattleScript_EffectEarthquake @ EFFECT_EARTHQUAKE
+ .4byte BattleScript_EffectFutureSight @ EFFECT_FUTURE_SIGHT
+ .4byte BattleScript_EffectGust @ EFFECT_GUST
+ .4byte BattleScript_EffectStomp @ EFFECT_FLINCH_MINIMIZE_HIT
+ .4byte BattleScript_EffectSolarbeam @ EFFECT_SOLARBEAM
+ .4byte BattleScript_EffectThunder @ EFFECT_THUNDER
+ .4byte BattleScript_EffectTeleport @ EFFECT_TELEPORT
+ .4byte BattleScript_EffectBeatUp @ EFFECT_BEAT_UP
+ .4byte BattleScript_EffectSemiInvulnerable @ EFFECT_SEMI_INVULNERABLE
+ .4byte BattleScript_EffectDefenseCurl @ EFFECT_DEFENSE_CURL
+ .4byte BattleScript_EffectSoftboiled @ EFFECT_SOFTBOILED
+ .4byte BattleScript_EffectFakeOut @ EFFECT_FAKE_OUT
+ .4byte BattleScript_EffectUproar @ EFFECT_UPROAR
+ .4byte BattleScript_EffectStockpile @ EFFECT_STOCKPILE
+ .4byte BattleScript_EffectSpitUp @ EFFECT_SPIT_UP
+ .4byte BattleScript_EffectSwallow @ EFFECT_SWALLOW
+ .4byte BattleScript_EffectHit @ EFFECT_UNUSED_A3
+ .4byte BattleScript_EffectHail @ EFFECT_HAIL
+ .4byte BattleScript_EffectTorment @ EFFECT_TORMENT
+ .4byte BattleScript_EffectFlatter @ EFFECT_FLATTER
+ .4byte BattleScript_EffectWillOWisp @ EFFECT_WILL_O_WISP
+ .4byte BattleScript_EffectMemento @ EFFECT_MEMENTO
+ .4byte BattleScript_EffectFacade @ EFFECT_FACADE
+ .4byte BattleScript_EffectFocusPunch @ EFFECT_FOCUS_PUNCH
+ .4byte BattleScript_EffectSmellingsalt @ EFFECT_SMELLINGSALT
+ .4byte BattleScript_EffectFollowMe @ EFFECT_FOLLOW_ME
+ .4byte BattleScript_EffectNaturePower @ EFFECT_NATURE_POWER
+ .4byte BattleScript_EffectCharge @ EFFECT_CHARGE
+ .4byte BattleScript_EffectTaunt @ EFFECT_TAUNT
+ .4byte BattleScript_EffectHelpingHand @ EFFECT_HELPING_HAND
+ .4byte BattleScript_EffectTrick @ EFFECT_TRICK
+ .4byte BattleScript_EffectRolePlay @ EFFECT_ROLE_PLAY
+ .4byte BattleScript_EffectWish @ EFFECT_WISH
+ .4byte BattleScript_EffectAssist @ EFFECT_ASSIST
+ .4byte BattleScript_EffectIngrain @ EFFECT_INGRAIN
+ .4byte BattleScript_EffectSuperpower @ EFFECT_SUPERPOWER
+ .4byte BattleScript_EffectMagicCoat @ EFFECT_MAGIC_COAT
+ .4byte BattleScript_EffectRecycle @ EFFECT_RECYCLE
+ .4byte BattleScript_EffectRevenge @ EFFECT_REVENGE
+ .4byte BattleScript_EffectBrickBreak @ EFFECT_BRICK_BREAK
+ .4byte BattleScript_EffectYawn @ EFFECT_YAWN
+ .4byte BattleScript_EffectKnockOff @ EFFECT_KNOCK_OFF
+ .4byte BattleScript_EffectEndeavor @ EFFECT_ENDEAVOR
+ .4byte BattleScript_EffectEruption @ EFFECT_ERUPTION
+ .4byte BattleScript_EffectSkillSwap @ EFFECT_SKILL_SWAP
+ .4byte BattleScript_EffectImprison @ EFFECT_IMPRISON
+ .4byte BattleScript_EffectRefresh @ EFFECT_REFRESH
+ .4byte BattleScript_EffectGrudge @ EFFECT_GRUDGE
+ .4byte BattleScript_EffectSnatch @ EFFECT_SNATCH
+ .4byte BattleScript_EffectLowKick @ EFFECT_LOW_KICK
+ .4byte BattleScript_EffectSecretPower @ EFFECT_SECRET_POWER
+ .4byte BattleScript_EffectDoubleEdge @ EFFECT_DOUBLE_EDGE
+ .4byte BattleScript_EffectTeeterDance @ EFFECT_TEETER_DANCE
+ .4byte BattleScript_EffectBurnHit @ EFFECT_BLAZE_KICK
+ .4byte BattleScript_EffectMudSport @ EFFECT_MUD_SPORT
+ .4byte BattleScript_EffectPoisonFang @ EFFECT_POISON_FANG
+ .4byte BattleScript_EffectWeatherBall @ EFFECT_WEATHER_BALL
+ .4byte BattleScript_EffectOverheat @ EFFECT_OVERHEAT
+ .4byte BattleScript_EffectTickle @ EFFECT_TICKLE
+ .4byte BattleScript_EffectCosmicPower @ EFFECT_COSMIC_POWER
+ .4byte BattleScript_EffectSkyUppercut @ EFFECT_SKY_UPPERCUT
+ .4byte BattleScript_EffectBulkUp @ EFFECT_BULK_UP
+ .4byte BattleScript_EffectPoisonHit @ EFFECT_POISON_TAIL
+ .4byte BattleScript_EffectWaterSport @ EFFECT_WATER_SPORT
+ .4byte BattleScript_EffectCalmMind @ EFFECT_CALM_MIND
+ .4byte BattleScript_EffectDragonDance @ EFFECT_DRAGON_DANCE
+ .4byte BattleScript_EffectCamouflage @ EFFECT_CAMOUFLAGE
+
BattleScript_EffectHit::
jumpifnotmove MOVE_SURF, BattleScript_HitFromAtkCanceler
jumpifnostatus3 BS_TARGET, STATUS3_UNDERWATER, BattleScript_HitFromAtkCanceler
@@ -338,7 +316,6 @@ BattleScript_CantMakeAsleep::
goto BattleScript_MoveEnd
BattleScript_EffectPoisonHit::
-BattleScript_EffectPoisonTail::
setmoveeffect MOVE_EFFECT_POISON
goto BattleScript_EffectHit
@@ -382,7 +359,6 @@ BattleScript_AbsorbTryFainting::
goto BattleScript_MoveEnd
BattleScript_EffectBurnHit::
-BattleScript_EffectBlazeKick::
setmoveeffect MOVE_EFFECT_BURN
goto BattleScript_EffectHit
@@ -1120,7 +1096,7 @@ BattleScript_SubstituteAnim::
healthbarupdate BS_ATTACKER
datahpupdate BS_ATTACKER
BattleScript_SubstituteString::
- printfromtable gSubsituteUsedStringIds
+ printfromtable gSubstituteUsedStringIds
waitmessage B_WAIT_TIME_LONG
goto BattleScript_MoveEnd
BattleScript_AlreadyHasSubstitute::
diff --git a/data/event_scripts.s b/data/event_scripts.s
index 8039be687..432f1294d 100644
--- a/data/event_scripts.s
+++ b/data/event_scripts.s
@@ -736,7 +736,7 @@ EventScript_RegionMap:: @ 827208F
Common_EventScript_PlayBrineysBoatMusic:: @ 82720A0
setflag FLAG_DONT_TRANSITION_MUSIC
- playbgm MUS_SAILING, 0
+ playbgm MUS_SAILING, FALSE
return
Common_EventScript_StopBrineysBoatMusic:: @ 82720A8
diff --git a/data/maps/BattleFrontier_BattlePyramidFloor/scripts.inc b/data/maps/BattleFrontier_BattlePyramidFloor/scripts.inc
index 4f378c4e5..e63e27e4e 100644
--- a/data/maps/BattleFrontier_BattlePyramidFloor/scripts.inc
+++ b/data/maps/BattleFrontier_BattlePyramidFloor/scripts.inc
@@ -33,7 +33,7 @@ BattleFrontier_BattlePyramidFloor_EventScript_ShowMapName:: @ 8252A8F
end
BattleFrontier_BattlePyramidFloor_EventScript_PlayPyramidMusic:: @ 8252A98
- playbgm MUS_B_PYRAMID, 0
+ playbgm MUS_B_PYRAMID, FALSE
setvar VAR_TEMP_E, 1
end
diff --git a/data/maps/BattleFrontier_BattlePyramidTop/scripts.inc b/data/maps/BattleFrontier_BattlePyramidTop/scripts.inc
index 076fae158..568424083 100644
--- a/data/maps/BattleFrontier_BattlePyramidTop/scripts.inc
+++ b/data/maps/BattleFrontier_BattlePyramidTop/scripts.inc
@@ -53,7 +53,7 @@ BattleFrontier_BattlePyramidTop_OnFrame: @ 825516E
.2byte 0
BattleFrontier_BattlePyramidTop_EventScript_PlayPyramidMusic:: @ 8255180
- playbgm MUS_B_PYRAMID_TOP, 0
+ playbgm MUS_B_PYRAMID_TOP, FALSE
setvar VAR_TEMP_E, 1
end
@@ -136,7 +136,7 @@ BattleFrontier_BattlePyramidTop_EventScript_BrandonHeardSilverSpeech:: @ 82552D0
BattleFrontier_BattlePyramidTop_EventScript_BattleBrandonSilver:: @ 82552DA
msgbox BattleFrontier_BattlePyramidTop_Text_BringCourageToOurBattle, MSGBOX_DEFAULT
call BattleFrontier_BattlePyramidTop_EventScript_DoBrandonBattle
- playbgm MUS_B_PYRAMID_TOP, 0
+ playbgm MUS_B_PYRAMID_TOP, FALSE
compare VAR_RESULT, 1
goto_if_eq BattleFrontier_BattlePyramidTop_EventScript_DefeatedBrandonSilver
goto BattleFrontier_BattlePyramid_EventScript_WarpToLobbyLost
@@ -176,7 +176,7 @@ BattleFrontier_BattlePyramidTop_EventScript_BrandonHeardGoldSpeech:: @ 8255388
BattleFrontier_BattlePyramidTop_EventScript_BattleBrandonGold:: @ 8255392
msgbox BattleFrontier_BattlePyramidTop_Text_EverythingYouHave, MSGBOX_DEFAULT
call BattleFrontier_BattlePyramidTop_EventScript_DoBrandonBattle
- playbgm MUS_B_PYRAMID_TOP, 0
+ playbgm MUS_B_PYRAMID_TOP, FALSE
compare VAR_RESULT, 1
goto_if_eq BattleFrontier_BattlePyramidTop_EventScript_DefeatedBrandonGold
goto BattleFrontier_BattlePyramid_EventScript_WarpToLobbyLost
diff --git a/data/maps/BirthIsland_Exterior/scripts.inc b/data/maps/BirthIsland_Exterior/scripts.inc
index 3509e0326..58a74f8c4 100644
--- a/data/maps/BirthIsland_Exterior/scripts.inc
+++ b/data/maps/BirthIsland_Exterior/scripts.inc
@@ -73,7 +73,7 @@ BirthIsland_Exterior_EventScript_Deoxys:: @ 8267FC1
setfieldeffectargument 1, MAP_NUM(BIRTH_ISLAND_EXTERIOR)
setfieldeffectargument 2, MAP_GROUP(BIRTH_ISLAND_EXTERIOR)
dofieldeffect FLDEFF_DESTROY_DEOXYS_ROCK
- playbgm MUS_RG_ENCOUNTER_DEOXYS, 0
+ playbgm MUS_RG_ENCOUNTER_DEOXYS, FALSE
waitfieldeffect FLDEFF_DESTROY_DEOXYS_ROCK
addobject LOCALID_DEOXYS
applymovement LOCALID_DEOXYS, BirthIsland_Exterior_Movement_DeoxysApproach
diff --git a/data/maps/EverGrandeCity_ChampionsRoom/scripts.inc b/data/maps/EverGrandeCity_ChampionsRoom/scripts.inc
index d41c10d0a..7b75c8752 100644
--- a/data/maps/EverGrandeCity_ChampionsRoom/scripts.inc
+++ b/data/maps/EverGrandeCity_ChampionsRoom/scripts.inc
@@ -42,7 +42,7 @@ EverGrandeCity_ChampionsRoom_Movement_PlayerApproachWallace: @ 8228A42
step_end
EverGrandeCity_ChampionsRoom_EventScript_Wallace:: @ 8228A45
- playbgm MUS_ENCOUNTER_CHAMPION, 0
+ playbgm MUS_ENCOUNTER_CHAMPION, FALSE
msgbox EverGrandeCity_ChampionsRoom_Text_IntroSpeech, MSGBOX_DEFAULT
trainerbattle_no_intro TRAINER_WALLACE, EverGrandeCity_ChampionsRoom_Text_Defeat
goto EverGrandeCity_ChampionsRoom_EventScript_Defeated
@@ -71,11 +71,11 @@ EverGrandeCity_ChampionsRoom_EventScript_Defeated:: @ 8228A61
end
EverGrandeCity_ChampionsRoom_EventScript_PlayMayMusic:: @ 8228ABC
- playbgm MUS_ENCOUNTER_MAY, 0
+ playbgm MUS_ENCOUNTER_MAY, FALSE
return
EverGrandeCity_ChampionsRoom_EventScript_PlayBrendanMusic:: @ 8228AC1
- playbgm MUS_ENCOUNTER_BRENDAN, 0
+ playbgm MUS_ENCOUNTER_BRENDAN, FALSE
return
EverGrandeCity_ChampionsRoom_EventScript_MayAdvice:: @ 8228AC6
diff --git a/data/maps/EverGrandeCity_DrakesRoom/scripts.inc b/data/maps/EverGrandeCity_DrakesRoom/scripts.inc
index feb65d149..38762277f 100644
--- a/data/maps/EverGrandeCity_DrakesRoom/scripts.inc
+++ b/data/maps/EverGrandeCity_DrakesRoom/scripts.inc
@@ -42,7 +42,7 @@ EverGrandeCity_DrakesRoom_EventScript_Drake:: @ 82286F3
lock
faceplayer
goto_if_set FLAG_DEFEATED_ELITE_4_DRAKE, EverGrandeCity_DrakesRoom_EventScript_PostBattleSpeech
- playbgm MUS_ENCOUNTER_ELITE_FOUR, 0
+ playbgm MUS_ENCOUNTER_ELITE_FOUR, FALSE
msgbox EverGrandeCity_DrakesRoom_Text_IntroSpeech, MSGBOX_DEFAULT
trainerbattle_no_intro TRAINER_DRAKE, EverGrandeCity_DrakesRoom_Text_Defeat
goto EverGrandeCity_DrakesRoom_EventScript_Defeated
diff --git a/data/maps/EverGrandeCity_GlaciasRoom/scripts.inc b/data/maps/EverGrandeCity_GlaciasRoom/scripts.inc
index ff04a752a..3529b746c 100644
--- a/data/maps/EverGrandeCity_GlaciasRoom/scripts.inc
+++ b/data/maps/EverGrandeCity_GlaciasRoom/scripts.inc
@@ -41,7 +41,7 @@ EverGrandeCity_GlaciasRoom_EventScript_Glacia:: @ 8228469
lock
faceplayer
goto_if_set FLAG_DEFEATED_ELITE_4_GLACIA, EverGrandeCity_GlaciasRoom_EventScript_PostBattleSpeech
- playbgm MUS_ENCOUNTER_ELITE_FOUR, 0
+ playbgm MUS_ENCOUNTER_ELITE_FOUR, FALSE
msgbox EverGrandeCity_GlaciasRoom_Text_IntroSpeech, MSGBOX_DEFAULT
trainerbattle_no_intro TRAINER_GLACIA, EverGrandeCity_GlaciasRoom_Text_Defeat
goto EverGrandeCity_GlaciasRoom_EventScript_Defeated
diff --git a/data/maps/EverGrandeCity_PhoebesRoom/scripts.inc b/data/maps/EverGrandeCity_PhoebesRoom/scripts.inc
index e98bf4eb3..c922ffe7a 100644
--- a/data/maps/EverGrandeCity_PhoebesRoom/scripts.inc
+++ b/data/maps/EverGrandeCity_PhoebesRoom/scripts.inc
@@ -41,7 +41,7 @@ EverGrandeCity_PhoebesRoom_EventScript_Phoebe:: @ 82281CB
lock
faceplayer
goto_if_set FLAG_DEFEATED_ELITE_4_PHOEBE, EverGrandeCity_PhoebesRoom_EventScript_PostBattleSpeech
- playbgm MUS_ENCOUNTER_ELITE_FOUR, 0
+ playbgm MUS_ENCOUNTER_ELITE_FOUR, FALSE
msgbox EverGrandeCity_PhoebesRoom_Text_IntroSpeech, MSGBOX_DEFAULT
trainerbattle_no_intro TRAINER_PHOEBE, EverGrandeCity_PhoebesRoom_Text_Defeat
goto EverGrandeCity_PhoebesRoom_EventScript_Defeated
diff --git a/data/maps/EverGrandeCity_SidneysRoom/scripts.inc b/data/maps/EverGrandeCity_SidneysRoom/scripts.inc
index 717651b26..4cd8f262e 100644
--- a/data/maps/EverGrandeCity_SidneysRoom/scripts.inc
+++ b/data/maps/EverGrandeCity_SidneysRoom/scripts.inc
@@ -47,7 +47,7 @@ EverGrandeCity_SidneysRoom_EventScript_Sidney:: @ 8227F64
lock
faceplayer
goto_if_set FLAG_DEFEATED_ELITE_4_SIDNEY, EverGrandeCity_SidneysRoom_EventScript_PostBattleSpeech
- playbgm MUS_ENCOUNTER_ELITE_FOUR, 0
+ playbgm MUS_ENCOUNTER_ELITE_FOUR, FALSE
msgbox EverGrandeCity_SidneysRoom_Text_IntroSpeech, MSGBOX_DEFAULT
trainerbattle_no_intro TRAINER_SIDNEY, EverGrandeCity_SidneysRoom_Text_Defeat
goto EverGrandeCity_SidneysRoom_EventScript_Defeated
diff --git a/data/maps/LavaridgeTown/scripts.inc b/data/maps/LavaridgeTown/scripts.inc
index 1f9fe421d..59275c526 100644
--- a/data/maps/LavaridgeTown/scripts.inc
+++ b/data/maps/LavaridgeTown/scripts.inc
@@ -105,11 +105,11 @@ LavaridgeTown_EventScript_RivalExit:: @ 81EA5FF
end
LavaridgeTown_EventScript_PlayMayMusic:: @ 81EA630
- playbgm MUS_ENCOUNTER_MAY, 1
+ playbgm MUS_ENCOUNTER_MAY, TRUE
return
LavaridgeTown_EventScript_PlayBrendanMusic:: @ 81EA635
- playbgm MUS_ENCOUNTER_BRENDAN, 1
+ playbgm MUS_ENCOUNTER_BRENDAN, TRUE
return
LavaridgeTown_EventScript_RivalNoticePlayer:: @ 81EA63A
diff --git a/data/maps/LilycoveCity/scripts.inc b/data/maps/LilycoveCity/scripts.inc
index 0c94bce62..b5748ef60 100644
--- a/data/maps/LilycoveCity/scripts.inc
+++ b/data/maps/LilycoveCity/scripts.inc
@@ -160,7 +160,7 @@ LilycoveCity_EventScript_MotelSign:: @ 81E2D11
LilycoveCity_EventScript_MuseumSign:: @ 81E2D1A
lockall
- specialvar VAR_0x8004, CountPlayerContestPaintings
+ specialvar VAR_0x8004, CountPlayerMuseumPaintings
switch VAR_0x8004
case 0, LilycoveCity_EventScript_MuseumSignNoPaintings
msgbox LilycoveCity_Text_MuseumSignPlayersExhibit, MSGBOX_DEFAULT
@@ -241,7 +241,7 @@ LilycoveCity_EventScript_Rival:: @ 81E2DDE
end
LilycoveCity_EventScript_May:: @ 81E2DF8
- playbgm MUS_ENCOUNTER_MAY, 1
+ playbgm MUS_ENCOUNTER_MAY, TRUE
call_if_set FLAG_DECLINED_RIVAL_BATTLE_LILYCOVE, LilycoveCity_EventScript_MayAskToBattleAgain
call_if_unset FLAG_DECLINED_RIVAL_BATTLE_LILYCOVE, LilycoveCity_EventScript_MayAskToBattle
compare VAR_RESULT, NO
@@ -270,7 +270,7 @@ LilycoveCity_EventScript_DeclineMayBattle:: @ 81E2E5A
end
LilycoveCity_EventScript_Brendan:: @ 81E2E6B
- playbgm MUS_ENCOUNTER_BRENDAN, 1
+ playbgm MUS_ENCOUNTER_BRENDAN, TRUE
call_if_set FLAG_DECLINED_RIVAL_BATTLE_LILYCOVE, LilycoveCity_EventScript_BrendanAskToBattleAgain
call_if_unset FLAG_DECLINED_RIVAL_BATTLE_LILYCOVE, LilycoveCity_EventScript_BrendanAskToBattle
compare VAR_RESULT, NO
diff --git a/data/maps/LilycoveCity_ContestLobby/scripts.inc b/data/maps/LilycoveCity_ContestLobby/scripts.inc
index 300d4dfab..458585ea4 100644
--- a/data/maps/LilycoveCity_ContestLobby/scripts.inc
+++ b/data/maps/LilycoveCity_ContestLobby/scripts.inc
@@ -49,7 +49,7 @@ LilycoveCity_ContestLobby_EventScript_ContestArtist:: @ 821A264
msgbox LilycoveCity_ContestLobby_Text_YourPokemonSpurredMeToPaint, MSGBOX_DEFAULT
lockall
fadescreen FADE_TO_BLACK
- showcontestwinner CONTEST_WINNER_ARTIST
+ showcontestpainting CONTEST_WINNER_ARTIST
lockall
msgbox LilycoveCity_ContestLobby_Text_ShouldITakePaintingToMuseum, MSGBOX_YESNO
compare VAR_RESULT, YES
@@ -108,7 +108,7 @@ LilycoveCity_ContestLobby_EventScript_ReceivedArtistRibbon:: @ 821A314
return
LilycoveCity_ContestLobby_EventScript_UpdateMuseumPatrons:: @ 821A360
- specialvar VAR_0x8004, CountPlayerContestPaintings
+ specialvar VAR_0x8004, CountPlayerMuseumPaintings
switch VAR_0x8004
case 1, LilycoveCity_ContestLobby_EventScript_ShowPatron1
case 2, LilycoveCity_ContestLobby_EventScript_ShowPatron2
@@ -223,7 +223,7 @@ LilycoveCity_ContestLobby_EventScript_LinkContestArtist:: @ 821A436
msgbox LilycoveCity_ContestLobby_Text_YourPokemonSpurredMeToPaint, MSGBOX_DEFAULT
lockall
fadescreen FADE_TO_BLACK
- showcontestwinner CONTEST_WINNER_ARTIST
+ showcontestpainting CONTEST_WINNER_ARTIST
msgbox LilycoveCity_ContestLobby_Text_ShouldITakePaintingToMuseum, MSGBOX_YESNO
compare VAR_RESULT, YES
goto_if_eq LilycoveCity_ContestLobby_EventScript_TakePaintingToMuseumLink
@@ -511,42 +511,42 @@ LilycoveCity_ContestLobby_EventScript_NinjaBoy:: @ 821A735
LilycoveCity_ContestLobby_EventScript_ContestWinner1:: @ 821A73E
lockall
fadescreen FADE_TO_BLACK
- showcontestwinner CONTEST_WINNER_HALL_1
+ showcontestpainting CONTEST_WINNER_HALL_1
releaseall
end
LilycoveCity_ContestLobby_EventScript_ContestWinner2:: @ 821A745
lockall
fadescreen FADE_TO_BLACK
- showcontestwinner CONTEST_WINNER_HALL_2
+ showcontestpainting CONTEST_WINNER_HALL_2
releaseall
end
LilycoveCity_ContestLobby_EventScript_ContestWinner3:: @ 821A74C
lockall
fadescreen FADE_TO_BLACK
- showcontestwinner CONTEST_WINNER_HALL_3
+ showcontestpainting CONTEST_WINNER_HALL_3
releaseall
end
LilycoveCity_ContestLobby_EventScript_ContestWinner4:: @ 821A753
lockall
fadescreen FADE_TO_BLACK
- showcontestwinner CONTEST_WINNER_HALL_4
+ showcontestpainting CONTEST_WINNER_HALL_4
releaseall
end
LilycoveCity_ContestLobby_EventScript_ContestWinner5:: @ 821A75A
lockall
fadescreen FADE_TO_BLACK
- showcontestwinner CONTEST_WINNER_HALL_5
+ showcontestpainting CONTEST_WINNER_HALL_5
releaseall
end
LilycoveCity_ContestLobby_EventScript_ContestWinner6:: @ 821A761
lockall
fadescreen FADE_TO_BLACK
- showcontestwinner CONTEST_WINNER_HALL_6
+ showcontestpainting CONTEST_WINNER_HALL_6
releaseall
end
diff --git a/data/maps/LilycoveCity_LilycoveMuseum_2F/scripts.inc b/data/maps/LilycoveCity_LilycoveMuseum_2F/scripts.inc
index 4cebebd82..6f51d1cac 100644
--- a/data/maps/LilycoveCity_LilycoveMuseum_2F/scripts.inc
+++ b/data/maps/LilycoveCity_LilycoveMuseum_2F/scripts.inc
@@ -94,7 +94,7 @@ LilycoveCity_LilycoveMuseum_2F_Movement_FaceExhibitHall: @ 8219863
LilycoveCity_LilycoveMuseum_2F_EventScript_Curator:: @ 8219866
lockall
goto_if_set FLAG_RECEIVED_GLASS_ORNAMENT, LilycoveCity_LilycoveMuseum_2F_EventScript_ReceivedGlassOrnament
- specialvar VAR_0x8004, CountPlayerContestPaintings
+ specialvar VAR_0x8004, CountPlayerMuseumPaintings
switch VAR_0x8004
case 1, LilycoveCity_LilycoveMuseum_2F_EventScript_AddedPainting
case 2, LilycoveCity_LilycoveMuseum_2F_EventScript_AddedPainting
@@ -185,35 +185,35 @@ LilycoveCity_LilycoveMuseum_2F_EventScript_RichBoy:: @ 821999C
LilycoveCity_LilycoveMuseum_2F_EventScript_ShowCoolPainting:: @ 82199A5
msgbox LilycoveCity_LilycoveMuseum_2F_Text_ItsPaintingOfPokemon, MSGBOX_SIGN
fadescreen FADE_TO_BLACK
- showcontestwinner CONTEST_WINNER_MUSEUM_COOL
+ showcontestpainting CONTEST_WINNER_MUSEUM_COOL
releaseall
end
LilycoveCity_LilycoveMuseum_2F_EventScript_ShowBeautyPainting:: @ 82199B3
msgbox LilycoveCity_LilycoveMuseum_2F_Text_ItsPaintingOfPokemon, MSGBOX_SIGN
fadescreen FADE_TO_BLACK
- showcontestwinner CONTEST_WINNER_MUSEUM_BEAUTY
+ showcontestpainting CONTEST_WINNER_MUSEUM_BEAUTY
releaseall
end
LilycoveCity_LilycoveMuseum_2F_EventScript_ShowCutePainting:: @ 82199C1
msgbox LilycoveCity_LilycoveMuseum_2F_Text_ItsPaintingOfPokemon, MSGBOX_SIGN
fadescreen FADE_TO_BLACK
- showcontestwinner CONTEST_WINNER_MUSEUM_CUTE
+ showcontestpainting CONTEST_WINNER_MUSEUM_CUTE
releaseall
end
LilycoveCity_LilycoveMuseum_2F_EventScript_ShowSmartPainting:: @ 82199CF
msgbox LilycoveCity_LilycoveMuseum_2F_Text_ItsPaintingOfPokemon, MSGBOX_SIGN
fadescreen FADE_TO_BLACK
- showcontestwinner CONTEST_WINNER_MUSEUM_SMART
+ showcontestpainting CONTEST_WINNER_MUSEUM_SMART
releaseall
end
LilycoveCity_LilycoveMuseum_2F_EventScript_ShowToughPainting:: @ 82199DD
msgbox LilycoveCity_LilycoveMuseum_2F_Text_ItsPaintingOfPokemon, MSGBOX_SIGN
fadescreen FADE_TO_BLACK
- showcontestwinner CONTEST_WINNER_MUSEUM_TOUGH
+ showcontestpainting CONTEST_WINNER_MUSEUM_TOUGH
releaseall
end
diff --git a/data/maps/LilycoveCity_PokemonTrainerFanClub/scripts.inc b/data/maps/LilycoveCity_PokemonTrainerFanClub/scripts.inc
index 6ff869db3..86544d3e9 100644
--- a/data/maps/LilycoveCity_PokemonTrainerFanClub/scripts.inc
+++ b/data/maps/LilycoveCity_PokemonTrainerFanClub/scripts.inc
@@ -173,7 +173,7 @@ LilycoveCity_PokemonTrainerFanClub_EventScript_CountNotPlayersFan:: @ 821C9AE
return
LilycoveCity_PokemonTrainerFanClub_EventScript_TrySetUpTVShow:: @ 821C9B4
- special TrySetUpTrainerFanClubSpecial
+ special TryPutTrainerFanClubOnAir
return
LilycoveCity_PokemonTrainerFanClub_EventScript_MoveMember1ToFarTable:: @ 821C9B8
diff --git a/data/maps/LittlerootTown_BrendansHouse_1F/scripts.inc b/data/maps/LittlerootTown_BrendansHouse_1F/scripts.inc
index ee677fbff..4b5679ad9 100644
--- a/data/maps/LittlerootTown_BrendansHouse_1F/scripts.inc
+++ b/data/maps/LittlerootTown_BrendansHouse_1F/scripts.inc
@@ -158,7 +158,7 @@ LittlerootTown_BrendansHouse_1F_EventScript_MeetRival:: @ 81F78E2
waitmovement 0
compare VAR_0x8008, 1
call_if_ne LittlerootTown_BrendansHouse_1F_EventScript_PlayerFaceBrendan
- playbgm MUS_ENCOUNTER_BRENDAN, 1
+ playbgm MUS_ENCOUNTER_BRENDAN, TRUE
compare VAR_0x8008, 0
call_if_eq LittlerootTown_BrendansHouse_1F_EventScript_BrendanApproachPlayer0
compare VAR_0x8008, 1
diff --git a/data/maps/LittlerootTown_BrendansHouse_2F/scripts.inc b/data/maps/LittlerootTown_BrendansHouse_2F/scripts.inc
index ab6f55af5..6cfeea7e4 100644
--- a/data/maps/LittlerootTown_BrendansHouse_2F/scripts.inc
+++ b/data/maps/LittlerootTown_BrendansHouse_2F/scripts.inc
@@ -74,7 +74,7 @@ LittlerootTown_BrendansHouse_2F_EventScript_MeetBrendan:: @ 81F8497
applymovement LOCALID_RIVAL, Common_Movement_Delay48
waitmovement 0
delay 10
- playbgm MUS_ENCOUNTER_BRENDAN, 1
+ playbgm MUS_ENCOUNTER_BRENDAN, TRUE
compare VAR_FACING, DIR_NORTH
call_if_eq LittlerootTown_BrendansHouse_2F_EventScript_MeetBrendanNorth
compare VAR_FACING, DIR_SOUTH
diff --git a/data/maps/LittlerootTown_MaysHouse_1F/scripts.inc b/data/maps/LittlerootTown_MaysHouse_1F/scripts.inc
index 1e1bb0e11..f1df425b7 100644
--- a/data/maps/LittlerootTown_MaysHouse_1F/scripts.inc
+++ b/data/maps/LittlerootTown_MaysHouse_1F/scripts.inc
@@ -192,7 +192,7 @@ LittlerootTown_MaysHouse_1F_EventScript_MeetRival:: @ 81F8A8B
waitmovement 0
compare VAR_0x8008, 1
call_if_ne LittlerootTown_MaysHouse_1F_EventScript_PlayerFaceMay
- playbgm MUS_ENCOUNTER_MAY, 1
+ playbgm MUS_ENCOUNTER_MAY, TRUE
compare VAR_0x8008, 0
call_if_eq LittlerootTown_MaysHouse_1F_EventScript_MayApproachPlayer0
compare VAR_0x8008, 1
diff --git a/data/maps/LittlerootTown_MaysHouse_2F/scripts.inc b/data/maps/LittlerootTown_MaysHouse_2F/scripts.inc
index dd22ed670..a0583841c 100644
--- a/data/maps/LittlerootTown_MaysHouse_2F/scripts.inc
+++ b/data/maps/LittlerootTown_MaysHouse_2F/scripts.inc
@@ -74,7 +74,7 @@ LittlerootTown_MaysHouse_2F_EventScript_MeetMay:: @ 81F934A
applymovement LOCALID_RIVAL, Common_Movement_Delay48
waitmovement 0
delay 10
- playbgm MUS_ENCOUNTER_MAY, 1
+ playbgm MUS_ENCOUNTER_MAY, TRUE
compare VAR_FACING, DIR_NORTH
call_if_eq LittlerootTown_MaysHouse_2F_EventScript_MeetMayNorth
compare VAR_FACING, DIR_SOUTH
diff --git a/data/maps/MagmaHideout_2F_2R/map.json b/data/maps/MagmaHideout_2F_2R/map.json
index 4aa6896f6..968c07fb7 100644
--- a/data/maps/MagmaHideout_2F_2R/map.json
+++ b/data/maps/MagmaHideout_2F_2R/map.json
@@ -50,7 +50,7 @@
"movement_range_y": 1,
"trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0",
- "script": "MagmaHideout_2F_2R_EventScript_MaxElixir",
+ "script": "MagmaHideout_2F_2R_EventScript_ItemMaxElixir",
"flag": "FLAG_ITEM_MAGMA_HIDEOUT_2F_2R_MAX_ELIXIR"
},
{
diff --git a/data/maps/MagmaHideout_4F/map.json b/data/maps/MagmaHideout_4F/map.json
index 94cf295e0..67c11481f 100644
--- a/data/maps/MagmaHideout_4F/map.json
+++ b/data/maps/MagmaHideout_4F/map.json
@@ -115,7 +115,7 @@
"movement_range_y": 1,
"trainer_type": "TRAINER_TYPE_NONE",
"trainer_sight_or_berry_tree_id": "0",
- "script": "MagmaHideout_4F_EventScript_MaxRevive",
+ "script": "MagmaHideout_4F_EventScript_ItemMaxRevive",
"flag": "FLAG_ITEM_MAGMA_HIDEOUT_4F_MAX_REVIVE"
}
],
diff --git a/data/maps/MagmaHideout_4F/scripts.inc b/data/maps/MagmaHideout_4F/scripts.inc
index 50382f44e..199e3c1bc 100644
--- a/data/maps/MagmaHideout_4F/scripts.inc
+++ b/data/maps/MagmaHideout_4F/scripts.inc
@@ -11,7 +11,7 @@ MagmaHideout_4F_MapScripts:: @ 823A55F
MagmaHideout_4F_EventScript_Maxie:: @ 823A560
lockall
- playbgm MUS_ENCOUNTER_MAGMA, 0
+ playbgm MUS_ENCOUNTER_MAGMA, FALSE
msgbox MagmaHideout_4F_Text_MaxieAwakenGroudon, MSGBOX_DEFAULT
closemessage
delay 20
diff --git a/data/maps/MeteorFalls_1F_1R/scripts.inc b/data/maps/MeteorFalls_1F_1R/scripts.inc
index c942e230e..8202267b9 100644
--- a/data/maps/MeteorFalls_1F_1R/scripts.inc
+++ b/data/maps/MeteorFalls_1F_1R/scripts.inc
@@ -21,7 +21,7 @@ MeteorFalls_1F_1R_EventScript_OpenStevensCave:: @ 822BD3A
MeteorFalls_1F_1R_EventScript_MagmaStealsMeteoriteScene:: @ 822BD5F
lockall
- playbgm MUS_ENCOUNTER_MAGMA, 0
+ playbgm MUS_ENCOUNTER_MAGMA, FALSE
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_FaceDown
waitmovement 0
delay 30
@@ -50,7 +50,7 @@ MeteorFalls_1F_1R_EventScript_MagmaStealsMeteoriteScene:: @ 822BD5F
addobject LOCALID_ARCHIE
addobject LOCALID_AQUA_GRUNT_1
addobject LOCALID_AQUA_GRUNT_2
- playbgm MUS_ENCOUNTER_AQUA, 0
+ playbgm MUS_ENCOUNTER_AQUA, FALSE
applymovement LOCALID_ARCHIE, MeteorFalls_1F_1R_Movement_ArchieArrive
applymovement LOCALID_AQUA_GRUNT_1, MeteorFalls_1F_1R_Movement_AquaGrunt1Arrive
applymovement LOCALID_AQUA_GRUNT_2, MeteorFalls_1F_1R_Movement_AquaGrunt2Arrive
diff --git a/data/maps/MtChimney/scripts.inc b/data/maps/MtChimney/scripts.inc
index c633d9313..061590e1a 100644
--- a/data/maps/MtChimney/scripts.inc
+++ b/data/maps/MtChimney/scripts.inc
@@ -40,7 +40,7 @@ MtChimney_EventScript_ArchieBusyFighting:: @ 822EE02
MtChimney_EventScript_Maxie:: @ 822EE0B
lockall
- playbgm MUS_ENCOUNTER_MAGMA, 0
+ playbgm MUS_ENCOUNTER_MAGMA, FALSE
msgbox MtChimney_Text_MeteoriteWillActivateVolcano, MSGBOX_DEFAULT
applymovement LOCALID_MAXIE, Common_Movement_FacePlayer
waitmovement 0
diff --git a/data/maps/MtPyre_Summit/scripts.inc b/data/maps/MtPyre_Summit/scripts.inc
index c2692ff20..e899c3471 100644
--- a/data/maps/MtPyre_Summit/scripts.inc
+++ b/data/maps/MtPyre_Summit/scripts.inc
@@ -39,7 +39,7 @@ MtPyre_Summit_EventScript_TeamAquaTrigger2:: @ 8232030
end
MtPyre_Summit_EventScript_TeamAquaExits:: @ 823203C
- playbgm MUS_ENCOUNTER_AQUA, 0
+ playbgm MUS_ENCOUNTER_AQUA, FALSE
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_FaceUp
waitmovement 0
applymovement LOCALID_ARCHIE, Common_Movement_WalkInPlaceFastestDown
diff --git a/data/maps/OldaleTown/scripts.inc b/data/maps/OldaleTown/scripts.inc
index f99c65d2c..593215357 100644
--- a/data/maps/OldaleTown/scripts.inc
+++ b/data/maps/OldaleTown/scripts.inc
@@ -43,7 +43,7 @@ OldaleTown_EventScript_MartEmployee:: @ 81E8EFC
goto_if_set FLAG_RECEIVED_POTION_OLDALE, OldaleTown_EventScript_ExplainPotion
goto_if_set FLAG_TEMP_1, OldaleTown_EventScript_ExplainPotion
setflag FLAG_TEMP_1
- playbgm MUS_FOLLOW_ME, 0
+ playbgm MUS_FOLLOW_ME, FALSE
msgbox OldaleTown_Text_IWorkAtPokemonMart, MSGBOX_DEFAULT
closemessage
switch VAR_FACING
diff --git a/data/maps/PetalburgCity/scripts.inc b/data/maps/PetalburgCity/scripts.inc
index ab77e18e0..5114ea639 100644
--- a/data/maps/PetalburgCity/scripts.inc
+++ b/data/maps/PetalburgCity/scripts.inc
@@ -271,7 +271,7 @@ PetalburgCity_EventScript_ShowGymToPlayer3:: @ 81DC4BE
PetalburgCity_EventScript_ShowGymToPlayer:: @ 81DC4CA
applymovement LOCALID_GYM_BOY, Common_Movement_FacePlayer
waitmovement 0
- playbgm MUS_FOLLOW_ME, 0
+ playbgm MUS_FOLLOW_ME, FALSE
playse SE_PIN
applymovement LOCALID_GYM_BOY, Common_Movement_ExclamationMark
waitmovement 0
diff --git a/data/maps/PetalburgCity_Gym/scripts.inc b/data/maps/PetalburgCity_Gym/scripts.inc
index 2bdd5320f..b2f6b1061 100644
--- a/data/maps/PetalburgCity_Gym/scripts.inc
+++ b/data/maps/PetalburgCity_Gym/scripts.inc
@@ -203,7 +203,7 @@ PetalburgCity_Gym_EventScript_BeginWallyTutorial:: @ 8204AAC
msgbox PetalburgCity_Gym_Text_WouldYouReallyComeWithMe, MSGBOX_DEFAULT
closemessage
setflag FLAG_DONT_TRANSITION_MUSIC
- playbgm MUS_FOLLOW_ME, 0
+ playbgm MUS_FOLLOW_ME, FALSE
compare VAR_0x8008, 0
call_if_eq PetalburgCity_Gym_EventScript_ExitGymWithWallySouth
compare VAR_0x8008, 1
@@ -487,7 +487,7 @@ PetalburgCity_Gym_EventScript_WallysDadArrives:: @ 8204F13
msgbox PetalburgCity_Gym_Text_LetMeBorrowPlayer, MSGBOX_DEFAULT
closemessage
setflag FLAG_DONT_TRANSITION_MUSIC
- playbgm MUS_FOLLOW_ME, 0
+ playbgm MUS_FOLLOW_ME, FALSE
compare VAR_0x8008, 1
call_if_eq PetalburgCity_Gym_EventScript_ExitGymWithWallysDadNorth
compare VAR_0x8008, 2
diff --git a/data/maps/PetalburgWoods/scripts.inc b/data/maps/PetalburgWoods/scripts.inc
index dbdb66b0b..1f1b2edcb 100644
--- a/data/maps/PetalburgWoods/scripts.inc
+++ b/data/maps/PetalburgWoods/scripts.inc
@@ -11,7 +11,7 @@ PetalburgWoods_EventScript_DevonResearcherLeft:: @ 822DFD7
waitmovement 0
msgbox PetalburgWoods_Text_HaveYouSeenShroomish, MSGBOX_DEFAULT
closemessage
- playbgm MUS_ENCOUNTER_AQUA, 0
+ playbgm MUS_ENCOUNTER_AQUA, FALSE
applymovement LOCALID_GRUNT, PetalburgWoods_Movement_AquaEntrance
waitmovement 0
msgbox PetalburgWoods_Text_IWasGoingToAmbushYou, MSGBOX_DEFAULT
@@ -48,7 +48,7 @@ PetalburgWoods_EventScript_DevonResearcherRight:: @ 822E079
waitmovement 0
msgbox PetalburgWoods_Text_HaveYouSeenShroomish, MSGBOX_DEFAULT
closemessage
- playbgm MUS_ENCOUNTER_AQUA, 0
+ playbgm MUS_ENCOUNTER_AQUA, FALSE
applymovement LOCALID_GRUNT, PetalburgWoods_Movement_AquaEntrance
waitmovement 0
msgbox PetalburgWoods_Text_IWasGoingToAmbushYou, MSGBOX_DEFAULT
diff --git a/data/maps/Route101/scripts.inc b/data/maps/Route101/scripts.inc
index 66ce4abc8..b93226147 100644
--- a/data/maps/Route101/scripts.inc
+++ b/data/maps/Route101/scripts.inc
@@ -21,7 +21,7 @@ Route101_EventScript_HideMapNamePopup:: @ 81EBCD5
Route101_EventScript_StartBirchRescue:: @ 81EBCDE
lockall
- playbgm MUS_HELP, 1
+ playbgm MUS_HELP, TRUE
msgbox Route101_Text_HelpMe, MSGBOX_DEFAULT
closemessage
setobjectxy LOCALID_BIRCH, 0, 15
diff --git a/data/maps/Route103/scripts.inc b/data/maps/Route103/scripts.inc
index 965b5ff5c..b096069e7 100644
--- a/data/maps/Route103/scripts.inc
+++ b/data/maps/Route103/scripts.inc
@@ -31,7 +31,7 @@ Route103_EventScript_Rival:: @ 81EC3C1
Route103_EventScript_RivalMay:: @ 81EC3DA
msgbox Route103_Text_MayRoute103Pokemon, MSGBOX_DEFAULT
closemessage
- playbgm MUS_ENCOUNTER_MAY, 1
+ playbgm MUS_ENCOUNTER_MAY, TRUE
applymovement LOCALID_RIVAL, Common_Movement_FacePlayer
waitmovement 0
applymovement LOCALID_RIVAL, Common_Movement_ExclamationMark
@@ -48,7 +48,7 @@ Route103_EventScript_RivalMay:: @ 81EC3DA
Route103_EventScript_RivalBrendan:: @ 81EC434
msgbox Route103_Text_BrendanRoute103Pokemon, MSGBOX_DEFAULT
closemessage
- playbgm MUS_ENCOUNTER_BRENDAN, 1
+ playbgm MUS_ENCOUNTER_BRENDAN, TRUE
applymovement LOCALID_RIVAL, Common_Movement_FacePlayer
waitmovement 0
applymovement LOCALID_RIVAL, Common_Movement_ExclamationMark
diff --git a/data/maps/Route104/scripts.inc b/data/maps/Route104/scripts.inc
index d1faca53a..cb840d9b3 100644
--- a/data/maps/Route104/scripts.inc
+++ b/data/maps/Route104/scripts.inc
@@ -84,11 +84,11 @@ Route104_EventScript_PlayRivalMusic:: @ 81ECD11
return
Route104_EventScript_PlayMayMusic:: @ 81ECD29
- playbgm MUS_ENCOUNTER_MAY, 1
+ playbgm MUS_ENCOUNTER_MAY, TRUE
return
Route104_EventScript_PlayBrendanMusic:: @ 81ECD2E
- playbgm MUS_ENCOUNTER_BRENDAN, 1
+ playbgm MUS_ENCOUNTER_BRENDAN, TRUE
return
Route104_EventScript_RivalEncounter:: @ 81ECD33
diff --git a/data/maps/Route110/scripts.inc b/data/maps/Route110/scripts.inc
index 50f3d1f48..f7be3fb9e 100644
--- a/data/maps/Route110/scripts.inc
+++ b/data/maps/Route110/scripts.inc
@@ -410,11 +410,11 @@ Route110_EventScript_RivalScene:: @ 81EF76E
end
Route110_EventScript_PlayMayMusic:: @ 81EF7E1
- playbgm MUS_ENCOUNTER_MAY, 1
+ playbgm MUS_ENCOUNTER_MAY, TRUE
return
Route110_EventScript_PlayBrendanMusic:: @ 81EF7E6
- playbgm MUS_ENCOUNTER_BRENDAN, 1
+ playbgm MUS_ENCOUNTER_BRENDAN, TRUE
return
Route110_EventScript_MayBattle:: @ 81EF7EB
diff --git a/data/maps/Route119/scripts.inc b/data/maps/Route119/scripts.inc
index 734934d17..37da701a0 100644
--- a/data/maps/Route119/scripts.inc
+++ b/data/maps/Route119/scripts.inc
@@ -74,11 +74,11 @@ Route119_EventScript_RivalEncounter:: @ 81F4488
end
Route119_EventScript_PlayMayMusic:: @ 81F4501
- playbgm MUS_ENCOUNTER_MAY, 1
+ playbgm MUS_ENCOUNTER_MAY, TRUE
return
Route119_EventScript_PlayBrendanMusic:: @ 81F4506
- playbgm MUS_ENCOUNTER_BRENDAN, 1
+ playbgm MUS_ENCOUNTER_BRENDAN, TRUE
return
Route119_EventScript_BattleMay:: @ 81F450B
diff --git a/data/maps/Route121/scripts.inc b/data/maps/Route121/scripts.inc
index fdc191ea8..6dc93cf6b 100644
--- a/data/maps/Route121/scripts.inc
+++ b/data/maps/Route121/scripts.inc
@@ -19,7 +19,7 @@ Route121_EventScript_SafariZoneSign:: @ 81F5E0F
Route121_EventScript_AquaGruntsMoveOut:: @ 81F5E18
lockall
- playbgm MUS_ENCOUNTER_AQUA, 0
+ playbgm MUS_ENCOUNTER_AQUA, FALSE
applymovement LOCALID_GRUNT_2, Common_Movement_WalkInPlaceRight
waitmovement 0
msgbox Route121_Text_OkayMoveOutToMtPyre, MSGBOX_DEFAULT
diff --git a/data/maps/RustboroCity/scripts.inc b/data/maps/RustboroCity/scripts.inc
index 7b1f4a3d8..05bd25247 100644
--- a/data/maps/RustboroCity/scripts.inc
+++ b/data/maps/RustboroCity/scripts.inc
@@ -294,7 +294,7 @@ RustboroCity_EventScript_StolenGoodsTrigger4:: @ 81E09B6
RustboroCity_EventScript_StolenGoodsScene:: @ 81E09CD
msgbox RustboroCity_Text_OutOfTheWay, MSGBOX_DEFAULT
closemessage
- playbgm MUS_ENCOUNTER_AQUA, 0
+ playbgm MUS_ENCOUNTER_AQUA, FALSE
addobject LOCALID_GRUNT
addobject LOCALID_DEVON_EMPLOYEE
applymovement LOCALID_GRUNT, RustboroCity_Movement_GruntEscape
@@ -706,11 +706,11 @@ RustboroCity_EventScript_PlayRivalMusic:: @ 81E0DD1
return
RustboroCity_EventScript_PlayMayMusic:: @ 81E0DE9
- playbgm MUS_ENCOUNTER_MAY, 1
+ playbgm MUS_ENCOUNTER_MAY, TRUE
return
RustboroCity_EventScript_PlayBrendanMusic:: @ 81E0DEE
- playbgm MUS_ENCOUNTER_BRENDAN, 1
+ playbgm MUS_ENCOUNTER_BRENDAN, TRUE
return
RustboroCity_EventScript_RivalTrigger0:: @ 81E0DF3
diff --git a/data/maps/RustboroCity_DevonCorp_3F/scripts.inc b/data/maps/RustboroCity_DevonCorp_3F/scripts.inc
index 34a31c692..9d4c69cd9 100644
--- a/data/maps/RustboroCity_DevonCorp_3F/scripts.inc
+++ b/data/maps/RustboroCity_DevonCorp_3F/scripts.inc
@@ -39,7 +39,7 @@ RustboroCity_DevonCorp_3F_EventScript_MeetPresident:: @ 821246E
waitmovement 0
msgbox RustboroCity_DevonCorp_3F_Text_WordWithPresidentComeWithMe, MSGBOX_DEFAULT
closemessage
- playbgm MUS_FOLLOW_ME, 0
+ playbgm MUS_FOLLOW_ME, FALSE
applymovement LOCALID_DEVON_EMPLOYEE, RustboroCity_DevonCorp_3F_Movement_LeadPlayerToPresident
applymovement OBJ_EVENT_ID_PLAYER, RustboroCity_DevonCorp_3F_Movement_PlayerFollowToPresident
waitmovement 0
diff --git a/data/maps/RusturfTunnel/scripts.inc b/data/maps/RusturfTunnel/scripts.inc
index 17a229ab5..75f5820e0 100644
--- a/data/maps/RusturfTunnel/scripts.inc
+++ b/data/maps/RusturfTunnel/scripts.inc
@@ -316,7 +316,7 @@ RusturfTunnel_EventScript_Peeko:: @ 822D0AF
RusturfTunnel_EventScript_Grunt:: @ 822D0C2
lock
faceplayer
- playbgm MUS_ENCOUNTER_AQUA, 0
+ playbgm MUS_ENCOUNTER_AQUA, FALSE
msgbox RusturfTunnel_Text_GruntIntro, MSGBOX_DEFAULT
trainerbattle_no_intro TRAINER_GRUNT_RUSTURF_TUNNEL, RusturfTunnel_Text_GruntDefeat
msgbox RusturfTunnel_Text_GruntTakePackage, MSGBOX_DEFAULT
diff --git a/data/maps/SeafloorCavern_Room9/scripts.inc b/data/maps/SeafloorCavern_Room9/scripts.inc
index 53386f33c..06ae0d6fe 100644
--- a/data/maps/SeafloorCavern_Room9/scripts.inc
+++ b/data/maps/SeafloorCavern_Room9/scripts.inc
@@ -18,7 +18,7 @@ SeafloorCavern_Room9_EventScript_ArchieAwakenKyogre:: @ 8234DC9
waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, SeafloorCavern_Room9_Movement_Delay32
waitmovement 0
- playbgm MUS_ENCOUNTER_AQUA, 0
+ playbgm MUS_ENCOUNTER_AQUA, FALSE
msgbox SeafloorCavern_Room9_Text_ArchieHoldItRightThere, MSGBOX_DEFAULT
closemessage
addobject VAR_0x8004
diff --git a/data/maps/SlateportCity/scripts.inc b/data/maps/SlateportCity/scripts.inc
index 983ce9796..ceb2e862a 100644
--- a/data/maps/SlateportCity/scripts.inc
+++ b/data/maps/SlateportCity/scripts.inc
@@ -603,7 +603,7 @@ SlateportCity_EventScript_CaptStern:: @ 81DD1F8
applymovement LOCALID_CAPT_STERN, Common_Movement_WalkInPlaceFastestUp
waitmovement 0
msgbox SlateportCity_Text_OhPlayerWeMadeDiscovery, MSGBOX_DEFAULT
- playbgm MUS_ENCOUNTER_AQUA, 0
+ playbgm MUS_ENCOUNTER_AQUA, FALSE
msgbox SlateportCity_Text_AquaWillAssumeControlOfSubmarine, MSGBOX_DEFAULT
applymovement LOCALID_COOK, Common_Movement_WalkInPlaceFastestLeft
applymovement LOCALID_FAT_MAN, Common_Movement_WalkInPlaceFastestLeft
diff --git a/data/maps/SlateportCity_OceanicMuseum_2F/scripts.inc b/data/maps/SlateportCity_OceanicMuseum_2F/scripts.inc
index bba75dbd1..782e702f6 100644
--- a/data/maps/SlateportCity_OceanicMuseum_2F/scripts.inc
+++ b/data/maps/SlateportCity_OceanicMuseum_2F/scripts.inc
@@ -11,7 +11,7 @@ SlateportCity_OceanicMuseum_2F_EventScript_CaptStern:: @ 820BB00
faceplayer
msgbox SlateportCity_OceanicMuseum_2F_Text_ThankYouForTheParts, MSGBOX_DEFAULT
closemessage
- playbgm MUS_ENCOUNTER_AQUA, 1
+ playbgm MUS_ENCOUNTER_AQUA, TRUE
addobject LOCALID_GRUNT_1
applymovement LOCALID_GRUNT_1, SlateportCity_OceanicMuseum_2F_Movement_FirstGruntEnter
waitmovement 0
diff --git a/data/maps/map_groups.json b/data/maps/map_groups.json
index 4268abbef..ebef431b3 100644
--- a/data/maps/map_groups.json
+++ b/data/maps/map_groups.json
@@ -1,41 +1,41 @@
{
"group_order": [
- "gMapGroup0",
- "gMapGroup1",
- "gMapGroup2",
- "gMapGroup3",
- "gMapGroup4",
- "gMapGroup5",
- "gMapGroup6",
- "gMapGroup7",
- "gMapGroup8",
- "gMapGroup9",
- "gMapGroup10",
- "gMapGroup11",
- "gMapGroup12",
- "gMapGroup13",
- "gMapGroup14",
- "gMapGroup15",
- "gMapGroup16",
- "gMapGroup17",
- "gMapGroup18",
- "gMapGroup19",
- "gMapGroup20",
- "gMapGroup21",
- "gMapGroup22",
- "gMapGroup23",
- "gMapGroup24",
- "gMapGroup25",
- "gMapGroup26",
- "gMapGroup27",
- "gMapGroup28",
- "gMapGroup29",
- "gMapGroup30",
- "gMapGroup31",
- "gMapGroup32",
- "gMapGroup33"
- ],
- "gMapGroup0": [
+ "gMapGroup_TownsAndRoutes",
+ "gMapGroup_IndoorLittleroot",
+ "gMapGroup_IndoorOldale",
+ "gMapGroup_IndoorDewford",
+ "gMapGroup_IndoorLavaridge",
+ "gMapGroup_IndoorFallarbor",
+ "gMapGroup_IndoorVerdanturf",
+ "gMapGroup_IndoorPacifidlog",
+ "gMapGroup_IndoorPetalburg",
+ "gMapGroup_IndoorSlateport",
+ "gMapGroup_IndoorMauville",
+ "gMapGroup_IndoorRustboro",
+ "gMapGroup_IndoorFortree",
+ "gMapGroup_IndoorLilycove",
+ "gMapGroup_IndoorMossdeep",
+ "gMapGroup_IndoorSootopolis",
+ "gMapGroup_IndoorEverGrande",
+ "gMapGroup_IndoorRoute104",
+ "gMapGroup_IndoorRoute111",
+ "gMapGroup_IndoorRoute112",
+ "gMapGroup_IndoorRoute114",
+ "gMapGroup_IndoorRoute116",
+ "gMapGroup_IndoorRoute117",
+ "gMapGroup_IndoorRoute121",
+ "gMapGroup_Dungeons",
+ "gMapGroup_IndoorDynamic",
+ "gMapGroup_SpecialArea",
+ "gMapGroup_IndoorRoute104Prototype",
+ "gMapGroup_IndoorRoute109",
+ "gMapGroup_IndoorRoute110",
+ "gMapGroup_IndoorRoute113",
+ "gMapGroup_IndoorRoute123",
+ "gMapGroup_IndoorRoute119",
+ "gMapGroup_IndoorRoute124"
+ ],
+ "gMapGroup_TownsAndRoutes": [
"PetalburgCity",
"SlateportCity",
"MauvilleCity",
@@ -94,21 +94,21 @@
"Underwater_Route105",
"Underwater_Route125"
],
- "gMapGroup1": [
+ "gMapGroup_IndoorLittleroot": [
"LittlerootTown_BrendansHouse_1F",
"LittlerootTown_BrendansHouse_2F",
"LittlerootTown_MaysHouse_1F",
"LittlerootTown_MaysHouse_2F",
"LittlerootTown_ProfessorBirchsLab"
],
- "gMapGroup2": [
+ "gMapGroup_IndoorOldale": [
"OldaleTown_House1",
"OldaleTown_House2",
"OldaleTown_PokemonCenter_1F",
"OldaleTown_PokemonCenter_2F",
"OldaleTown_Mart"
],
- "gMapGroup3": [
+ "gMapGroup_IndoorDewford": [
"DewfordTown_House1",
"DewfordTown_PokemonCenter_1F",
"DewfordTown_PokemonCenter_2F",
@@ -116,7 +116,7 @@
"DewfordTown_Hall",
"DewfordTown_House2"
],
- "gMapGroup4": [
+ "gMapGroup_IndoorLavaridge": [
"LavaridgeTown_HerbShop",
"LavaridgeTown_Gym_1F",
"LavaridgeTown_Gym_B1F",
@@ -125,7 +125,7 @@
"LavaridgeTown_PokemonCenter_1F",
"LavaridgeTown_PokemonCenter_2F"
],
- "gMapGroup5": [
+ "gMapGroup_IndoorFallarbor": [
"FallarborTown_Mart",
"FallarborTown_BattleTentLobby",
"FallarborTown_BattleTentCorridor",
@@ -135,7 +135,7 @@
"FallarborTown_CozmosHouse",
"FallarborTown_MoveRelearnersHouse"
],
- "gMapGroup6": [
+ "gMapGroup_IndoorVerdanturf": [
"VerdanturfTown_BattleTentLobby",
"VerdanturfTown_BattleTentCorridor",
"VerdanturfTown_BattleTentBattleRoom",
@@ -146,7 +146,7 @@
"VerdanturfTown_FriendshipRatersHouse",
"VerdanturfTown_House"
],
- "gMapGroup7": [
+ "gMapGroup_IndoorPacifidlog": [
"PacifidlogTown_PokemonCenter_1F",
"PacifidlogTown_PokemonCenter_2F",
"PacifidlogTown_House1",
@@ -155,7 +155,7 @@
"PacifidlogTown_House4",
"PacifidlogTown_House5"
],
- "gMapGroup8": [
+ "gMapGroup_IndoorPetalburg": [
"PetalburgCity_WallysHouse",
"PetalburgCity_Gym",
"PetalburgCity_House1",
@@ -164,7 +164,7 @@
"PetalburgCity_PokemonCenter_2F",
"PetalburgCity_Mart"
],
- "gMapGroup9": [
+ "gMapGroup_IndoorSlateport": [
"SlateportCity_SternsShipyard_1F",
"SlateportCity_SternsShipyard_2F",
"SlateportCity_BattleTentLobby",
@@ -180,7 +180,7 @@
"SlateportCity_PokemonCenter_2F",
"SlateportCity_Mart"
],
- "gMapGroup10": [
+ "gMapGroup_IndoorMauville": [
"MauvilleCity_Gym",
"MauvilleCity_BikeShop",
"MauvilleCity_House1",
@@ -190,7 +190,7 @@
"MauvilleCity_PokemonCenter_2F",
"MauvilleCity_Mart"
],
- "gMapGroup11": [
+ "gMapGroup_IndoorRustboro": [
"RustboroCity_DevonCorp_1F",
"RustboroCity_DevonCorp_2F",
"RustboroCity_DevonCorp_3F",
@@ -209,7 +209,7 @@
"RustboroCity_Flat2_3F",
"RustboroCity_House3"
],
- "gMapGroup12": [
+ "gMapGroup_IndoorFortree": [
"FortreeCity_House1",
"FortreeCity_Gym",
"FortreeCity_PokemonCenter_1F",
@@ -221,7 +221,7 @@
"FortreeCity_House5",
"FortreeCity_DecorationShop"
],
- "gMapGroup13": [
+ "gMapGroup_IndoorLilycove": [
"LilycoveCity_CoveLilyMotel_1F",
"LilycoveCity_CoveLilyMotel_2F",
"LilycoveCity_LilycoveMuseum_1F",
@@ -246,7 +246,7 @@
"LilycoveCity_DepartmentStoreRooftop",
"LilycoveCity_DepartmentStoreElevator"
],
- "gMapGroup14": [
+ "gMapGroup_IndoorMossdeep": [
"MossdeepCity_Gym",
"MossdeepCity_House1",
"MossdeepCity_House2",
@@ -261,7 +261,7 @@
"MossdeepCity_GameCorner_1F",
"MossdeepCity_GameCorner_B1F"
],
- "gMapGroup15": [
+ "gMapGroup_IndoorSootopolis": [
"SootopolisCity_Gym_1F",
"SootopolisCity_Gym_B1F",
"SootopolisCity_PokemonCenter_1F",
@@ -278,7 +278,7 @@
"SootopolisCity_MysteryEventsHouse_1F",
"SootopolisCity_MysteryEventsHouse_B1F"
],
- "gMapGroup16": [
+ "gMapGroup_IndoorEverGrande": [
"EverGrandeCity_SidneysRoom",
"EverGrandeCity_PhoebesRoom",
"EverGrandeCity_GlaciasRoom",
@@ -295,33 +295,33 @@
"EverGrandeCity_PokemonCenter_2F",
"EverGrandeCity_PokemonLeague_2F"
],
- "gMapGroup17": [
+ "gMapGroup_IndoorRoute104": [
"Route104_MrBrineysHouse",
"Route104_PrettyPetalFlowerShop"
],
- "gMapGroup18": [
+ "gMapGroup_IndoorRoute111": [
"Route111_WinstrateFamilysHouse",
"Route111_OldLadysRestStop"
],
- "gMapGroup19": [
+ "gMapGroup_IndoorRoute112": [
"Route112_CableCarStation",
"MtChimney_CableCarStation"
],
- "gMapGroup20": [
+ "gMapGroup_IndoorRoute114": [
"Route114_FossilManiacsHouse",
"Route114_FossilManiacsTunnel",
"Route114_LanettesHouse"
],
- "gMapGroup21": [
+ "gMapGroup_IndoorRoute116": [
"Route116_TunnelersRestHouse"
],
- "gMapGroup22": [
+ "gMapGroup_IndoorRoute117": [
"Route117_PokemonDayCare"
],
- "gMapGroup23": [
+ "gMapGroup_IndoorRoute121": [
"Route121_SafariZoneEntrance"
],
- "gMapGroup24": [
+ "gMapGroup_Dungeons": [
"MeteorFalls_1F_1R",
"MeteorFalls_1F_2R",
"MeteorFalls_B1F_1R",
@@ -431,7 +431,7 @@
"AlteringCave",
"MeteorFalls_StevensCave"
],
- "gMapGroup25": [
+ "gMapGroup_IndoorDynamic": [
"SecretBase_RedCave1",
"SecretBase_BrownCave1",
"SecretBase_BlueCave1",
@@ -494,7 +494,7 @@
"BattlePyramidSquare16",
"UnionRoom"
],
- "gMapGroup26": [
+ "gMapGroup_SpecialArea": [
"SafariZone_Northwest",
"SafariZone_North",
"SafariZone_Southwest",
@@ -585,14 +585,14 @@
"NavelRock_Bottom",
"TrainerHill_Elevator"
],
- "gMapGroup27": [
+ "gMapGroup_IndoorRoute104Prototype": [
"Route104_Prototype",
"Route104_PrototypePrettyPetalFlowerShop"
],
- "gMapGroup28": [
+ "gMapGroup_IndoorRoute109": [
"Route109_SeashoreHouse"
],
- "gMapGroup29": [
+ "gMapGroup_IndoorRoute110": [
"Route110_TrickHouseEntrance",
"Route110_TrickHouseEnd",
"Route110_TrickHouseCorridor",
@@ -607,18 +607,18 @@
"Route110_SeasideCyclingRoadNorthEntrance",
"Route110_SeasideCyclingRoadSouthEntrance"
],
- "gMapGroup30": [
+ "gMapGroup_IndoorRoute113": [
"Route113_GlassWorkshop"
],
- "gMapGroup31": [
+ "gMapGroup_IndoorRoute123": [
"Route123_BerryMastersHouse"
],
- "gMapGroup32": [
+ "gMapGroup_IndoorRoute119": [
"Route119_WeatherInstitute_1F",
"Route119_WeatherInstitute_2F",
"Route119_House"
],
- "gMapGroup33": [
+ "gMapGroup_IndoorRoute124": [
"Route124_DivingTreasureHuntersHouse"
],
"connections_include_order": [
diff --git a/data/script_cmd_table.inc b/data/script_cmd_table.inc
index a26ce6bf2..9e54ad52b 100644
--- a/data/script_cmd_table.inc
+++ b/data/script_cmd_table.inc
@@ -119,7 +119,7 @@ gScriptCmdTable:: @ 81DB67C
.4byte ScrCmd_drawboxtext @ 0x74
.4byte ScrCmd_showmonpic @ 0x75
.4byte ScrCmd_hidemonpic @ 0x76
- .4byte ScrCmd_showcontestwinner @ 0x77
+ .4byte ScrCmd_showcontestpainting @ 0x77
.4byte ScrCmd_braillemessage @ 0x78
.4byte ScrCmd_givemon @ 0x79
.4byte ScrCmd_giveegg @ 0x7a
diff --git a/data/scripts/contest_hall.inc b/data/scripts/contest_hall.inc
index 51be0027c..db43dfdd0 100644
--- a/data/scripts/contest_hall.inc
+++ b/data/scripts/contest_hall.inc
@@ -916,7 +916,7 @@ ContestHall_EventScript_ContestResults:: @ 827A8A5
setvar VAR_TEMP_9, 1
showcontestresults
setvar VAR_TEMP_9, 0
- playbgm MUS_CONTEST_WINNER, 0
+ playbgm MUS_CONTEST_WINNER, FALSE
return
ContestHall_EventScript_ThatsItForJudging:: @ 827A8FB
diff --git a/data/scripts/gabby_and_ty.inc b/data/scripts/gabby_and_ty.inc
index c7f576aba..60854a801 100644
--- a/data/scripts/gabby_and_ty.inc
+++ b/data/scripts/gabby_and_ty.inc
@@ -1,6 +1,6 @@
@ Gabby and Ty always move to the same spots for the first 5 battles
@ From the 6th battle onwards, they move randomly between locations 6-8
-@ Note: The local IDs of Gabby and Ty are hard-coded in GabbyAndTySetScriptVarsToObjectEventLocalIds
+@ Note: The local IDs of Gabby and Ty are hard-coded in GetGabbyAndTyLocalIds
GabbyAndTy_EventScript_UpdateLocation:: @ 828CCC7
cleartrainerflag TRAINER_GABBY_AND_TY_6
specialvar VAR_RESULT, GabbyAndTyGetBattleNum
@@ -198,7 +198,7 @@ GabbyAndTy_EventScript_TyBattle6:: @ 828CF36
GabbyAndTy_EventScript_FirstInterview:: @ 828CF56
special GabbyAndTyBeforeInterview
- special GabbyAndTySetScriptVarsToObjectEventLocalIds
+ special GetGabbyAndTyLocalIds
compare VAR_FACING, DIR_NORTH
call_if_eq GabbyAndTy_EventScript_FacePlayerNorth
compare VAR_FACING, DIR_SOUTH
@@ -229,7 +229,7 @@ GabbyAndTy_EventScript_FacePlayerEast:: @ 828CFB1
GabbyAndTy_EventScript_RequestInterview:: @ 828CFC3
special GabbyAndTyBeforeInterview
- special GabbyAndTySetScriptVarsToObjectEventLocalIds
+ special GetGabbyAndTyLocalIds
compare VAR_FACING, DIR_NORTH
call_if_eq GabbyAndTy_EventScript_FacePlayerNorth
compare VAR_FACING, DIR_SOUTH
diff --git a/data/scripts/item_ball_scripts.inc b/data/scripts/item_ball_scripts.inc
index 82633f77c..f9228134c 100644
--- a/data/scripts/item_ball_scripts.inc
+++ b/data/scripts/item_ball_scripts.inc
@@ -634,7 +634,7 @@ MagmaHideout_1F_EventScript_ItemRareCandy:: @ 82914DE
finditem ITEM_RARE_CANDY
end
-MagmaHideout_2F_2R_EventScript_MaxElixir:: @ 82914EB
+MagmaHideout_2F_2R_EventScript_ItemMaxElixir:: @ 82914EB
finditem ITEM_MAX_ELIXIR
end
@@ -650,7 +650,7 @@ MagmaHideout_3F_2R_EventScript_ItemPPMax:: @ 8291512
finditem ITEM_PP_MAX
end
-MagmaHideout_4F_EventScript_MaxRevive:: @ 829151F
+MagmaHideout_4F_EventScript_ItemMaxRevive:: @ 829151F
finditem ITEM_MAX_REVIVE
end
diff --git a/data/scripts/players_house.inc b/data/scripts/players_house.inc
index 03b8eaf99..427355332 100644
--- a/data/scripts/players_house.inc
+++ b/data/scripts/players_house.inc
@@ -159,7 +159,7 @@ PlayersHouse_1F_EventScript_PetalburgGymReportMale:: @ 829286D
call PlayersHouse_1F_EventScript_MomNoticeGymBroadcast
applymovement OBJ_EVENT_ID_PLAYER, PlayersHouse_1F_Movement_PlayerApproachTVForGymMale
waitmovement 0
- playbgm MUS_ENCOUNTER_INTERVIEWER, 0
+ playbgm MUS_ENCOUNTER_INTERVIEWER, FALSE
msgbox PlayersHouse_1F_Text_MaybeDadWillBeOn, MSGBOX_DEFAULT
closemessage
applymovement VAR_0x8005, PlayersHouse_1F_Movement_MomMakeRoomToSeeTVMale
@@ -184,7 +184,7 @@ PlayersHouse_1F_EventScript_PetalburgGymReportFemale:: @ 82928DC
call PlayersHouse_1F_EventScript_MomNoticeGymBroadcast
applymovement OBJ_EVENT_ID_PLAYER, PlayersHouse_1F_Movement_PlayerApproachTVForGymFemale
waitmovement 0
- playbgm MUS_ENCOUNTER_INTERVIEWER, 0
+ playbgm MUS_ENCOUNTER_INTERVIEWER, FALSE
msgbox PlayersHouse_1F_Text_MaybeDadWillBeOn, MSGBOX_DEFAULT
closemessage
applymovement VAR_0x8005, PlayersHouse_1F_Movement_MomMakeRoomToSeeTVFemale
diff --git a/data/scripts/tv.inc b/data/scripts/tv.inc
index a2d5473b1..1dfc1884b 100644
--- a/data/scripts/tv.inc
+++ b/data/scripts/tv.inc
@@ -2,14 +2,14 @@ EventScript_TV:: @ 827EE0B
lockall
incrementgamestat GAME_STAT_WATCHED_TV
special ResetTVShowState
- specialvar VAR_RESULT, CheckForBigMovieOrEmergencyNewsOnTV
- compare VAR_RESULT, 2
+ specialvar VAR_RESULT, CheckForPlayersHouseNews
+ compare VAR_RESULT, PLAYERS_HOUSE_TV_MOVIE
goto_if_eq EventScript_PlayersHouseMovie
- compare VAR_RESULT, 1
+ compare VAR_RESULT, PLAYERS_HOUSE_TV_LATI
goto_if_eq EventScript_PlayersHouseLatiNewsFlash
goto_if_unset FLAG_SYS_TV_START, EventScript_MomDadMightLikeThis1
goto_if_set FLAG_SYS_TV_WATCH, EventScript_MomDadMightLikeThis1
- specialvar VAR_RESULT, IsTVShowInSearchOfTrainersAiring
+ specialvar VAR_RESULT, IsGabbyAndTyShowOnTheAir
compare VAR_RESULT, TRUE
goto_if_eq EventScript_DoInSearchOfTrainers
goto EventScript_TryDoPokeNews
diff --git a/data/specials.inc b/data/specials.inc
index f672a7b87..eacc6bf5e 100644
--- a/data/specials.inc
+++ b/data/specials.inc
@@ -83,20 +83,20 @@ gSpecials:: @ 81DBA64
def_special IsLeadMonNicknamedOrNotEnglish
def_special SetContestCategoryStringVarForInterview
def_special GetNextActiveShowIfMassOutbreak
- def_special TV_IsScriptShowKindAlreadyInQueue
- def_special CheckForBigMovieOrEmergencyNewsOnTV
+ def_special IsTVShowAlreadyInQueue
+ def_special CheckForPlayersHouseNews
def_special GetMomOrDadStringForTVMessage
def_special ResetTVShowState
def_special GetContestWinnerId
def_special GetContestPlayerId
- def_special sub_80F8814
+ def_special GetNpcContestantLocalId
def_special BufferContestWinnerTrainerName
def_special BufferContestWinnerMonName
def_special BufferContestTrainerAndMonNames
def_special GetContestMonConditionRanking
def_special SetContestTrainerGfxIds
def_special TryEnterContestMon
- def_special sub_80F8970
+ def_special GetContestantNamesAtRank
def_special SetLinkContestPlayerGfx
def_special GetContestMonCondition
def_special HasMonWonThisContestBefore
@@ -147,9 +147,9 @@ gSpecials:: @ 81DBA64
def_special CountPartyAliveNonEggMons_IgnoreVar0x8004Slot
def_special ShouldReadyContestArtist
def_special SaveMuseumContestPainting
- def_special DoesContestCategoryHaveWinner
- def_special CountPlayerContestPaintings
- def_special ShowContestWinnerPainting
+ def_special DoesContestCategoryHaveMuseumPainting
+ def_special CountPlayerMuseumPaintings
+ def_special ShowContestPainting @ Unused, redundant with showcontestpainting command
def_special MauvilleGymSetDefaultBarriers
def_special MauvilleGymPressSwitch
def_special ShowFieldMessageStringVar4
@@ -187,10 +187,10 @@ gSpecials:: @ 81DBA64
def_special GabbyAndTyAfterInterview
def_special GabbyAndTyBeforeInterview
def_special DoTVShowInSearchOfTrainers
- def_special IsTVShowInSearchOfTrainersAiring
+ def_special IsGabbyAndTyShowOnTheAir
def_special GabbyAndTyGetLastQuote
def_special GabbyAndTyGetLastBattleTrivia
- def_special GabbyAndTySetScriptVarsToObjectEventLocalIds
+ def_special GetGabbyAndTyLocalIds
def_special GetBattleOutcome
def_special GetDaycareMonNicknames
def_special GetDaycareState
@@ -354,7 +354,7 @@ gSpecials:: @ 81DBA64
def_special SetChampionSaveWarp
def_special TryPutTreasureInvestigatorsOnAir
def_special TryPutLotteryWinnerReportOnAir
- def_special TrySetUpTrainerFanClubSpecial
+ def_special TryPutTrainerFanClubOnAir
def_special ShouldHideFanClubInterviewer
def_special ShowGlassWorkshopMenu
def_special PutFanClubSpecialOnTheAir
diff --git a/data/text/berry_descriptions.inc b/data/text/berry_descriptions.inc
deleted file mode 100644
index e5917ca32..000000000
--- a/data/text/berry_descriptions.inc
+++ /dev/null
@@ -1,258 +0,0 @@
-gBerryDescriptionPart1_Cheri:: @ 8589AE4
- .string "Blooms with delicate pretty flowers.$"
-
-gBerryDescriptionPart2_Cheri:: @ 8589B09
- .string "The bright red BERRY is very spicy.$"
-
-gBerryDescriptionPart1_Chesto:: @ 8589B2D
- .string "The BERRY's thick skin and fruit are$"
-
-gBerryDescriptionPart2_Chesto:: @ 8589B52
- .string "very tough. It is dry-tasting all over.$"
-
-gBerryDescriptionPart1_Pecha:: @ 8589B7A
- .string "Very sweet and delicious.$"
-
-gBerryDescriptionPart2_Pecha:: @ 8589B94
- .string "Also very tender - handle with care.$"
-
-gBerryDescriptionPart1_Rawst:: @ 8589BB9
- .string "If the leaves grow long and curly,$"
-
-gBerryDescriptionPart2_Rawst:: @ 8589BDC
- .string "the BERRY seems to grow very bitter.$"
-
-gBerryDescriptionPart1_Aspear:: @ 8589C01
- .string "The hard BERRY is dense with a rich$"
-
-gBerryDescriptionPart2_Aspear:: @ 8589C25
- .string "juice. It is quite sour.$"
-
-gBerryDescriptionPart1_Leppa:: @ 8589C3E
- .string "Grows slower than CHERI and others.$"
-
-gBerryDescriptionPart2_Leppa:: @ 8589C62
- .string "The smaller the BERRY, the tastier.$"
-
-gBerryDescriptionPart1_Oran:: @ 8589C86
- .string "A peculiar BERRY with a mix of flavors.$"
-
-gBerryDescriptionPart2_Oran:: @ 8589CAE
- .string "BERRIES grow in half a day.$"
-
-gBerryDescriptionPart1_Persim:: @ 8589CCA
- .string "Loves sunlight. The BERRY's color$"
-
-gBerryDescriptionPart2_Persim:: @ 8589CEC
- .string "grows vivid when exposed to the sun.$"
-
-gBerryDescriptionPart1_Lum:: @ 8589D11
- .string "Slow to grow. If raised with loving$"
-
-gBerryDescriptionPart2_Lum:: @ 8589D35
- .string "care, it may grow two BERRIES.$"
-
-gBerryDescriptionPart1_Sitrus:: @ 8589D54
- .string "Closely related to ORAN. The large$"
-
-gBerryDescriptionPart2_Sitrus:: @ 8589D77
- .string "BERRY has a well-rounded flavor.$"
-
-gBerryDescriptionPart1_Figy:: @ 8589D98
- .string "The BERRY, which looks chewed up,$"
-
-gBerryDescriptionPart2_Figy:: @ 8589DBA
- .string "brims with spicy substances.$"
-
-gBerryDescriptionPart1_Wiki:: @ 8589DD7
- .string "The BERRY is said to have grown lumpy$"
-
-gBerryDescriptionPart2_Wiki:: @ 8589DFD
- .string "to help POKéMON grip it.$"
-
-gBerryDescriptionPart1_Mago:: @ 8589E16
- .string "The BERRY turns curvy as it grows.$"
-
-gBerryDescriptionPart2_Mago:: @ 8589E39
- .string "The curvier, the sweeter and tastier.$"
-
-gBerryDescriptionPart1_Aguav:: @ 8589E5F
- .string "The flower is dainty. It is rare in its$"
-
-gBerryDescriptionPart2_Aguav:: @ 8589E87
- .string "ability to grow without light.$"
-
-gBerryDescriptionPart1_Iapapa:: @ 8589EA6
- .string "The BERRY is very big and sour.$"
-
-gBerryDescriptionPart2_Iapapa:: @ 8589EC6
- .string "It takes at least a day to grow.$"
-
-gBerryDescriptionPart1_Razz:: @ 8589EE7
- .string "The red BERRY tastes slightly spicy.$"
-
-gBerryDescriptionPart2_Razz:: @ 8589F0C
- .string "It grows quickly in just four hours.$"
-
-gBerryDescriptionPart1_Bluk:: @ 8589F31
- .string "The BERRY is blue on the outside, but$"
-
-gBerryDescriptionPart2_Bluk:: @ 8589F57
- .string "it blackens the mouth when eaten.$"
-
-gBerryDescriptionPart1_Nanab:: @ 8589F79
- .string "This BERRY was the seventh$"
-
-gBerryDescriptionPart2_Nanab:: @ 8589F94
- .string "discovered in the world. It is sweet.$"
-
-gBerryDescriptionPart1_Wepear:: @ 8589FBA
- .string "The flower is small and white. It has a$"
-
-gBerryDescriptionPart2_Wepear:: @ 8589FE2
- .string "delicate balance of bitter and sour.$"
-
-gBerryDescriptionPart1_Pinap:: @ 858A007
- .string "Weak against wind and cold.$"
-
-gBerryDescriptionPart2_Pinap:: @ 858A023
- .string "The fruit is spicy and the skin, sour.$"
-
-gBerryDescriptionPart1_Pomeg:: @ 858A04A
- .string "However much it is watered,$"
-
-gBerryDescriptionPart2_Pomeg:: @ 858A066
- .string "it only grows up to six BERRIES.$"
-
-gBerryDescriptionPart1_Kelpsy:: @ 858A087
- .string "A rare variety shaped like a root.$"
-
-gBerryDescriptionPart2_Kelpsy:: @ 858A0AA
- .string "Grows a very large flower.$"
-
-gBerryDescriptionPart1_Qualot:: @ 858A0C5
- .string "Loves water. Grows strong even in$"
-
-gBerryDescriptionPart2_Qualot:: @ 858A0E7
- .string "locations with constant rainfall.$"
-
-gBerryDescriptionPart1_Hondew:: @ 858A109
- .string "A BERRY that is very valuable and$"
-
-gBerryDescriptionPart2_Hondew:: @ 858A12B
- .string "rarely seen. It is very delicious.$"
-
-gBerryDescriptionPart1_Grepa:: @ 858A14E
- .string "Despite its tenderness and round$"
-
-gBerryDescriptionPart2_Grepa:: @ 858A16F
- .string "shape, the BERRY is unimaginably sour.$"
-
-gBerryDescriptionPart1_Tamato:: @ 858A196
- .string "The BERRY is lip-bendingly spicy.$"
-
-gBerryDescriptionPart2_Tamato:: @ 858A1B8
- .string "It takes time to grow.$"
-
-gBerryDescriptionPart1_Cornn:: @ 858A1CF
- .string "A BERRY from an ancient era. May not$"
-
-gBerryDescriptionPart2_Cornn:: @ 858A1F4
- .string "grow unless planted in quantity.$"
-
-gBerryDescriptionPart1_Magost:: @ 858A215
- .string "A BERRY that is widely said to have$"
-
-gBerryDescriptionPart2_Magost:: @ 858A239
- .string "a finely balanced flavor.$"
-
-gBerryDescriptionPart1_Rabuta:: @ 858A253
- .string "A rare variety that is overgrown with$"
-
-gBerryDescriptionPart2_Rabuta:: @ 858A279
- .string "hair. It is quite bitter.$"
-
-gBerryDescriptionPart1_Nomel:: @ 858A293
- .string "Quite sour. Just one bite makes it$"
-
-gBerryDescriptionPart2_Nomel:: @ 858A2B6
- .string "impossible to taste for three days.$"
-
-gBerryDescriptionPart1_Spelon:: @ 858A2DA
- .string "The vividly red BERRY is very spicy.$"
-
-gBerryDescriptionPart2_Spelon:: @ 858A2FF
- .string "Its warts secrete a spicy substance.$"
-
-gBerryDescriptionPart1_Pamtre:: @ 858A324
- .string "Drifts on the sea from somewhere.$"
-
-gBerryDescriptionPart2_Pamtre:: @ 858A346
- .string "It is thought to grow elsewhere.$"
-
-gBerryDescriptionPart1_Watmel:: @ 858A367
- .string "A huge BERRY, with some over 20$"
-
-gBerryDescriptionPart2_Watmel:: @ 858A387
- .string "inches discovered. Exceedingly sweet.$"
-
-gBerryDescriptionPart1_Durin:: @ 858A3AD
- .string "Bitter to even look at. It is so$"
-
-gBerryDescriptionPart2_Durin:: @ 858A3CE
- .string "bitter, no one has ever eaten it as is.$"
-
-gBerryDescriptionPart1_Belue:: @ 858A3F6
- .string "It is glossy and looks delicious, but$"
-
-gBerryDescriptionPart2_Belue:: @ 858A41C
- .string "it is awfully sour. Takes time to grow.$"
-
-gBerryDescriptionPart1_Liechi:: @ 858A444
- .string "A mysterious BERRY. It is rumored to$"
-
-gBerryDescriptionPart2_Liechi:: @ 858A469
- .string "contain the power of the sea.$"
-
-gBerryDescriptionPart1_Ganlon:: @ 858A487
- .string "A mysterious BERRY. It is rumored to$"
-
-gBerryDescriptionPart2_Ganlon:: @ 858A4AC
- .string "contain the power of the land.$"
-
-gBerryDescriptionPart1_Salac:: @ 858A4CB
- .string "A mysterious BERRY. It is rumored to$"
-
-gBerryDescriptionPart2_Salac:: @ 858A4F0
- .string "contain the power of the sky.$"
-
-gBerryDescriptionPart1_Petaya:: @ 858A50E
- .string "A mysterious BERRY. It is rumored to$"
-
-gBerryDescriptionPart2_Petaya:: @ 858A533
- .string "contain the power of all living things.$"
-
-gBerryDescriptionPart1_Apicot:: @ 858A55B
- .string "A very mystifying BERRY. No telling$"
-
-gBerryDescriptionPart2_Apicot:: @ 858A57F
- .string "what may happen or how it can be used.$"
-
-gBerryDescriptionPart1_Lansat:: @ 858A5A6
- .string "Said to be a legendary BERRY.$"
-
-gBerryDescriptionPart2_Lansat:: @ 858A5C4
- .string "Holding it supposedly brings joy.$"
-
-gBerryDescriptionPart1_Starf:: @ 858A5E6
- .string "So strong, it was abandoned at the$"
-
-gBerryDescriptionPart2_Starf:: @ 858A609
- .string "world's edge. Considered a mirage.$"
-
-gBerryDescriptionPart1_Enigma:: @ 858A62C
- .string "A completely enigmatic BERRY.$"
-
-gBerryDescriptionPart2_Enigma:: @ 858A64A
- .string "Appears to have the power of stars.$"
-
diff --git a/data/text/contest_painting.inc b/data/text/contest_painting.inc
index 78ae80153..b423fbb27 100644
--- a/data/text/contest_painting.inc
+++ b/data/text/contest_painting.inc
@@ -1,4 +1,4 @@
-gContestPaintingCaption:: @ 827EA0C
+gContestHallPaintingCaption:: @ 827EA0C
.string "{STR_VAR_1}\n"
.string "{STR_VAR_2}'s {STR_VAR_3}$"
diff --git a/data/text/tv.inc b/data/text/tv.inc
index 287ce7f00..311f2ddd2 100644
--- a/data/text/tv.inc
+++ b/data/text/tv.inc
@@ -1027,7 +1027,7 @@ gTVPokemonTodaySuccessfulText11:: @ 08283A5F
.string "BIG BRO: Remember, it could be your\n"
.string "POKéMON in the spotlight next time!$"
-gTVTodaysSmartShopperText00:: @ 08283B05
+SmartShopper_Text_Intro:: @ 08283B05
.string "Hello!\p"
.string "It's time for TODAY'S SMART SHOPPER.\p"
.string "INTERVIEWER: How are you, viewers?\p"
@@ -1036,7 +1036,7 @@ gTVTodaysSmartShopperText00:: @ 08283B05
.string "Let's check on what the hot sellers\n"
.string "have been recently.$"
-gTVTodaysSmartShopperText01:: @ 08283BAF
+SmartShopper_Text_ClerkNormal:: @ 08283BAF
.string "Let's interview the clerk to get the\n"
.string "lowdown.\p"
.string "Hi, how's your business?\p"
@@ -1046,7 +1046,7 @@ gTVTodaysSmartShopperText01:: @ 08283BAF
.string "Why, just the other day a TRAINER\n"
.string "named {STR_VAR_1} bought {STR_VAR_3}.$"
-gTVTodaysSmartShopperText02:: @ 08283C81
+SmartShopper_Text_RandomComment1:: @ 08283C81
.string "INTERVIEWER: The TRAINER bought\n"
.string "{STR_VAR_3} {STR_VAR_2}S? That's a haul!\p"
.string "If I may say so, {STR_VAR_1} must have\n"
@@ -1055,13 +1055,13 @@ gTVTodaysSmartShopperText02:: @ 08283C81
.string "For traveling, {STR_VAR_2}S are so\n"
.string "important!$"
-gTVTodaysSmartShopperText03:: @ 08283D32
+SmartShopper_Text_RandomComment2:: @ 08283D32
.string "INTERVIEWER: Speaking of the item\n"
.string "{STR_VAR_2}, I just bought {STR_VAR_3} of\l"
.string "them recently.\p"
.string "After all, {STR_VAR_2}'s a great item!$"
-gTVTodaysSmartShopperText04:: @ 08283D99
+SmartShopper_Text_RandomComment3:: @ 08283D99
.string "INTERVIEWER: {STR_VAR_2}?!\n"
.string "But {STR_VAR_3} of them?!\p"
.string "I didn't think there would be anyone\n"
@@ -1069,7 +1069,7 @@ gTVTodaysSmartShopperText04:: @ 08283D99
.string "My goodness, I can only afford one or\n"
.string "two at a time…$"
-gTVTodaysSmartShopperText05:: @ 08283E28
+SmartShopper_Text_RandomComment4:: @ 08283E28
.string "INTERVIEWER: One time, I bought\n"
.string "a whole lot of the item {STR_VAR_2}.\p"
.string "But it turned out to be too many.\n"
@@ -1079,21 +1079,21 @@ gTVTodaysSmartShopperText05:: @ 08283E28
.string "Oops!\p"
.string "There's no point talking about me!$"
-gTVTodaysSmartShopperText06:: @ 08283F01
+SmartShopper_Text_SecondItem:: @ 08283F01
.string "CLERK: {STR_VAR_1} also bought the item\n"
.string "{STR_VAR_2} in bulk, taking {STR_VAR_3}.\p"
.string "INTERVIEWER: Oh, that's smart.\n"
.string "{STR_VAR_2}'s a very good item, too.$"
-gTVTodaysSmartShopperText07:: @ 08283F72
+SmartShopper_Text_ThirdItem:: @ 08283F72
.string "CLERK: And, the TRAINER also bought\n"
.string "{STR_VAR_3} of the item {STR_VAR_2}.$"
-gTVTodaysSmartShopperText08:: @ 08283FA9
+SmartShopper_Text_DuringSale:: @ 08283FA9
.string "CLERK: Plus, it was during a big sale.\n"
.string "That's smart shopping.$"
-gTVTodaysSmartShopperText09:: @ 08283FE7
+SmartShopper_Text_OutroNormal:: @ 08283FE7
.string "INTERVIEWER: Hmm… {STR_VAR_1} sounds like\n"
.string "quite the shrewd bargain hunter!\p"
.string "In total, {STR_VAR_1}'s purchases came to…\p"
@@ -1102,11 +1102,11 @@ gTVTodaysSmartShopperText09:: @ 08283FE7
.string "Oops! We're out of time!\n"
.string "See you on our next broadcast!$"
-gTVTodaysSmartShopperText10:: @ 0828409E
+SmartShopper_Text_IsVIP:: @ 0828409E
.string "CLERK: {STR_VAR_1} is a VIP customer,\n"
.string "no doubt about it.$"
-gTVTodaysSmartShopperText11:: @ 082840CE
+SmartShopper_Text_ClerkMax:: @ 082840CE
.string "Let's interview the clerk to get the\n"
.string "lowdown.\p"
.string "Hi, how's your business?\p"
@@ -1127,7 +1127,7 @@ gTVTodaysSmartShopperText11:: @ 082840CE
.string "CLERK: {STR_VAR_1} is a VIP customer,\n"
.string "no doubt about it.$"
-gTVTodaysSmartShopperText12:: @ 082842E6
+SmartShopper_Text_OutroMax:: @ 082842E6
.string "INTERVIEWER: Hmm…\n"
.string "That is amazing.\p"
.string "But why would the TRAINER need to buy\n"