2021-04-03 18:38:07 +02:00
|
|
|
#include "constants/global.h"
|
2018-02-08 00:35:13 +01:00
|
|
|
#include "constants/battle.h"
|
2018-02-08 11:17:41 +01:00
|
|
|
#include "constants/pokemon.h"
|
|
|
|
#include "constants/battle_script_commands.h"
|
2018-02-08 00:35:13 +01:00
|
|
|
#include "constants/battle_anim.h"
|
|
|
|
#include "constants/battle_string_ids.h"
|
2017-12-11 19:27:51 +01:00
|
|
|
#include "constants/abilities.h"
|
2020-04-22 10:44:19 +02:00
|
|
|
#include "constants/hold_effects.h"
|
2017-12-11 19:27:51 +01:00
|
|
|
#include "constants/moves.h"
|
|
|
|
#include "constants/songs.h"
|
2018-10-06 09:37:52 +02:00
|
|
|
#include "constants/game_stat.h"
|
2021-04-02 08:17:36 +02:00
|
|
|
#include "constants/trainers.h"
|
2020-10-15 09:21:40 +02:00
|
|
|
#include "constants/battle_config.h"
|
2016-11-01 16:29:13 +01:00
|
|
|
.include "asm/macros.inc"
|
2017-11-25 18:42:31 +01:00
|
|
|
.include "asm/macros/battle_script.inc"
|
2016-11-01 16:29:13 +01:00
|
|
|
.include "constants/constants.inc"
|
2016-09-03 19:20:06 +02:00
|
|
|
|
|
|
|
.section script_data, "aw", %progbits
|
2018-02-08 11:17:41 +01:00
|
|
|
|
2017-12-31 16:28:57 +01:00
|
|
|
.align 2
|
2021-07-20 21:18:31 +02:00
|
|
|
gBattleScriptsForMoveEffects::
|
2021-08-12 01:33:10 +02:00
|
|
|
.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_EffectSpeedUp @ EFFECT_SPEED_UP
|
|
|
|
.4byte BattleScript_EffectSpecialAttackUp @ EFFECT_SPECIAL_ATTACK_UP
|
|
|
|
.4byte BattleScript_EffectSpecialDefenseUp @ EFFECT_SPECIAL_DEFENSE_UP
|
|
|
|
.4byte BattleScript_EffectAccuracyUp @ EFFECT_ACCURACY_UP
|
|
|
|
.4byte BattleScript_EffectEvasionUp @ EFFECT_EVASION_UP
|
|
|
|
.4byte BattleScript_EffectSpecialAttackUp3 @ EFFECT_SPECIAL_ATTACK_UP_3
|
|
|
|
.4byte BattleScript_EffectAttackDown @ EFFECT_ATTACK_DOWN
|
|
|
|
.4byte BattleScript_EffectDefenseDown @ EFFECT_DEFENSE_DOWN
|
|
|
|
.4byte BattleScript_EffectSpeedDown @ EFFECT_SPEED_DOWN
|
|
|
|
.4byte BattleScript_EffectSpecialAttackDown @ EFFECT_SPECIAL_ATTACK_DOWN
|
|
|
|
.4byte BattleScript_EffectSpecialDefenseDown @ 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_EffectHit @ EFFECT_FUSION_COMBO
|
|
|
|
.4byte BattleScript_EffectSuperFang @ EFFECT_SUPER_FANG
|
|
|
|
.4byte BattleScript_EffectDragonRage @ EFFECT_DRAGON_RAGE
|
|
|
|
.4byte BattleScript_EffectTrap @ EFFECT_TRAP
|
|
|
|
.4byte BattleScript_EffectHealBlock @ EFFECT_HEAL_BLOCK
|
|
|
|
.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_EffectRecoil25 @ EFFECT_RECOIL_25
|
|
|
|
.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_EffectAccuracyUp2 @ EFFECT_ACCURACY_UP_2
|
|
|
|
.4byte BattleScript_EffectEvasionUp2 @ 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_EffectSpecialAttackDown2 @ EFFECT_SPECIAL_ATTACK_DOWN_2
|
|
|
|
.4byte BattleScript_EffectSpecialDefenseDown2 @ EFFECT_SPECIAL_DEFENSE_DOWN_2
|
|
|
|
.4byte BattleScript_EffectAccuracyDown2 @ EFFECT_ACCURACY_DOWN_2
|
|
|
|
.4byte BattleScript_EffectEvasionDown2 @ 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_EffectTwoTurnsAttack @ EFFECT_TWO_TURNS_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_EffectDoNothing @ EFFECT_DO_NOTHING
|
|
|
|
.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_EffectHammerArm @ EFFECT_HAMMER_ARM
|
|
|
|
.4byte BattleScript_EffectSleepTalk @ EFFECT_SLEEP_TALK
|
|
|
|
.4byte BattleScript_EffectDestinyBond @ EFFECT_DESTINY_BOND
|
|
|
|
.4byte BattleScript_EffectHit @ EFFECT_FLAIL
|
|
|
|
.4byte BattleScript_EffectSpite @ EFFECT_SPITE
|
|
|
|
.4byte BattleScript_EffectHit @ EFFECT_FALSE_SWIPE
|
|
|
|
.4byte BattleScript_EffectHealBell @ EFFECT_HEAL_BELL
|
|
|
|
.4byte BattleScript_EffectHit @ EFFECT_ALWAYS_CRIT
|
|
|
|
.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_EffectHealingWish @ EFFECT_HEALING_WISH
|
|
|
|
.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_EffectHit @ EFFECT_RETURN
|
|
|
|
.4byte BattleScript_EffectPresent @ EFFECT_PRESENT
|
|
|
|
.4byte BattleScript_EffectHit @ EFFECT_FRUSTRATION
|
|
|
|
.4byte BattleScript_EffectSafeguard @ EFFECT_SAFEGUARD
|
|
|
|
.4byte BattleScript_EffectHit @ EFFECT_UNUSED_125
|
|
|
|
.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_EffectCaptivate @ EFFECT_CAPTIVATE
|
|
|
|
.4byte BattleScript_EffectMorningSun @ EFFECT_MORNING_SUN
|
|
|
|
.4byte BattleScript_EffectSynthesis @ EFFECT_SYNTHESIS
|
|
|
|
.4byte BattleScript_EffectMoonlight @ EFFECT_MOONLIGHT
|
|
|
|
.4byte BattleScript_EffectHit @ 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_FELL_STINGER
|
|
|
|
.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_EffectWorrySeed @ EFFECT_WORRY_SEED
|
|
|
|
.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_EffectHit @ 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_EffectHit @ 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_EffectHit @ 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_EffectHit @ EFFECT_LOW_KICK
|
|
|
|
.4byte BattleScript_EffectSecretPower @ EFFECT_SECRET_POWER
|
|
|
|
.4byte BattleScript_EffectRecoil33 @ EFFECT_RECOIL_33
|
|
|
|
.4byte BattleScript_EffectTeeterDance @ EFFECT_TEETER_DANCE
|
|
|
|
.4byte BattleScript_EffectHitEscape @ EFFECT_HIT_ESCAPE
|
|
|
|
.4byte BattleScript_EffectMudSport @ EFFECT_MUD_SPORT
|
|
|
|
.4byte BattleScript_EffectPoisonFang @ EFFECT_POISON_FANG
|
|
|
|
.4byte BattleScript_EffectHit @ 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_EffectPlaceholder @ EFFECT_PLACEHOLDER
|
|
|
|
.4byte BattleScript_EffectWaterSport @ EFFECT_WATER_SPORT
|
|
|
|
.4byte BattleScript_EffectCalmMind @ EFFECT_CALM_MIND
|
|
|
|
.4byte BattleScript_EffectDragonDance @ EFFECT_DRAGON_DANCE
|
|
|
|
.4byte BattleScript_EffectCamouflage @ EFFECT_CAMOUFLAGE
|
|
|
|
.4byte BattleScript_EffectHit @ EFFECT_PLEDGE
|
|
|
|
.4byte BattleScript_EffectHit @ EFFECT_FLING
|
|
|
|
.4byte BattleScript_EffectNaturalGift @ EFFECT_NATURAL_GIFT
|
|
|
|
.4byte BattleScript_EffectWakeUpSlap @ EFFECT_WAKE_UP_SLAP
|
|
|
|
.4byte BattleScript_EffectHit @ EFFECT_WRING_OUT
|
|
|
|
.4byte BattleScript_EffectHit @ EFFECT_HEX
|
|
|
|
.4byte BattleScript_EffectHit @ EFFECT_ASSURANCE
|
|
|
|
.4byte BattleScript_EffectHit @ EFFECT_TRUMP_CARD
|
|
|
|
.4byte BattleScript_EffectHit @ EFFECT_ACROBATICS
|
|
|
|
.4byte BattleScript_EffectHit @ EFFECT_HEAT_CRASH
|
|
|
|
.4byte BattleScript_EffectHit @ EFFECT_PUNISHMENT
|
|
|
|
.4byte BattleScript_EffectHit @ EFFECT_STORED_POWER
|
|
|
|
.4byte BattleScript_EffectHit @ EFFECT_ELECTRO_BALL
|
|
|
|
.4byte BattleScript_EffectHit @ EFFECT_GYRO_BALL
|
|
|
|
.4byte BattleScript_EffectHit @ EFFECT_ECHOED_VOICE
|
|
|
|
.4byte BattleScript_EffectHit @ EFFECT_PAYBACK
|
|
|
|
.4byte BattleScript_EffectHit @ EFFECT_ROUND
|
|
|
|
.4byte BattleScript_EffectHit @ EFFECT_BRINE
|
|
|
|
.4byte BattleScript_EffectHit @ EFFECT_VENOSHOCK
|
|
|
|
.4byte BattleScript_EffectHit @ EFFECT_RETALITATE
|
|
|
|
.4byte BattleScript_EffectBulldoze @ EFFECT_BULLDOZE
|
|
|
|
.4byte BattleScript_EffectHit @ EFFECT_FOUL_PLAY
|
|
|
|
.4byte BattleScript_EffectHit @ EFFECT_PSYSHOCK
|
|
|
|
.4byte BattleScript_EffectRoost @ EFFECT_ROOST
|
|
|
|
.4byte BattleScript_EffectGravity @ EFFECT_GRAVITY
|
|
|
|
.4byte BattleScript_EffectMircleEye @ EFFECT_MIRACLE_EYE
|
|
|
|
.4byte BattleScript_EffectTailwind @ EFFECT_TAILWIND
|
|
|
|
.4byte BattleScript_EffectEmbargo @ EFFECT_EMBARGO
|
|
|
|
.4byte BattleScript_EffectAquaRing @ EFFECT_AQUA_RING
|
|
|
|
.4byte BattleScript_EffectTrickRoom @ EFFECT_TRICK_ROOM
|
|
|
|
.4byte BattleScript_EffectWonderRoom @ EFFECT_WONDER_ROOM
|
|
|
|
.4byte BattleScript_EffectMagicRoom @ EFFECT_MAGIC_ROOM
|
|
|
|
.4byte BattleScript_EffectMagnetRise @ EFFECT_MAGNET_RISE
|
|
|
|
.4byte BattleScript_EffectToxicSpikes @ EFFECT_TOXIC_SPIKES
|
|
|
|
.4byte BattleScript_EffectGastroAcid @ EFFECT_GASTRO_ACID
|
|
|
|
.4byte BattleScript_EffectStealthRock @ EFFECT_STEALTH_ROCK
|
|
|
|
.4byte BattleScript_EffectTelekinesis @ EFFECT_TELEKINESIS
|
|
|
|
.4byte BattleScript_EffectPowerSwap @ EFFECT_POWER_SWAP
|
|
|
|
.4byte BattleScript_EffectGuardSwap @ EFFECT_GUARD_SWAP
|
|
|
|
.4byte BattleScript_EffectHeartSwap @ EFFECT_HEART_SWAP
|
|
|
|
.4byte BattleScript_EffectPowerSplit @ EFFECT_POWER_SPLIT
|
|
|
|
.4byte BattleScript_EffectGuardSplit @ EFFECT_GUARD_SPLIT
|
|
|
|
.4byte BattleScript_EffectStickyWeb @ EFFECT_STICKY_WEB
|
|
|
|
.4byte BattleScript_EffectMetalBurst @ EFFECT_METAL_BURST
|
|
|
|
.4byte BattleScript_EffectLuckyChant @ EFFECT_LUCKY_CHANT
|
|
|
|
.4byte BattleScript_EffectSuckerPunch @ EFFECT_SUCKER_PUNCH
|
|
|
|
.4byte BattleScript_EffectSpecialDefenseDownHit2 @ EFFECT_SPECIAL_DEFENSE_DOWN_HIT_2
|
|
|
|
.4byte BattleScript_EffectSimpleBeam @ EFFECT_SIMPLE_BEAM
|
|
|
|
.4byte BattleScript_EffectEntrainment @ EFFECT_ENTRAINMENT
|
|
|
|
.4byte BattleScript_EffectHealPulse @ EFFECT_HEAL_PULSE
|
|
|
|
.4byte BattleScript_EffectQuash @ EFFECT_QUASH
|
|
|
|
.4byte BattleScript_EffectIonDeluge @ EFFECT_ION_DELUGE
|
|
|
|
.4byte BattleScript_EffectFreezeHit @ EFFECT_FREEZE_DRY
|
|
|
|
.4byte BattleScript_EffectTopsyTurvy @ EFFECT_TOPSY_TURVY
|
|
|
|
.4byte BattleScript_EffectMistyTerrain @ EFFECT_MISTY_TERRAIN
|
|
|
|
.4byte BattleScript_EffectGrassyTerrain @ EFFECT_GRASSY_TERRAIN
|
|
|
|
.4byte BattleScript_EffectElectricTerrain @ EFFECT_ELECTRIC_TERRAIN
|
|
|
|
.4byte BattleScript_EffectPsychicTerrain @ EFFECT_PSYCHIC_TERRAIN
|
|
|
|
.4byte BattleScript_EffectAttackAccUp @ EFFECT_ATTACK_ACCURACY_UP
|
|
|
|
.4byte BattleScript_EffectAttackSpAttackUp @ EFFECT_ATTACK_SPATK_UP
|
|
|
|
.4byte BattleScript_EffectHurricane @ EFFECT_HURRICANE
|
|
|
|
.4byte BattleScript_EffectHit @ EFFECT_TWO_TYPED_MOVE
|
|
|
|
.4byte BattleScript_EffectMeFirst @ EFFECT_ME_FIRST
|
|
|
|
.4byte BattleScript_EffectSpeedUpHit @ EFFECT_SPEED_UP_HIT
|
|
|
|
.4byte BattleScript_EffectQuiverDance @ EFFECT_QUIVER_DANCE
|
|
|
|
.4byte BattleScript_EffectCoil @ EFFECT_COIL
|
|
|
|
.4byte BattleScript_EffectElectrify @ EFFECT_ELECTRIFY
|
|
|
|
.4byte BattleScript_EffectBurnHit @ EFFECT_SCALD
|
|
|
|
.4byte BattleScript_EffectReflectType @ EFFECT_REFLECT_TYPE
|
|
|
|
.4byte BattleScript_EffectSoak @ EFFECT_SOAK
|
|
|
|
.4byte BattleScript_EffectGrowth @ EFFECT_GROWTH
|
|
|
|
.4byte BattleScript_EffectCloseCombat @ EFFECT_CLOSE_COMBAT
|
|
|
|
.4byte BattleScript_EffectLastResort @ EFFECT_LAST_RESORT
|
|
|
|
.4byte BattleScript_EffectRecoil33WithStatus @ EFFECT_RECOIL_33_STATUS
|
|
|
|
.4byte BattleScript_EffectFlinchWithStatus @ EFFECT_FLINCH_STATUS
|
|
|
|
.4byte BattleScript_EffectRecoil50 @ EFFECT_RECOIL_50
|
|
|
|
.4byte BattleScript_EffectShellSmash @ EFFECT_SHELL_SMASH
|
|
|
|
.4byte BattleScript_EffectShiftGear @ EFFECT_SHIFT_GEAR
|
|
|
|
.4byte BattleScript_EffectDefenseUp3 @ EFFECT_DEFENSE_UP_3
|
|
|
|
.4byte BattleScript_EffectNobleRoar @ EFFECT_NOBLE_ROAR
|
|
|
|
.4byte BattleScript_EffectVenomDrench @ EFFECT_VENOM_DRENCH
|
|
|
|
.4byte BattleScript_EffectToxicThread @ EFFECT_TOXIC_THREAD
|
|
|
|
.4byte BattleScript_EffectClearSmog @ EFFECT_CLEAR_SMOG
|
|
|
|
.4byte BattleScript_EffectHitSwitchTarget @ EFFECT_HIT_SWITCH_TARGET
|
|
|
|
.4byte BattleScript_EffectFinalGambit @ EFFECT_FINAL_GAMBIT
|
|
|
|
.4byte BattleScript_EffectHit @ EFFECT_CHANGE_TYPE_ON_ITEM
|
|
|
|
.4byte BattleScript_EffectAutotomize @ EFFECT_AUTOTOMIZE
|
|
|
|
.4byte BattleScript_EffectCopycat @ EFFECT_COPYCAT
|
|
|
|
.4byte BattleScript_EffectDefog @ EFFECT_DEFOG
|
|
|
|
.4byte BattleScript_EffectHitEnemyHealAlly @ EFFECT_HIT_ENEMY_HEAL_ALLY
|
|
|
|
.4byte BattleScript_EffectSmackDown @ EFFECT_SMACK_DOWN
|
|
|
|
.4byte BattleScript_EffectSynchronoise @ EFFECT_SYNCHRONOISE
|
|
|
|
.4byte BattleScript_EffectPsychoShift @ EFFECT_PSYCHO_SHIFT
|
|
|
|
.4byte BattleScript_EffectPowerTrick @ EFFECT_POWER_TRICK
|
|
|
|
.4byte BattleScript_EffectFlameBurst @ EFFECT_FLAME_BURST
|
|
|
|
.4byte BattleScript_EffectAfterYou @ EFFECT_AFTER_YOU
|
|
|
|
.4byte BattleScript_EffectBestow @ EFFECT_BESTOW
|
|
|
|
.4byte BattleScript_EffectRototiller @ EFFECT_ROTOTILLER
|
|
|
|
.4byte BattleScript_EffectFlowerShield @ EFFECT_FLOWER_SHIELD
|
|
|
|
.4byte BattleScript_EffectHitPreventEscape @ EFFECT_HIT_PREVENT_ESCAPE
|
|
|
|
.4byte BattleScript_EffectSpeedSwap @ EFFECT_SPEED_SWAP
|
|
|
|
.4byte BattleScript_EffectDefenseUp2Hit @ EFFECT_DEFENSE_UP2_HIT
|
|
|
|
.4byte BattleScript_EffectHit @ EFFECT_REVELATION_DANCE
|
|
|
|
.4byte BattleScript_EffectAuroraVeil @ EFFECT_AURORA_VEIL
|
|
|
|
.4byte BattleScript_EffectThirdType @ EFFECT_THIRD_TYPE
|
|
|
|
.4byte BattleScript_EffectFeint @ EFFECT_FEINT
|
|
|
|
.4byte BattleScript_EffectSparklingAria @ EFFECT_SPARKLING_ARIA
|
|
|
|
.4byte BattleScript_EffectAcupressure @ EFFECT_ACUPRESSURE
|
|
|
|
.4byte BattleScript_EffectAromaticMist @ EFFECT_AROMATIC_MIST
|
|
|
|
.4byte BattleScript_EffectPowder @ EFFECT_POWDER
|
|
|
|
.4byte BattleScript_EffectSpAtkUpHit @ EFFECT_SP_ATTACK_UP_HIT
|
|
|
|
.4byte BattleScript_EffectHit @ EFFECT_BELCH
|
|
|
|
.4byte BattleScript_EffectPartingShot @ EFFECT_PARTING_SHOT
|
|
|
|
.4byte BattleScript_EffectSpectralThief @ EFFECT_SPECTRAL_THIEF
|
|
|
|
.4byte BattleScript_EffectVCreate @ EFFECT_V_CREATE
|
|
|
|
.4byte BattleScript_EffectMatBlock @ EFFECT_MAT_BLOCK
|
|
|
|
.4byte BattleScript_EffectHit @ EFFECT_STOMPING_TANTRUM
|
|
|
|
.4byte BattleScript_EffectCoreEnforcer @ EFFECT_CORE_ENFORCER
|
|
|
|
.4byte BattleScript_EffectInstruct @ EFFECT_INSTRUCT
|
|
|
|
.4byte BattleScript_EffectThroatChop @ EFFECT_THROAT_CHOP
|
|
|
|
.4byte BattleScript_EffectLaserFocus @ EFFECT_LASER_FOCUS
|
|
|
|
.4byte BattleScript_EffectMagneticFlux @ EFFECT_MAGNETIC_FLUX
|
|
|
|
.4byte BattleScript_EffectGearUp @ EFFECT_GEAR_UP
|
|
|
|
.4byte BattleScript_EffectIncinerate @ EFFECT_INCINERATE
|
|
|
|
.4byte BattleScript_EffectBugBite @ EFFECT_BUG_BITE
|
|
|
|
.4byte BattleScript_EffectStrengthSap @ EFFECT_STRENGTH_SAP
|
|
|
|
.4byte BattleScript_EffectMindBlown @ EFFECT_MIND_BLOWN
|
|
|
|
.4byte BattleScript_EffectPurify @ EFFECT_PURIFY
|
|
|
|
.4byte BattleScript_EffectBurnUp @ EFFECT_BURN_UP
|
|
|
|
.4byte BattleScript_EffectShoreUp @ EFFECT_SHORE_UP
|
|
|
|
.4byte BattleScript_EffectGeomancy @ EFFECT_GEOMANCY
|
|
|
|
.4byte BattleScript_EffectFairyLock @ EFFECT_FAIRY_LOCK
|
|
|
|
.4byte BattleScript_EffectAllySwitch @ EFFECT_ALLY_SWITCH
|
|
|
|
.4byte BattleScript_EffectSleepHit @ EFFECT_SLEEP_HIT
|
|
|
|
.4byte BattleScript_EffectAttackerDefenseDownHit @ EFFECT_ATTACKER_DEFENSE_DOWN_HIT
|
|
|
|
.4byte BattleScript_EffectHit @ EFFECT_BODY_PRESS
|
2021-05-09 23:15:24 +02:00
|
|
|
|
|
|
|
BattleScript_EffectAttackerDefenseDownHit:
|
2021-06-02 21:42:02 +02:00
|
|
|
setmoveeffect MOVE_EFFECT_DEF_MINUS_1 | MOVE_EFFECT_AFFECTS_USER | MOVE_EFFECT_CERTAIN
|
2021-05-09 23:15:24 +02:00
|
|
|
goto BattleScript_EffectHit
|
2020-06-16 12:06:38 +02:00
|
|
|
|
|
|
|
BattleScript_EffectSleepHit:
|
|
|
|
setmoveeffect MOVE_EFFECT_SLEEP
|
|
|
|
goto BattleScript_EffectHit
|
2020-04-20 20:05:04 +02:00
|
|
|
|
|
|
|
BattleScript_EffectAllySwitch:
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
jumpifnoally BS_ATTACKER, BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_ALLYSWITCHPOSITION
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-04-20 20:05:04 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-04-20 19:41:07 +02:00
|
|
|
|
|
|
|
BattleScript_EffectFairyLock:
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
trysetfairylock BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_NOONEWILLBEABLETORUNAWAY
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-04-20 19:41:07 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-04-17 21:14:26 +02:00
|
|
|
|
|
|
|
BattleScript_EffectBurnUp:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
jumpiftype BS_ATTACKER, TYPE_FIRE, BattleScript_BurnUpWorks
|
|
|
|
goto BattleScript_ButItFailed
|
|
|
|
BattleScript_BurnUpWorks:
|
|
|
|
accuracycheck BattleScript_MoveMissedPause, ACC_CURR_MOVE
|
|
|
|
critcalc
|
|
|
|
damagecalc
|
|
|
|
adjustdamage
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
effectivenesssound
|
|
|
|
hitanimation BS_TARGET
|
|
|
|
waitstate
|
|
|
|
healthbarupdate BS_TARGET
|
|
|
|
datahpupdate BS_TARGET
|
|
|
|
critmessage
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-04-17 21:14:26 +02:00
|
|
|
resultmessage
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-04-17 21:14:26 +02:00
|
|
|
losetype BS_ATTACKER, TYPE_FIRE
|
|
|
|
printstring STRINGID_ATTACKERLOSTFIRETYPE
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-04-17 21:14:26 +02:00
|
|
|
tryfaintmon BS_TARGET, FALSE, NULL
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectPurify:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
accuracycheck BattleScript_ButItFailed, NO_ACC_CALC_CHECK_LOCK_ON
|
|
|
|
jumpifstatus BS_TARGET, STATUS1_ANY, BattleScript_PurifyWorks
|
|
|
|
goto BattleScript_ButItFailed
|
|
|
|
BattleScript_PurifyWorks:
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
curestatus BS_TARGET
|
|
|
|
updatestatusicon BS_TARGET
|
|
|
|
printstring STRINGID_ATTACKERCUREDTARGETSTATUS
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-04-17 21:14:26 +02:00
|
|
|
tryhealhalfhealth BattleScript_AlreadyAtFullHp, BS_ATTACKER
|
|
|
|
goto BattleScript_RestoreHp
|
2020-04-13 15:00:17 +02:00
|
|
|
|
|
|
|
BattleScript_EffectStrengthSap:
|
|
|
|
setstatchanger STAT_ATK, 1, TRUE
|
|
|
|
attackcanceler
|
|
|
|
jumpifsubstituteblocks BattleScript_ButItFailedAtkStringPpReduce
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifstat BS_TARGET, CMP_NOT_EQUAL, STAT_ATK, MIN_STAT_STAGE, BattleScript_StrengthSapTryLower
|
|
|
|
pause B_WAIT_TIME_SHORT
|
2020-04-13 15:00:17 +02:00
|
|
|
statbuffchange STAT_BUFF_ALLOW_PTR, BattleScript_MoveEnd
|
|
|
|
printfromtable gStatDownStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-04-13 15:00:17 +02:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
BattleScript_StrengthSapTryLower:
|
|
|
|
getstatvalue BS_TARGET, STAT_ATK
|
|
|
|
jumpiffullhp BS_ATTACKER, BattleScript_StrengthSapMustLower
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
statbuffchange STAT_BUFF_ALLOW_PTR, BattleScript_StrengthSapHp
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_FELL_EMPTY, BattleScript_StrengthSapHp
|
2020-04-13 15:00:17 +02:00
|
|
|
BattleScript_StrengthSapLower:
|
|
|
|
setgraphicalstatchangevalues
|
|
|
|
playanimation BS_TARGET, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
|
|
|
printfromtable gStatDownStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-04-13 15:00:17 +02:00
|
|
|
goto BattleScript_StrengthSapHp
|
|
|
|
@ Drain HP without lowering a stat
|
|
|
|
BattleScript_StrengthSapTryHp:
|
|
|
|
jumpiffullhp BS_ATTACKER, BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
BattleScript_StrengthSapHp:
|
|
|
|
jumpiffullhp BS_ATTACKER, BattleScript_MoveEnd
|
|
|
|
manipulatedamage DMG_BIG_ROOT
|
|
|
|
healthbarupdate BS_ATTACKER
|
|
|
|
datahpupdate BS_ATTACKER
|
|
|
|
printstring STRINGID_PKMNENERGYDRAINED
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-04-13 15:00:17 +02:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
BattleScript_StrengthSapMustLower:
|
|
|
|
statbuffchange STAT_BUFF_ALLOW_PTR, BattleScript_MoveEnd
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_FELL_EMPTY, BattleScript_MoveEnd
|
2020-04-13 15:00:17 +02:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
goto BattleScript_StrengthSapLower
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-05-23 12:32:14 +02:00
|
|
|
BattleScript_EffectBugBite:
|
|
|
|
setmoveeffect MOVE_EFFECT_BUG_BITE | MOVE_EFFECT_CERTAIN
|
|
|
|
goto BattleScript_EffectHit
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-05-10 15:12:33 +02:00
|
|
|
BattleScript_EffectIncinerate:
|
|
|
|
setmoveeffect MOVE_EFFECT_INCINERATE | MOVE_EFFECT_CERTAIN
|
|
|
|
goto BattleScript_EffectHit
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-05-10 15:12:33 +02:00
|
|
|
BattleScript_MoveEffectIncinerate::
|
|
|
|
printstring STRINGID_INCINERATEBURN
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-05-10 15:12:33 +02:00
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-05-23 12:32:14 +02:00
|
|
|
BattleScript_MoveEffectBugBite::
|
|
|
|
printstring STRINGID_BUGBITE
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-05-23 12:32:14 +02:00
|
|
|
return
|
2019-04-03 21:33:37 +02:00
|
|
|
|
2019-04-15 16:55:37 +02:00
|
|
|
BattleScript_EffectCoreEnforcer:
|
|
|
|
setmoveeffect MOVE_EFFECT_CORE_ENFORCER | MOVE_EFFECT_CERTAIN
|
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_MoveEffectCoreEnforcer::
|
|
|
|
setgastroacid BattleScript_CoreEnforcerRet
|
|
|
|
printstring STRINGID_PKMNSABILITYSUPPRESSED
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-04-15 16:55:37 +02:00
|
|
|
BattleScript_CoreEnforcerRet:
|
|
|
|
return
|
2019-04-03 21:33:37 +02:00
|
|
|
|
2019-04-20 21:02:52 +02:00
|
|
|
BattleScript_EffectLaserFocus:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2020-07-27 14:51:39 +02:00
|
|
|
setuserstatus3 STATUS3_LASER_FOCUS, BattleScript_ButItFailed
|
2019-04-20 21:02:52 +02:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_LASERFOCUS
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-04-20 21:02:52 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-03-07 12:20:57 +01:00
|
|
|
BattleScript_EffectVCreate:
|
|
|
|
setmoveeffect MOVE_EFFECT_V_CREATE | MOVE_EFFECT_AFFECTS_USER
|
|
|
|
goto BattleScript_EffectHit
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-03-07 12:20:57 +01:00
|
|
|
BattleScript_VCreateStatLoss::
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifstat BS_ATTACKER, CMP_GREATER_THAN, STAT_DEF, MIN_STAT_STAGE, BattleScript_VCreateStatAnim
|
|
|
|
jumpifstat BS_ATTACKER, CMP_GREATER_THAN, STAT_SPDEF, MIN_STAT_STAGE, BattleScript_VCreateStatAnim
|
|
|
|
jumpifstat BS_ATTACKER, CMP_EQUAL, STAT_SPEED, MIN_STAT_STAGE, BattleScript_VCreateStatLossRet
|
2019-03-07 12:20:57 +01:00
|
|
|
BattleScript_VCreateStatAnim:
|
|
|
|
setbyte sSTAT_ANIM_PLAYED, FALSE
|
2019-11-10 12:09:14 +01:00
|
|
|
playstatchangeanimation BS_ATTACKER, BIT_DEF | BIT_SPDEF | BIT_SPEED, STAT_CHANGE_NEGATIVE | STAT_CHANGE_CANT_PREVENT
|
2019-03-07 12:20:57 +01:00
|
|
|
setstatchanger STAT_DEF, 1, TRUE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_NOT_PROTECT_AFFECTED | MOVE_EFFECT_CERTAIN, BattleScript_VCreateTrySpDef
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_VCreateTrySpDef
|
2019-03-07 12:20:57 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-03-07 12:20:57 +01:00
|
|
|
BattleScript_VCreateTrySpDef:
|
|
|
|
setstatchanger STAT_SPDEF, 1, TRUE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_NOT_PROTECT_AFFECTED | MOVE_EFFECT_CERTAIN, BattleScript_VCreateTrySpeed
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_VCreateTrySpeed
|
2019-03-07 12:20:57 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-03-07 12:20:57 +01:00
|
|
|
BattleScript_VCreateTrySpeed:
|
|
|
|
setstatchanger STAT_SPEED, 1, TRUE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_NOT_PROTECT_AFFECTED | MOVE_EFFECT_CERTAIN, BattleScript_VCreateStatLossRet
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_VCreateStatLossRet
|
2019-03-07 12:20:57 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-03-07 12:20:57 +01:00
|
|
|
BattleScript_VCreateStatLossRet:
|
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-02-14 12:15:53 +01:00
|
|
|
BattleScript_SpectralThiefSteal::
|
|
|
|
printstring STRINGID_SPECTRALTHIEFSTEAL
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-02-14 12:15:53 +01:00
|
|
|
setbyte sB_ANIM_ARG2, 0
|
|
|
|
playanimation BS_ATTACKER, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
|
|
|
spectralthiefprintstats
|
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-02-14 12:15:53 +01:00
|
|
|
BattleScript_EffectSpectralThief:
|
|
|
|
setmoveeffect MOVE_EFFECT_SPECTRAL_THIEF
|
|
|
|
goto BattleScript_EffectHit
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-02-05 22:47:50 +01:00
|
|
|
BattleScript_EffectPartingShot::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifstat BS_TARGET, CMP_GREATER_THAN, STAT_ATK, MIN_STAT_STAGE, BattleScript_EffectPartingShotTryAtk
|
|
|
|
jumpifstat BS_TARGET, CMP_EQUAL, STAT_SPATK, MIN_STAT_STAGE, BattleScript_CantLowerMultipleStats
|
2019-02-05 22:47:50 +01:00
|
|
|
BattleScript_EffectPartingShotTryAtk:
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
setbyte sSTAT_ANIM_PLAYED, FALSE
|
2021-04-28 03:36:37 +02:00
|
|
|
playstatchangeanimation BS_TARGET, BIT_ATK | BIT_SPATK, STAT_CHANGE_NEGATIVE | STAT_CHANGE_MULTIPLE_STATS
|
2019-11-10 12:09:14 +01:00
|
|
|
playstatchangeanimation BS_TARGET, BIT_ATK, STAT_CHANGE_NEGATIVE
|
2019-02-05 22:47:50 +01:00
|
|
|
setstatchanger STAT_ATK, 1, TRUE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange STAT_BUFF_ALLOW_PTR, BattleScript_EffectPartingShotTrySpAtk
|
2019-02-05 22:47:50 +01:00
|
|
|
printfromtable gStatDownStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-02-05 22:47:50 +01:00
|
|
|
BattleScript_EffectPartingShotTrySpAtk:
|
2019-11-10 12:09:14 +01:00
|
|
|
playstatchangeanimation BS_TARGET, BIT_SPATK, STAT_CHANGE_NEGATIVE
|
2019-02-05 22:47:50 +01:00
|
|
|
setstatchanger STAT_SPATK, 1, TRUE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange STAT_BUFF_ALLOW_PTR, BattleScript_EffectPartingShotSwitch
|
2019-02-05 22:47:50 +01:00
|
|
|
printfromtable gStatDownStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-02-09 18:40:04 +01:00
|
|
|
BattleScript_EffectPartingShotSwitch:
|
2019-03-31 15:19:25 +02:00
|
|
|
moveendall
|
2020-07-08 17:38:28 +02:00
|
|
|
jumpifbattletype BATTLE_TYPE_ARENA, BattleScript_PartingShotEnd
|
2019-11-10 12:09:14 +01:00
|
|
|
jumpifcantswitch SWITCH_IGNORE_ESCAPE_PREVENTION | BS_ATTACKER, BattleScript_PartingShotEnd
|
2021-04-28 03:36:37 +02:00
|
|
|
openpartyscreen BS_ATTACKER, BattleScript_PartingShotEnd
|
2019-02-05 22:47:50 +01:00
|
|
|
switchoutabilities BS_ATTACKER
|
|
|
|
waitstate
|
2021-04-28 03:36:37 +02:00
|
|
|
switchhandleorder BS_ATTACKER, 2
|
2019-02-09 17:05:59 +01:00
|
|
|
returntoball BS_ATTACKER
|
2019-02-05 22:47:50 +01:00
|
|
|
getswitchedmondata BS_ATTACKER
|
|
|
|
switchindataupdate BS_ATTACKER
|
|
|
|
hpthresholds BS_ATTACKER
|
|
|
|
printstring STRINGID_SWITCHINMON
|
|
|
|
switchinanim BS_ATTACKER, TRUE
|
|
|
|
waitstate
|
|
|
|
switchineffects BS_ATTACKER
|
2019-02-09 17:05:59 +01:00
|
|
|
BattleScript_PartingShotEnd:
|
|
|
|
end
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-01-27 11:57:13 +01:00
|
|
|
BattleScript_EffectSpAtkUpHit:
|
|
|
|
setmoveeffect MOVE_EFFECT_SP_ATK_PLUS_1 | MOVE_EFFECT_AFFECTS_USER
|
|
|
|
goto BattleScript_EffectHit
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-12-03 12:50:32 +01:00
|
|
|
BattleScript_EffectPowder:
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, NO_ACC_CALC_CHECK_LOCK_ON
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
jumpifstatus2 BS_TARGET, STATUS2_POWDER, BattleScript_ButItFailed
|
|
|
|
setpowder BS_TARGET
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_COVEREDINPOWDER
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-12-03 12:50:32 +01:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-11-25 12:59:22 +01:00
|
|
|
BattleScript_EffectAromaticMist:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
jumpifbyteequal gBattlerTarget, gBattlerAttacker, BattleScript_ButItFailed
|
|
|
|
jumpiftargetally BattleScript_EffectAromaticMistWorks
|
|
|
|
goto BattleScript_ButItFailed
|
|
|
|
BattleScript_EffectAromaticMistWorks:
|
|
|
|
setstatchanger STAT_SPDEF, 1, FALSE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange STAT_BUFF_ALLOW_PTR, BattleScript_EffectAromaticMistEnd
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_NOT_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_AromaticMistAnim
|
|
|
|
pause 16
|
2018-11-25 12:59:22 +01:00
|
|
|
printstring STRINGID_TARGETSTATWONTGOHIGHER
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-11-25 12:59:22 +01:00
|
|
|
goto BattleScript_EffectAromaticMistEnd
|
|
|
|
BattleScript_AromaticMistAnim:
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
setgraphicalstatchangevalues
|
|
|
|
playanimation BS_TARGET, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-11-25 12:59:22 +01:00
|
|
|
BattleScript_EffectAromaticMistEnd:
|
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-04-20 21:17:56 +02:00
|
|
|
BattleScript_EffectMagneticFlux::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2021-04-28 03:36:37 +02:00
|
|
|
setbyte gBattleCommunication, 0
|
2019-04-20 21:17:56 +02:00
|
|
|
BattleScript_EffectMagneticFluxStart:
|
|
|
|
jumpifability BS_TARGET, ABILITY_MINUS, BattleScript_EffectMagneticFluxCheckStats
|
|
|
|
jumpifability BS_TARGET, ABILITY_PLUS, BattleScript_EffectMagneticFluxCheckStats
|
|
|
|
goto BattleScript_EffectMagneticFluxLoop
|
|
|
|
BattleScript_EffectMagneticFluxCheckStats:
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifstat BS_TARGET, CMP_LESS_THAN, STAT_DEF, MAX_STAT_STAGE, BattleScript_EffectMagneticFluxTryDef
|
|
|
|
jumpifstat BS_TARGET, CMP_EQUAL, STAT_SPDEF, MAX_STAT_STAGE, BattleScript_EffectMagneticFluxLoop
|
2019-04-20 21:17:56 +02:00
|
|
|
BattleScript_EffectMagneticFluxTryDef:
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_NOT_EQUAL, gBattleCommunication, 0, BattleScript_EffectMagneticFluxSkipAnim
|
2019-04-20 21:17:56 +02:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
BattleScript_EffectMagneticFluxSkipAnim:
|
|
|
|
setbyte sSTAT_ANIM_PLAYED, FALSE
|
2021-04-28 03:36:37 +02:00
|
|
|
playstatchangeanimation BS_TARGET, BIT_DEF | BIT_SPDEF, 0
|
2019-04-20 21:17:56 +02:00
|
|
|
setstatchanger STAT_DEF, 1, FALSE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange STAT_BUFF_ALLOW_PTR, BattleScript_EffectMagneticFluxTrySpDef
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_EffectMagneticFluxTrySpDef
|
|
|
|
addbyte gBattleCommunication, 1
|
2019-04-20 21:17:56 +02:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-04-20 21:17:56 +02:00
|
|
|
BattleScript_EffectMagneticFluxTrySpDef:
|
|
|
|
setstatchanger STAT_SPDEF, 1, FALSE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange STAT_BUFF_ALLOW_PTR, BattleScript_EffectMagneticFluxLoop
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_EffectMagneticFluxLoop
|
|
|
|
addbyte gBattleCommunication, 1
|
2019-04-20 21:17:56 +02:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-04-20 21:17:56 +02:00
|
|
|
BattleScript_EffectMagneticFluxLoop:
|
|
|
|
jumpifbytenotequal gBattlerTarget, gBattlerAttacker, BattleScript_EffectMagneticFluxEnd
|
|
|
|
setallytonexttarget BattleScript_EffectMagneticFluxStart
|
|
|
|
BattleScript_EffectMagneticFluxEnd:
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_NOT_EQUAL, gBattleCommunication, 0, BattleScript_MoveEnd
|
2019-04-20 21:17:56 +02:00
|
|
|
goto BattleScript_ButItFailed
|
|
|
|
|
|
|
|
BattleScript_EffectGearUp::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2021-04-28 03:36:37 +02:00
|
|
|
setbyte gBattleCommunication, 0
|
2019-04-20 21:17:56 +02:00
|
|
|
BattleScript_EffectGearUpStart:
|
|
|
|
jumpifability BS_TARGET, ABILITY_MINUS, BattleScript_EffectGearUpCheckStats
|
|
|
|
jumpifability BS_TARGET, ABILITY_PLUS, BattleScript_EffectGearUpCheckStats
|
|
|
|
goto BattleScript_EffectGearUpLoop
|
|
|
|
BattleScript_EffectGearUpCheckStats:
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifstat BS_TARGET, CMP_LESS_THAN, STAT_ATK, MAX_STAT_STAGE, BattleScript_EffectGearUpTryAtk
|
|
|
|
jumpifstat BS_TARGET, CMP_EQUAL, STAT_SPATK, MAX_STAT_STAGE, BattleScript_EffectGearUpLoop
|
2019-04-20 21:17:56 +02:00
|
|
|
BattleScript_EffectGearUpTryAtk:
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_NOT_EQUAL, gBattleCommunication, 0, BattleScript_EffectGearUpSkipAnim
|
2019-04-20 21:17:56 +02:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
BattleScript_EffectGearUpSkipAnim:
|
|
|
|
setbyte sSTAT_ANIM_PLAYED, FALSE
|
2021-04-28 03:36:37 +02:00
|
|
|
playstatchangeanimation BS_TARGET, BIT_ATK | BIT_SPATK, 0
|
2019-04-20 21:17:56 +02:00
|
|
|
setstatchanger STAT_ATK, 1, FALSE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange STAT_BUFF_ALLOW_PTR, BattleScript_EffectGearUpTrySpAtk
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_EffectGearUpTrySpAtk
|
|
|
|
addbyte gBattleCommunication, 1
|
2019-04-20 21:17:56 +02:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-04-20 21:17:56 +02:00
|
|
|
BattleScript_EffectGearUpTrySpAtk:
|
|
|
|
setstatchanger STAT_SPATK, 1, FALSE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange STAT_BUFF_ALLOW_PTR, BattleScript_EffectGearUpLoop
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_EffectGearUpLoop
|
|
|
|
addbyte gBattleCommunication, 1
|
2019-04-20 21:17:56 +02:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-04-20 21:17:56 +02:00
|
|
|
BattleScript_EffectGearUpLoop:
|
|
|
|
jumpifbytenotequal gBattlerTarget, gBattlerAttacker, BattleScript_EffectGearUpEnd
|
|
|
|
setallytonexttarget BattleScript_EffectGearUpStart
|
|
|
|
BattleScript_EffectGearUpEnd:
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_NOT_EQUAL, gBattleCommunication, 0, BattleScript_MoveEnd
|
2019-04-20 21:17:56 +02:00
|
|
|
goto BattleScript_ButItFailed
|
|
|
|
|
2018-11-24 21:06:53 +01:00
|
|
|
BattleScript_EffectAcupressure:
|
|
|
|
attackcanceler
|
|
|
|
jumpifbyteequal gBattlerTarget, gBattlerAttacker, BattleScript_EffectAcupressureTry
|
|
|
|
jumpifstatus2 BS_TARGET, STATUS2_SUBSTITUTE, BattleScript_PrintMoveMissed
|
|
|
|
BattleScript_EffectAcupressureTry:
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
tryaccupressure BS_TARGET, BattleScript_ButItFailed
|
2019-07-03 03:02:22 +02:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2018-11-24 21:06:53 +01:00
|
|
|
setgraphicalstatchangevalues
|
|
|
|
playanimation BS_TARGET, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
|
|
|
statbuffchange MOVE_EFFECT_CERTAIN, BattleScript_MoveEnd
|
2021-04-28 03:36:37 +02:00
|
|
|
printstring STRINGID_DEFENDERSSTATROSE
|
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-11-24 21:06:53 +01:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-11-24 19:37:10 +01:00
|
|
|
BattleScript_MoveEffectFeint::
|
|
|
|
printstring STRINGID_FELLFORFEINT
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-11-24 19:37:10 +01:00
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-11-24 19:37:10 +01:00
|
|
|
BattleScript_EffectFeint:
|
|
|
|
setmoveeffect MOVE_EFFECT_FEINT
|
|
|
|
goto BattleScript_EffectHit
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-11-17 12:10:24 +01:00
|
|
|
BattleScript_EffectThirdType:
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
trysetthirdtype BS_TARGET, BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_THIRDTYPEADDED
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-11-17 12:10:24 +01:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-11-03 14:35:45 +01:00
|
|
|
BattleScript_EffectDefenseUp2Hit:
|
|
|
|
setmoveeffect MOVE_EFFECT_DEF_PLUS_2 | MOVE_EFFECT_AFFECTS_USER
|
|
|
|
goto BattleScript_EffectHit
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-10-06 15:50:35 +02:00
|
|
|
BattleScript_EffectFlowerShield:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
selectfirstvalidtarget
|
|
|
|
BattleScript_FlowerShieldIsAnyGrass:
|
|
|
|
jumpiftype BS_TARGET, TYPE_GRASS, BattleScript_FlowerShieldLoopStart
|
|
|
|
jumpifnexttargetvalid BattleScript_FlowerShieldIsAnyGrass
|
|
|
|
goto BattleScript_ButItFailed
|
|
|
|
BattleScript_FlowerShieldLoopStart:
|
|
|
|
selectfirstvalidtarget
|
|
|
|
BattleScript_FlowerShieldLoop:
|
|
|
|
movevaluescleanup
|
|
|
|
jumpiftype BS_TARGET, TYPE_GRASS, BattleScript_FlowerShieldLoop2
|
|
|
|
goto BattleScript_FlowerShieldMoveTargetEnd
|
|
|
|
BattleScript_FlowerShieldLoop2:
|
|
|
|
setstatchanger STAT_DEF, 1, FALSE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange STAT_BUFF_ALLOW_PTR, BattleScript_FlowerShieldMoveTargetEnd
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_LESS_THAN, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_FlowerShieldDoAnim
|
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_ROSE_EMPTY, BattleScript_FlowerShieldMoveTargetEnd
|
|
|
|
pause 21
|
2018-10-06 15:50:35 +02:00
|
|
|
goto BattleScript_FlowerShieldString
|
|
|
|
BattleScript_FlowerShieldDoAnim:
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
setgraphicalstatchangevalues
|
|
|
|
playanimation BS_TARGET, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
|
|
|
BattleScript_FlowerShieldString:
|
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-10-06 15:50:35 +02:00
|
|
|
BattleScript_FlowerShieldMoveTargetEnd:
|
2019-11-10 12:09:14 +01:00
|
|
|
moveendto MOVEEND_NEXT_TARGET
|
2018-10-06 15:50:35 +02:00
|
|
|
jumpifnexttargetvalid BattleScript_FlowerShieldLoop
|
|
|
|
end
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-09-30 14:04:46 +02:00
|
|
|
BattleScript_EffectRototiller:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
selectfirstvalidtarget
|
|
|
|
BattleScript_RototillerLoop:
|
|
|
|
movevaluescleanup
|
|
|
|
jumpifnotgrounded BS_TARGET, BattleScript_RototillerNoEffect
|
|
|
|
jumpiftype BS_TARGET, TYPE_GRASS, BattleScript_RototillerLoop2
|
|
|
|
BattleScript_RototillerNoEffect:
|
2021-04-28 03:36:37 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2018-09-30 14:04:46 +02:00
|
|
|
printstring STRINGID_NOEFFECTONTARGET
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-30 14:04:46 +02:00
|
|
|
goto BattleScript_RototillerMoveTargetEnd
|
|
|
|
BattleScript_RototillerLoop2:
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifstat BS_TARGET, CMP_LESS_THAN, STAT_ATK, MAX_STAT_STAGE, BattleScript_RototillerDoMoveAnim
|
|
|
|
jumpifstat BS_TARGET, CMP_EQUAL, STAT_SPATK, MAX_STAT_STAGE, BattleScript_RototillerCantRaiseMultipleStats
|
2018-09-30 14:04:46 +02:00
|
|
|
BattleScript_RototillerDoMoveAnim::
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
setbyte sSTAT_ANIM_PLAYED, FALSE
|
2021-04-28 03:36:37 +02:00
|
|
|
playstatchangeanimation BS_TARGET, BIT_ATK | BIT_SPATK, 0
|
2018-09-30 14:04:46 +02:00
|
|
|
setstatchanger STAT_ATK, 1, FALSE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange STAT_BUFF_ALLOW_PTR, BattleScript_RototillerTrySpAtk
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_RototillerTrySpAtk
|
2018-09-30 14:04:46 +02:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-30 14:04:46 +02:00
|
|
|
BattleScript_RototillerTrySpAtk::
|
|
|
|
setstatchanger STAT_SPATK, 1, FALSE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange STAT_BUFF_ALLOW_PTR, BattleScript_RototillerMoveTargetEnd
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_RototillerMoveTargetEnd
|
2018-09-30 14:04:46 +02:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-30 14:04:46 +02:00
|
|
|
BattleScript_RototillerMoveTargetEnd:
|
2019-11-10 12:09:14 +01:00
|
|
|
moveendto MOVEEND_NEXT_TARGET
|
2018-09-30 14:04:46 +02:00
|
|
|
jumpifnexttargetvalid BattleScript_RototillerLoop
|
|
|
|
end
|
|
|
|
BattleScript_RototillerCantRaiseMultipleStats:
|
|
|
|
printstring STRINGID_STATSWONTINCREASE2
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-30 14:04:46 +02:00
|
|
|
goto BattleScript_RototillerMoveTargetEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-09-30 12:27:51 +02:00
|
|
|
BattleScript_EffectBestow:
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, NO_ACC_CALC_CHECK_LOCK_ON
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
jumpifsubstituteblocks BattleScript_ButItFailed
|
|
|
|
trybestow BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_BESTOWITEMGIVING
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-30 12:27:51 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-09-29 19:37:39 +02:00
|
|
|
BattleScript_EffectAfterYou:
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
tryafteryou BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_KINDOFFER
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-29 19:37:39 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-09-29 18:40:14 +02:00
|
|
|
BattleScript_EffectFlameBurst:
|
|
|
|
setmoveeffect MOVE_EFFECT_FLAME_BURST | MOVE_EFFECT_AFFECTS_USER
|
|
|
|
goto BattleScript_EffectHit
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-09-29 18:40:14 +02:00
|
|
|
BattleScript_MoveEffectFlameBurst::
|
2019-05-23 10:02:04 +02:00
|
|
|
tryfaintmon BS_TARGET, FALSE, NULL
|
2021-06-03 09:50:43 +02:00
|
|
|
copybyte sBATTLER, sSAVED_BATTLER
|
2018-09-29 18:40:14 +02:00
|
|
|
printstring STRINGID_BURSTINGFLAMESHIT
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-05-23 10:02:04 +02:00
|
|
|
savetarget
|
2021-06-03 09:50:43 +02:00
|
|
|
copybyte gBattlerTarget, sSAVED_BATTLER
|
2019-05-23 10:02:04 +02:00
|
|
|
healthbarupdate BS_TARGET
|
|
|
|
datahpupdate BS_TARGET
|
|
|
|
tryfaintmon BS_TARGET, FALSE, NULL
|
|
|
|
restoretarget
|
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-09-29 18:40:14 +02:00
|
|
|
BattleScript_EffectPowerTrick:
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
powertrick BS_ATTACKER
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNSWITCHEDATKANDDEF
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-29 18:40:14 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-09-29 18:40:14 +02:00
|
|
|
BattleScript_EffectPsychoShift:
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
jumpifstatus BS_ATTACKER, STATUS1_ANY, BattleScript_EffectPsychoShiftCanWork
|
|
|
|
goto BattleScript_ButItFailed
|
|
|
|
BattleScript_EffectPsychoShiftCanWork:
|
|
|
|
jumpifstatus BS_TARGET, STATUS1_ANY, BattleScript_ButItFailed
|
2020-04-23 11:29:19 +02:00
|
|
|
jumpifsafeguard BattleScript_SafeguardProtected
|
2018-09-29 18:40:14 +02:00
|
|
|
trypsychoshift BattleScript_MoveEnd
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2019-10-26 22:39:07 +02:00
|
|
|
copybyte gEffectBattler, gBattlerTarget
|
2018-09-29 18:40:14 +02:00
|
|
|
printfromtable gStatusConditionsStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-29 18:40:14 +02:00
|
|
|
statusanimation BS_TARGET
|
|
|
|
updatestatusicon BS_TARGET
|
|
|
|
curestatus BS_ATTACKER
|
|
|
|
printstring STRINGID_PKMNSTATUSNORMAL
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-29 18:40:14 +02:00
|
|
|
updatestatusicon BS_ATTACKER
|
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-09-29 15:43:56 +02:00
|
|
|
BattleScript_EffectSynchronoise:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
selectfirstvalidtarget
|
|
|
|
BattleScript_SynchronoiseLoop:
|
|
|
|
movevaluescleanup
|
|
|
|
jumpifcantusesynchronoise BattleScript_SynchronoiseNoEffect
|
|
|
|
accuracycheck BattleScript_SynchronoiseMissed, ACC_CURR_MOVE
|
|
|
|
critcalc
|
|
|
|
damagecalc
|
|
|
|
adjustdamage
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
effectivenesssound
|
|
|
|
hitanimation BS_TARGET
|
|
|
|
waitstate
|
|
|
|
healthbarupdate BS_TARGET
|
|
|
|
datahpupdate BS_TARGET
|
|
|
|
critmessage
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-29 15:43:56 +02:00
|
|
|
resultmessage
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-29 15:43:56 +02:00
|
|
|
printstring STRINGID_EMPTYSTRING3
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage 1
|
2018-09-29 15:43:56 +02:00
|
|
|
tryfaintmon BS_TARGET, FALSE, NULL
|
|
|
|
BattleScript_SynchronoiseMoveTargetEnd:
|
2019-11-10 12:09:14 +01:00
|
|
|
moveendto MOVEEND_NEXT_TARGET
|
2018-09-29 15:43:56 +02:00
|
|
|
jumpifnexttargetvalid BattleScript_SynchronoiseLoop
|
|
|
|
end
|
|
|
|
BattleScript_SynchronoiseMissed:
|
2021-04-28 03:36:37 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2018-09-29 15:43:56 +02:00
|
|
|
resultmessage
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-29 15:43:56 +02:00
|
|
|
goto BattleScript_SynchronoiseMoveTargetEnd
|
|
|
|
BattleScript_SynchronoiseNoEffect:
|
2021-04-28 03:36:37 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2018-09-29 15:43:56 +02:00
|
|
|
printstring STRINGID_NOEFFECTONTARGET
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-29 15:43:56 +02:00
|
|
|
goto BattleScript_SynchronoiseMoveTargetEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-09-29 15:43:56 +02:00
|
|
|
BattleScript_EffectSmackDown:
|
|
|
|
setmoveeffect MOVE_EFFECT_SMACK_DOWN
|
|
|
|
goto BattleScript_EffectHit
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-09-29 15:43:56 +02:00
|
|
|
BattleScript_MoveEffectSmackDown::
|
|
|
|
printstring STRINGID_FELLSTRAIGHTDOWN
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-29 15:43:56 +02:00
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-09-29 14:10:53 +02:00
|
|
|
BattleScript_EffectHitEnemyHealAlly:
|
|
|
|
jumpiftargetally BattleScript_EffectHealPulse
|
|
|
|
goto BattleScript_EffectHit
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-09-23 19:03:53 +02:00
|
|
|
BattleScript_EffectDefog:
|
|
|
|
setstatchanger STAT_EVASION, 1, TRUE
|
|
|
|
attackcanceler
|
|
|
|
jumpifsubstituteblocks BattleScript_DefogIfCanClearHazards
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifstat BS_TARGET, CMP_NOT_EQUAL, STAT_EVASION, MIN_STAT_STAGE, BattleScript_DefogWorks
|
2018-09-23 19:03:53 +02:00
|
|
|
BattleScript_DefogIfCanClearHazards:
|
|
|
|
defogclear BS_ATTACKER, FALSE, BattleScript_ButItFailedAtkStringPpReduce
|
|
|
|
BattleScript_DefogWorks:
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange STAT_BUFF_ALLOW_PTR, BattleScript_DefogTryHazardsWithAnim
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_LESS_THAN, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_DECREASE, BattleScript_DefogDoAnim
|
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_FELL_EMPTY, BattleScript_DefogTryHazardsWithAnim
|
|
|
|
pause B_WAIT_TIME_SHORT
|
2018-09-23 19:03:53 +02:00
|
|
|
goto BattleScript_DefogPrintString
|
|
|
|
BattleScript_DefogDoAnim::
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
setgraphicalstatchangevalues
|
|
|
|
playanimation BS_TARGET, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
|
|
|
BattleScript_DefogPrintString::
|
|
|
|
printfromtable gStatDownStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-23 19:03:53 +02:00
|
|
|
BattleScript_DefogTryHazards::
|
|
|
|
copybyte gEffectBattler, gBattlerAttacker
|
|
|
|
defogclear BS_ATTACKER, TRUE, NULL
|
|
|
|
copybyte gBattlerAttacker, gEffectBattler
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
BattleScript_DefogTryHazardsWithAnim:
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
goto BattleScript_DefogTryHazards
|
2018-09-22 18:37:03 +02:00
|
|
|
|
|
|
|
BattleScript_EffectCopycat:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
2021-04-28 03:36:37 +02:00
|
|
|
pause 5
|
2018-09-22 18:37:03 +02:00
|
|
|
trycopycat BattleScript_CopycatFail
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2018-09-22 19:27:56 +02:00
|
|
|
jumptocalledmove TRUE
|
2018-09-22 18:37:03 +02:00
|
|
|
BattleScript_CopycatFail:
|
|
|
|
ppreduce
|
|
|
|
goto BattleScript_ButItFailed
|
2019-04-20 21:11:49 +02:00
|
|
|
|
|
|
|
BattleScript_EffectInstruct:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2021-04-28 03:36:37 +02:00
|
|
|
pause 5
|
2019-04-20 21:11:49 +02:00
|
|
|
tryinstruct BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_USEDINSTRUCTEDMOVE
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
|
|
|
setbyte sB_ANIM_TURN, 0
|
|
|
|
setbyte sB_ANIM_TARGETS_HIT, 0
|
2019-04-20 21:11:49 +02:00
|
|
|
jumptocalledmove TRUE
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2020-06-27 11:21:13 +02:00
|
|
|
BattleScript_EffectAutotomize:
|
2018-09-22 17:27:51 +02:00
|
|
|
setstatchanger STAT_SPEED, 2, FALSE
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2020-06-27 11:21:13 +02:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_AutotomizeWeightLoss
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_NOT_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_AutotomizeAttackAnim
|
|
|
|
pause B_WAIT_TIME_SHORT
|
2020-06-27 11:21:13 +02:00
|
|
|
goto BattleScript_AutotomizePrintString
|
|
|
|
BattleScript_AutotomizeAttackAnim::
|
2018-09-22 17:27:51 +02:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2020-06-27 11:21:13 +02:00
|
|
|
BattleScript_AutotomizeDoAnim::
|
2018-09-22 17:27:51 +02:00
|
|
|
setgraphicalstatchangevalues
|
|
|
|
playanimation BS_ATTACKER, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
2020-06-27 11:21:13 +02:00
|
|
|
BattleScript_AutotomizePrintString::
|
2018-09-22 17:27:51 +02:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-06-27 11:21:13 +02:00
|
|
|
BattleScript_AutotomizeWeightLoss::
|
2018-09-22 17:27:51 +02:00
|
|
|
jumpifmovehadnoeffect BattleScript_MoveEnd
|
2020-06-27 11:21:13 +02:00
|
|
|
tryautotomize BS_ATTACKER, BattleScript_MoveEnd
|
2018-09-22 17:27:51 +02:00
|
|
|
printstring STRINGID_BECAMENIMBLE
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-22 17:27:51 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-09-22 16:15:00 +02:00
|
|
|
BattleScript_EffectFinalGambit:
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
critcalc
|
|
|
|
typecalc
|
|
|
|
bichalfword gMoveResultFlags, MOVE_RESULT_SUPER_EFFECTIVE | MOVE_RESULT_NOT_VERY_EFFECTIVE
|
|
|
|
dmgtocurrattackerhp
|
|
|
|
adjustdamage
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
effectivenesssound
|
|
|
|
hitanimation BS_TARGET
|
|
|
|
waitstate
|
|
|
|
healthbarupdate BS_TARGET
|
|
|
|
datahpupdate BS_TARGET
|
|
|
|
resultmessage
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-12-21 01:31:36 +01:00
|
|
|
dmgtocurrattackerhp
|
2018-09-22 16:15:00 +02:00
|
|
|
healthbarupdate BS_ATTACKER
|
|
|
|
datahpupdate BS_ATTACKER
|
2020-12-20 01:57:47 +01:00
|
|
|
seteffectwithchance
|
2018-09-22 16:15:00 +02:00
|
|
|
tryfaintmon BS_ATTACKER, FALSE, NULL
|
2020-12-20 01:57:47 +01:00
|
|
|
tryfaintmon BS_TARGET, FALSE, NULL
|
|
|
|
jumpifmovehadnoeffect BattleScript_MoveEnd
|
2018-09-22 16:15:00 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-09-22 16:15:00 +02:00
|
|
|
BattleScript_EffectHitSwitchTarget:
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
critcalc
|
|
|
|
damagecalc
|
|
|
|
adjustdamage
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
effectivenesssound
|
|
|
|
hitanimation BS_TARGET
|
|
|
|
waitstate
|
|
|
|
healthbarupdate BS_TARGET
|
|
|
|
datahpupdate BS_TARGET
|
|
|
|
critmessage
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-22 16:15:00 +02:00
|
|
|
resultmessage
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-22 16:15:00 +02:00
|
|
|
tryfaintmon BS_TARGET, FALSE, NULL
|
|
|
|
jumpifability BS_TARGET, ABILITY_SUCTION_CUPS, BattleScript_AbilityPreventsPhasingOut
|
|
|
|
jumpifstatus3 BS_TARGET, STATUS3_ROOTED, BattleScript_PrintMonIsRooted
|
|
|
|
tryhitswitchtarget BattleScript_EffectHitSwitchTargetMoveEnd
|
|
|
|
BattleScript_EffectHitSwitchTargetMoveEnd:
|
2019-03-31 15:19:25 +02:00
|
|
|
moveendall
|
2018-09-22 16:15:00 +02:00
|
|
|
end
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-09-22 16:15:00 +02:00
|
|
|
BattleScript_EffectClearSmog:
|
|
|
|
setmoveeffect MOVE_EFFECT_CLEAR_SMOG
|
|
|
|
goto BattleScript_EffectHit
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-09-22 16:15:00 +02:00
|
|
|
BattleScript_EffectToxicThread:
|
|
|
|
setstatchanger STAT_SPEED, 2, TRUE
|
|
|
|
attackcanceler
|
|
|
|
jumpifsubstituteblocks BattleScript_ButItFailedAtkStringPpReduce
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifstat BS_TARGET, CMP_NOT_EQUAL, STAT_SPEED, MIN_STAT_STAGE, BattleScript_ToxicThreadWorks
|
2018-09-22 16:15:00 +02:00
|
|
|
jumpifstatus BS_TARGET, STATUS1_PSN_ANY, BattleScript_ButItFailedAtkStringPpReduce
|
|
|
|
BattleScript_ToxicThreadWorks:
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange STAT_BUFF_ALLOW_PTR, BattleScript_ToxicThreadTryPsn
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_LESS_THAN, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_DECREASE, BattleScript_ToxicThreadDoAnim
|
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_FELL_EMPTY, BattleScript_ToxicThreadTryPsn
|
|
|
|
pause B_WAIT_TIME_SHORT
|
2018-09-22 16:15:00 +02:00
|
|
|
goto BattleScript_ToxicThreadPrintString
|
|
|
|
BattleScript_ToxicThreadDoAnim::
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
setgraphicalstatchangevalues
|
|
|
|
playanimation BS_TARGET, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
|
|
|
BattleScript_ToxicThreadPrintString::
|
|
|
|
printfromtable gStatDownStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-22 16:15:00 +02:00
|
|
|
BattleScript_ToxicThreadTryPsn::
|
|
|
|
setmoveeffect MOVE_EFFECT_POISON
|
|
|
|
seteffectprimary
|
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-09-22 16:15:00 +02:00
|
|
|
BattleScript_EffectVenomDrench:
|
2018-09-22 12:20:33 +02:00
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-09-22 16:15:00 +02:00
|
|
|
jumpifstatus BS_TARGET, STATUS1_PSN_ANY, BattleScript_EffectVenomDrenchCanBeUsed
|
2018-09-22 12:20:33 +02:00
|
|
|
goto BattleScript_ButItFailed
|
2018-09-22 16:15:00 +02:00
|
|
|
BattleScript_EffectVenomDrenchCanBeUsed:
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifstat BS_TARGET, CMP_GREATER_THAN, STAT_ATK, MIN_STAT_STAGE, BattleScript_VenomDrenchDoMoveAnim
|
|
|
|
jumpifstat BS_TARGET, CMP_GREATER_THAN, STAT_SPATK, MIN_STAT_STAGE, BattleScript_VenomDrenchDoMoveAnim
|
|
|
|
jumpifstat BS_TARGET, CMP_EQUAL, STAT_SPEED, MIN_STAT_STAGE, BattleScript_CantLowerMultipleStats
|
2018-09-22 12:20:33 +02:00
|
|
|
BattleScript_VenomDrenchDoMoveAnim::
|
|
|
|
accuracycheck BattleScript_ButItFailed, ACC_CURR_MOVE
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
setbyte sSTAT_ANIM_PLAYED, FALSE
|
2021-04-28 03:36:37 +02:00
|
|
|
playstatchangeanimation BS_TARGET, BIT_ATK | BIT_SPATK | BIT_SPEED, STAT_CHANGE_NEGATIVE | STAT_CHANGE_MULTIPLE_STATS
|
2019-11-10 12:09:14 +01:00
|
|
|
playstatchangeanimation BS_TARGET, BIT_ATK, STAT_CHANGE_NEGATIVE
|
2018-09-22 12:20:33 +02:00
|
|
|
setstatchanger STAT_ATK, 1, TRUE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange STAT_BUFF_ALLOW_PTR, BattleScript_VenomDrenchTryLowerSpAtk
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_DECREASE, BattleScript_VenomDrenchTryLowerSpAtk
|
2018-09-22 12:20:33 +02:00
|
|
|
printfromtable gStatDownStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-22 12:20:33 +02:00
|
|
|
BattleScript_VenomDrenchTryLowerSpAtk::
|
2019-11-10 12:09:14 +01:00
|
|
|
playstatchangeanimation BS_TARGET, BIT_SPATK, STAT_CHANGE_NEGATIVE
|
2018-09-22 12:20:33 +02:00
|
|
|
setstatchanger STAT_SPATK, 1, TRUE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange STAT_BUFF_ALLOW_PTR, BattleScript_VenomDrenchTryLowerSpeed
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_DECREASE, BattleScript_VenomDrenchTryLowerSpeed
|
2018-09-22 12:20:33 +02:00
|
|
|
printfromtable gStatDownStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-22 12:20:33 +02:00
|
|
|
BattleScript_VenomDrenchTryLowerSpeed::
|
2019-11-10 12:09:14 +01:00
|
|
|
playstatchangeanimation BS_TARGET, BIT_SPEED, STAT_CHANGE_NEGATIVE
|
2018-09-22 12:20:33 +02:00
|
|
|
setstatchanger STAT_SPEED, 1, TRUE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange STAT_BUFF_ALLOW_PTR, BattleScript_VenomDrenchEnd
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_DECREASE, BattleScript_VenomDrenchEnd
|
2018-09-22 12:20:33 +02:00
|
|
|
printfromtable gStatDownStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-22 12:20:33 +02:00
|
|
|
BattleScript_VenomDrenchEnd::
|
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-09-22 12:20:33 +02:00
|
|
|
BattleScript_EffectNobleRoar:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifstat BS_TARGET, CMP_GREATER_THAN, STAT_ATK, MIN_STAT_STAGE, BattleScript_NobleRoarDoMoveAnim
|
|
|
|
jumpifstat BS_TARGET, CMP_EQUAL, STAT_SPATK, MIN_STAT_STAGE, BattleScript_CantLowerMultipleStats
|
2018-09-22 12:20:33 +02:00
|
|
|
BattleScript_NobleRoarDoMoveAnim::
|
|
|
|
accuracycheck BattleScript_ButItFailed, ACC_CURR_MOVE
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
setbyte sSTAT_ANIM_PLAYED, FALSE
|
2021-04-28 03:36:37 +02:00
|
|
|
playstatchangeanimation BS_TARGET, BIT_ATK | BIT_SPATK, STAT_CHANGE_NEGATIVE | STAT_CHANGE_MULTIPLE_STATS
|
2019-11-10 12:09:14 +01:00
|
|
|
playstatchangeanimation BS_TARGET, BIT_ATK, STAT_CHANGE_NEGATIVE
|
2018-09-22 12:20:33 +02:00
|
|
|
setstatchanger STAT_ATK, 1, TRUE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange STAT_BUFF_ALLOW_PTR, BattleScript_NobleRoarTryLowerSpAtk
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_DECREASE, BattleScript_NobleRoarTryLowerSpAtk
|
2018-09-22 12:20:33 +02:00
|
|
|
printfromtable gStatDownStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-22 12:20:33 +02:00
|
|
|
BattleScript_NobleRoarTryLowerSpAtk::
|
2019-11-10 12:09:14 +01:00
|
|
|
playstatchangeanimation BS_TARGET, BIT_SPATK, STAT_CHANGE_NEGATIVE
|
2018-09-22 12:20:33 +02:00
|
|
|
setstatchanger STAT_SPATK, 1, TRUE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange STAT_BUFF_ALLOW_PTR, BattleScript_NobleRoarEnd
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_DECREASE, BattleScript_NobleRoarEnd
|
2018-09-22 12:20:33 +02:00
|
|
|
printfromtable gStatDownStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-22 12:20:33 +02:00
|
|
|
BattleScript_NobleRoarEnd::
|
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-09-22 11:13:17 +02:00
|
|
|
BattleScript_EffectShellSmash:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifstat BS_ATTACKER, CMP_LESS_THAN, STAT_ATK, MAX_STAT_STAGE, BattleScript_ShellSmashTryDef
|
|
|
|
jumpifstat BS_ATTACKER, CMP_LESS_THAN, STAT_SPATK, MAX_STAT_STAGE, BattleScript_ShellSmashTryDef
|
|
|
|
jumpifstat BS_ATTACKER, CMP_LESS_THAN, STAT_SPEED, MAX_STAT_STAGE, BattleScript_ShellSmashTryDef
|
|
|
|
jumpifstat BS_ATTACKER, CMP_GREATER_THAN, STAT_DEF, MIN_STAT_STAGE, BattleScript_ShellSmashTryDef
|
|
|
|
jumpifstat BS_ATTACKER, CMP_EQUAL, STAT_SPDEF, MIN_STAT_STAGE, BattleScript_ButItFailed
|
2018-09-22 11:13:17 +02:00
|
|
|
BattleScript_ShellSmashTryDef::
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
setbyte sSTAT_ANIM_PLAYED, FALSE
|
2019-11-10 12:09:14 +01:00
|
|
|
playstatchangeanimation BS_ATTACKER, BIT_DEF | BIT_SPDEF, STAT_CHANGE_NEGATIVE | STAT_CHANGE_CANT_PREVENT
|
2018-09-22 11:13:17 +02:00
|
|
|
setstatchanger STAT_DEF, 1, TRUE
|
2021-07-06 10:37:17 +02:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR | MOVE_EFFECT_CERTAIN, BattleScript_ShellSmashTrySpDef
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_ShellSmashTrySpDef
|
2018-09-22 11:13:17 +02:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-22 11:13:17 +02:00
|
|
|
BattleScript_ShellSmashTrySpDef:
|
|
|
|
setstatchanger STAT_SPDEF, 1, TRUE
|
2021-07-06 10:37:17 +02:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR | MOVE_EFFECT_CERTAIN, BattleScript_ShellSmashTryAttack
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_ShellSmashTryAttack
|
2018-09-22 11:13:17 +02:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-22 11:13:17 +02:00
|
|
|
BattleScript_ShellSmashTryAttack:
|
|
|
|
setbyte sSTAT_ANIM_PLAYED, FALSE
|
2019-11-10 12:09:14 +01:00
|
|
|
playstatchangeanimation BS_ATTACKER, BIT_SPATK | BIT_ATK | BIT_SPEED, STAT_CHANGE_BY_TWO
|
2018-09-22 11:13:17 +02:00
|
|
|
setstatchanger STAT_ATK, 2, FALSE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_ShellSmashTrySpAtk
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_ShellSmashTrySpAtk
|
2018-09-22 11:13:17 +02:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-22 11:13:17 +02:00
|
|
|
BattleScript_ShellSmashTrySpAtk:
|
|
|
|
setstatchanger STAT_SPATK, 2, FALSE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_ShellSmashTrySpeed
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_ShellSmashTrySpeed
|
2018-09-22 11:13:17 +02:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-22 11:13:17 +02:00
|
|
|
BattleScript_ShellSmashTrySpeed:
|
|
|
|
setstatchanger STAT_SPEED, 2, FALSE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_ShellSmashEnd
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_ShellSmashEnd
|
2018-09-22 11:13:17 +02:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-22 11:13:17 +02:00
|
|
|
BattleScript_ShellSmashEnd:
|
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-09-22 10:45:43 +02:00
|
|
|
BattleScript_EffectLastResort:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
jumpifcantuselastresort BS_ATTACKER, BattleScript_ButItFailed
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
goto BattleScript_HitFromCritCalc
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-09-22 01:01:13 +02:00
|
|
|
BattleScript_EffectGrowth:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifstat BS_ATTACKER, CMP_LESS_THAN, STAT_ATK, MAX_STAT_STAGE, BattleScript_GrowthDoMoveAnim
|
|
|
|
jumpifstat BS_ATTACKER, CMP_EQUAL, STAT_SPATK, MAX_STAT_STAGE, BattleScript_CantRaiseMultipleStats
|
2018-09-22 01:01:13 +02:00
|
|
|
BattleScript_GrowthDoMoveAnim::
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
setbyte sSTAT_ANIM_PLAYED, FALSE
|
2021-04-28 03:36:37 +02:00
|
|
|
playstatchangeanimation BS_ATTACKER, BIT_ATK | BIT_SPATK, 0
|
2018-09-22 01:01:13 +02:00
|
|
|
jumpifhalfword CMP_COMMON_BITS, gBattleWeather, WEATHER_SUN_ANY, BattleScript_GrowthAtk2
|
|
|
|
setstatchanger STAT_ATK, 1, FALSE
|
|
|
|
goto BattleScript_GrowthAtk
|
|
|
|
BattleScript_GrowthAtk2:
|
|
|
|
setstatchanger STAT_ATK, 2, FALSE
|
|
|
|
BattleScript_GrowthAtk:
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_GrowthTrySpAtk
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_GrowthTrySpAtk
|
2018-09-22 01:01:13 +02:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-22 01:01:13 +02:00
|
|
|
BattleScript_GrowthTrySpAtk::
|
|
|
|
jumpifhalfword CMP_COMMON_BITS, gBattleWeather, WEATHER_SUN_ANY, BattleScript_GrowthSpAtk2
|
|
|
|
setstatchanger STAT_SPATK, 1, FALSE
|
|
|
|
goto BattleScript_GrowthSpAtk
|
|
|
|
BattleScript_GrowthSpAtk2:
|
|
|
|
setstatchanger STAT_SPATK, 2, FALSE
|
|
|
|
BattleScript_GrowthSpAtk:
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_GrowthEnd
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_GrowthEnd
|
2018-09-22 01:01:13 +02:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-22 01:01:13 +02:00
|
|
|
BattleScript_GrowthEnd:
|
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-08-11 13:30:34 +02:00
|
|
|
BattleScript_EffectSoak:
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
jumpifability BS_TARGET, ABILITY_MULTITYPE, BattleScript_ButItFailed
|
|
|
|
jumpifability BS_TARGET, ABILITY_RKS_SYSTEM, BattleScript_ButItFailed
|
|
|
|
jumpifsubstituteblocks BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
trysoak BattleScript_ButItFailed
|
|
|
|
printstring STRINGID_TRANSFORMEDINTOWATERTYPE
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-08-11 13:30:34 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-08-11 13:30:34 +02:00
|
|
|
BattleScript_EffectReflectType:
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
tryreflecttype BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_REFLECTTARGETSTYPE
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-08-11 13:30:34 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-08-11 13:30:34 +02:00
|
|
|
BattleScript_EffectElectrify:
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
tryelectrify BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_TARGETELECTRIFIED
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-08-11 13:30:34 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-09-22 12:20:33 +02:00
|
|
|
BattleScript_EffectShiftGear:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifstat BS_ATTACKER, CMP_LESS_THAN, STAT_SPEED, MAX_STAT_STAGE, BattleScript_ShiftGearDoMoveAnim
|
|
|
|
jumpifstat BS_ATTACKER, CMP_EQUAL, STAT_ATK, MAX_STAT_STAGE, BattleScript_CantRaiseMultipleStats
|
2018-09-22 12:20:33 +02:00
|
|
|
BattleScript_ShiftGearDoMoveAnim:
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
setbyte sSTAT_ANIM_PLAYED, FALSE
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifstat BS_ATTACKER, CMP_GREATER_THAN, STAT_SPEED, 10, BattleScript_ShiftGearSpeedBy1
|
2019-11-10 12:09:14 +01:00
|
|
|
playstatchangeanimation BS_ATTACKER, BIT_SPEED | BIT_ATK, STAT_CHANGE_BY_TWO
|
2018-09-22 12:20:33 +02:00
|
|
|
setstatchanger STAT_SPEED, 2, FALSE
|
|
|
|
goto BattleScript_ShiftGearDoSpeed
|
|
|
|
BattleScript_ShiftGearSpeedBy1:
|
2021-04-28 03:36:37 +02:00
|
|
|
playstatchangeanimation BS_ATTACKER, BIT_SPEED | BIT_ATK, 0
|
2018-09-22 12:20:33 +02:00
|
|
|
setstatchanger STAT_SPEED, 1, FALSE
|
|
|
|
BattleScript_ShiftGearDoSpeed:
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_ShiftGearTryAtk
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_ShiftGearTryAtk
|
2018-09-22 12:20:33 +02:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-22 12:20:33 +02:00
|
|
|
BattleScript_ShiftGearTryAtk:
|
|
|
|
setstatchanger STAT_ATK, 1, FALSE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_ShiftGearEnd
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_ShiftGearEnd
|
2018-09-22 12:20:33 +02:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-22 12:20:33 +02:00
|
|
|
BattleScript_ShiftGearEnd:
|
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-08-11 12:29:01 +02:00
|
|
|
BattleScript_EffectCoil:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifstat BS_ATTACKER, CMP_LESS_THAN, STAT_ATK, MAX_STAT_STAGE, BattleScript_CoilDoMoveAnim
|
|
|
|
jumpifstat BS_ATTACKER, CMP_LESS_THAN, STAT_DEF, MAX_STAT_STAGE, BattleScript_CoilDoMoveAnim
|
|
|
|
jumpifstat BS_ATTACKER, CMP_EQUAL, STAT_ACC, MAX_STAT_STAGE, BattleScript_CantRaiseMultipleStats
|
2018-08-11 12:29:01 +02:00
|
|
|
BattleScript_CoilDoMoveAnim:
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
setbyte sSTAT_ANIM_PLAYED, FALSE
|
2021-04-28 03:36:37 +02:00
|
|
|
playstatchangeanimation BS_ATTACKER, BIT_ATK | BIT_DEF | BIT_ACC, 0
|
2018-08-11 12:29:01 +02:00
|
|
|
setstatchanger STAT_ATK, 1, FALSE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_CoilTryDef
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_CoilTryDef
|
2018-08-11 12:29:01 +02:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-08-11 12:29:01 +02:00
|
|
|
BattleScript_CoilTryDef:
|
|
|
|
setstatchanger STAT_DEF, 1, FALSE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_CoilTryAcc
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_CoilTryAcc
|
2018-08-11 12:29:01 +02:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-08-11 12:29:01 +02:00
|
|
|
BattleScript_CoilTryAcc:
|
|
|
|
setstatchanger STAT_ACC, 1, FALSE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_CoilEnd
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_CoilEnd
|
2018-08-11 12:29:01 +02:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-08-11 12:29:01 +02:00
|
|
|
BattleScript_CoilEnd:
|
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-08-11 12:29:01 +02:00
|
|
|
BattleScript_EffectQuiverDance:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifstat BS_ATTACKER, CMP_LESS_THAN, STAT_SPATK, MAX_STAT_STAGE, BattleScript_QuiverDanceDoMoveAnim
|
|
|
|
jumpifstat BS_ATTACKER, CMP_LESS_THAN, STAT_SPDEF, MAX_STAT_STAGE, BattleScript_QuiverDanceDoMoveAnim
|
|
|
|
jumpifstat BS_ATTACKER, CMP_EQUAL, STAT_SPEED, MAX_STAT_STAGE, BattleScript_CantRaiseMultipleStats
|
2018-08-11 12:29:01 +02:00
|
|
|
BattleScript_QuiverDanceDoMoveAnim::
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
setbyte sSTAT_ANIM_PLAYED, FALSE
|
2021-04-28 03:36:37 +02:00
|
|
|
playstatchangeanimation BS_ATTACKER, BIT_SPATK | BIT_SPDEF | BIT_SPEED, 0
|
2018-08-11 12:29:01 +02:00
|
|
|
setstatchanger STAT_SPATK, 1, FALSE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_QuiverDanceTrySpDef
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_QuiverDanceTrySpDef
|
2018-08-11 12:29:01 +02:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-08-11 12:29:01 +02:00
|
|
|
BattleScript_QuiverDanceTrySpDef::
|
|
|
|
setstatchanger STAT_SPDEF, 1, FALSE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_QuiverDanceTrySpeed
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_QuiverDanceTrySpeed
|
2018-08-11 12:29:01 +02:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-08-11 12:29:01 +02:00
|
|
|
BattleScript_QuiverDanceTrySpeed::
|
|
|
|
setstatchanger STAT_SPEED, 1, FALSE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_QuiverDanceEnd
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_QuiverDanceEnd
|
2018-08-11 12:29:01 +02:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-08-11 12:29:01 +02:00
|
|
|
BattleScript_QuiverDanceEnd::
|
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-08-11 12:16:00 +02:00
|
|
|
BattleScript_EffectSpeedUpHit:
|
|
|
|
setmoveeffect MOVE_EFFECT_SPD_PLUS_1 | MOVE_EFFECT_AFFECTS_USER
|
|
|
|
goto BattleScript_EffectHit
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-08-05 16:43:07 +02:00
|
|
|
BattleScript_EffectMeFirst:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
trymefirst BattleScript_ButItFailedPpReduce
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2021-04-28 03:36:37 +02:00
|
|
|
setbyte sB_ANIM_TURN, 0
|
|
|
|
setbyte sB_ANIM_TARGETS_HIT, 0
|
2018-09-22 19:27:56 +02:00
|
|
|
jumptocalledmove TRUE
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-08-05 13:39:22 +02:00
|
|
|
BattleScript_EffectAttackSpAttackUp:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifstat BS_ATTACKER, CMP_LESS_THAN, STAT_ATK, MAX_STAT_STAGE, BattleScript_AttackSpAttackUpDoMoveAnim
|
|
|
|
jumpifstat BS_ATTACKER, CMP_EQUAL, STAT_SPATK, MAX_STAT_STAGE, BattleScript_CantRaiseMultipleStats
|
2018-08-05 13:39:22 +02:00
|
|
|
BattleScript_AttackSpAttackUpDoMoveAnim::
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
setbyte sSTAT_ANIM_PLAYED, FALSE
|
2021-04-28 03:36:37 +02:00
|
|
|
playstatchangeanimation BS_ATTACKER, BIT_ATK | BIT_SPATK, 0
|
2018-08-05 13:39:22 +02:00
|
|
|
setstatchanger STAT_ATK, 1, FALSE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_AttackSpAttackUpTrySpAtk
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_AttackSpAttackUpTrySpAtk
|
2018-08-05 13:39:22 +02:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-22 01:01:13 +02:00
|
|
|
BattleScript_AttackSpAttackUpTrySpAtk::
|
2018-08-05 13:39:22 +02:00
|
|
|
setstatchanger STAT_SPATK, 1, FALSE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_AttackSpAttackUpEnd
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_AttackSpAttackUpEnd
|
2018-08-05 13:39:22 +02:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-08-05 13:39:22 +02:00
|
|
|
BattleScript_AttackSpAttackUpEnd:
|
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-08-05 13:39:22 +02:00
|
|
|
BattleScript_EffectAttackAccUp:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifstat BS_ATTACKER, CMP_LESS_THAN, STAT_ATK, MAX_STAT_STAGE, BattleScript_AttackAccUpDoMoveAnim
|
|
|
|
jumpifstat BS_ATTACKER, CMP_EQUAL, STAT_ACC, MAX_STAT_STAGE, BattleScript_CantRaiseMultipleStats
|
2018-08-05 13:39:22 +02:00
|
|
|
BattleScript_AttackAccUpDoMoveAnim::
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
setbyte sSTAT_ANIM_PLAYED, FALSE
|
2021-04-28 03:36:37 +02:00
|
|
|
playstatchangeanimation BS_ATTACKER, BIT_SPATK | BIT_SPDEF, 0
|
2018-08-05 13:39:22 +02:00
|
|
|
setstatchanger STAT_ATK, 1, FALSE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_AttackAccUpTrySpDef
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_AttackAccUpTrySpDef
|
2018-08-05 13:39:22 +02:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-08-05 13:39:22 +02:00
|
|
|
BattleScript_AttackAccUpTrySpDef::
|
|
|
|
setstatchanger STAT_ACC, 1, FALSE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_AttackAccUpEnd
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_AttackAccUpEnd
|
2018-08-05 13:39:22 +02:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-08-05 13:39:22 +02:00
|
|
|
BattleScript_AttackAccUpEnd:
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2018-08-05 12:43:57 +02:00
|
|
|
BattleScript_EffectMistyTerrain:
|
|
|
|
BattleScript_EffectGrassyTerrain:
|
|
|
|
BattleScript_EffectElectricTerrain:
|
|
|
|
BattleScript_EffectPsychicTerrain:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
setterrain BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printfromtable gTerrainStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2021-01-14 00:01:47 +01:00
|
|
|
playanimation BS_SCRIPTING, B_ANIM_RESTORE_BG, NULL
|
2018-08-05 12:43:57 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-08-04 23:34:29 +02:00
|
|
|
BattleScript_EffectTopsyTurvy:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
accuracycheck BattleScript_ButItFailed, NO_ACC_CALC_CHECK_LOCK_ON
|
|
|
|
jumpifstat BS_TARGET, CMP_NOT_EQUAL, STAT_ATK, 6, BattleScript_EffectTopsyTurvyWorks
|
|
|
|
jumpifstat BS_TARGET, CMP_NOT_EQUAL, STAT_DEF, 6, BattleScript_EffectTopsyTurvyWorks
|
|
|
|
jumpifstat BS_TARGET, CMP_NOT_EQUAL, STAT_SPATK, 6, BattleScript_EffectTopsyTurvyWorks
|
|
|
|
jumpifstat BS_TARGET, CMP_NOT_EQUAL, STAT_SPDEF, 6, BattleScript_EffectTopsyTurvyWorks
|
|
|
|
jumpifstat BS_TARGET, CMP_NOT_EQUAL, STAT_SPEED, 6, BattleScript_EffectTopsyTurvyWorks
|
|
|
|
jumpifstat BS_TARGET, CMP_NOT_EQUAL, STAT_ACC, 6, BattleScript_EffectTopsyTurvyWorks
|
|
|
|
jumpifstat BS_TARGET, CMP_EQUAL, STAT_EVASION, 6, BattleScript_ButItFailed
|
|
|
|
BattleScript_EffectTopsyTurvyWorks:
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
invertstatstages BS_TARGET
|
|
|
|
printstring STRINGID_TOPSYTURVYSWITCHEDSTATS
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-08-04 23:34:29 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-08-04 23:34:29 +02:00
|
|
|
BattleScript_EffectIonDeluge:
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
orword gFieldStatuses, STATUS_FIELD_ION_DELUGE
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_IONDELUGEON
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-08-04 23:34:29 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-08-04 22:23:07 +02:00
|
|
|
BattleScript_EffectQuash:
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
tryquash BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_QUASHSUCCESS
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-08-04 22:23:07 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-08-04 22:23:07 +02:00
|
|
|
BattleScript_EffectHealPulse:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
accuracycheck BattleScript_ButItFailed, NO_ACC_CALC_CHECK_LOCK_ON
|
|
|
|
jumpifsubstituteblocks BattleScript_ButItFailed
|
|
|
|
tryhealpulse BS_TARGET, BattleScript_AlreadyAtFullHp
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
healthbarupdate BS_TARGET
|
|
|
|
datahpupdate BS_TARGET
|
|
|
|
printstring STRINGID_PKMNREGAINEDHEALTH
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-08-04 22:23:07 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-08-04 22:23:07 +02:00
|
|
|
BattleScript_EffectEntrainment:
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
tryentrainment BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
setlastusedability BS_TARGET
|
|
|
|
printstring STRINGID_PKMNACQUIREDABILITY
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-08-04 22:23:07 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-08-04 22:23:07 +02:00
|
|
|
BattleScript_EffectSimpleBeam:
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
setabilitysimple BS_TARGET, BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNACQUIREDSIMPLE
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-08-04 22:23:07 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-08-04 20:36:24 +02:00
|
|
|
BattleScript_EffectSuckerPunch:
|
|
|
|
attackcanceler
|
|
|
|
suckerpunchcheck BattleScript_ButItFailedAtkStringPpReduce
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
goto BattleScript_HitFromAtkString
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-08-04 20:36:24 +02:00
|
|
|
BattleScript_EffectLuckyChant:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
setluckychant BS_ATTACKER, BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_SHIELDEDFROMCRITICALHITS
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-08-04 20:36:24 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-08-04 20:36:24 +02:00
|
|
|
BattleScript_EffectMetalBurst:
|
|
|
|
attackcanceler
|
|
|
|
metalburstdamagecalculator BattleScript_ButItFailedAtkStringPpReduce
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
typecalc
|
|
|
|
bichalfword gMoveResultFlags, MOVE_RESULT_NOT_VERY_EFFECTIVE | MOVE_RESULT_SUPER_EFFECTIVE
|
|
|
|
adjustdamage
|
|
|
|
goto BattleScript_HitFromAtkAnimation
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-26 20:36:16 +02:00
|
|
|
BattleScript_EffectHealingWish:
|
|
|
|
attackcanceler
|
2020-03-14 12:31:42 +01:00
|
|
|
jumpifcantswitch SWITCH_IGNORE_ESCAPE_PREVENTION | BS_ATTACKER, BattleScript_ButItFailedAtkStringPpReduce
|
2018-07-26 20:36:16 +02:00
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
instanthpdrop BS_ATTACKER
|
|
|
|
setatkhptozero
|
|
|
|
tryfaintmon BS_ATTACKER, FALSE, NULL
|
2021-04-28 03:36:37 +02:00
|
|
|
openpartyscreen BS_ATTACKER, BattleScript_EffectHealingWishEnd
|
2018-07-26 20:36:16 +02:00
|
|
|
switchoutabilities BS_ATTACKER
|
|
|
|
waitstate
|
2021-04-28 03:36:37 +02:00
|
|
|
switchhandleorder BS_ATTACKER, 2
|
2018-07-26 20:36:16 +02:00
|
|
|
returnatktoball
|
|
|
|
getswitchedmondata BS_ATTACKER
|
|
|
|
switchindataupdate BS_ATTACKER
|
|
|
|
hpthresholds BS_ATTACKER
|
|
|
|
printstring STRINGID_SWITCHINMON
|
|
|
|
switchinanim BS_ATTACKER, TRUE
|
|
|
|
waitstate
|
|
|
|
setbyte cMULTISTRING_CHOOSER 0
|
|
|
|
jumpifnotchosenmove MOVE_LUNAR_DANCE BattleScript_EffectHealingWishNewMon
|
|
|
|
setbyte cMULTISTRING_CHOOSER 1
|
|
|
|
restorepp BS_ATTACKER
|
|
|
|
BattleScript_EffectHealingWishNewMon:
|
|
|
|
printfromtable gHealingWishStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-26 20:36:16 +02:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_WISH_HEAL, NULL
|
|
|
|
waitanimation
|
|
|
|
dmgtomaxattackerhp
|
2019-11-10 12:09:14 +01:00
|
|
|
manipulatedamage DMG_CHANGE_SIGN
|
2018-07-26 20:36:16 +02:00
|
|
|
healthbarupdate BS_ATTACKER
|
|
|
|
datahpupdate BS_ATTACKER
|
|
|
|
clearstatus BS_ATTACKER
|
|
|
|
waitstate
|
|
|
|
updatestatusicon BS_ATTACKER
|
|
|
|
waitstate
|
|
|
|
printstring STRINGID_HEALINGWISHHEALED
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-26 20:36:16 +02:00
|
|
|
switchineffects BS_ATTACKER
|
|
|
|
BattleScript_EffectHealingWishEnd:
|
2019-03-31 15:19:25 +02:00
|
|
|
moveendall
|
2018-07-26 20:36:16 +02:00
|
|
|
end
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-23 22:18:56 +02:00
|
|
|
BattleScript_EffectWorrySeed:
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
tryworryseed BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNACQUIREDABILITY
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-23 22:18:56 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-21 23:12:10 +02:00
|
|
|
BattleScript_EffectPowerSplit:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
accuracycheck BattleScript_ButItFailed, NO_ACC_CALC_CHECK_LOCK_ON
|
|
|
|
averagestats STAT_ATK
|
|
|
|
averagestats STAT_SPATK
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_SHAREDITSPOWER
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-21 23:12:10 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-21 23:12:10 +02:00
|
|
|
BattleScript_EffectGuardSplit:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
accuracycheck BattleScript_ButItFailed, NO_ACC_CALC_CHECK_LOCK_ON
|
|
|
|
averagestats STAT_DEF
|
|
|
|
averagestats STAT_SPDEF
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_SHAREDITSGUARD
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-21 23:12:10 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-21 23:12:10 +02:00
|
|
|
BattleScript_EffectHeartSwap:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
accuracycheck BattleScript_ButItFailed, NO_ACC_CALC_CHECK_LOCK_ON
|
|
|
|
swapstatstages STAT_ATK
|
|
|
|
swapstatstages STAT_DEF
|
|
|
|
swapstatstages STAT_SPEED
|
|
|
|
swapstatstages STAT_SPATK
|
|
|
|
swapstatstages STAT_SPDEF
|
|
|
|
swapstatstages STAT_EVASION
|
|
|
|
swapstatstages STAT_ACC
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNSWITCHEDSTATCHANGES
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-21 23:12:10 +02:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectPowerSwap:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
accuracycheck BattleScript_ButItFailed, NO_ACC_CALC_CHECK_LOCK_ON
|
|
|
|
swapstatstages STAT_ATK
|
|
|
|
swapstatstages STAT_SPATK
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNSWITCHEDSTATCHANGES
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-21 23:12:10 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-21 23:12:10 +02:00
|
|
|
BattleScript_EffectGuardSwap:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
accuracycheck BattleScript_ButItFailed, NO_ACC_CALC_CHECK_LOCK_ON
|
|
|
|
swapstatstages STAT_DEF
|
|
|
|
swapstatstages STAT_SPDEF
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNSWITCHEDSTATCHANGES
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-21 23:12:10 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-10-06 15:50:35 +02:00
|
|
|
BattleScript_EffectSpeedSwap:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
accuracycheck BattleScript_ButItFailed, NO_ACC_CALC_CHECK_LOCK_ON
|
|
|
|
swapstatstages STAT_SPEED
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNSWITCHEDSTATCHANGES
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-10-06 15:50:35 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-21 21:58:07 +02:00
|
|
|
BattleScript_EffectTelekinesis:
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, NO_ACC_CALC_CHECK_LOCK_ON
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
settelekinesis BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNIDENTIFIED
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-21 21:58:07 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-21 21:58:07 +02:00
|
|
|
BattleScript_EffectStealthRock:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-07-23 22:18:56 +02:00
|
|
|
setstealthrock BattleScript_ButItFailed
|
2018-07-21 21:58:07 +02:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2018-07-23 22:18:56 +02:00
|
|
|
printstring STRINGID_POINTEDSTONESFLOAT
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-21 21:58:07 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-08-04 20:36:24 +02:00
|
|
|
BattleScript_EffectStickyWeb:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
setstickyweb BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_STICKYWEBUSED
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-08-04 20:36:24 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-21 21:58:07 +02:00
|
|
|
BattleScript_EffectGastroAcid:
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
setgastroacid BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNSABILITYSUPPRESSED
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-21 21:58:07 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-21 21:58:07 +02:00
|
|
|
BattleScript_EffectToxicSpikes:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
settoxicspikes BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_POISONSPIKESSCATTERED
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-21 21:58:07 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-21 21:58:07 +02:00
|
|
|
BattleScript_EffectMagnetRise:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2020-07-27 14:51:39 +02:00
|
|
|
setuserstatus3 STATUS3_MAGNET_RISE, BattleScript_ButItFailed
|
2018-07-21 21:58:07 +02:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNLEVITATEDONELECTROMAGNETISM
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-21 21:58:07 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-21 21:58:07 +02:00
|
|
|
BattleScript_EffectTrickRoom:
|
|
|
|
BattleScript_EffectWonderRoom:
|
|
|
|
BattleScript_EffectMagicRoom:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
setroom
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printfromtable gRoomsStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-21 21:58:07 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-21 16:34:43 +02:00
|
|
|
BattleScript_EffectAquaRing:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2020-07-27 14:51:39 +02:00
|
|
|
setuserstatus3 STATUS3_AQUA_RING, BattleScript_ButItFailed
|
2018-07-21 16:34:43 +02:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNSURROUNDEDWITHVEILOFWATER
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-21 16:34:43 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-21 16:34:43 +02:00
|
|
|
BattleScript_EffectEmbargo:
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
setembargo BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2019-02-01 13:41:08 +01:00
|
|
|
printstring STRINGID_PKMNCANTUSEITEMSANYMORE
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-21 16:34:43 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-21 16:34:43 +02:00
|
|
|
BattleScript_EffectTailwind:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
settailwind BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_TAILWINDBLEW
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-21 16:34:43 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-21 16:34:43 +02:00
|
|
|
BattleScript_EffectMircleEye:
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
setmiracleeye BattleScript_ButItFailed
|
|
|
|
goto BattleScript_IdentifiedFoe
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-21 16:34:43 +02:00
|
|
|
BattleScript_EffectGravity:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
setgravity BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_GRAVITYINTENSIFIED
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-02-22 23:48:28 +01:00
|
|
|
selectfirstvalidtarget
|
|
|
|
BattleScript_GravityLoop:
|
|
|
|
movevaluescleanup
|
|
|
|
jumpifstatus3 BS_TARGET, STATUS3_ON_AIR | STATUS3_MAGNET_RISE | STATUS3_TELEKINESIS, BattleScript_GravityLoopDrop
|
|
|
|
goto BattleScript_GravityLoopEnd
|
|
|
|
BattleScript_GravityLoopDrop:
|
|
|
|
bringdownairbornebattler BS_TARGET
|
|
|
|
printstring STRINGID_GRAVITYGROUNDING
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-02-22 23:48:28 +01:00
|
|
|
BattleScript_GravityLoopEnd:
|
2019-11-10 12:09:14 +01:00
|
|
|
moveendto MOVEEND_NEXT_TARGET
|
2019-02-22 23:48:28 +01:00
|
|
|
jumpifnexttargetvalid BattleScript_GravityLoop
|
|
|
|
end
|
2018-07-21 16:34:43 +02:00
|
|
|
|
|
|
|
BattleScript_EffectRoost:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
tryhealhalfhealth BattleScript_AlreadyAtFullHp, BS_TARGET
|
|
|
|
setroost
|
|
|
|
goto BattleScript_PresentHealTarget
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-22 15:08:32 +02:00
|
|
|
BattleScript_EffectCaptivate:
|
|
|
|
setstatchanger STAT_SPATK, 2, TRUE
|
|
|
|
attackcanceler
|
2018-08-02 20:24:18 +02:00
|
|
|
jumpifsubstituteblocks BattleScript_ButItFailedAtkStringPpReduce
|
2018-07-22 15:08:32 +02:00
|
|
|
jumpifoppositegenders BattleScript_CaptivateCheckAcc
|
|
|
|
goto BattleScript_ButItFailedAtkStringPpReduce
|
|
|
|
BattleScript_CaptivateCheckAcc:
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
goto BattleScript_StatDownFromAttackString
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-30 20:41:16 +02:00
|
|
|
BattleScript_EffectHealBlock:
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2019-04-01 11:42:37 +02:00
|
|
|
jumpifability BS_TARGET_SIDE, ABILITY_AROMA_VEIL, BattleScript_AromaVeilProtects
|
2018-07-30 20:41:16 +02:00
|
|
|
sethealblock BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNPREVENTEDFROMHEALING
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-30 20:41:16 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2019-04-16 15:01:48 +02:00
|
|
|
|
|
|
|
BattleScript_EffectThroatChop:
|
|
|
|
jumpifsubstituteblocks BattleScript_EffectHit
|
|
|
|
setmoveeffect MOVE_EFFECT_THROAT_CHOP | MOVE_EFFECT_CERTAIN
|
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
2018-07-23 22:43:05 +02:00
|
|
|
BattleScript_EffectHitEscape:
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
critcalc
|
|
|
|
damagecalc
|
|
|
|
adjustdamage
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
effectivenesssound
|
|
|
|
hitanimation BS_TARGET
|
|
|
|
waitstate
|
|
|
|
healthbarupdate BS_TARGET
|
|
|
|
datahpupdate BS_TARGET
|
|
|
|
critmessage
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-23 22:43:05 +02:00
|
|
|
resultmessage
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-23 22:43:05 +02:00
|
|
|
jumpifmovehadnoeffect BattleScript_MoveEnd
|
|
|
|
seteffectwithchance
|
|
|
|
tryfaintmon BS_TARGET, FALSE, NULL
|
2020-04-17 17:44:28 +02:00
|
|
|
moveendto MOVEEND_ATTACKER_VISIBLE
|
|
|
|
moveendfrom MOVEEND_TARGET_VISIBLE
|
2018-08-11 12:16:00 +02:00
|
|
|
jumpifbattleend BattleScript_HitEscapeEnd
|
2019-02-09 14:30:16 +01:00
|
|
|
jumpifbyte CMP_NOT_EQUAL gBattleOutcome 0, BattleScript_HitEscapeEnd
|
2020-07-08 17:38:28 +02:00
|
|
|
jumpifbattletype BATTLE_TYPE_ARENA, BattleScript_HitEscapeEnd
|
2019-11-10 12:09:14 +01:00
|
|
|
jumpifcantswitch SWITCH_IGNORE_ESCAPE_PREVENTION | BS_ATTACKER, BattleScript_HitEscapeEnd
|
2020-04-17 17:44:28 +02:00
|
|
|
openpartyscreen BS_ATTACKER, BattleScript_HitEscapeEnd
|
2018-07-23 22:43:05 +02:00
|
|
|
switchoutabilities BS_ATTACKER
|
|
|
|
waitstate
|
2021-04-28 03:36:37 +02:00
|
|
|
switchhandleorder BS_ATTACKER, 2
|
2018-07-23 22:43:05 +02:00
|
|
|
returntoball BS_ATTACKER
|
|
|
|
getswitchedmondata BS_ATTACKER
|
|
|
|
switchindataupdate BS_ATTACKER
|
|
|
|
hpthresholds BS_ATTACKER
|
|
|
|
printstring STRINGID_SWITCHINMON
|
|
|
|
switchinanim BS_ATTACKER, TRUE
|
|
|
|
waitstate
|
|
|
|
switchineffects BS_ATTACKER
|
|
|
|
BattleScript_HitEscapeEnd:
|
|
|
|
end
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-08-02 20:32:13 +02:00
|
|
|
BattleScript_EffectPlaceholder:
|
|
|
|
attackcanceler
|
2018-09-30 14:04:46 +02:00
|
|
|
attackstring
|
|
|
|
ppreduce
|
2021-04-28 03:36:37 +02:00
|
|
|
pause 5
|
2018-08-02 20:32:13 +02:00
|
|
|
printstring STRINGID_NOTDONEYET
|
|
|
|
goto BattleScript_MoveEnd
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_EffectHit::
|
|
|
|
BattleScript_HitFromAtkCanceler::
|
|
|
|
attackcanceler
|
|
|
|
BattleScript_HitFromAccCheck::
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
BattleScript_HitFromAtkString::
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
BattleScript_HitFromCritCalc::
|
|
|
|
critcalc
|
|
|
|
damagecalc
|
2018-07-14 22:56:03 +02:00
|
|
|
adjustdamage
|
2017-11-25 18:42:31 +01:00
|
|
|
BattleScript_HitFromAtkAnimation::
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
effectivenesssound
|
2018-02-08 11:17:41 +01:00
|
|
|
hitanimation BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_TARGET
|
|
|
|
datahpupdate BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
critmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
resultmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
seteffectwithchance
|
2018-02-08 11:17:41 +01:00
|
|
|
tryfaintmon BS_TARGET, FALSE, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
BattleScript_MoveEnd::
|
2019-03-30 12:37:18 +01:00
|
|
|
moveendall
|
2017-11-25 18:42:31 +01:00
|
|
|
end
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-05-20 12:03:00 +02:00
|
|
|
BattleScript_EffectNaturalGift:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
jumpifnotberry BS_ATTACKER, BattleScript_ButItFailed
|
|
|
|
jumpifword CMP_COMMON_BITS, gFieldStatuses, STATUS_FIELD_MAGIC_ROOM, BattleScript_ButItFailed
|
|
|
|
jumpifability BS_ATTACKER, ABILITY_KLUTZ, BattleScript_ButItFailed
|
|
|
|
jumpifstatus3 BS_ATTACKER, STATUS3_EMBARGO, BattleScript_ButItFailed
|
|
|
|
accuracycheck BattleScript_MoveMissedPause, ACC_CURR_MOVE
|
|
|
|
critcalc
|
|
|
|
damagecalc
|
|
|
|
adjustdamage
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
effectivenesssound
|
|
|
|
hitanimation BS_TARGET
|
|
|
|
waitstate
|
|
|
|
healthbarupdate BS_TARGET
|
|
|
|
datahpupdate BS_TARGET
|
|
|
|
critmessage
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-05-20 12:03:00 +02:00
|
|
|
resultmessage
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-05-20 12:03:00 +02:00
|
|
|
seteffectwithchance
|
|
|
|
jumpifmovehadnoeffect BattleScript_EffectNaturalGiftEnd
|
|
|
|
removeitem BS_ATTACKER
|
|
|
|
BattleScript_EffectNaturalGiftEnd:
|
|
|
|
tryfaintmon BS_TARGET, FALSE, NULL
|
|
|
|
goto BattleScript_MoveEnd
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_MakeMoveMissed::
|
2018-07-14 10:11:38 +02:00
|
|
|
orhalfword gMoveResultFlags, MOVE_RESULT_MISSED
|
2017-11-25 18:42:31 +01:00
|
|
|
BattleScript_PrintMoveMissed::
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
BattleScript_MoveMissedPause::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-25 18:42:31 +01:00
|
|
|
BattleScript_MoveMissed::
|
|
|
|
effectivenesssound
|
|
|
|
resultmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectSleep::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-08-02 20:24:18 +02:00
|
|
|
jumpifsubstituteblocks BattleScript_ButItFailed
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus BS_TARGET, STATUS1_SLEEP, BattleScript_AlreadyAsleep
|
2017-11-26 13:26:58 +01:00
|
|
|
jumpifcantmakeasleep BattleScript_CantMakeAsleep
|
2019-12-31 16:36:53 +01:00
|
|
|
jumpifability BS_TARGET, ABILITY_COMATOSE, BattleScript_LeafGuardProtects
|
2019-03-31 21:38:58 +02:00
|
|
|
jumpifflowerveil BattleScript_FlowerVeilProtects
|
2019-03-31 22:02:39 +02:00
|
|
|
jumpifability BS_TARGET_SIDE, ABILITY_SWEET_VEIL, BattleScript_SweetVeilProtects
|
2019-12-18 22:03:01 +01:00
|
|
|
jumpifleafguard BattleScript_LeafGuardProtects
|
2020-04-19 21:18:39 +02:00
|
|
|
jumpifshieldsdown BS_TARGET, BattleScript_LeafGuardProtects
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus BS_TARGET, STATUS1_ANY, BattleScript_ButItFailed
|
2017-11-25 18:42:31 +01:00
|
|
|
accuracycheck BattleScript_ButItFailed, ACC_CURR_MOVE
|
2020-04-23 11:29:19 +02:00
|
|
|
jumpifsafeguard BattleScript_SafeguardProtected
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_SLEEP
|
2017-11-25 18:42:31 +01:00
|
|
|
seteffectprimary
|
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-03-31 21:38:58 +02:00
|
|
|
BattleScript_FlowerVeilProtectsRet::
|
2021-04-28 03:36:37 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2019-03-31 21:38:58 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
printstring STRINGID_FLOWERVEILPROTECTED
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-03-31 21:38:58 +02:00
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-03-31 21:38:58 +02:00
|
|
|
BattleScript_FlowerVeilProtects:
|
|
|
|
call BattleScript_FlowerVeilProtectsRet
|
|
|
|
orhalfword gMoveResultFlags, MOVE_RESULT_FAILED
|
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-03-31 22:02:39 +02:00
|
|
|
BattleScript_SweetVeilProtectsRet::
|
2021-04-28 03:36:37 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2019-03-31 22:02:39 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
printstring STRINGID_FLOWERVEILPROTECTED
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-03-31 22:02:39 +02:00
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-03-31 22:02:39 +02:00
|
|
|
BattleScript_SweetVeilProtects:
|
|
|
|
call BattleScript_SweetVeilProtectsRet
|
|
|
|
orhalfword gMoveResultFlags, MOVE_RESULT_FAILED
|
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-04-01 11:42:37 +02:00
|
|
|
BattleScript_AromaVeilProtectsRet::
|
2021-04-28 03:36:37 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2019-04-01 11:42:37 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
printstring STRINGID_AROMAVEILPROTECTED
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-04-01 11:42:37 +02:00
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-04-01 11:42:37 +02:00
|
|
|
BattleScript_AromaVeilProtects:
|
|
|
|
call BattleScript_AromaVeilProtectsRet
|
|
|
|
orhalfword gMoveResultFlags, MOVE_RESULT_FAILED
|
|
|
|
goto BattleScript_MoveEnd
|
2017-11-25 18:42:31 +01:00
|
|
|
|
2019-12-16 09:29:20 +01:00
|
|
|
BattleScript_LeafGuardProtectsRet::
|
2021-04-28 03:36:37 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2019-12-16 09:29:20 +01:00
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
printstring STRINGID_ITDOESNTAFFECT
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-12-16 09:29:20 +01:00
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-12-16 09:29:20 +01:00
|
|
|
BattleScript_LeafGuardProtects:
|
|
|
|
call BattleScript_LeafGuardProtectsRet
|
|
|
|
orhalfword gMoveResultFlags, MOVE_RESULT_FAILED
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2017-11-26 13:26:58 +01:00
|
|
|
BattleScript_AlreadyAsleep::
|
2018-11-11 18:33:16 +01:00
|
|
|
setalreadystatusedmoveattempt BS_ATTACKER
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNALREADYASLEEP
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2017-11-26 13:26:58 +01:00
|
|
|
BattleScript_WasntAffected::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNWASNTAFFECTED
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2017-11-26 13:26:58 +01:00
|
|
|
BattleScript_CantMakeAsleep::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gUproarAwakeStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2018-07-14 10:11:38 +02:00
|
|
|
BattleScript_EffectPoisonHit:
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_POISON
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_EffectAbsorb::
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
critcalc
|
|
|
|
damagecalc
|
2018-07-14 22:56:03 +02:00
|
|
|
adjustdamage
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
effectivenesssound
|
2018-02-08 11:17:41 +01:00
|
|
|
hitanimation BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_TARGET
|
|
|
|
datahpupdate BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
critmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
resultmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-08-03 19:01:03 +02:00
|
|
|
setdrainedhp
|
2021-05-04 13:20:22 +02:00
|
|
|
manipulatedamage DMG_BIG_ROOT
|
2021-09-06 08:27:42 +02:00
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_IGNORE_DISGUISE
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifability BS_TARGET, ABILITY_LIQUID_OOZE, BattleScript_AbsorbLiquidOoze
|
2021-04-02 08:27:12 +02:00
|
|
|
setbyte cMULTISTRING_CHOOSER, B_MSG_ABSORB
|
2017-12-02 00:03:46 +01:00
|
|
|
goto BattleScript_AbsorbUpdateHp
|
|
|
|
BattleScript_AbsorbLiquidOoze::
|
2020-02-22 19:25:35 +01:00
|
|
|
copybyte gBattlerAbility, gBattlerTarget
|
|
|
|
call BattleScript_AbilityPopUp
|
2019-08-23 14:46:21 +02:00
|
|
|
manipulatedamage DMG_CHANGE_SIGN
|
2021-04-02 08:27:12 +02:00
|
|
|
setbyte cMULTISTRING_CHOOSER, B_MSG_ABSORB_OOZE
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_AbsorbUpdateHp::
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_ATTACKER
|
|
|
|
datahpupdate BS_ATTACKER
|
2017-12-02 00:03:46 +01:00
|
|
|
jumpifmovehadnoeffect BattleScript_AbsorbTryFainting
|
2021-04-02 08:27:12 +02:00
|
|
|
printfromtable gAbsorbDrainStringIds
|
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_AbsorbTryFainting::
|
2018-02-08 11:17:41 +01:00
|
|
|
tryfaintmon BS_ATTACKER, FALSE, NULL
|
|
|
|
tryfaintmon BS_TARGET, FALSE, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectBurnHit::
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_BURN
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_EffectFreezeHit::
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_FREEZE
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_EffectParalyzeHit::
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_PARALYSIS
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_EffectExplosion::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
faintifabilitynotdamp
|
|
|
|
setatkhptozero
|
|
|
|
waitstate
|
2018-09-01 20:00:13 +02:00
|
|
|
jumpifbyte CMP_NO_COMMON_BITS, gMoveResultFlags, MOVE_RESULT_MISSED, BattleScript_ExplosionDoAnimStartLoop
|
|
|
|
call BattleScript_PreserveMissedBitDoMoveAnim
|
|
|
|
goto BattleScript_ExplosionLoop
|
|
|
|
BattleScript_ExplosionDoAnimStartLoop:
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2018-09-01 20:00:13 +02:00
|
|
|
BattleScript_ExplosionLoop:
|
2017-11-25 18:42:31 +01:00
|
|
|
movevaluescleanup
|
|
|
|
critcalc
|
|
|
|
damagecalc
|
2018-07-14 22:56:03 +02:00
|
|
|
adjustdamage
|
2018-09-01 20:00:13 +02:00
|
|
|
accuracycheck BattleScript_ExplosionMissed, ACC_CURR_MOVE
|
2017-11-25 18:42:31 +01:00
|
|
|
effectivenesssound
|
2018-02-08 11:17:41 +01:00
|
|
|
hitanimation BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_TARGET
|
|
|
|
datahpupdate BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
critmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
resultmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
tryfaintmon BS_TARGET, FALSE, NULL
|
2019-08-23 14:46:21 +02:00
|
|
|
moveendto MOVEEND_NEXT_TARGET
|
2018-09-01 20:00:13 +02:00
|
|
|
jumpifnexttargetvalid BattleScript_ExplosionLoop
|
2018-02-08 11:17:41 +01:00
|
|
|
tryfaintmon BS_ATTACKER, FALSE, NULL
|
2020-04-11 12:02:51 +02:00
|
|
|
moveendcase MOVEEND_CLEAR_BITS
|
2017-11-25 18:42:31 +01:00
|
|
|
end
|
2018-09-01 20:00:13 +02:00
|
|
|
BattleScript_ExplosionMissed:
|
2017-11-25 18:42:31 +01:00
|
|
|
effectivenesssound
|
|
|
|
resultmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-08-23 14:46:21 +02:00
|
|
|
moveendto MOVEEND_NEXT_TARGET
|
2018-09-01 20:00:13 +02:00
|
|
|
jumpifnexttargetvalid BattleScript_ExplosionLoop
|
2018-02-08 11:17:41 +01:00
|
|
|
tryfaintmon BS_ATTACKER, FALSE, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
end
|
|
|
|
|
2020-04-14 09:27:29 +02:00
|
|
|
BattleScript_EffectMindBlown::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
faintifabilitynotdamp
|
|
|
|
dmg_1_2_attackerhp
|
|
|
|
healthbarupdate BS_ATTACKER
|
|
|
|
datahpupdate BS_ATTACKER
|
|
|
|
waitstate
|
|
|
|
jumpifbyte CMP_NO_COMMON_BITS, gMoveResultFlags, MOVE_RESULT_MISSED, BattleScript_ExplosionDoAnimStartLoop
|
|
|
|
call BattleScript_PreserveMissedBitDoMoveAnim
|
|
|
|
goto BattleScript_ExplosionLoop
|
|
|
|
|
2018-09-01 20:00:13 +02:00
|
|
|
BattleScript_PreserveMissedBitDoMoveAnim:
|
2018-07-21 15:11:13 +02:00
|
|
|
bichalfword gMoveResultFlags, MOVE_RESULT_MISSED
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2018-07-21 15:11:13 +02:00
|
|
|
orhalfword gMoveResultFlags, MOVE_RESULT_MISSED
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_EffectDreamEater::
|
|
|
|
attackcanceler
|
2018-09-02 00:07:19 +02:00
|
|
|
jumpifsubstituteblocks BattleScript_DreamEaterNoEffect
|
2018-09-01 20:00:13 +02:00
|
|
|
jumpifstatus BS_TARGET, STATUS1_SLEEP, BattleScript_DreamEaterWorked
|
2019-12-31 16:36:53 +01:00
|
|
|
jumpifability BS_TARGET, ABILITY_COMATOSE, BattleScript_DreamEaterWorked
|
2018-09-01 20:00:13 +02:00
|
|
|
BattleScript_DreamEaterNoEffect:
|
2017-11-25 18:42:31 +01:00
|
|
|
attackstring
|
|
|
|
ppreduce
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-26 13:26:58 +01:00
|
|
|
goto BattleScript_WasntAffected
|
2018-09-01 20:00:13 +02:00
|
|
|
BattleScript_DreamEaterWorked:
|
2017-11-25 18:42:31 +01:00
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
critcalc
|
|
|
|
damagecalc
|
2018-07-14 22:56:03 +02:00
|
|
|
adjustdamage
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
effectivenesssound
|
2018-02-08 11:17:41 +01:00
|
|
|
hitanimation BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_TARGET
|
|
|
|
datahpupdate BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
critmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
resultmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-08-03 19:01:03 +02:00
|
|
|
setdrainedhp
|
2021-05-04 13:20:22 +02:00
|
|
|
manipulatedamage DMG_BIG_ROOT
|
2017-11-25 18:42:31 +01:00
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_ATTACKER
|
|
|
|
datahpupdate BS_ATTACKER
|
2017-12-02 00:03:46 +01:00
|
|
|
jumpifmovehadnoeffect BattleScript_DreamEaterTryFaintEnd
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNDREAMEATEN
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-01 20:00:13 +02:00
|
|
|
BattleScript_DreamEaterTryFaintEnd:
|
2018-02-08 11:17:41 +01:00
|
|
|
tryfaintmon BS_TARGET, FALSE, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectMirrorMove::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
trymirrormove
|
|
|
|
ppreduce
|
2018-07-21 15:11:13 +02:00
|
|
|
orhalfword gMoveResultFlags, MOVE_RESULT_FAILED
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_MIRRORMOVEFAILED
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectAttackUp::
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_ATK, 1, FALSE
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectStatUp
|
|
|
|
|
|
|
|
BattleScript_EffectDefenseUp::
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_DEF, 1, FALSE
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectStatUp
|
|
|
|
|
|
|
|
BattleScript_EffectSpecialAttackUp::
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_SPATK, 1, FALSE
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectStatUp
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-21 21:58:07 +02:00
|
|
|
BattleScript_EffectSpeedUp:
|
|
|
|
setstatchanger STAT_SPEED, 1, FALSE
|
|
|
|
goto BattleScript_EffectStatUp
|
|
|
|
|
|
|
|
BattleScript_EffectSpecialDefenseUp:
|
|
|
|
setstatchanger STAT_SPDEF, 1, FALSE
|
|
|
|
goto BattleScript_EffectStatUp
|
|
|
|
|
|
|
|
BattleScript_EffectAccuracyUp:
|
|
|
|
setstatchanger STAT_ACC, 1, FALSE
|
|
|
|
goto BattleScript_EffectStatUp
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_EffectEvasionUp::
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_EVASION, 1, FALSE
|
2017-11-25 18:42:31 +01:00
|
|
|
BattleScript_EffectStatUp::
|
|
|
|
attackcanceler
|
|
|
|
BattleScript_EffectStatUpAfterAtkCanceler::
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2019-09-27 08:46:33 +02:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_StatUpEnd
|
2021-04-02 08:27:12 +02:00
|
|
|
jumpifbyte CMP_NOT_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_StatUpAttackAnim
|
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-26 01:19:57 +01:00
|
|
|
goto BattleScript_StatUpPrintString
|
|
|
|
BattleScript_StatUpAttackAnim::
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2017-11-26 01:19:57 +01:00
|
|
|
BattleScript_StatUpDoAnim::
|
2017-11-25 18:42:31 +01:00
|
|
|
setgraphicalstatchangevalues
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
2017-11-26 01:19:57 +01:00
|
|
|
BattleScript_StatUpPrintString::
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-26 01:19:57 +01:00
|
|
|
BattleScript_StatUpEnd::
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_StatUp::
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_EFFECT_BATTLER, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
2019-02-14 12:15:53 +01:00
|
|
|
BattleScript_StatUpMsg::
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
2018-07-21 21:58:07 +02:00
|
|
|
BattleScript_EffectAttackDown:
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_ATK, 1, TRUE
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectStatDown
|
|
|
|
|
2018-07-21 21:58:07 +02:00
|
|
|
BattleScript_EffectDefenseDown:
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_DEF, 1, TRUE
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectStatDown
|
|
|
|
|
2018-07-21 21:58:07 +02:00
|
|
|
BattleScript_EffectSpeedDown:
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_SPEED, 1, TRUE
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectStatDown
|
|
|
|
|
2018-07-21 21:58:07 +02:00
|
|
|
BattleScript_EffectAccuracyDown:
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_ACC, 1, TRUE
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectStatDown
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-21 21:58:07 +02:00
|
|
|
BattleScript_EffectSpecialAttackDown:
|
|
|
|
setstatchanger STAT_SPATK, 1, TRUE
|
|
|
|
goto BattleScript_EffectStatDown
|
|
|
|
|
|
|
|
BattleScript_EffectSpecialDefenseDown:
|
|
|
|
setstatchanger STAT_SPDEF, 1, TRUE
|
|
|
|
goto BattleScript_EffectStatDown
|
2017-11-25 18:42:31 +01:00
|
|
|
|
2018-07-21 21:58:07 +02:00
|
|
|
BattleScript_EffectEvasionDown:
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_EVASION, 1, TRUE
|
2018-07-21 21:58:07 +02:00
|
|
|
BattleScript_EffectStatDown:
|
2017-11-25 18:42:31 +01:00
|
|
|
attackcanceler
|
2018-08-02 20:24:18 +02:00
|
|
|
jumpifsubstituteblocks BattleScript_ButItFailedAtkStringPpReduce
|
2017-11-25 18:42:31 +01:00
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
2018-07-22 15:08:32 +02:00
|
|
|
BattleScript_StatDownFromAttackString:
|
2017-11-25 18:42:31 +01:00
|
|
|
attackstring
|
|
|
|
ppreduce
|
2019-09-27 08:46:33 +02:00
|
|
|
statbuffchange STAT_BUFF_ALLOW_PTR, BattleScript_StatDownEnd
|
2021-04-02 08:27:12 +02:00
|
|
|
jumpifbyte CMP_LESS_THAN, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_DECREASE, BattleScript_StatDownDoAnim
|
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_FELL_EMPTY, BattleScript_StatDownEnd
|
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-26 01:19:57 +01:00
|
|
|
goto BattleScript_StatDownPrintString
|
|
|
|
BattleScript_StatDownDoAnim::
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
setgraphicalstatchangevalues
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_TARGET, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
2017-11-26 01:19:57 +01:00
|
|
|
BattleScript_StatDownPrintString::
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatDownStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-26 01:19:57 +01:00
|
|
|
BattleScript_StatDownEnd::
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_StatDown::
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_EFFECT_BATTLER, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatDownStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_EffectHaze::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
normalisebuffs
|
|
|
|
printstring STRINGID_STATCHANGESGONE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectBide::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2019-01-13 13:15:23 +01:00
|
|
|
orword gHitMarker, HITMARKER_CHARGING
|
2017-11-25 18:42:31 +01:00
|
|
|
setbide
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectRampage::
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
2018-09-01 20:00:13 +02:00
|
|
|
jumpifstatus2 BS_ATTACKER, STATUS2_MULTIPLETURNS, BattleScript_EffectRampage2
|
2017-11-25 18:42:31 +01:00
|
|
|
ppreduce
|
2018-09-01 20:00:13 +02:00
|
|
|
BattleScript_EffectRampage2:
|
2017-11-25 18:42:31 +01:00
|
|
|
confuseifrepeatingattackends
|
|
|
|
goto BattleScript_HitFromCritCalc
|
|
|
|
|
|
|
|
BattleScript_EffectRoar::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2019-03-06 12:09:34 +01:00
|
|
|
jumpifroarfails BattleScript_ButItFailed
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifability BS_TARGET, ABILITY_SUCTION_CUPS, BattleScript_AbilityPreventsPhasingOut
|
|
|
|
jumpifstatus3 BS_TARGET, STATUS3_ROOTED, BattleScript_PrintMonIsRooted
|
2017-11-25 18:42:31 +01:00
|
|
|
accuracycheck BattleScript_ButItFailed, NO_ACC_CALC_CHECK_LOCK_ON
|
|
|
|
accuracycheck BattleScript_MoveMissedPause, ACC_CURR_MOVE
|
2017-12-02 14:08:55 +01:00
|
|
|
jumpifbattletype BATTLE_TYPE_ARENA, BattleScript_ButItFailed
|
2018-09-22 16:15:00 +02:00
|
|
|
BattleScript_ForceRandomSwitch::
|
2017-11-25 18:42:31 +01:00
|
|
|
forcerandomswitch BattleScript_ButItFailed
|
|
|
|
|
|
|
|
BattleScript_EffectMultiHit::
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2021-04-03 18:38:07 +02:00
|
|
|
setmultihitcounter 0
|
2017-11-25 18:42:31 +01:00
|
|
|
initmultihitstring
|
2021-04-28 03:36:37 +02:00
|
|
|
sethword sMULTIHIT_EFFECT, 0
|
2017-12-02 23:31:58 +01:00
|
|
|
BattleScript_MultiHitLoop::
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifhasnohp BS_ATTACKER, BattleScript_MultiHitEnd
|
|
|
|
jumpifhasnohp BS_TARGET, BattleScript_MultiHitPrintStrings
|
|
|
|
jumpifhalfword CMP_EQUAL, gChosenMove, MOVE_SLEEP_TALK, BattleScript_DoMultiHit
|
|
|
|
jumpifstatus BS_ATTACKER, STATUS1_SLEEP, BattleScript_MultiHitPrintStrings
|
2017-12-02 23:31:58 +01:00
|
|
|
BattleScript_DoMultiHit::
|
2017-11-25 18:42:31 +01:00
|
|
|
movevaluescleanup
|
2019-02-14 13:17:27 +01:00
|
|
|
copyhword sMOVE_EFFECT, sMULTIHIT_EFFECT
|
2017-11-25 18:42:31 +01:00
|
|
|
critcalc
|
|
|
|
damagecalc
|
2017-12-02 23:31:58 +01:00
|
|
|
jumpifmovehadnoeffect BattleScript_MultiHitNoMoreHits
|
2018-07-14 22:56:03 +02:00
|
|
|
adjustdamage
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
effectivenesssound
|
2018-02-08 11:17:41 +01:00
|
|
|
hitanimation BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_TARGET
|
|
|
|
datahpupdate BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
critmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-21 15:11:13 +02:00
|
|
|
multihitresultmessage
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_EMPTYSTRING3
|
2021-04-02 08:16:01 +02:00
|
|
|
waitmessage 1
|
2021-04-03 18:38:07 +02:00
|
|
|
addbyte sMULTIHIT_STRING + 4, 1
|
2019-08-23 14:46:21 +02:00
|
|
|
moveendto MOVEEND_NEXT_TARGET
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_COMMON_BITS, gMoveResultFlags, MOVE_RESULT_FOE_ENDURED, BattleScript_MultiHitPrintStrings
|
2017-12-02 23:31:58 +01:00
|
|
|
decrementmultihit BattleScript_MultiHitLoop
|
|
|
|
goto BattleScript_MultiHitPrintStrings
|
|
|
|
BattleScript_MultiHitNoMoreHits::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-12-02 23:31:58 +01:00
|
|
|
BattleScript_MultiHitPrintStrings::
|
2017-11-25 18:42:31 +01:00
|
|
|
resultmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-12-02 23:31:58 +01:00
|
|
|
jumpifmovehadnoeffect BattleScript_MultiHitEnd
|
2021-04-03 18:38:07 +02:00
|
|
|
copyarray gBattleTextBuff1, sMULTIHIT_STRING, 6
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_HITXTIMES
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-12-02 23:31:58 +01:00
|
|
|
BattleScript_MultiHitEnd::
|
2017-11-25 18:42:31 +01:00
|
|
|
seteffectwithchance
|
2018-02-08 11:17:41 +01:00
|
|
|
tryfaintmon BS_TARGET, FALSE, NULL
|
2019-08-23 14:46:21 +02:00
|
|
|
moveendcase MOVEEND_SYNCHRONIZE_TARGET
|
2019-11-10 12:09:14 +01:00
|
|
|
moveendfrom MOVEEND_STATUS_IMMUNITY_ABILITIES
|
2017-11-25 18:42:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
BattleScript_EffectConversion::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
tryconversiontypechange BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNCHANGEDTYPE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectFlinchHit::
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_FLINCH
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-09-22 10:45:43 +02:00
|
|
|
BattleScript_EffectFlinchWithStatus:
|
|
|
|
setmoveeffect MOVE_EFFECT_FLINCH
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
critcalc
|
|
|
|
damagecalc
|
|
|
|
adjustdamage
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
effectivenesssound
|
|
|
|
hitanimation BS_TARGET
|
|
|
|
waitstate
|
|
|
|
healthbarupdate BS_TARGET
|
|
|
|
datahpupdate BS_TARGET
|
|
|
|
critmessage
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-22 10:45:43 +02:00
|
|
|
resultmessage
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-22 10:45:43 +02:00
|
|
|
seteffectwithchance
|
|
|
|
argumentstatuseffect
|
|
|
|
tryfaintmon BS_TARGET, FALSE, NULL
|
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2017-11-25 18:42:31 +01:00
|
|
|
BattleScript_EffectRestoreHp::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-02-08 11:17:41 +01:00
|
|
|
tryhealhalfhealth BattleScript_AlreadyAtFullHp, BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2020-04-17 21:14:26 +02:00
|
|
|
BattleScript_RestoreHp:
|
2017-11-25 18:42:31 +01:00
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_ATTACKER
|
|
|
|
datahpupdate BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNREGAINEDHEALTH
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectToxic::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifability BS_TARGET, ABILITY_IMMUNITY, BattleScript_ImmunityProtected
|
2019-12-31 16:36:53 +01:00
|
|
|
jumpifability BS_TARGET, ABILITY_COMATOSE, BattleScript_LeafGuardProtects
|
2019-03-31 21:38:58 +02:00
|
|
|
jumpifflowerveil BattleScript_FlowerVeilProtects
|
2019-12-18 22:03:01 +01:00
|
|
|
jumpifleafguard BattleScript_LeafGuardProtects
|
2020-04-19 21:18:39 +02:00
|
|
|
jumpifshieldsdown BS_TARGET, BattleScript_LeafGuardProtects
|
2018-08-02 20:24:18 +02:00
|
|
|
jumpifsubstituteblocks BattleScript_ButItFailed
|
2019-05-10 11:03:33 +02:00
|
|
|
jumpifstatus BS_TARGET, STATUS1_POISON | STATUS1_TOXIC_POISON, BattleScript_AlreadyPoisoned
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus BS_TARGET, STATUS1_ANY, BattleScript_ButItFailed
|
2020-04-21 15:59:19 +02:00
|
|
|
trypoisontype BS_ATTACKER, BS_TARGET, BattleScript_NotAffected
|
2017-11-25 18:42:31 +01:00
|
|
|
accuracycheck BattleScript_ButItFailed, ACC_CURR_MOVE
|
2020-04-23 11:29:19 +02:00
|
|
|
jumpifsafeguard BattleScript_SafeguardProtected
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_TOXIC
|
2017-11-25 18:42:31 +01:00
|
|
|
seteffectprimary
|
|
|
|
resultmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_AlreadyPoisoned::
|
2018-11-11 18:33:16 +01:00
|
|
|
setalreadystatusedmoveattempt BS_ATTACKER
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNALREADYPOISONED
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2017-11-26 01:19:57 +01:00
|
|
|
BattleScript_ImmunityProtected::
|
2018-02-08 11:17:41 +01:00
|
|
|
copybyte gEffectBattler, gBattlerTarget
|
2021-04-02 08:27:12 +02:00
|
|
|
setbyte cMULTISTRING_CHOOSER, B_MSG_ABILITY_PREVENTS_MOVE_STATUS
|
2017-11-25 18:42:31 +01:00
|
|
|
call BattleScript_PSNPrevention
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectPayDay::
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_PAYDAY
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-11-03 14:35:45 +01:00
|
|
|
BattleScript_EffectAuroraVeil:
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
setauroraveil BS_ATTACKER
|
|
|
|
goto BattleScript_PrintReflectLightScreenSafeguardString
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_EffectLightScreen::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
setlightscreen
|
2017-11-26 17:15:28 +01:00
|
|
|
goto BattleScript_PrintReflectLightScreenSafeguardString
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_EffectTriAttack::
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_TRI_ATTACK
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_EffectRest::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus BS_ATTACKER, STATUS1_SLEEP, BattleScript_RestIsAlreadyAsleep
|
2019-12-31 16:36:53 +01:00
|
|
|
jumpifability BS_ATTACKER, ABILITY_COMATOSE, BattleScript_RestIsAlreadyAsleep
|
2017-11-26 17:15:28 +01:00
|
|
|
jumpifcantmakeasleep BattleScript_RestCantSleep
|
2017-11-25 18:42:31 +01:00
|
|
|
trysetrest BattleScript_AlreadyAtFullHp
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gRestUsedStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
updatestatusicon BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
|
|
|
goto BattleScript_PresentHealTarget
|
|
|
|
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_RestCantSleep::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_LONG
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gUproarAwakeStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_RestIsAlreadyAsleep::
|
2018-11-11 18:33:16 +01:00
|
|
|
setalreadystatusedmoveattempt BS_ATTACKER
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNALREADYASLEEP2
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2017-11-26 00:33:40 +01:00
|
|
|
BattleScript_EffectOHKO::
|
2017-11-25 18:42:31 +01:00
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
accuracycheck BattleScript_ButItFailed, NO_ACC_CALC_CHECK_LOCK_ON
|
|
|
|
typecalc
|
2017-12-02 00:03:46 +01:00
|
|
|
jumpifmovehadnoeffect BattleScript_HitFromAtkAnimation
|
2017-11-26 00:33:40 +01:00
|
|
|
tryKO BattleScript_KOFail
|
2017-11-25 18:42:31 +01:00
|
|
|
trysetdestinybondtohappen
|
|
|
|
goto BattleScript_HitFromAtkAnimation
|
2017-11-26 00:33:40 +01:00
|
|
|
BattleScript_KOFail::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_LONG
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gKOFailedStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_TwoTurnMovesSecondTurn::
|
2017-11-25 18:42:31 +01:00
|
|
|
attackcanceler
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_CHARGING
|
2021-04-03 18:38:07 +02:00
|
|
|
setbyte sB_ANIM_TURN, 1
|
2018-02-08 11:17:41 +01:00
|
|
|
clearstatusfromeffect BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
orword gHitMarker, HITMARKER_NO_PPDEDUCT
|
2018-09-30 14:04:46 +02:00
|
|
|
argumenttomoveeffect
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_HitFromAccCheck
|
|
|
|
|
2017-11-26 00:33:40 +01:00
|
|
|
BattleScriptFirstChargingTurn::
|
2017-11-25 18:42:31 +01:00
|
|
|
attackcanceler
|
|
|
|
printstring STRINGID_EMPTYSTRING3
|
|
|
|
ppreduce
|
2021-02-08 21:40:37 +01:00
|
|
|
attackstring
|
2021-05-22 21:34:39 +02:00
|
|
|
pause B_WAIT_TIME_LONG
|
2021-02-08 21:40:37 +01:00
|
|
|
copybyte cMULTISTRING_CHOOSER, sTWOTURN_STRINGID
|
|
|
|
printfromtable gFirstTurnOfTwoStringIds
|
2021-05-22 01:22:04 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2019-01-13 13:15:23 +01:00
|
|
|
orword gHitMarker, HITMARKER_CHARGING
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_CHARGING | MOVE_EFFECT_AFFECTS_USER
|
2017-11-25 18:42:31 +01:00
|
|
|
seteffectprimary
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_EffectSuperFang::
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
typecalc
|
2018-07-21 15:11:13 +02:00
|
|
|
bichalfword gMoveResultFlags, MOVE_RESULT_SUPER_EFFECTIVE | MOVE_RESULT_NOT_VERY_EFFECTIVE
|
2017-11-25 18:42:31 +01:00
|
|
|
damagetohalftargethp
|
|
|
|
goto BattleScript_HitFromAtkAnimation
|
|
|
|
|
|
|
|
BattleScript_EffectDragonRage::
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
typecalc
|
2018-07-21 15:11:13 +02:00
|
|
|
bichalfword gMoveResultFlags, MOVE_RESULT_SUPER_EFFECTIVE | MOVE_RESULT_NOT_VERY_EFFECTIVE
|
2017-11-25 21:11:20 +01:00
|
|
|
setword gBattleMoveDamage, 40
|
2018-07-14 22:56:03 +02:00
|
|
|
adjustdamage
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_HitFromAtkAnimation
|
|
|
|
|
|
|
|
BattleScript_EffectTrap::
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_WRAP
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_EffectDoubleHit::
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2021-04-03 18:38:07 +02:00
|
|
|
setmultihitcounter 2
|
2017-11-25 18:42:31 +01:00
|
|
|
initmultihitstring
|
2021-04-28 03:36:37 +02:00
|
|
|
sethword sMULTIHIT_EFFECT, 0
|
2017-12-02 23:31:58 +01:00
|
|
|
goto BattleScript_MultiHitLoop
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_EffectRecoilIfMiss::
|
|
|
|
attackcanceler
|
2017-12-02 00:03:46 +01:00
|
|
|
accuracycheck BattleScript_MoveMissedDoDamage, ACC_CURR_MOVE
|
2020-12-07 07:30:31 +01:00
|
|
|
.if B_CRASH_IF_TARGET_IMMUNE >= GEN_4
|
2020-12-06 04:14:02 +01:00
|
|
|
typecalc
|
|
|
|
jumpifbyte CMP_COMMON_BITS, gMoveResultFlags, MOVE_RESULT_DOESNT_AFFECT_FOE, BattleScript_MoveMissedDoDamage
|
2020-12-07 07:30:31 +01:00
|
|
|
.endif
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_HitFromAtkString
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_MoveMissedDoDamage::
|
2020-04-13 15:49:40 +02:00
|
|
|
jumpifability BS_ATTACKER, ABILITY_MAGIC_GUARD, BattleScript_PrintMoveMissed
|
2017-11-25 18:42:31 +01:00
|
|
|
attackstring
|
|
|
|
ppreduce
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
resultmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-12-07 07:30:31 +01:00
|
|
|
.if B_CRASH_IF_TARGET_IMMUNE < GEN_4
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_COMMON_BITS, gMoveResultFlags, MOVE_RESULT_DOESNT_AFFECT_FOE, BattleScript_MoveEnd
|
2020-12-07 07:30:31 +01:00
|
|
|
.endif
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNCRASHED
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
damagecalc
|
|
|
|
typecalc
|
2018-07-14 22:56:03 +02:00
|
|
|
adjustdamage
|
2020-12-07 07:30:31 +01:00
|
|
|
.if B_CRASH_IF_TARGET_IMMUNE == GEN_4
|
|
|
|
manipulatedamage DMG_RECOIL_FROM_IMMUNE
|
|
|
|
.else
|
2019-09-15 23:58:12 +02:00
|
|
|
manipulatedamage DMG_RECOIL_FROM_MISS
|
2020-12-07 07:30:31 +01:00
|
|
|
.endif
|
|
|
|
.if B_CRASH_IF_TARGET_IMMUNE >= GEN_4
|
2020-12-06 04:14:02 +01:00
|
|
|
bichalfword gMoveResultFlags, MOVE_RESULT_MISSED | MOVE_RESULT_DOESNT_AFFECT_FOE
|
2020-12-07 07:30:31 +01:00
|
|
|
.else
|
2018-07-21 15:11:13 +02:00
|
|
|
bichalfword gMoveResultFlags, MOVE_RESULT_MISSED
|
2020-12-07 07:30:31 +01:00
|
|
|
.endif
|
2021-09-06 08:27:42 +02:00
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_IGNORE_DISGUISE
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_ATTACKER
|
|
|
|
datahpupdate BS_ATTACKER
|
|
|
|
tryfaintmon BS_ATTACKER, FALSE, NULL
|
2020-12-07 07:30:31 +01:00
|
|
|
.if B_CRASH_IF_TARGET_IMMUNE >= GEN_4
|
2020-12-06 04:14:02 +01:00
|
|
|
orhalfword gMoveResultFlags, MOVE_RESULT_MISSED | MOVE_RESULT_DOESNT_AFFECT_FOE
|
2020-12-07 07:30:31 +01:00
|
|
|
.else
|
2018-07-21 15:11:13 +02:00
|
|
|
orhalfword gMoveResultFlags, MOVE_RESULT_MISSED
|
2020-12-07 07:30:31 +01:00
|
|
|
.endif
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectMist::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
setmist
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gMistUsedStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2018-07-14 22:56:03 +02:00
|
|
|
BattleScript_EffectFocusEnergy:
|
2017-11-25 18:42:31 +01:00
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus2 BS_ATTACKER, STATUS2_FOCUS_ENERGY, BattleScript_ButItFailed
|
2017-11-25 18:42:31 +01:00
|
|
|
setfocusenergy
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gFocusEnergyUsedStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2018-07-14 22:56:03 +02:00
|
|
|
BattleScript_EffectConfuse:
|
2017-11-25 18:42:31 +01:00
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifability BS_TARGET, ABILITY_OWN_TEMPO, BattleScript_OwnTempoPrevents
|
2018-08-02 20:24:18 +02:00
|
|
|
jumpifsubstituteblocks BattleScript_ButItFailed
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus2 BS_TARGET, STATUS2_CONFUSION, BattleScript_AlreadyConfused
|
2017-11-25 18:42:31 +01:00
|
|
|
accuracycheck BattleScript_ButItFailed, ACC_CURR_MOVE
|
2020-04-23 11:29:19 +02:00
|
|
|
jumpifsafeguard BattleScript_SafeguardProtected
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_CONFUSION
|
2017-11-25 18:42:31 +01:00
|
|
|
seteffectprimary
|
|
|
|
resultmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2017-11-26 13:26:58 +01:00
|
|
|
BattleScript_AlreadyConfused::
|
2018-11-11 18:33:16 +01:00
|
|
|
setalreadystatusedmoveattempt BS_ATTACKER
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNALREADYCONFUSED
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectAttackUp2::
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_ATK, 2, FALSE
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectStatUp
|
|
|
|
|
|
|
|
BattleScript_EffectDefenseUp2::
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_DEF, 2, FALSE
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectStatUp
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-09-22 12:20:33 +02:00
|
|
|
BattleScript_EffectDefenseUp3:
|
|
|
|
setstatchanger STAT_DEF, 3, FALSE
|
|
|
|
goto BattleScript_EffectStatUp
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_EffectSpeedUp2::
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_SPEED, 2, FALSE
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectStatUp
|
|
|
|
|
|
|
|
BattleScript_EffectSpecialAttackUp2::
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_SPATK, 2, FALSE
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectStatUp
|
|
|
|
|
2019-03-31 17:23:41 +02:00
|
|
|
BattleScript_EffectSpecialAttackUp3::
|
|
|
|
setstatchanger STAT_SPATK, 3, FALSE
|
|
|
|
goto BattleScript_EffectStatUp
|
|
|
|
|
2017-11-25 18:42:31 +01:00
|
|
|
BattleScript_EffectSpecialDefenseUp2::
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_SPDEF, 2, FALSE
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectStatUp
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-21 21:58:07 +02:00
|
|
|
BattleScript_EffectAccuracyUp2:
|
|
|
|
setstatchanger STAT_ACC, 2, FALSE
|
|
|
|
goto BattleScript_EffectStatUp
|
|
|
|
|
|
|
|
BattleScript_EffectEvasionUp2:
|
|
|
|
setstatchanger STAT_EVASION, 2, FALSE
|
|
|
|
goto BattleScript_EffectStatUp
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_EffectTransform::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
transformdataexecution
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gTransformUsedStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2018-07-21 21:58:07 +02:00
|
|
|
BattleScript_EffectAttackDown2:
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_ATK, 2, TRUE
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectStatDown
|
|
|
|
|
2018-07-21 21:58:07 +02:00
|
|
|
BattleScript_EffectDefenseDown2:
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_DEF, 2, TRUE
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectStatDown
|
|
|
|
|
2018-07-21 21:58:07 +02:00
|
|
|
BattleScript_EffectSpeedDown2:
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_SPEED, 2, TRUE
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectStatDown
|
|
|
|
|
2018-07-21 21:58:07 +02:00
|
|
|
BattleScript_EffectSpecialDefenseDown2:
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_SPDEF, 2, TRUE
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectStatDown
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-21 21:58:07 +02:00
|
|
|
BattleScript_EffectSpecialAttackDown2:
|
|
|
|
setstatchanger STAT_SPATK, 2, TRUE
|
|
|
|
goto BattleScript_EffectStatDown
|
|
|
|
|
|
|
|
BattleScript_EffectAccuracyDown2:
|
|
|
|
setstatchanger STAT_ACC, 2, TRUE
|
|
|
|
goto BattleScript_EffectStatDown
|
|
|
|
|
|
|
|
BattleScript_EffectEvasionDown2:
|
|
|
|
setstatchanger STAT_EVASION, 2, TRUE
|
|
|
|
goto BattleScript_EffectStatDown
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_EffectReflect::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
setreflect
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_PrintReflectLightScreenSafeguardString::
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gReflectLightScreenSafeguardStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectPoison::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifability BS_TARGET, ABILITY_IMMUNITY, BattleScript_ImmunityProtected
|
2019-12-31 16:36:53 +01:00
|
|
|
jumpifability BS_TARGET, ABILITY_COMATOSE, BattleScript_LeafGuardProtects
|
2019-03-31 21:38:58 +02:00
|
|
|
jumpifflowerveil BattleScript_FlowerVeilProtects
|
2019-12-18 22:03:01 +01:00
|
|
|
jumpifleafguard BattleScript_LeafGuardProtects
|
2020-04-19 21:18:39 +02:00
|
|
|
jumpifshieldsdown BS_TARGET, BattleScript_LeafGuardProtects
|
2018-08-02 20:24:18 +02:00
|
|
|
jumpifsubstituteblocks BattleScript_ButItFailed
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus BS_TARGET, STATUS1_POISON, BattleScript_AlreadyPoisoned
|
|
|
|
jumpifstatus BS_TARGET, STATUS1_TOXIC_POISON, BattleScript_AlreadyPoisoned
|
2020-04-21 15:59:19 +02:00
|
|
|
trypoisontype BS_ATTACKER, BS_TARGET, BattleScript_NotAffected
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus BS_TARGET, STATUS1_ANY, BattleScript_ButItFailed
|
2017-11-25 18:42:31 +01:00
|
|
|
accuracycheck BattleScript_ButItFailed, ACC_CURR_MOVE
|
2020-04-23 11:29:19 +02:00
|
|
|
jumpifsafeguard BattleScript_SafeguardProtected
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_POISON
|
2017-11-25 18:42:31 +01:00
|
|
|
seteffectprimary
|
|
|
|
resultmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2018-08-11 12:16:00 +02:00
|
|
|
BattleScript_EffectParalyze:
|
2017-11-25 18:42:31 +01:00
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifability BS_TARGET, ABILITY_LIMBER, BattleScript_LimberProtected
|
2019-12-31 16:36:53 +01:00
|
|
|
jumpifability BS_TARGET, ABILITY_COMATOSE, BattleScript_LeafGuardProtects
|
2019-03-31 21:38:58 +02:00
|
|
|
jumpifflowerveil BattleScript_FlowerVeilProtects
|
2019-12-18 22:03:01 +01:00
|
|
|
jumpifleafguard BattleScript_LeafGuardProtects
|
2020-04-19 21:18:39 +02:00
|
|
|
jumpifshieldsdown BS_TARGET, BattleScript_LeafGuardProtects
|
2018-08-02 20:24:18 +02:00
|
|
|
jumpifsubstituteblocks BattleScript_ButItFailed
|
2017-11-25 18:42:31 +01:00
|
|
|
typecalc
|
2017-12-02 00:03:46 +01:00
|
|
|
jumpifmovehadnoeffect BattleScript_ButItFailed
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus BS_TARGET, STATUS1_PARALYSIS, BattleScript_AlreadyParalyzed
|
2020-05-28 10:38:27 +02:00
|
|
|
tryparalyzetype BS_ATTACKER, BS_TARGET, BattleScript_NotAffected
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus BS_TARGET, STATUS1_ANY, BattleScript_ButItFailed
|
2017-11-25 18:42:31 +01:00
|
|
|
accuracycheck BattleScript_ButItFailed, ACC_CURR_MOVE
|
2020-04-23 11:29:19 +02:00
|
|
|
jumpifsafeguard BattleScript_SafeguardProtected
|
2018-08-11 12:16:00 +02:00
|
|
|
bichalfword gMoveResultFlags, MOVE_RESULT_SUPER_EFFECTIVE | MOVE_RESULT_NOT_VERY_EFFECTIVE
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_PARALYSIS
|
2017-11-25 18:42:31 +01:00
|
|
|
seteffectprimary
|
|
|
|
resultmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2018-08-11 12:16:00 +02:00
|
|
|
BattleScript_AlreadyParalyzed:
|
2018-11-11 18:33:16 +01:00
|
|
|
setalreadystatusedmoveattempt BS_ATTACKER
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNISALREADYPARALYZED
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2017-11-26 01:19:57 +01:00
|
|
|
BattleScript_LimberProtected::
|
2018-02-08 11:17:41 +01:00
|
|
|
copybyte gEffectBattler, gBattlerTarget
|
2021-04-02 08:27:12 +02:00
|
|
|
setbyte cMULTISTRING_CHOOSER, B_MSG_ABILITY_PREVENTS_MOVE_STATUS
|
2017-11-25 18:42:31 +01:00
|
|
|
call BattleScript_PRLZPrevention
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectAttackDownHit::
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_ATK_MINUS_1
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_EffectDefenseDownHit::
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_DEF_MINUS_1
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_EffectSpeedDownHit::
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_SPD_MINUS_1
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_EffectSpecialAttackDownHit::
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_SP_ATK_MINUS_1
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_EffectSpecialDefenseDownHit::
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_SP_DEF_MINUS_1
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-08-04 22:23:07 +02:00
|
|
|
BattleScript_EffectSpecialDefenseDownHit2::
|
|
|
|
setmoveeffect MOVE_EFFECT_SP_DEF_MINUS_2
|
|
|
|
goto BattleScript_EffectHit
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_EffectAccuracyDownHit::
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_ACC_MINUS_1
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
2020-04-22 10:44:19 +02:00
|
|
|
|
|
|
|
BattleScript_PowerHerbActivation:
|
|
|
|
playanimation BS_ATTACKER, B_ANIM_HELD_ITEM_EFFECT, NULL
|
|
|
|
printstring STRINGID_POWERHERB
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-04-22 10:44:19 +02:00
|
|
|
removeitem BS_ATTACKER
|
|
|
|
return
|
2017-11-25 18:42:31 +01:00
|
|
|
|
2018-09-30 14:04:46 +02:00
|
|
|
BattleScript_EffectTwoTurnsAttack::
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus2 BS_ATTACKER, STATUS2_MULTIPLETURNS, BattleScript_TwoTurnMovesSecondTurn
|
|
|
|
jumpifword CMP_COMMON_BITS, gHitMarker, HITMARKER_NO_ATTACKSTRING, BattleScript_TwoTurnMovesSecondTurn
|
2018-09-30 14:04:46 +02:00
|
|
|
jumpifmove MOVE_SKY_ATTACK, BattleScript_EffectTwoTurnsAttackSkyAttack
|
|
|
|
jumpifmove MOVE_RAZOR_WIND, BattleScript_EffectTwoTurnsAttackRazorWind
|
|
|
|
jumpifmove MOVE_ICE_BURN, BattleScript_EffectTwoTurnsAttackIceBurn
|
|
|
|
jumpifmove MOVE_FREEZE_SHOCK, BattleScript_EffectTwoTurnsAttackFreezeShock
|
2021-04-28 03:36:37 +02:00
|
|
|
setbyte sTWOTURN_STRINGID, B_MSG_TURN1_RAZOR_WIND
|
2018-09-30 14:04:46 +02:00
|
|
|
BattleScript_EffectTwoTurnsAttackContinue:
|
2017-11-26 00:33:40 +01:00
|
|
|
call BattleScriptFirstChargingTurn
|
2020-04-22 10:44:19 +02:00
|
|
|
jumpifnoholdeffect BS_ATTACKER, HOLD_EFFECT_POWER_HERB, BattleScript_MoveEnd
|
|
|
|
call BattleScript_PowerHerbActivation
|
|
|
|
goto BattleScript_TwoTurnMovesSecondTurn
|
2018-09-30 14:04:46 +02:00
|
|
|
BattleScript_EffectTwoTurnsAttackSkyAttack:
|
2021-04-02 08:27:12 +02:00
|
|
|
setbyte sTWOTURN_STRINGID, B_MSG_TURN1_SKY_ATTACK
|
2018-09-30 14:04:46 +02:00
|
|
|
goto BattleScript_EffectTwoTurnsAttackContinue
|
|
|
|
BattleScript_EffectTwoTurnsAttackRazorWind:
|
2021-04-28 03:36:37 +02:00
|
|
|
setbyte sTWOTURN_STRINGID, B_MSG_TURN1_RAZOR_WIND
|
2018-09-30 14:04:46 +02:00
|
|
|
goto BattleScript_EffectTwoTurnsAttackContinue
|
|
|
|
BattleScript_EffectTwoTurnsAttackIceBurn:
|
2021-04-28 03:36:37 +02:00
|
|
|
setbyte sTWOTURN_STRINGID, B_MSG_TURN1_RAZOR_WIND
|
2018-09-30 14:04:46 +02:00
|
|
|
goto BattleScript_EffectTwoTurnsAttackContinue
|
|
|
|
BattleScript_EffectTwoTurnsAttackFreezeShock:
|
2021-04-28 03:36:37 +02:00
|
|
|
setbyte sTWOTURN_STRINGID, B_MSG_TURN1_FREEZE_SHOCK
|
2020-04-20 19:02:03 +02:00
|
|
|
goto BattleScript_EffectTwoTurnsAttackContinue
|
|
|
|
|
|
|
|
BattleScript_EffectGeomancy:
|
|
|
|
jumpifstatus2 BS_ATTACKER, STATUS2_MULTIPLETURNS, BattleScript_GeomancySecondTurn
|
|
|
|
jumpifword CMP_COMMON_BITS, gHitMarker, HITMARKER_NO_ATTACKSTRING, BattleScript_GeomancySecondTurn
|
2021-04-28 03:36:37 +02:00
|
|
|
setbyte sTWOTURN_STRINGID, B_MSG_TURN1_GEOMANCY
|
2020-04-20 19:02:03 +02:00
|
|
|
call BattleScriptFirstChargingTurn
|
2020-04-22 10:44:19 +02:00
|
|
|
jumpifnoholdeffect BS_ATTACKER, HOLD_EFFECT_POWER_HERB, BattleScript_MoveEnd
|
|
|
|
call BattleScript_PowerHerbActivation
|
2020-04-20 19:02:03 +02:00
|
|
|
BattleScript_GeomancySecondTurn:
|
|
|
|
attackcanceler
|
|
|
|
setmoveeffect MOVE_EFFECT_CHARGING
|
2021-04-28 03:36:37 +02:00
|
|
|
setbyte sB_ANIM_TURN, 1
|
2020-04-20 19:02:03 +02:00
|
|
|
clearstatusfromeffect BS_ATTACKER
|
|
|
|
orword gHitMarker, HITMARKER_NO_PPDEDUCT
|
|
|
|
attackstring
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifstat BS_ATTACKER, CMP_LESS_THAN, STAT_SPATK, MAX_STAT_STAGE, BattleScript_GeomancyDoMoveAnim
|
|
|
|
jumpifstat BS_ATTACKER, CMP_LESS_THAN, STAT_SPDEF, MAX_STAT_STAGE, BattleScript_GeomancyDoMoveAnim
|
|
|
|
jumpifstat BS_ATTACKER, CMP_EQUAL, STAT_SPEED, MAX_STAT_STAGE, BattleScript_CantRaiseMultipleStats
|
2020-04-20 19:02:03 +02:00
|
|
|
BattleScript_GeomancyDoMoveAnim::
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
setbyte sSTAT_ANIM_PLAYED, FALSE
|
2021-04-28 03:36:37 +02:00
|
|
|
playstatchangeanimation BS_ATTACKER, BIT_SPATK | BIT_SPDEF | BIT_SPEED, 0
|
2020-04-20 19:02:03 +02:00
|
|
|
setstatchanger STAT_SPATK, 2, FALSE
|
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_GeomancyTrySpDef
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_GeomancyTrySpDef
|
2020-04-20 19:02:03 +02:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-04-20 19:02:03 +02:00
|
|
|
BattleScript_GeomancyTrySpDef::
|
|
|
|
setstatchanger STAT_SPDEF, 2, FALSE
|
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_GeomancyTrySpeed
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_GeomancyTrySpeed
|
2020-04-20 19:02:03 +02:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-04-20 19:02:03 +02:00
|
|
|
BattleScript_GeomancyTrySpeed::
|
|
|
|
setstatchanger STAT_SPEED, 2, FALSE
|
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_GeomancyEnd
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_GeomancyEnd
|
2020-04-20 19:02:03 +02:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-04-20 19:02:03 +02:00
|
|
|
BattleScript_GeomancyEnd::
|
|
|
|
goto BattleScript_MoveEnd
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_EffectConfuseHit::
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_CONFUSION
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_EffectTwineedle::
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
2019-02-14 13:17:27 +01:00
|
|
|
sethword sMULTIHIT_EFFECT, MOVE_EFFECT_POISON
|
2017-11-25 18:42:31 +01:00
|
|
|
attackstring
|
|
|
|
ppreduce
|
2021-04-03 18:38:07 +02:00
|
|
|
setmultihitcounter 2
|
2017-11-25 18:42:31 +01:00
|
|
|
initmultihitstring
|
2017-12-02 23:31:58 +01:00
|
|
|
goto BattleScript_MultiHitLoop
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_EffectSubstitute::
|
|
|
|
attackcanceler
|
|
|
|
ppreduce
|
|
|
|
attackstring
|
|
|
|
waitstate
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus2 BS_ATTACKER, STATUS2_SUBSTITUTE, BattleScript_AlreadyHasSubstitute
|
2017-11-25 18:42:31 +01:00
|
|
|
setsubstitute
|
2021-04-02 08:27:12 +02:00
|
|
|
jumpifbyte CMP_NOT_EQUAL, cMULTISTRING_CHOOSER, B_MSG_SUBSTITUTE_FAILED, BattleScript_SubstituteAnim
|
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-26 17:15:28 +01:00
|
|
|
goto BattleScript_SubstituteString
|
|
|
|
BattleScript_SubstituteAnim::
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_ATTACKER
|
|
|
|
datahpupdate BS_ATTACKER
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_SubstituteString::
|
2021-05-07 02:49:04 +02:00
|
|
|
printfromtable gSubstituteUsedStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_AlreadyHasSubstitute::
|
2018-11-11 18:33:16 +01:00
|
|
|
setalreadystatusedmoveattempt BS_ATTACKER
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNHASSUBSTITUTE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectRecharge::
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_RECHARGE | MOVE_EFFECT_AFFECTS_USER | MOVE_EFFECT_CERTAIN
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_HitFromAtkString
|
|
|
|
|
|
|
|
BattleScript_MoveUsedMustRecharge::
|
|
|
|
printstring STRINGID_PKMNMUSTRECHARGE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectRage::
|
|
|
|
attackcanceler
|
2017-11-26 01:19:57 +01:00
|
|
|
accuracycheck BattleScript_RageMiss, ACC_CURR_MOVE
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_RAGE
|
2017-11-25 18:42:31 +01:00
|
|
|
seteffectprimary
|
|
|
|
setmoveeffect 0
|
|
|
|
goto BattleScript_HitFromAtkString
|
2017-11-26 01:19:57 +01:00
|
|
|
BattleScript_RageMiss::
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_RAGE
|
2018-02-08 11:17:41 +01:00
|
|
|
clearstatusfromeffect BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_PrintMoveMissed
|
|
|
|
|
|
|
|
BattleScript_EffectMimic::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-08-02 20:24:18 +02:00
|
|
|
jumpifsubstituteblocks BattleScript_ButItFailed
|
2017-11-25 18:42:31 +01:00
|
|
|
accuracycheck BattleScript_ButItFailed, NO_ACC_CALC_CHECK_LOCK_ON
|
|
|
|
mimicattackcopy BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNLEARNEDMOVE2
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectMetronome::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2021-04-03 18:38:07 +02:00
|
|
|
setbyte sB_ANIM_TURN, 0
|
|
|
|
setbyte sB_ANIM_TARGETS_HIT, 0
|
2017-11-25 18:42:31 +01:00
|
|
|
metronome
|
2017-11-26 01:19:57 +01:00
|
|
|
|
2017-11-25 18:42:31 +01:00
|
|
|
BattleScript_EffectLeechSeed::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-25 18:42:31 +01:00
|
|
|
ppreduce
|
2018-08-02 20:24:18 +02:00
|
|
|
jumpifsubstituteblocks BattleScript_ButItFailed
|
2017-11-26 17:15:28 +01:00
|
|
|
accuracycheck BattleScript_DoLeechSeed, ACC_CURR_MOVE
|
|
|
|
BattleScript_DoLeechSeed::
|
2017-11-25 18:42:31 +01:00
|
|
|
setseeded
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gLeechSeedStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2019-04-03 21:33:37 +02:00
|
|
|
BattleScript_EffectDoNothing::
|
2017-11-25 18:42:31 +01:00
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2019-04-03 21:33:37 +02:00
|
|
|
jumpifmove MOVE_HOLD_HANDS, BattleScript_EffectHoldHands
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2019-04-03 21:33:37 +02:00
|
|
|
jumpifmove MOVE_CELEBRATE, BattleScript_EffectCelebrate
|
|
|
|
jumpifmove MOVE_HAPPY_HOUR, BattleScript_EffectHappyHour
|
2018-10-06 09:37:52 +02:00
|
|
|
incrementgamestat GAME_STAT_USED_SPLASH
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_BUTNOTHINGHAPPENED
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
2019-04-03 21:33:37 +02:00
|
|
|
BattleScript_EffectHoldHands:
|
|
|
|
jumpifsideaffecting BS_TARGET, SIDE_STATUS_CRAFTY_SHIELD, BattleScript_ButItFailed
|
2019-04-06 23:23:34 +02:00
|
|
|
jumpifbyteequal gBattlerTarget, gBattlerAttacker, BattleScript_ButItFailed
|
2019-04-03 21:33:37 +02:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
BattleScript_EffectCelebrate:
|
|
|
|
printstring STRINGID_CELEBRATEMESSAGE
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-04-03 21:33:37 +02:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
BattleScript_EffectHappyHour:
|
|
|
|
setmoveeffect MOVE_EFFECT_HAPPY_HOUR
|
|
|
|
seteffectprimary
|
|
|
|
goto BattleScript_MoveEnd
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_EffectDisable::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2019-04-01 11:42:37 +02:00
|
|
|
jumpifability BS_TARGET_SIDE, ABILITY_AROMA_VEIL, BattleScript_AromaVeilProtects
|
2017-11-25 18:42:31 +01:00
|
|
|
accuracycheck BattleScript_ButItFailed, ACC_CURR_MOVE
|
|
|
|
disablelastusedattack BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNMOVEWASDISABLED
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectLevelDamage::
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
typecalc
|
2018-07-21 15:11:13 +02:00
|
|
|
bichalfword gMoveResultFlags, MOVE_RESULT_SUPER_EFFECTIVE | MOVE_RESULT_NOT_VERY_EFFECTIVE
|
2017-11-25 18:42:31 +01:00
|
|
|
dmgtolevel
|
2018-07-14 22:56:03 +02:00
|
|
|
adjustdamage
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_HitFromAtkAnimation
|
|
|
|
|
|
|
|
BattleScript_EffectPsywave::
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
typecalc
|
2018-07-21 15:11:13 +02:00
|
|
|
bichalfword gMoveResultFlags, MOVE_RESULT_SUPER_EFFECTIVE | MOVE_RESULT_NOT_VERY_EFFECTIVE
|
2017-11-25 18:42:31 +01:00
|
|
|
psywavedamageeffect
|
2018-07-14 22:56:03 +02:00
|
|
|
adjustdamage
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_HitFromAtkAnimation
|
|
|
|
|
|
|
|
BattleScript_EffectCounter::
|
|
|
|
attackcanceler
|
|
|
|
counterdamagecalculator BattleScript_ButItFailedAtkStringPpReduce
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-07-28 10:58:47 +02:00
|
|
|
typecalc
|
|
|
|
bichalfword gMoveResultFlags, MOVE_RESULT_NOT_VERY_EFFECTIVE | MOVE_RESULT_SUPER_EFFECTIVE
|
2018-07-14 22:56:03 +02:00
|
|
|
adjustdamage
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_HitFromAtkAnimation
|
|
|
|
|
|
|
|
BattleScript_EffectEncore::
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2019-04-01 11:42:37 +02:00
|
|
|
jumpifability BS_TARGET_SIDE, ABILITY_AROMA_VEIL, BattleScript_AromaVeilProtects
|
2017-11-25 18:42:31 +01:00
|
|
|
trysetencore BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNGOTENCORE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectPainSplit::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
accuracycheck BattleScript_ButItFailed, NO_ACC_CALC_CHECK_LOCK_ON
|
|
|
|
painsplitdmgcalc BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_ATTACKER
|
|
|
|
datahpupdate BS_ATTACKER
|
2017-11-25 21:32:17 +01:00
|
|
|
copyword gBattleMoveDamage, sPAINSPLIT_HP
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_TARGET
|
|
|
|
datahpupdate BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_SHAREDPAIN
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectSnore::
|
|
|
|
attackcanceler
|
2019-12-31 16:36:53 +01:00
|
|
|
jumpifability BS_ATTACKER, ABILITY_COMATOSE, BattleScript_SnoreIsAsleep
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus BS_ATTACKER, STATUS1_SLEEP, BattleScript_SnoreIsAsleep
|
2017-11-25 18:42:31 +01:00
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
goto BattleScript_ButItFailed
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_SnoreIsAsleep::
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifhalfword CMP_EQUAL, gChosenMove, MOVE_SLEEP_TALK, BattleScript_DoSnore
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNFASTASLEEP
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
statusanimation BS_ATTACKER
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_DoSnore::
|
2017-11-25 18:42:31 +01:00
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
accuracycheck BattleScript_MoveMissedPause, ACC_CURR_MOVE
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_FLINCH
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_HitFromCritCalc
|
|
|
|
|
|
|
|
BattleScript_EffectConversion2::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
settypetorandomresistance BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNCHANGEDTYPE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectLockOn::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-08-02 20:24:18 +02:00
|
|
|
jumpifsubstituteblocks BattleScript_ButItFailed
|
2017-11-25 18:42:31 +01:00
|
|
|
accuracycheck BattleScript_ButItFailed, ACC_CURR_MOVE
|
|
|
|
setalwayshitflag
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNTOOKAIM
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectSketch::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
copymovepermanently BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNSKETCHEDMOVE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectSleepTalk::
|
|
|
|
attackcanceler
|
2019-12-31 16:36:53 +01:00
|
|
|
jumpifability BS_ATTACKER, ABILITY_COMATOSE, BattleScript_SleepTalkIsAsleep
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus BS_ATTACKER, STATUS1_SLEEP, BattleScript_SleepTalkIsAsleep
|
2017-11-25 18:42:31 +01:00
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
goto BattleScript_ButItFailed
|
2017-11-26 01:19:57 +01:00
|
|
|
BattleScript_SleepTalkIsAsleep::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNFASTASLEEP
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
statusanimation BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
orword gHitMarker, HITMARKER_NO_PPDEDUCT
|
2017-11-26 01:19:57 +01:00
|
|
|
trychoosesleeptalkmove BattleScript_SleepTalkUsingMove
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_ButItFailed
|
2017-11-26 01:19:57 +01:00
|
|
|
BattleScript_SleepTalkUsingMove::
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2021-04-03 18:38:07 +02:00
|
|
|
setbyte sB_ANIM_TURN, 0
|
|
|
|
setbyte sB_ANIM_TARGETS_HIT, 0
|
2018-09-22 19:08:41 +02:00
|
|
|
jumptocalledmove TRUE
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_EffectDestinyBond::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
setdestinybond
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNTRYINGTOTAKEFOE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectSpite::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
accuracycheck BattleScript_ButItFailed, ACC_CURR_MOVE
|
|
|
|
tryspiteppreduce BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNREDUCEDPP
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectHealBell::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
healpartystatus
|
|
|
|
waitstate
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gPartyStatusHealStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-26 17:15:28 +01:00
|
|
|
jumpifnotmove MOVE_HEAL_BELL, BattleScript_PartyHealEnd
|
2021-04-02 08:27:12 +02:00
|
|
|
jumpifbyte CMP_NO_COMMON_BITS, cMULTISTRING_CHOOSER, B_MSG_BELL_SOUNDPROOF_ATTACKER, BattleScript_CheckHealBellMon2Unaffected
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSXBLOCKSY
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_CheckHealBellMon2Unaffected::
|
2021-04-02 08:27:12 +02:00
|
|
|
jumpifbyte CMP_NO_COMMON_BITS, cMULTISTRING_CHOOSER, B_MSG_BELL_SOUNDPROOF_PARTNER, BattleScript_PartyHealEnd
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSXBLOCKSY2
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_PartyHealEnd::
|
2018-02-08 11:17:41 +01:00
|
|
|
updatestatusicon BS_ATTACKER_WITH_PARTNER
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectTripleKick::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2021-04-03 18:38:07 +02:00
|
|
|
sethword sTRIPLE_KICK_POWER, 0
|
2017-11-25 18:42:31 +01:00
|
|
|
initmultihitstring
|
2021-04-03 18:38:07 +02:00
|
|
|
setmultihit 3
|
2017-11-26 13:26:58 +01:00
|
|
|
BattleScript_TripleKickLoop::
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifhasnohp BS_ATTACKER, BattleScript_TripleKickEnd
|
|
|
|
jumpifhasnohp BS_TARGET, BattleScript_TripleKickNoMoreHits
|
|
|
|
jumpifhalfword CMP_EQUAL, gChosenMove, MOVE_SLEEP_TALK, BattleScript_DoTripleKickAttack
|
|
|
|
jumpifstatus BS_ATTACKER, STATUS1_SLEEP, BattleScript_TripleKickNoMoreHits
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_DoTripleKickAttack::
|
2017-11-26 13:26:58 +01:00
|
|
|
accuracycheck BattleScript_TripleKickNoMoreHits, ACC_CURR_MOVE
|
2017-11-25 18:42:31 +01:00
|
|
|
movevaluescleanup
|
2017-11-26 13:26:58 +01:00
|
|
|
addbyte sTRIPLE_KICK_POWER, 10
|
2021-04-03 18:38:07 +02:00
|
|
|
addbyte sMULTIHIT_STRING + 4, 1
|
2017-11-25 18:42:31 +01:00
|
|
|
critcalc
|
|
|
|
damagecalc
|
2018-07-14 22:56:03 +02:00
|
|
|
adjustdamage
|
2017-12-02 00:03:46 +01:00
|
|
|
jumpifmovehadnoeffect BattleScript_TripleKickNoMoreHits
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
effectivenesssound
|
2018-02-08 11:17:41 +01:00
|
|
|
hitanimation BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_TARGET
|
|
|
|
datahpupdate BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
critmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_EMPTYSTRING3
|
2021-04-02 08:16:01 +02:00
|
|
|
waitmessage 1
|
2019-08-23 14:46:21 +02:00
|
|
|
moveendto MOVEEND_NEXT_TARGET
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_COMMON_BITS, gMoveResultFlags, MOVE_RESULT_FOE_ENDURED, BattleScript_TripleKickPrintStrings
|
2017-11-26 13:26:58 +01:00
|
|
|
decrementmultihit BattleScript_TripleKickLoop
|
|
|
|
goto BattleScript_TripleKickPrintStrings
|
|
|
|
BattleScript_TripleKickNoMoreHits::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2021-04-03 18:38:07 +02:00
|
|
|
jumpifbyte CMP_EQUAL, sMULTIHIT_STRING + 4, 0, BattleScript_TripleKickPrintStrings
|
2018-07-21 15:11:13 +02:00
|
|
|
bichalfword gMoveResultFlags, MOVE_RESULT_MISSED
|
2017-11-26 13:26:58 +01:00
|
|
|
BattleScript_TripleKickPrintStrings::
|
2017-11-25 18:42:31 +01:00
|
|
|
resultmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2021-04-03 18:38:07 +02:00
|
|
|
jumpifbyte CMP_EQUAL, sMULTIHIT_STRING + 4, 0, BattleScript_TripleKickEnd
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_COMMON_BITS, gMoveResultFlags, MOVE_RESULT_DOESNT_AFFECT_FOE, BattleScript_TripleKickEnd
|
2021-04-03 18:38:07 +02:00
|
|
|
copyarray gBattleTextBuff1, sMULTIHIT_STRING, 6
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_HITXTIMES
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-26 13:26:58 +01:00
|
|
|
BattleScript_TripleKickEnd::
|
2017-11-25 18:42:31 +01:00
|
|
|
seteffectwithchance
|
2018-02-08 11:17:41 +01:00
|
|
|
tryfaintmon BS_TARGET, FALSE, NULL
|
2019-08-23 14:46:21 +02:00
|
|
|
moveendfrom MOVEEND_UPDATE_LAST_MOVES
|
2017-11-25 18:42:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
BattleScript_EffectThief::
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_STEAL_ITEM
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-10-06 15:50:35 +02:00
|
|
|
BattleScript_EffectHitPreventEscape:
|
|
|
|
setmoveeffect MOVE_EFFECT_PREVENT_ESCAPE
|
|
|
|
goto BattleScript_EffectHit
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_EffectMeanLook::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-07-30 20:41:16 +02:00
|
|
|
accuracycheck BattleScript_ButItFailed, NO_ACC_CALC_CHECK_LOCK_ON
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus2 BS_TARGET, STATUS2_ESCAPE_PREVENTION, BattleScript_ButItFailed
|
2018-08-02 20:24:18 +02:00
|
|
|
jumpifsubstituteblocks BattleScript_ButItFailed
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_PREVENT_ESCAPE
|
2017-11-25 18:42:31 +01:00
|
|
|
seteffectprimary
|
|
|
|
printstring STRINGID_TARGETCANTESCAPENOW
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectNightmare::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-08-02 20:24:18 +02:00
|
|
|
jumpifsubstituteblocks BattleScript_ButItFailed
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus2 BS_TARGET, STATUS2_NIGHTMARE, BattleScript_ButItFailed
|
|
|
|
jumpifstatus BS_TARGET, STATUS1_SLEEP, BattleScript_NightmareWorked
|
2019-12-31 16:36:53 +01:00
|
|
|
jumpifability BS_TARGET, ABILITY_COMATOSE, BattleScript_NightmareWorked
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_ButItFailed
|
|
|
|
BattleScript_NightmareWorked::
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_NIGHTMARE
|
2017-11-25 18:42:31 +01:00
|
|
|
seteffectprimary
|
|
|
|
printstring STRINGID_PKMNFELLINTONIGHTMARE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectMinimize::
|
|
|
|
attackcanceler
|
|
|
|
setminimize
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_EVASION, 1, FALSE
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectStatUpAfterAtkCanceler
|
|
|
|
|
|
|
|
BattleScript_EffectCurse::
|
2018-07-14 12:02:29 +02:00
|
|
|
jumpiftype BS_ATTACKER, TYPE_GHOST, BattleScript_GhostCurse
|
2017-11-25 18:42:31 +01:00
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2020-08-05 02:33:05 +02:00
|
|
|
jumpifstat BS_ATTACKER, CMP_GREATER_THAN, STAT_SPEED, MIN_STAT_STAGE, BattleScript_CurseTrySpeed
|
|
|
|
jumpifstat BS_ATTACKER, CMP_NOT_EQUAL, STAT_ATK, MAX_STAT_STAGE, BattleScript_CurseTrySpeed
|
|
|
|
jumpifstat BS_ATTACKER, CMP_EQUAL, STAT_DEF, MAX_STAT_STAGE, BattleScript_ButItFailed
|
2017-11-26 01:19:57 +01:00
|
|
|
BattleScript_CurseTrySpeed::
|
2018-02-06 23:09:39 +01:00
|
|
|
copybyte gBattlerTarget, gBattlerAttacker
|
2021-04-03 18:38:07 +02:00
|
|
|
setbyte sB_ANIM_TURN, 1
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_SPEED, 1, TRUE
|
2019-09-27 08:46:33 +02:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_CurseTryAttack
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatDownStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-26 01:19:57 +01:00
|
|
|
BattleScript_CurseTryAttack::
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_ATK, 1, FALSE
|
2021-04-02 08:27:12 +02:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_CurseTryDefense
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
|
|
|
BattleScript_CurseTryDefense::
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_DEF, 1, FALSE
|
2019-09-27 08:46:33 +02:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_CurseEnd
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-26 01:19:57 +01:00
|
|
|
BattleScript_CurseEnd::
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
2017-11-26 01:19:57 +01:00
|
|
|
BattleScript_GhostCurse::
|
2018-02-06 23:09:39 +01:00
|
|
|
jumpifbytenotequal gBattlerAttacker, gBattlerTarget, BattleScript_DoGhostCurse
|
2018-02-08 11:17:41 +01:00
|
|
|
getmovetarget BS_ATTACKER
|
2017-11-26 01:19:57 +01:00
|
|
|
BattleScript_DoGhostCurse::
|
2017-11-25 18:42:31 +01:00
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
accuracycheck BattleScript_ButItFailed, NO_ACC_CALC_CHECK_LOCK_ON
|
|
|
|
cursetarget BattleScript_ButItFailed
|
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE
|
2021-04-03 18:38:07 +02:00
|
|
|
setbyte sB_ANIM_TURN, 0
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_ATTACKER
|
|
|
|
datahpupdate BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNLAIDCURSE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
tryfaintmon BS_ATTACKER, FALSE, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2019-03-31 18:17:13 +02:00
|
|
|
BattleScript_EffectMatBlock::
|
|
|
|
attackcanceler
|
|
|
|
jumpifnotfirstturn BattleScript_ButItFailedAtkStringPpReduce
|
|
|
|
goto BattleScript_ProtectLikeAtkString
|
|
|
|
|
2017-11-25 18:42:31 +01:00
|
|
|
BattleScript_EffectProtect::
|
2017-11-26 00:33:40 +01:00
|
|
|
BattleScript_EffectEndure::
|
2017-11-25 18:42:31 +01:00
|
|
|
attackcanceler
|
2019-03-31 18:17:13 +02:00
|
|
|
BattleScript_ProtectLikeAtkString:
|
2017-11-25 18:42:31 +01:00
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
setprotectlike
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gProtectLikeUsedStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectSpikes::
|
|
|
|
attackcanceler
|
|
|
|
trysetspikes BattleScript_ButItFailedAtkStringPpReduce
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_SPIKESSCATTERED
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2018-08-11 12:16:00 +02:00
|
|
|
BattleScript_EffectForesight:
|
2017-11-25 18:42:31 +01:00
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-08-11 12:16:00 +02:00
|
|
|
accuracycheck BattleScript_ButItFailed, NO_ACC_CALC_CHECK_LOCK_ON
|
|
|
|
jumpifstatus2 BS_TARGET, STATUS2_FORESIGHT, BattleScript_ButItFailed
|
2017-11-25 18:42:31 +01:00
|
|
|
setforesight
|
2018-07-21 16:34:43 +02:00
|
|
|
BattleScript_IdentifiedFoe:
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNIDENTIFIED
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectPerishSong::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
trysetperishsong BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_FAINTINTHREE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2021-04-03 18:38:07 +02:00
|
|
|
setbyte sBATTLER, 0
|
2017-11-25 18:42:31 +01:00
|
|
|
BattleScript_PerishSongLoop::
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifability BS_SCRIPTING, ABILITY_SOUNDPROOF, BattleScript_PerishSongNotAffected
|
2017-11-25 18:42:31 +01:00
|
|
|
BattleScript_PerishSongLoopIncrement::
|
2021-04-03 18:38:07 +02:00
|
|
|
addbyte sBATTLER, 1
|
2018-10-27 00:04:18 +02:00
|
|
|
jumpifbytenotequal sBATTLER, gBattlersCount, BattleScript_PerishSongLoop
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_PerishSongNotAffected::
|
|
|
|
printstring STRINGID_PKMNSXBLOCKSY2
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_PerishSongLoopIncrement
|
|
|
|
|
|
|
|
BattleScript_EffectSandstorm::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
setsandstorm
|
2017-11-26 17:15:28 +01:00
|
|
|
goto BattleScript_MoveWeatherChange
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_EffectRollout::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus2 BS_ATTACKER, STATUS2_MULTIPLETURNS, BattleScript_RolloutCheckAccuracy
|
2017-11-25 18:42:31 +01:00
|
|
|
ppreduce
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_RolloutCheckAccuracy::
|
|
|
|
accuracycheck BattleScript_RolloutHit, ACC_CURR_MOVE
|
|
|
|
BattleScript_RolloutHit::
|
2018-07-28 10:58:47 +02:00
|
|
|
typecalc
|
2018-07-16 21:42:03 +02:00
|
|
|
handlerollout
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_HitFromCritCalc
|
|
|
|
|
|
|
|
BattleScript_EffectSwagger::
|
|
|
|
attackcanceler
|
2018-08-02 20:24:18 +02:00
|
|
|
jumpifsubstituteblocks BattleScript_MakeMoveMissed
|
2017-11-25 18:42:31 +01:00
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifconfusedandstatmaxed STAT_ATK, BattleScript_ButItFailed
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_ATK, 2, FALSE
|
2019-09-27 08:46:33 +02:00
|
|
|
statbuffchange STAT_BUFF_ALLOW_PTR, BattleScript_SwaggerTryConfuse
|
2021-04-02 08:27:12 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_SwaggerTryConfuse
|
2017-11-25 18:42:31 +01:00
|
|
|
setgraphicalstatchangevalues
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_TARGET, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-16 21:56:11 +02:00
|
|
|
BattleScript_SwaggerTryConfuse:
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifability BS_TARGET, ABILITY_OWN_TEMPO, BattleScript_OwnTempoPrevents
|
2020-04-23 11:29:19 +02:00
|
|
|
jumpifsafeguard BattleScript_SafeguardProtected
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_CONFUSION
|
2017-11-25 18:42:31 +01:00
|
|
|
seteffectprimary
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2018-07-16 21:56:11 +02:00
|
|
|
BattleScript_EffectFuryCutter:
|
2017-11-25 18:42:31 +01:00
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2017-11-26 17:15:28 +01:00
|
|
|
accuracycheck BattleScript_FuryCutterHit, ACC_CURR_MOVE
|
2018-07-16 21:56:11 +02:00
|
|
|
BattleScript_FuryCutterHit:
|
2018-07-16 21:42:03 +02:00
|
|
|
handlefurycutter
|
2017-11-25 18:42:31 +01:00
|
|
|
critcalc
|
|
|
|
damagecalc
|
2017-12-02 00:03:46 +01:00
|
|
|
jumpifmovehadnoeffect BattleScript_FuryCutterHit
|
2018-07-14 22:56:03 +02:00
|
|
|
adjustdamage
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_HitFromAtkAnimation
|
2020-04-22 14:40:44 +02:00
|
|
|
|
|
|
|
BattleScript_TryDestinyKnotTarget:
|
|
|
|
jumpifnoholdeffect BS_ATTACKER, HOLD_EFFECT_DESTINY_KNOT, BattleScript_TryDestinyKnotTargetRet
|
|
|
|
infatuatewithbattler BS_TARGET, BS_ATTACKER
|
|
|
|
playanimation BS_ATTACKER, B_ANIM_HELD_ITEM_EFFECT, NULL
|
|
|
|
waitanimation
|
|
|
|
status2animation BS_TARGET, STATUS2_INFATUATION
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_DESTINYKNOTACTIVATES
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-04-22 14:40:44 +02:00
|
|
|
BattleScript_TryDestinyKnotTargetRet:
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_TryDestinyKnotAttacker:
|
|
|
|
jumpifnoholdeffect BS_TARGET, HOLD_EFFECT_DESTINY_KNOT, BattleScript_TryDestinyKnotAttackerRet
|
|
|
|
infatuatewithbattler BS_ATTACKER, BS_TARGET
|
|
|
|
playanimation BS_TARGET, B_ANIM_HELD_ITEM_EFFECT, NULL
|
|
|
|
waitanimation
|
|
|
|
status2animation BS_ATTACKER, STATUS2_INFATUATION
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_DESTINYKNOTACTIVATES
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-04-22 14:40:44 +02:00
|
|
|
BattleScript_TryDestinyKnotAttackerRet:
|
|
|
|
return
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_EffectAttract::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
accuracycheck BattleScript_ButItFailed, ACC_CURR_MOVE
|
2019-04-01 11:42:37 +02:00
|
|
|
jumpifability BS_TARGET_SIDE, ABILITY_AROMA_VEIL, BattleScript_AromaVeilProtects
|
2017-11-25 18:42:31 +01:00
|
|
|
tryinfatuating BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNFELLINLOVE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-04-22 14:40:44 +02:00
|
|
|
call BattleScript_TryDestinyKnotAttacker
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectPresent::
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
typecalc
|
|
|
|
presentdamagecalculation
|
2017-11-25 21:32:17 +01:00
|
|
|
|
2017-11-25 18:42:31 +01:00
|
|
|
BattleScript_EffectSafeguard::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
setsafeguard
|
2017-11-26 17:15:28 +01:00
|
|
|
goto BattleScript_PrintReflectLightScreenSafeguardString
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_EffectMagnitude::
|
2020-04-11 11:47:13 +02:00
|
|
|
jumpifword CMP_COMMON_BITS, gHitMarker, HITMARKER_NO_ATTACKSTRING | HITMARKER_NO_PPDEDUCT, BattleScript_EffectMagnitudeTarget
|
2017-11-25 18:42:31 +01:00
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
magnitudedamagecalculation
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_MAGNITUDESTRENGTH
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-04-11 11:47:13 +02:00
|
|
|
BattleScript_EffectMagnitudeTarget:
|
|
|
|
accuracycheck BattleScript_MoveMissedPause, ACC_CURR_MOVE
|
|
|
|
goto BattleScript_HitFromCritCalc
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_EffectBatonPass::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2017-12-02 14:08:55 +01:00
|
|
|
jumpifbattletype BATTLE_TYPE_ARENA, BattleScript_ButItFailed
|
2019-09-15 23:58:12 +02:00
|
|
|
jumpifcantswitch SWITCH_IGNORE_ESCAPE_PREVENTION | BS_ATTACKER, BattleScript_ButItFailed
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2018-07-26 20:36:16 +02:00
|
|
|
openpartyscreen BS_ATTACKER, BattleScript_ButItFailed
|
2018-02-08 11:17:41 +01:00
|
|
|
switchoutabilities BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
2021-04-03 18:38:07 +02:00
|
|
|
switchhandleorder BS_ATTACKER, 2
|
2018-02-08 11:17:41 +01:00
|
|
|
returntoball BS_ATTACKER
|
|
|
|
getswitchedmondata BS_ATTACKER
|
|
|
|
switchindataupdate BS_ATTACKER
|
|
|
|
hpthresholds BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_SWITCHINMON
|
2018-02-08 11:17:41 +01:00
|
|
|
switchinanim BS_ATTACKER, TRUE
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
2018-02-08 11:17:41 +01:00
|
|
|
switchineffects BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectRapidSpin::
|
2020-10-15 09:21:40 +02:00
|
|
|
.if B_SPEED_BUFFING_RAPID_SPIN == GEN_8
|
2020-08-20 20:40:11 +02:00
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
critcalc
|
|
|
|
damagecalc
|
|
|
|
adjustdamage
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
effectivenesssound
|
|
|
|
hitanimation BS_TARGET
|
|
|
|
waitstate
|
|
|
|
healthbarupdate BS_TARGET
|
|
|
|
datahpupdate BS_TARGET
|
|
|
|
critmessage
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-08-20 20:40:11 +02:00
|
|
|
resultmessage
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_RAPIDSPIN | MOVE_EFFECT_AFFECTS_USER | MOVE_EFFECT_CERTAIN
|
2020-08-20 20:40:11 +02:00
|
|
|
seteffectwithchance
|
|
|
|
setstatchanger STAT_SPEED, 1, FALSE
|
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_EffectRapidSpinEnd
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_EffectRapidSpinEnd
|
2020-08-20 20:40:11 +02:00
|
|
|
setgraphicalstatchangevalues
|
|
|
|
playanimation BS_ATTACKER, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-08-20 20:40:11 +02:00
|
|
|
BattleScript_EffectRapidSpinEnd::
|
|
|
|
tryfaintmon BS_TARGET, FALSE, NULL
|
|
|
|
moveendall
|
|
|
|
end
|
2020-10-15 09:21:40 +02:00
|
|
|
.else
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_RAPIDSPIN | MOVE_EFFECT_AFFECTS_USER | MOVE_EFFECT_CERTAIN
|
2020-10-15 09:21:40 +02:00
|
|
|
.endif
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_EffectSonicboom::
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
typecalc
|
2018-07-21 15:11:13 +02:00
|
|
|
bichalfword gMoveResultFlags, MOVE_RESULT_SUPER_EFFECTIVE | MOVE_RESULT_NOT_VERY_EFFECTIVE
|
2017-11-25 21:11:20 +01:00
|
|
|
setword gBattleMoveDamage, 20
|
2018-07-14 22:56:03 +02:00
|
|
|
adjustdamage
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_HitFromAtkAnimation
|
|
|
|
|
|
|
|
BattleScript_EffectMorningSun::
|
2017-11-26 00:33:40 +01:00
|
|
|
BattleScript_EffectSynthesis::
|
|
|
|
BattleScript_EffectMoonlight::
|
2020-04-18 18:34:18 +02:00
|
|
|
BattleScript_EffectShoreUp::
|
2017-11-25 18:42:31 +01:00
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
recoverbasedonsunlight BattleScript_AlreadyAtFullHp
|
|
|
|
goto BattleScript_PresentHealTarget
|
|
|
|
|
|
|
|
BattleScript_EffectRainDance::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
setrain
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_MoveWeatherChange::
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gMoveWeatherChangeStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-26 01:19:57 +01:00
|
|
|
call BattleScript_WeatherFormChanges
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectSunnyDay::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
setsunny
|
2017-11-26 17:15:28 +01:00
|
|
|
goto BattleScript_MoveWeatherChange
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_EffectDefenseUpHit::
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_DEF_PLUS_1 | MOVE_EFFECT_AFFECTS_USER
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_EffectAttackUpHit::
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_ATK_PLUS_1 | MOVE_EFFECT_AFFECTS_USER
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_EffectAllStatsUpHit::
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_ALL_STATS_UP | MOVE_EFFECT_AFFECTS_USER
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_EffectBellyDrum::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
maxattackhalvehp BattleScript_ButItFailed
|
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_ATTACKER
|
|
|
|
datahpupdate BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNCUTHPMAXEDATTACK
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectPsychUp::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
copyfoestats BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNCOPIEDSTATCHANGES
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectMirrorCoat::
|
|
|
|
attackcanceler
|
|
|
|
mirrorcoatdamagecalculator BattleScript_ButItFailedAtkStringPpReduce
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-07-28 10:58:47 +02:00
|
|
|
typecalc
|
|
|
|
bichalfword gMoveResultFlags, MOVE_RESULT_NOT_VERY_EFFECTIVE | MOVE_RESULT_SUPER_EFFECTIVE
|
2018-07-14 22:56:03 +02:00
|
|
|
adjustdamage
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_HitFromAtkAnimation
|
|
|
|
|
|
|
|
BattleScript_EffectSkullBash::
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus2 BS_ATTACKER, STATUS2_MULTIPLETURNS, BattleScript_TwoTurnMovesSecondTurn
|
|
|
|
jumpifword CMP_COMMON_BITS, gHitMarker, HITMARKER_NO_ATTACKSTRING, BattleScript_TwoTurnMovesSecondTurn
|
2021-04-02 08:27:12 +02:00
|
|
|
setbyte sTWOTURN_STRINGID, B_MSG_TURN1_SKULL_BASH
|
2017-11-26 00:33:40 +01:00
|
|
|
call BattleScriptFirstChargingTurn
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_DEF, 1, FALSE
|
2019-09-27 08:46:33 +02:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_SkullBashEnd
|
2021-04-02 08:27:12 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_SkullBashEnd
|
2017-11-25 18:42:31 +01:00
|
|
|
setgraphicalstatchangevalues
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_SkullBashEnd::
|
2020-04-22 10:44:19 +02:00
|
|
|
jumpifnoholdeffect BS_ATTACKER, HOLD_EFFECT_POWER_HERB, BattleScript_MoveEnd
|
|
|
|
call BattleScript_PowerHerbActivation
|
|
|
|
goto BattleScript_TwoTurnMovesSecondTurn
|
2017-11-25 18:42:31 +01:00
|
|
|
|
2018-07-14 18:58:45 +02:00
|
|
|
BattleScript_EffectTwister:
|
|
|
|
BattleScript_FlinchEffect:
|
|
|
|
BattleScript_EffectStomp:
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_FLINCH
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
2018-09-29 16:41:25 +02:00
|
|
|
BattleScript_EffectBulldoze:
|
|
|
|
setmoveeffect MOVE_EFFECT_SPD_MINUS_1
|
|
|
|
BattleScript_EffectEarthquake:
|
2020-04-11 11:47:13 +02:00
|
|
|
goto BattleScript_EffectHit
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_EffectFutureSight::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
trysetfutureattack BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gFutureMoveUsedStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectGust::
|
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_EffectSolarbeam::
|
2017-11-26 17:15:28 +01:00
|
|
|
jumpifabilitypresent ABILITY_CLOUD_NINE, BattleScript_SolarbeamDecideTurn
|
|
|
|
jumpifabilitypresent ABILITY_AIR_LOCK, BattleScript_SolarbeamDecideTurn
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifhalfword CMP_COMMON_BITS, gBattleWeather, WEATHER_SUN_TEMPORARY | WEATHER_SUN_PERMANENT, BattleScript_SolarbeamOnFirstTurn
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_SolarbeamDecideTurn::
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus2 BS_ATTACKER, STATUS2_MULTIPLETURNS, BattleScript_TwoTurnMovesSecondTurn
|
|
|
|
jumpifword CMP_COMMON_BITS, gHitMarker, HITMARKER_NO_ATTACKSTRING, BattleScript_TwoTurnMovesSecondTurn
|
2021-04-02 08:27:12 +02:00
|
|
|
setbyte sTWOTURN_STRINGID, B_MSG_TURN1_SOLAR_BEAM
|
2017-11-26 00:33:40 +01:00
|
|
|
call BattleScriptFirstChargingTurn
|
2020-04-22 10:44:19 +02:00
|
|
|
jumpifnoholdeffect BS_ATTACKER, HOLD_EFFECT_POWER_HERB, BattleScript_MoveEnd
|
|
|
|
call BattleScript_PowerHerbActivation
|
|
|
|
goto BattleScript_TwoTurnMovesSecondTurn
|
2017-11-26 01:19:57 +01:00
|
|
|
BattleScript_SolarbeamOnFirstTurn::
|
2019-01-13 13:15:23 +01:00
|
|
|
orword gHitMarker, HITMARKER_CHARGING
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_CHARGING | MOVE_EFFECT_AFFECTS_USER
|
2017-11-25 18:42:31 +01:00
|
|
|
seteffectprimary
|
|
|
|
ppreduce
|
2017-11-26 17:15:28 +01:00
|
|
|
goto BattleScript_TwoTurnMovesSecondTurn
|
2017-11-25 18:42:31 +01:00
|
|
|
|
2018-08-05 13:39:22 +02:00
|
|
|
BattleScript_EffectThunder:
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_PARALYSIS
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-08-05 13:39:22 +02:00
|
|
|
BattleScript_EffectHurricane:
|
|
|
|
setmoveeffect MOVE_EFFECT_CONFUSION
|
|
|
|
goto BattleScript_EffectHit
|
2017-11-25 18:42:31 +01:00
|
|
|
|
2018-08-05 13:39:22 +02:00
|
|
|
BattleScript_EffectTeleport:
|
2017-11-25 18:42:31 +01:00
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2017-12-02 14:08:55 +01:00
|
|
|
jumpifbattletype BATTLE_TYPE_TRAINER, BattleScript_ButItFailed
|
2018-02-08 11:17:41 +01:00
|
|
|
getifcantrunfrombattle BS_ATTACKER
|
2021-04-03 18:38:07 +02:00
|
|
|
jumpifbyte CMP_EQUAL, gBattleCommunication, 1, BattleScript_ButItFailed
|
|
|
|
jumpifbyte CMP_EQUAL, gBattleCommunication, 2, BattleScript_PrintAbilityMadeIneffective
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNFLEDFROMBATTLE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
setoutcomeonteleport BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectBeatUp::
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-25 18:42:31 +01:00
|
|
|
ppreduce
|
2021-04-03 18:38:07 +02:00
|
|
|
setbyte gBattleCommunication, 0
|
2017-11-25 18:42:31 +01:00
|
|
|
BattleScript_BeatUpLoop::
|
|
|
|
movevaluescleanup
|
|
|
|
trydobeatup BattleScript_BeatUpEnd, BattleScript_ButItFailed
|
|
|
|
printstring STRINGID_PKMNATTACK
|
|
|
|
critcalc
|
2018-07-14 22:56:03 +02:00
|
|
|
jumpifbyte CMP_NOT_EQUAL, gIsCriticalHit, TRUE, BattleScript_BeatUpAttack
|
2019-08-23 14:46:21 +02:00
|
|
|
manipulatedamage DMG_DOUBLED
|
2017-11-25 18:42:31 +01:00
|
|
|
BattleScript_BeatUpAttack::
|
2018-07-14 22:56:03 +02:00
|
|
|
adjustdamage
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
effectivenesssound
|
2018-02-08 11:17:41 +01:00
|
|
|
hitanimation BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_TARGET
|
|
|
|
datahpupdate BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
critmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
resultmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
tryfaintmon BS_TARGET, FALSE, NULL
|
2019-08-23 14:46:21 +02:00
|
|
|
moveendto MOVEEND_NEXT_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_BeatUpLoop
|
|
|
|
BattleScript_BeatUpEnd::
|
|
|
|
end
|
|
|
|
|
2017-11-26 00:33:40 +01:00
|
|
|
BattleScript_EffectSemiInvulnerable::
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus2 BS_ATTACKER, STATUS2_MULTIPLETURNS, BattleScript_SecondTurnSemiInvulnerable
|
|
|
|
jumpifword CMP_COMMON_BITS, gHitMarker, HITMARKER_NO_ATTACKSTRING, BattleScript_SecondTurnSemiInvulnerable
|
2017-11-26 11:55:17 +01:00
|
|
|
jumpifmove MOVE_FLY, BattleScript_FirstTurnFly
|
|
|
|
jumpifmove MOVE_DIVE, BattleScript_FirstTurnDive
|
|
|
|
jumpifmove MOVE_BOUNCE, BattleScript_FirstTurnBounce
|
2018-12-08 16:19:50 +01:00
|
|
|
jumpifmove MOVE_PHANTOM_FORCE, BattleScript_FirstTurnPhantomForce
|
|
|
|
jumpifmove MOVE_SHADOW_FORCE, BattleScript_FirstTurnPhantomForce
|
2021-04-02 08:27:12 +02:00
|
|
|
setbyte sTWOTURN_STRINGID, B_MSG_TURN1_DIG
|
2017-11-26 00:33:40 +01:00
|
|
|
goto BattleScript_FirstTurnSemiInvulnerable
|
|
|
|
BattleScript_FirstTurnBounce::
|
2021-04-02 08:27:12 +02:00
|
|
|
setbyte sTWOTURN_STRINGID, B_MSG_TURN1_BOUNCE
|
2017-11-26 00:33:40 +01:00
|
|
|
goto BattleScript_FirstTurnSemiInvulnerable
|
|
|
|
BattleScript_FirstTurnDive::
|
2021-04-02 08:27:12 +02:00
|
|
|
setbyte sTWOTURN_STRINGID, B_MSG_TURN1_DIVE
|
2017-11-26 00:33:40 +01:00
|
|
|
goto BattleScript_FirstTurnSemiInvulnerable
|
2018-12-08 16:19:50 +01:00
|
|
|
BattleScript_FirstTurnPhantomForce:
|
2021-04-28 03:36:37 +02:00
|
|
|
setbyte sTWOTURN_STRINGID, B_MSG_TURN1_PHANTOM_FORCE
|
2018-12-08 16:19:50 +01:00
|
|
|
goto BattleScript_FirstTurnSemiInvulnerable
|
2017-11-26 00:33:40 +01:00
|
|
|
BattleScript_FirstTurnFly::
|
2021-04-02 08:27:12 +02:00
|
|
|
setbyte sTWOTURN_STRINGID, B_MSG_TURN1_FLY
|
2017-11-26 00:33:40 +01:00
|
|
|
BattleScript_FirstTurnSemiInvulnerable::
|
|
|
|
call BattleScriptFirstChargingTurn
|
2017-11-25 18:42:31 +01:00
|
|
|
setsemiinvulnerablebit
|
2020-04-22 10:44:19 +02:00
|
|
|
jumpifnoholdeffect BS_ATTACKER, HOLD_EFFECT_POWER_HERB, BattleScript_MoveEnd
|
|
|
|
call BattleScript_PowerHerbActivation
|
2017-11-26 00:33:40 +01:00
|
|
|
BattleScript_SecondTurnSemiInvulnerable::
|
2017-11-25 18:42:31 +01:00
|
|
|
attackcanceler
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_CHARGING
|
2021-04-03 18:38:07 +02:00
|
|
|
setbyte sB_ANIM_TURN, 1
|
2018-02-08 11:17:41 +01:00
|
|
|
clearstatusfromeffect BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
orword gHitMarker, HITMARKER_NO_PPDEDUCT
|
2018-12-08 16:19:50 +01:00
|
|
|
argumenttomoveeffect
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_SemiInvulnerableTryHit::
|
2017-11-26 00:33:40 +01:00
|
|
|
accuracycheck BattleScript_SemiInvulnerableMiss, ACC_CURR_MOVE
|
2017-11-25 18:42:31 +01:00
|
|
|
clearsemiinvulnerablebit
|
|
|
|
goto BattleScript_HitFromAtkString
|
|
|
|
|
2017-11-26 00:33:40 +01:00
|
|
|
BattleScript_SemiInvulnerableMiss::
|
2017-11-25 18:42:31 +01:00
|
|
|
clearsemiinvulnerablebit
|
|
|
|
goto BattleScript_PrintMoveMissed
|
|
|
|
|
|
|
|
BattleScript_EffectDefenseCurl::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
setdefensecurlbit
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_DEF, 1, FALSE
|
2019-09-27 08:46:33 +02:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_DefenseCurlDoStatUpAnim
|
2021-04-02 08:27:12 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_StatUpPrintString
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_DefenseCurlDoStatUpAnim::
|
2017-11-26 01:19:57 +01:00
|
|
|
goto BattleScript_StatUpDoAnim
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_EffectSoftboiled::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-02-08 11:17:41 +01:00
|
|
|
tryhealhalfhealth BattleScript_AlreadyAtFullHp, BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
BattleScript_PresentHealTarget::
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_TARGET
|
|
|
|
datahpupdate BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNREGAINEDHEALTH
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_AlreadyAtFullHp::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNHPFULL
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectFakeOut::
|
|
|
|
attackcanceler
|
|
|
|
jumpifnotfirstturn BattleScript_ButItFailedAtkStringPpReduce
|
2018-11-24 21:06:53 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_FLINCH
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_ButItFailedAtkStringPpReduce::
|
|
|
|
attackstring
|
|
|
|
BattleScript_ButItFailedPpReduce::
|
|
|
|
ppreduce
|
|
|
|
BattleScript_ButItFailed::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2018-07-21 15:11:13 +02:00
|
|
|
orhalfword gMoveResultFlags, MOVE_RESULT_FAILED
|
2017-11-25 18:42:31 +01:00
|
|
|
resultmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_NotAffected::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2018-07-21 15:11:13 +02:00
|
|
|
orhalfword gMoveResultFlags, MOVE_RESULT_DOESNT_AFFECT_FOE
|
2017-11-25 18:42:31 +01:00
|
|
|
resultmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2021-04-01 04:11:27 +02:00
|
|
|
BattleScript_NotAffectedAbilityPopUp::
|
|
|
|
copybyte gBattlerAbility, gBattlerTarget
|
2021-06-01 23:20:33 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2021-04-01 04:11:27 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2018-07-21 15:11:13 +02:00
|
|
|
orhalfword gMoveResultFlags, MOVE_RESULT_DOESNT_AFFECT_FOE
|
2017-11-25 18:42:31 +01:00
|
|
|
resultmessage
|
2021-06-01 23:20:33 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectUproar::
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_UPROAR | MOVE_EFFECT_AFFECTS_USER
|
2017-11-25 18:42:31 +01:00
|
|
|
attackstring
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus2 BS_ATTACKER, STATUS2_MULTIPLETURNS, BattleScript_UproarHit
|
2017-11-25 18:42:31 +01:00
|
|
|
ppreduce
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_UproarHit::
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_HitFromCritCalc
|
|
|
|
|
|
|
|
BattleScript_EffectStockpile::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2019-07-09 19:06:12 +02:00
|
|
|
stockpile 0
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStockpileUsedStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-07-09 19:06:12 +02:00
|
|
|
jumpifmovehadnoeffect BattleScript_EffectStockpileEnd
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifstat BS_ATTACKER, CMP_LESS_THAN, STAT_DEF, MAX_STAT_STAGE, BattleScript_EffectStockpileDef
|
|
|
|
jumpifstat BS_ATTACKER, CMP_EQUAL, STAT_SPDEF, MAX_STAT_STAGE, BattleScript_EffectStockpileEnd
|
2019-07-09 19:06:12 +02:00
|
|
|
BattleScript_EffectStockpileDef:
|
|
|
|
setbyte sSTAT_ANIM_PLAYED, FALSE
|
2021-04-28 03:36:37 +02:00
|
|
|
playstatchangeanimation BS_ATTACKER, BIT_DEF | BIT_SPDEF, 0
|
2019-07-09 19:06:12 +02:00
|
|
|
setstatchanger STAT_DEF, 1, FALSE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_EffectStockpileSpDef
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_EffectStockpileSpDef
|
2019-07-09 19:06:12 +02:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-07-09 19:06:12 +02:00
|
|
|
BattleScript_EffectStockpileSpDef::
|
|
|
|
setstatchanger STAT_SPDEF, 1, FALSE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_EffectStockpileEnd
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_EffectStockpileEnd
|
2019-07-09 19:06:12 +02:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-07-09 19:06:12 +02:00
|
|
|
BattleScript_EffectStockpileEnd:
|
|
|
|
stockpile 1
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectSpitUp::
|
|
|
|
attackcanceler
|
2021-04-02 08:12:46 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMISS_TYPE, B_MSG_PROTECTED, BattleScript_SpitUpFailProtect
|
2017-11-25 18:42:31 +01:00
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
2019-07-09 19:06:12 +02:00
|
|
|
setbyte gIsCriticalHit, FALSE
|
|
|
|
damagecalc
|
2018-07-14 22:56:03 +02:00
|
|
|
adjustdamage
|
2019-07-09 19:06:12 +02:00
|
|
|
stockpiletobasedamage BattleScript_SpitUpFail
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_HitFromAtkAnimation
|
|
|
|
BattleScript_SpitUpFail::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_FAILEDTOSPITUP
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2021-04-02 08:12:46 +02:00
|
|
|
BattleScript_SpitUpFailProtect::
|
2017-11-25 18:42:31 +01:00
|
|
|
attackstring
|
|
|
|
ppreduce
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
stockpiletobasedamage BattleScript_SpitUpFail
|
|
|
|
resultmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectSwallow::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
stockpiletohpheal BattleScript_SwallowFail
|
|
|
|
goto BattleScript_PresentHealTarget
|
|
|
|
|
|
|
|
BattleScript_SwallowFail::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gSwallowFailStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectHail::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
sethail
|
2017-11-26 17:15:28 +01:00
|
|
|
goto BattleScript_MoveWeatherChange
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_EffectTorment::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
accuracycheck BattleScript_ButItFailed, ACC_CURR_MOVE
|
2019-04-01 11:42:37 +02:00
|
|
|
jumpifability BS_TARGET_SIDE, ABILITY_AROMA_VEIL, BattleScript_AromaVeilProtects
|
2017-11-25 18:42:31 +01:00
|
|
|
settorment BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNSUBJECTEDTOTORMENT
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectFlatter::
|
|
|
|
attackcanceler
|
2018-08-02 20:24:18 +02:00
|
|
|
jumpifsubstituteblocks BattleScript_MakeMoveMissed
|
2017-11-25 18:42:31 +01:00
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifconfusedandstatmaxed STAT_SPATK, BattleScript_ButItFailed
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_SPATK, 1, FALSE
|
2019-09-27 08:46:33 +02:00
|
|
|
statbuffchange STAT_BUFF_ALLOW_PTR, BattleScript_FlatterTryConfuse
|
2021-04-02 08:27:12 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_FlatterTryConfuse
|
2017-11-25 18:42:31 +01:00
|
|
|
setgraphicalstatchangevalues
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_TARGET, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_FlatterTryConfuse::
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifability BS_TARGET, ABILITY_OWN_TEMPO, BattleScript_OwnTempoPrevents
|
2020-04-23 11:29:19 +02:00
|
|
|
jumpifsafeguard BattleScript_SafeguardProtected
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_CONFUSION
|
2017-11-25 18:42:31 +01:00
|
|
|
seteffectprimary
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectWillOWisp::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-08-02 20:24:18 +02:00
|
|
|
jumpifsubstituteblocks BattleScript_ButItFailed
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus BS_TARGET, STATUS1_BURN, BattleScript_AlreadyBurned
|
|
|
|
jumpiftype BS_TARGET, TYPE_FIRE, BattleScript_NotAffected
|
|
|
|
jumpifability BS_TARGET, ABILITY_WATER_VEIL, BattleScript_WaterVeilPrevents
|
2021-07-25 15:53:44 +02:00
|
|
|
jumpifability BS_TARGET, ABILITY_WATER_BUBBLE, BattleScript_WaterVeilPrevents
|
2019-12-31 16:36:53 +01:00
|
|
|
jumpifability BS_TARGET, ABILITY_COMATOSE, BattleScript_LeafGuardProtects
|
2019-03-31 21:38:58 +02:00
|
|
|
jumpifflowerveil BattleScript_FlowerVeilProtects
|
2019-12-18 22:03:01 +01:00
|
|
|
jumpifleafguard BattleScript_LeafGuardProtects
|
2020-04-19 21:18:39 +02:00
|
|
|
jumpifshieldsdown BS_TARGET, BattleScript_LeafGuardProtects
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus BS_TARGET, STATUS1_ANY, BattleScript_ButItFailed
|
2017-11-25 18:42:31 +01:00
|
|
|
accuracycheck BattleScript_ButItFailed, ACC_CURR_MOVE
|
2020-04-23 11:29:19 +02:00
|
|
|
jumpifsafeguard BattleScript_SafeguardProtected
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_BURN
|
2017-11-25 18:42:31 +01:00
|
|
|
seteffectprimary
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2017-11-26 01:19:57 +01:00
|
|
|
BattleScript_WaterVeilPrevents::
|
2021-09-06 15:24:15 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2018-02-08 11:17:41 +01:00
|
|
|
copybyte gEffectBattler, gBattlerTarget
|
2021-04-02 08:27:12 +02:00
|
|
|
setbyte cMULTISTRING_CHOOSER, B_MSG_ABILITY_PREVENTS_MOVE_STATUS
|
2017-11-25 18:42:31 +01:00
|
|
|
call BattleScript_BRNPrevention
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_AlreadyBurned::
|
2018-11-11 18:33:16 +01:00
|
|
|
setalreadystatusedmoveattempt BS_ATTACKER
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNALREADYHASBURN
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectMemento::
|
|
|
|
attackcanceler
|
2021-04-02 08:12:46 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMISS_TYPE, B_MSG_PROTECTED, BattleScript_MementoFailProtect
|
2017-11-25 18:42:31 +01:00
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
jumpifattackandspecialattackcannotfall BattleScript_ButItFailed
|
|
|
|
setatkhptozero
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2018-08-03 00:21:40 +02:00
|
|
|
jumpifsubstituteblocks BattleScript_EffectMementoPrintNoEffect
|
2018-07-29 15:33:16 +02:00
|
|
|
setbyte sSTAT_ANIM_PLAYED, FALSE
|
2019-10-26 17:53:00 +02:00
|
|
|
playstatchangeanimation BS_TARGET, BIT_ATK | BIT_SPATK, STAT_CHANGE_NEGATIVE | STAT_CHANGE_BY_TWO | STAT_CHANGE_MULTIPLE_STATS
|
2019-08-23 14:46:21 +02:00
|
|
|
playstatchangeanimation BS_TARGET, BIT_ATK, STAT_CHANGE_NEGATIVE | STAT_CHANGE_BY_TWO
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_ATK, 2, TRUE
|
2019-09-27 08:46:33 +02:00
|
|
|
statbuffchange STAT_BUFF_ALLOW_PTR, BattleScript_EffectMementoTrySpAtk
|
2021-04-02 08:27:12 +02:00
|
|
|
@ Greater than STAT_FELL is checking if the stat cannot decrease
|
|
|
|
jumpifbyte CMP_GREATER_THAN, cMULTISTRING_CHOOSER, B_MSG_DEFENDER_STAT_FELL, BattleScript_EffectMementoTrySpAtk
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatDownStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-29 15:33:16 +02:00
|
|
|
BattleScript_EffectMementoTrySpAtk:
|
2019-08-23 14:46:21 +02:00
|
|
|
playstatchangeanimation BS_TARGET, BIT_SPATK, STAT_CHANGE_NEGATIVE | STAT_CHANGE_BY_TWO
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_SPATK, 2, TRUE
|
2019-09-27 08:46:33 +02:00
|
|
|
statbuffchange STAT_BUFF_ALLOW_PTR, BattleScript_EffectMementoTryFaint
|
2021-04-02 08:27:12 +02:00
|
|
|
@ Greater than STAT_FELL is checking if the stat cannot decrease
|
|
|
|
jumpifbyte CMP_GREATER_THAN, cMULTISTRING_CHOOSER, B_MSG_DEFENDER_STAT_FELL, BattleScript_EffectMementoTryFaint
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatDownStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-29 15:33:16 +02:00
|
|
|
BattleScript_EffectMementoTryFaint:
|
2018-02-08 11:17:41 +01:00
|
|
|
tryfaintmon BS_ATTACKER, FALSE, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
2018-07-29 15:33:16 +02:00
|
|
|
BattleScript_EffectMementoPrintNoEffect:
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_BUTNOEFFECT
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-29 15:33:16 +02:00
|
|
|
goto BattleScript_EffectMementoTryFaint
|
2021-04-02 08:12:46 +02:00
|
|
|
BattleScript_MementoFailProtect:
|
2017-11-25 18:42:31 +01:00
|
|
|
attackstring
|
|
|
|
ppreduce
|
2021-04-02 08:12:46 +02:00
|
|
|
jumpifattackandspecialattackcannotfall BattleScript_MementoFailEnd
|
|
|
|
BattleScript_MementoFailEnd:
|
2017-11-25 18:42:31 +01:00
|
|
|
setatkhptozero
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
effectivenesssound
|
|
|
|
resultmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
tryfaintmon BS_ATTACKER, FALSE, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectFocusPunch::
|
|
|
|
attackcanceler
|
|
|
|
jumpifnodamage BattleScript_HitFromAccCheck
|
|
|
|
ppreduce
|
|
|
|
printstring STRINGID_PKMNLOSTFOCUS
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2018-11-24 21:06:53 +01:00
|
|
|
BattleScript_EffectSmellingsalt:
|
|
|
|
BattleScript_EffectWakeUpSlap:
|
|
|
|
BattleScript_EffectSparklingAria:
|
2018-08-02 20:24:18 +02:00
|
|
|
jumpifsubstituteblocks BattleScript_EffectHit
|
2018-11-24 21:06:53 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_REMOVE_STATUS | MOVE_EFFECT_CERTAIN
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_EffectFollowMe::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
setforcedtarget
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNCENTERATTENTION
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectNaturePower::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-25 18:42:31 +01:00
|
|
|
callterrainattack
|
|
|
|
printstring STRINGID_NATUREPOWERTURNEDINTO
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_EffectCharge::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
setcharge
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2020-02-08 11:55:16 +01:00
|
|
|
setstatchanger STAT_SPDEF, 1, FALSE
|
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_EffectChargeString
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_EffectChargeString
|
2020-02-08 11:55:16 +01:00
|
|
|
setgraphicalstatchangevalues
|
|
|
|
playanimation BS_ATTACKER, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-02-08 11:55:16 +01:00
|
|
|
BattleScript_EffectChargeString:
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNCHARGINGPOWER
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectTaunt::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2019-04-01 11:42:37 +02:00
|
|
|
jumpifability BS_TARGET_SIDE, ABILITY_AROMA_VEIL, BattleScript_AromaVeilProtects
|
2017-11-25 18:42:31 +01:00
|
|
|
accuracycheck BattleScript_ButItFailed, ACC_CURR_MOVE
|
|
|
|
settaunt BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNFELLFORTAUNT
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectHelpingHand::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
trysethelpinghand BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNREADYTOHELP
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectTrick::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-08-02 20:24:18 +02:00
|
|
|
jumpifsubstituteblocks BattleScript_ButItFailed
|
2017-11-25 18:42:31 +01:00
|
|
|
accuracycheck BattleScript_ButItFailed, ACC_CURR_MOVE
|
|
|
|
tryswapitems BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNSWITCHEDITEMS
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gItemSwapStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectRolePlay::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
accuracycheck BattleScript_ButItFailed, NO_ACC_CALC_CHECK_LOCK_ON
|
|
|
|
trycopyability BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNCOPIEDFOE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectWish::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2021-04-03 18:38:07 +02:00
|
|
|
trywish 0, BattleScript_ButItFailed
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2018-07-21 21:58:07 +02:00
|
|
|
BattleScript_EffectAssist:
|
2017-11-25 18:42:31 +01:00
|
|
|
attackcanceler
|
|
|
|
attackstring
|
2019-04-03 20:13:11 +02:00
|
|
|
assistattackselect BattleScript_ButItFailedPpReduce
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2021-04-03 18:38:07 +02:00
|
|
|
setbyte sB_ANIM_TURN, 0
|
|
|
|
setbyte sB_ANIM_TARGETS_HIT, 0
|
2018-09-22 19:08:41 +02:00
|
|
|
jumptocalledmove TRUE
|
2017-11-25 18:42:31 +01:00
|
|
|
|
2018-07-21 21:58:07 +02:00
|
|
|
BattleScript_EffectIngrain:
|
2017-11-25 18:42:31 +01:00
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2020-07-27 14:51:39 +02:00
|
|
|
setuserstatus3 STATUS3_ROOTED, BattleScript_ButItFailed
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNPLANTEDROOTS
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2018-07-21 21:58:07 +02:00
|
|
|
BattleScript_EffectSuperpower:
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_ATK_DEF_DOWN | MOVE_EFFECT_AFFECTS_USER | MOVE_EFFECT_CERTAIN
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-09-22 01:12:27 +02:00
|
|
|
BattleScript_EffectCloseCombat:
|
|
|
|
setmoveeffect MOVE_EFFECT_DEF_SPDEF_DOWN | MOVE_EFFECT_AFFECTS_USER | MOVE_EFFECT_CERTAIN
|
|
|
|
goto BattleScript_EffectHit
|
2017-11-25 18:42:31 +01:00
|
|
|
|
2018-07-21 21:58:07 +02:00
|
|
|
BattleScript_EffectMagicCoat:
|
2017-11-25 18:42:31 +01:00
|
|
|
attackcanceler
|
|
|
|
trysetmagiccoat BattleScript_ButItFailedAtkStringPpReduce
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNSHROUDEDITSELF
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectRecycle::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
tryrecycleitem BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_XFOUNDONEY
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectBrickBreak::
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
removelightscreenreflect
|
|
|
|
critcalc
|
|
|
|
damagecalc
|
2018-07-14 22:56:03 +02:00
|
|
|
adjustdamage
|
2021-04-03 18:38:07 +02:00
|
|
|
jumpifbyte CMP_EQUAL, sB_ANIM_TURN, 0, BattleScript_BrickBreakAnim
|
2018-07-21 15:11:13 +02:00
|
|
|
bichalfword gMoveResultFlags, MOVE_RESULT_MISSED | MOVE_RESULT_DOESNT_AFFECT_FOE
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_BrickBreakAnim::
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2021-04-03 18:38:07 +02:00
|
|
|
jumpifbyte CMP_LESS_THAN, sB_ANIM_TURN, 2, BattleScript_BrickBreakDoHit
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_THEWALLSHATTERED
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_BrickBreakDoHit::
|
2018-07-28 10:58:47 +02:00
|
|
|
typecalc
|
2017-11-25 18:42:31 +01:00
|
|
|
effectivenesssound
|
2018-02-08 11:17:41 +01:00
|
|
|
hitanimation BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_TARGET
|
|
|
|
datahpupdate BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
critmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
resultmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
seteffectwithchance
|
2018-02-08 11:17:41 +01:00
|
|
|
tryfaintmon BS_TARGET, FALSE, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectYawn::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifability BS_TARGET, ABILITY_VITAL_SPIRIT, BattleScript_PrintBankAbilityMadeIneffective
|
|
|
|
jumpifability BS_TARGET, ABILITY_INSOMNIA, BattleScript_PrintBankAbilityMadeIneffective
|
2019-12-31 16:36:53 +01:00
|
|
|
jumpifability BS_TARGET, ABILITY_COMATOSE, BattleScript_PrintBankAbilityMadeIneffective
|
2019-03-31 21:38:58 +02:00
|
|
|
jumpifflowerveil BattleScript_FlowerVeilProtects
|
2019-12-18 22:03:01 +01:00
|
|
|
jumpifleafguard BattleScript_LeafGuardProtects
|
2020-04-19 21:18:39 +02:00
|
|
|
jumpifshieldsdown BS_TARGET, BattleScript_LeafGuardProtects
|
2018-08-02 20:24:18 +02:00
|
|
|
jumpifsubstituteblocks BattleScript_ButItFailed
|
2020-04-23 11:29:19 +02:00
|
|
|
jumpifsafeguard BattleScript_SafeguardProtected
|
2017-11-25 18:42:31 +01:00
|
|
|
accuracycheck BattleScript_ButItFailed, NO_ACC_CALC_CHECK_LOCK_ON
|
|
|
|
jumpifcantmakeasleep BattleScript_ButItFailed
|
|
|
|
setyawn BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNWASMADEDROWSY
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
2017-12-02 23:31:58 +01:00
|
|
|
BattleScript_PrintBankAbilityMadeIneffective::
|
2019-03-31 21:38:58 +02:00
|
|
|
copybyte sBATTLER, gBattlerAbility
|
2017-12-02 23:31:58 +01:00
|
|
|
BattleScript_PrintAbilityMadeIneffective::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSXMADEITINEFFECTIVE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectKnockOff::
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_KNOCK_OFF
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_EffectEndeavor::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
setdamagetohealthdifference BattleScript_ButItFailed
|
2017-11-25 21:32:17 +01:00
|
|
|
copyword gHpDealt, gBattleMoveDamage
|
2017-11-25 18:42:31 +01:00
|
|
|
accuracycheck BattleScript_MoveMissedPause, ACC_CURR_MOVE
|
|
|
|
typecalc
|
2017-12-02 00:03:46 +01:00
|
|
|
jumpifmovehadnoeffect BattleScript_HitFromAtkAnimation
|
2018-07-21 15:11:13 +02:00
|
|
|
bichalfword gMoveResultFlags, MOVE_RESULT_SUPER_EFFECTIVE | MOVE_RESULT_NOT_VERY_EFFECTIVE
|
2017-11-25 21:32:17 +01:00
|
|
|
copyword gBattleMoveDamage, gHpDealt
|
2018-07-14 22:56:03 +02:00
|
|
|
adjustdamage
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_HitFromAtkAnimation
|
|
|
|
|
2018-07-21 23:12:10 +02:00
|
|
|
BattleScript_EffectSkillSwap:
|
2017-11-25 18:42:31 +01:00
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
accuracycheck BattleScript_ButItFailed, NO_ACC_CALC_CHECK_LOCK_ON
|
|
|
|
tryswapabilities BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNSWAPPEDABILITIES
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectImprison::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2019-03-02 23:40:38 +01:00
|
|
|
tryimprison BattleScript_ButItFailed
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNSEALEDOPPONENTMOVE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2018-07-21 21:58:07 +02:00
|
|
|
BattleScript_EffectRefresh:
|
2017-11-25 18:42:31 +01:00
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
cureifburnedparalysedorpoisoned BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNSTATUSNORMAL
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
updatestatusicon BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2018-07-21 21:58:07 +02:00
|
|
|
BattleScript_EffectGrudge:
|
2017-11-25 18:42:31 +01:00
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2020-07-27 14:51:39 +02:00
|
|
|
setuserstatus3 STATUS3_GRUDGE, BattleScript_ButItFailed
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNWANTSGRUDGE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2018-07-21 21:58:07 +02:00
|
|
|
BattleScript_EffectSnatch:
|
2017-11-25 18:42:31 +01:00
|
|
|
attackcanceler
|
|
|
|
trysetsnatch BattleScript_ButItFailedAtkStringPpReduce
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNWAITSFORTARGET
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectSecretPower::
|
|
|
|
getsecretpowereffect
|
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
2020-04-20 11:27:09 +02:00
|
|
|
BattleScript_EffectRecoil25:
|
|
|
|
setmoveeffect MOVE_EFFECT_RECOIL_25 | MOVE_EFFECT_AFFECTS_USER | MOVE_EFFECT_CERTAIN
|
|
|
|
jumpifnotmove MOVE_STRUGGLE, BattleScript_EffectHit
|
|
|
|
incrementgamestat GAME_STAT_USED_STRUGGLE
|
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_EffectRecoil33::
|
2018-09-01 20:00:13 +02:00
|
|
|
setmoveeffect MOVE_EFFECT_RECOIL_33 | MOVE_EFFECT_AFFECTS_USER | MOVE_EFFECT_CERTAIN
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-09-22 10:45:43 +02:00
|
|
|
BattleScript_EffectRecoil33WithStatus:
|
|
|
|
setmoveeffect MOVE_EFFECT_RECOIL_33_STATUS | MOVE_EFFECT_AFFECTS_USER | MOVE_EFFECT_CERTAIN
|
|
|
|
goto BattleScript_EffectHit
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-09-22 11:13:17 +02:00
|
|
|
BattleScript_EffectRecoil50:
|
|
|
|
setmoveeffect MOVE_EFFECT_RECOIL_50 | MOVE_EFFECT_AFFECTS_USER | MOVE_EFFECT_CERTAIN
|
|
|
|
goto BattleScript_EffectHit
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_EffectTeeterDance::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2021-04-03 18:38:07 +02:00
|
|
|
setbyte gBattlerTarget, 0
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_TeeterDanceLoop::
|
2017-11-25 18:42:31 +01:00
|
|
|
movevaluescleanup
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_CONFUSION
|
2018-02-06 23:09:39 +01:00
|
|
|
jumpifbyteequal gBattlerAttacker, gBattlerTarget, BattleScript_TeeterDanceLoopIncrement
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifability BS_TARGET, ABILITY_OWN_TEMPO, BattleScript_TeeterDanceOwnTempoPrevents
|
2018-08-02 20:24:18 +02:00
|
|
|
jumpifsubstituteblocks BattleScript_TeeterDanceSubstitutePrevents
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus2 BS_TARGET, STATUS2_CONFUSION, BattleScript_TeeterDanceAlreadyConfused
|
|
|
|
jumpifhasnohp BS_TARGET, BattleScript_TeeterDanceLoopIncrement
|
2017-12-02 00:03:46 +01:00
|
|
|
accuracycheck BattleScript_TeeterDanceMissed, ACC_CURR_MOVE
|
2020-04-23 11:29:19 +02:00
|
|
|
jumpifsafeguard BattleScript_TeeterDanceSafeguardProtected
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
seteffectprimary
|
|
|
|
resultmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_TeeterDanceDoMoveEndIncrement::
|
2019-08-23 14:46:21 +02:00
|
|
|
moveendto MOVEEND_NEXT_TARGET
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_TeeterDanceLoopIncrement::
|
2021-04-03 18:38:07 +02:00
|
|
|
addbyte gBattlerTarget, 1
|
2018-02-06 23:09:39 +01:00
|
|
|
jumpifbytenotequal gBattlerTarget, gBattlersCount, BattleScript_TeeterDanceLoop
|
2017-11-25 18:42:31 +01:00
|
|
|
end
|
|
|
|
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_TeeterDanceOwnTempoPrevents::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNPREVENTSCONFUSIONWITH
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-12-02 00:03:46 +01:00
|
|
|
goto BattleScript_TeeterDanceDoMoveEndIncrement
|
2017-11-25 18:42:31 +01:00
|
|
|
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_TeeterDanceSafeguardProtected::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNUSEDSAFEGUARD
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-12-02 00:03:46 +01:00
|
|
|
goto BattleScript_TeeterDanceDoMoveEndIncrement
|
2017-11-25 18:42:31 +01:00
|
|
|
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_TeeterDanceSubstitutePrevents::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_BUTITFAILED
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-12-02 00:03:46 +01:00
|
|
|
goto BattleScript_TeeterDanceDoMoveEndIncrement
|
2017-11-25 18:42:31 +01:00
|
|
|
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_TeeterDanceAlreadyConfused::
|
2018-11-11 18:33:16 +01:00
|
|
|
setalreadystatusedmoveattempt BS_ATTACKER
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNALREADYCONFUSED
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-12-02 00:03:46 +01:00
|
|
|
goto BattleScript_TeeterDanceDoMoveEndIncrement
|
2017-11-25 18:42:31 +01:00
|
|
|
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_TeeterDanceMissed::
|
2017-11-25 18:42:31 +01:00
|
|
|
resultmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-12-02 00:03:46 +01:00
|
|
|
goto BattleScript_TeeterDanceDoMoveEndIncrement
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_EffectMudSport::
|
2017-11-26 00:33:40 +01:00
|
|
|
BattleScript_EffectWaterSport::
|
2017-11-25 18:42:31 +01:00
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
settypebasedhalvers BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gSportsUsedStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectPoisonFang::
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_TOXIC
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_EffectOverheat::
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_SP_ATK_TWO_DOWN | MOVE_EFFECT_AFFECTS_USER | MOVE_EFFECT_CERTAIN
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
2019-03-31 17:23:41 +02:00
|
|
|
BattleScript_EffectHammerArm::
|
|
|
|
setmoveeffect MOVE_EFFECT_SPD_MINUS_1 | MOVE_EFFECT_AFFECTS_USER | MOVE_EFFECT_CERTAIN
|
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
2017-11-25 18:42:31 +01:00
|
|
|
BattleScript_EffectTickle::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2020-08-05 02:33:05 +02:00
|
|
|
jumpifstat BS_TARGET, CMP_GREATER_THAN, STAT_ATK, MIN_STAT_STAGE, BattleScript_TickleDoMoveAnim
|
|
|
|
jumpifstat BS_TARGET, CMP_EQUAL, STAT_DEF, MIN_STAT_STAGE, BattleScript_CantLowerMultipleStats
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_TickleDoMoveAnim::
|
2017-11-25 18:42:31 +01:00
|
|
|
accuracycheck BattleScript_ButItFailed, ACC_CURR_MOVE
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2018-07-29 15:33:16 +02:00
|
|
|
setbyte sSTAT_ANIM_PLAYED, FALSE
|
2019-10-26 17:53:00 +02:00
|
|
|
playstatchangeanimation BS_TARGET, BIT_ATK | BIT_DEF, STAT_CHANGE_NEGATIVE | STAT_CHANGE_MULTIPLE_STATS
|
2019-08-23 14:46:21 +02:00
|
|
|
playstatchangeanimation BS_TARGET, BIT_ATK, STAT_CHANGE_NEGATIVE
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_ATK, 1, TRUE
|
2019-09-27 08:46:33 +02:00
|
|
|
statbuffchange STAT_BUFF_ALLOW_PTR, BattleScript_TickleTryLowerDef
|
2021-04-02 08:27:12 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_DECREASE, BattleScript_TickleTryLowerDef
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatDownStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_TickleTryLowerDef::
|
2019-08-23 14:46:21 +02:00
|
|
|
playstatchangeanimation BS_TARGET, BIT_DEF, STAT_CHANGE_NEGATIVE
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_DEF, 1, TRUE
|
2019-09-27 08:46:33 +02:00
|
|
|
statbuffchange STAT_BUFF_ALLOW_PTR, BattleScript_TickleEnd
|
2021-04-02 08:27:12 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_DECREASE, BattleScript_TickleEnd
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatDownStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_TickleEnd::
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_CantLowerMultipleStats::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2018-07-21 15:11:13 +02:00
|
|
|
orhalfword gMoveResultFlags, MOVE_RESULT_FAILED
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_STATSWONTDECREASE2
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectCosmicPower::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2020-08-05 02:33:05 +02:00
|
|
|
jumpifstat BS_ATTACKER, CMP_LESS_THAN, STAT_DEF, MAX_STAT_STAGE, BattleScript_CosmicPowerDoMoveAnim
|
|
|
|
jumpifstat BS_ATTACKER, CMP_EQUAL, STAT_SPDEF, MAX_STAT_STAGE, BattleScript_CantRaiseMultipleStats
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_CosmicPowerDoMoveAnim::
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2018-07-29 15:33:16 +02:00
|
|
|
setbyte sSTAT_ANIM_PLAYED, FALSE
|
2021-04-03 18:38:07 +02:00
|
|
|
playstatchangeanimation BS_ATTACKER, BIT_DEF | BIT_SPDEF, 0
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_DEF, 1, FALSE
|
2019-09-27 08:46:33 +02:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_CosmicPowerTrySpDef
|
2021-04-02 08:27:12 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_CosmicPowerTrySpDef
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_CosmicPowerTrySpDef::
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_SPDEF, 1, FALSE
|
2019-09-27 08:46:33 +02:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_CosmicPowerEnd
|
2021-04-02 08:27:12 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_CosmicPowerEnd
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_CosmicPowerEnd::
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectSkyUppercut::
|
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_EffectBulkUp::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2020-08-05 02:33:05 +02:00
|
|
|
jumpifstat BS_ATTACKER, CMP_LESS_THAN, STAT_ATK, MAX_STAT_STAGE, BattleScript_BulkUpDoMoveAnim
|
|
|
|
jumpifstat BS_ATTACKER, CMP_EQUAL, STAT_DEF, MAX_STAT_STAGE, BattleScript_CantRaiseMultipleStats
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_BulkUpDoMoveAnim::
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2018-07-29 15:33:16 +02:00
|
|
|
setbyte sSTAT_ANIM_PLAYED, FALSE
|
2021-04-03 18:38:07 +02:00
|
|
|
playstatchangeanimation BS_ATTACKER, BIT_ATK | BIT_DEF, 0
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_ATK, 1, FALSE
|
2019-09-27 08:46:33 +02:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_BulkUpTryDef
|
2021-04-02 08:27:12 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_BulkUpTryDef
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_BulkUpTryDef::
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_DEF, 1, FALSE
|
2019-09-27 08:46:33 +02:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_BulkUpEnd
|
2021-04-02 08:27:12 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_BulkUpEnd
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_BulkUpEnd::
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectCalmMind::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2020-08-05 02:33:05 +02:00
|
|
|
jumpifstat BS_ATTACKER, CMP_LESS_THAN, STAT_SPATK, MAX_STAT_STAGE, BattleScript_CalmMindDoMoveAnim
|
|
|
|
jumpifstat BS_ATTACKER, CMP_EQUAL, STAT_SPDEF, MAX_STAT_STAGE, BattleScript_CantRaiseMultipleStats
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_CalmMindDoMoveAnim::
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2018-07-29 15:33:16 +02:00
|
|
|
setbyte sSTAT_ANIM_PLAYED, FALSE
|
2021-04-03 18:38:07 +02:00
|
|
|
playstatchangeanimation BS_ATTACKER, BIT_SPATK | BIT_SPDEF, 0
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_SPATK, 1, FALSE
|
2019-09-27 08:46:33 +02:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_CalmMindTrySpDef
|
2021-04-02 08:27:12 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_CalmMindTrySpDef
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_CalmMindTrySpDef::
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_SPDEF, 1, FALSE
|
2019-09-27 08:46:33 +02:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_CalmMindEnd
|
2021-04-02 08:27:12 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_CalmMindEnd
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_CalmMindEnd::
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_CantRaiseMultipleStats::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2018-07-21 15:11:13 +02:00
|
|
|
orhalfword gMoveResultFlags, MOVE_RESULT_FAILED
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_STATSWONTINCREASE2
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectDragonDance::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2020-08-05 02:33:05 +02:00
|
|
|
jumpifstat BS_ATTACKER, CMP_LESS_THAN, STAT_ATK, MAX_STAT_STAGE, BattleScript_DragonDanceDoMoveAnim
|
|
|
|
jumpifstat BS_ATTACKER, CMP_EQUAL, STAT_SPEED, MAX_STAT_STAGE, BattleScript_CantRaiseMultipleStats
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_DragonDanceDoMoveAnim::
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2018-07-29 15:33:16 +02:00
|
|
|
setbyte sSTAT_ANIM_PLAYED, FALSE
|
2021-04-03 18:38:07 +02:00
|
|
|
playstatchangeanimation BS_ATTACKER, BIT_ATK | BIT_SPEED, 0
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_ATK, 1, FALSE
|
2019-09-27 08:46:33 +02:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_DragonDanceTrySpeed
|
2021-04-02 08:27:12 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_DragonDanceTrySpeed
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_DragonDanceTrySpeed::
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_SPEED, 1, FALSE
|
2019-09-27 08:46:33 +02:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_DragonDanceEnd
|
2021-04-02 08:27:12 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_DragonDanceEnd
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_DragonDanceEnd::
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectCamouflage::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
settypetoterrain BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNCHANGEDTYPE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_FaintAttacker::
|
2019-08-08 13:06:55 +02:00
|
|
|
tryillusionoff BS_ATTACKER
|
2018-02-08 11:17:41 +01:00
|
|
|
playfaintcry BS_ATTACKER
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
dofaintanimation BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_ATTACKERFAINTED
|
2019-08-08 13:06:55 +02:00
|
|
|
cleareffectsonfaint BS_ATTACKER
|
2020-04-18 19:59:09 +02:00
|
|
|
tryactivatesoulheart
|
2020-04-19 12:07:56 +02:00
|
|
|
tryactivatereceiver BS_ATTACKER
|
2018-11-03 01:17:16 +01:00
|
|
|
trytrainerslidefirstdownmsg BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_FaintTarget::
|
2019-08-08 13:06:55 +02:00
|
|
|
tryillusionoff BS_TARGET
|
2018-02-08 11:17:41 +01:00
|
|
|
playfaintcry BS_TARGET
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
dofaintanimation BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_TARGETFAINTED
|
2019-08-08 13:06:55 +02:00
|
|
|
cleareffectsonfaint BS_TARGET
|
2020-04-19 12:07:56 +02:00
|
|
|
tryactivatefellstinger BS_ATTACKER
|
2020-04-18 19:59:09 +02:00
|
|
|
tryactivatesoulheart
|
2020-04-19 12:07:56 +02:00
|
|
|
tryactivatereceiver BS_TARGET
|
2021-01-06 03:37:23 +01:00
|
|
|
tryactivatemoxie BS_ATTACKER @ and chilling neigh, as one ice rider
|
2020-04-19 12:07:56 +02:00
|
|
|
tryactivatebeastboost BS_ATTACKER
|
2021-01-06 03:37:23 +01:00
|
|
|
tryactivategrimneigh BS_ATTACKER @ and as one shadow rider
|
2018-11-03 01:17:16 +01:00
|
|
|
trytrainerslidefirstdownmsg BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
2017-12-02 14:08:55 +01:00
|
|
|
BattleScript_GiveExp::
|
2021-04-03 18:38:07 +02:00
|
|
|
setbyte sGIVEEXP_STATE, 0
|
2018-02-08 11:17:41 +01:00
|
|
|
getexp BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2017-12-02 14:08:55 +01:00
|
|
|
BattleScript_HandleFaintedMon::
|
2021-04-28 03:36:37 +02:00
|
|
|
setbyte sSHIFT_SWITCHED, 0
|
2021-04-03 18:38:07 +02:00
|
|
|
atk24 BattleScript_HandleFaintedMonMultiple
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_NOT_EQUAL, gBattleOutcome, 0, BattleScript_FaintedMonEnd
|
2019-03-06 12:13:37 +01:00
|
|
|
jumpifbattletype BATTLE_TYPE_TRAINER | BATTLE_TYPE_DOUBLE, BattleScript_FaintedMonTryChooseAnother
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifword CMP_NO_COMMON_BITS, gHitMarker, HITMARKER_x400000, BattleScript_FaintedMonTryChooseAnother
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_USENEXTPKMN
|
2021-04-03 18:38:07 +02:00
|
|
|
setbyte gBattleCommunication, 0
|
2017-11-25 18:42:31 +01:00
|
|
|
yesnobox
|
2021-04-03 18:38:07 +02:00
|
|
|
jumpifbyte CMP_EQUAL, gBattleCommunication + 1, 0, BattleScript_FaintedMonTryChooseAnother
|
2017-12-02 14:08:55 +01:00
|
|
|
jumpifplayerran BattleScript_FaintedMonEnd
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_CANTESCAPE2
|
2020-04-25 11:17:59 +02:00
|
|
|
BattleScript_FaintedMonTryChooseAnother:
|
2021-04-03 18:38:07 +02:00
|
|
|
openpartyscreen BS_FAINTED, BattleScript_FaintedMonEnd
|
|
|
|
switchhandleorder BS_FAINTED, 2
|
2017-12-02 14:08:55 +01:00
|
|
|
jumpifnotbattletype BATTLE_TYPE_TRAINER, BattleScript_FaintedMonChooseAnother
|
|
|
|
jumpifbattletype BATTLE_TYPE_LINK, BattleScript_FaintedMonChooseAnother
|
2021-01-13 21:17:32 +01:00
|
|
|
jumpifbattletype BATTLE_TYPE_RECORDED_LINK, BattleScript_FaintedMonChooseAnother
|
2018-06-30 14:12:17 +02:00
|
|
|
jumpifbattletype BATTLE_TYPE_FRONTIER, BattleScript_FaintedMonChooseAnother
|
2017-12-02 14:08:55 +01:00
|
|
|
jumpifbattletype BATTLE_TYPE_DOUBLE, BattleScript_FaintedMonChooseAnother
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifword CMP_COMMON_BITS, gHitMarker, HITMARKER_x400000, BattleScript_FaintedMonChooseAnother
|
2021-04-03 18:38:07 +02:00
|
|
|
jumpifbyte CMP_EQUAL, sBATTLE_STYLE, OPTIONS_BATTLE_STYLE_SET, BattleScript_FaintedMonChooseAnother
|
2019-09-15 23:58:12 +02:00
|
|
|
jumpifcantswitch BS_PLAYER1, BattleScript_FaintedMonChooseAnother
|
2020-06-28 19:45:48 +02:00
|
|
|
setbyte sILLUSION_NICK_HACK, 1
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_ENEMYABOUTTOSWITCHPKMN
|
2021-04-03 18:38:07 +02:00
|
|
|
setbyte gBattleCommunication, 0
|
2017-11-25 18:42:31 +01:00
|
|
|
yesnobox
|
2021-04-03 18:38:07 +02:00
|
|
|
jumpifbyte CMP_EQUAL, gBattleCommunication + 1, 1, BattleScript_FaintedMonChooseAnother
|
2017-11-25 18:42:31 +01:00
|
|
|
setatktoplayer0
|
2021-04-03 18:38:07 +02:00
|
|
|
openpartyscreen BS_ATTACKER | PARTY_SCREEN_OPTIONAL, BattleScript_FaintedMonChooseAnother
|
|
|
|
switchhandleorder BS_ATTACKER, 2
|
|
|
|
jumpifbyte CMP_EQUAL, gBattleCommunication, PARTY_SIZE, BattleScript_FaintedMonChooseAnother
|
2017-11-25 18:42:31 +01:00
|
|
|
atknameinbuff1
|
2019-10-22 22:02:01 +02:00
|
|
|
resetintimidatetracebits BS_ATTACKER
|
2018-02-08 11:17:41 +01:00
|
|
|
hpthresholds2 BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_RETURNMON
|
2018-02-08 11:17:41 +01:00
|
|
|
switchoutabilities BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
|
|
|
returnatktoball
|
|
|
|
waitstate
|
2018-02-08 11:17:41 +01:00
|
|
|
drawpartystatussummary BS_ATTACKER
|
|
|
|
getswitchedmondata BS_ATTACKER
|
|
|
|
switchindataupdate BS_ATTACKER
|
|
|
|
hpthresholds BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_SWITCHINMON
|
2018-06-28 21:06:32 +02:00
|
|
|
hidepartystatussummary BS_ATTACKER
|
2021-04-03 18:38:07 +02:00
|
|
|
switchinanim BS_ATTACKER, 0
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
2021-04-28 03:36:37 +02:00
|
|
|
setbyte sSHIFT_SWITCHED, 1
|
2020-04-25 11:17:59 +02:00
|
|
|
BattleScript_FaintedMonChooseAnother:
|
2018-02-08 11:17:41 +01:00
|
|
|
drawpartystatussummary BS_FAINTED
|
|
|
|
getswitchedmondata BS_FAINTED
|
|
|
|
switchindataupdate BS_FAINTED
|
|
|
|
hpthresholds BS_FAINTED
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_SWITCHINMON
|
2018-06-28 21:06:32 +02:00
|
|
|
hidepartystatussummary BS_FAINTED
|
2018-02-08 11:17:41 +01:00
|
|
|
switchinanim BS_FAINTED, FALSE
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
2018-02-08 11:17:41 +01:00
|
|
|
various7 BS_ATTACKER
|
2018-11-03 01:17:16 +01:00
|
|
|
trytrainerslidelastonmsg BS_FAINTED
|
2020-04-25 11:17:59 +02:00
|
|
|
jumpifbytenotequal sSHIFT_SWITCHED, sZero, BattleScript_FaintedMonShiftSwitched
|
|
|
|
BattleScript_FaintedMonChooseAnotherEnd:
|
2018-02-08 11:17:41 +01:00
|
|
|
switchineffects BS_FAINTED
|
2017-12-02 14:08:55 +01:00
|
|
|
jumpifbattletype BATTLE_TYPE_DOUBLE, BattleScript_FaintedMonEnd
|
2017-11-25 18:42:31 +01:00
|
|
|
cancelallactions
|
2017-12-02 14:08:55 +01:00
|
|
|
BattleScript_FaintedMonEnd::
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
2020-04-25 11:17:59 +02:00
|
|
|
BattleScript_FaintedMonShiftSwitched:
|
|
|
|
copybyte sSAVED_BATTLER, gBattlerTarget
|
|
|
|
switchineffects BS_ATTACKER
|
|
|
|
resetsentmonsvalue
|
|
|
|
copybyte gBattlerTarget, sSAVED_BATTLER
|
|
|
|
goto BattleScript_FaintedMonChooseAnotherEnd
|
2017-11-25 18:42:31 +01:00
|
|
|
|
2021-04-03 18:38:07 +02:00
|
|
|
BattleScript_HandleFaintedMonMultiple::
|
|
|
|
openpartyscreen BS_UNK_5, BattleScript_HandleFaintedMonMultipleStart
|
|
|
|
BattleScript_HandleFaintedMonMultipleStart::
|
|
|
|
switchhandleorder BS_FAINTED, 0
|
|
|
|
openpartyscreen BS_UNK_6, BattleScript_HandleFaintedMonMultipleEnd
|
|
|
|
switchhandleorder BS_FAINTED, 0
|
|
|
|
BattleScript_HandleFaintedMonLoop::
|
|
|
|
switchhandleorder BS_FAINTED, 3
|
2018-02-08 11:17:41 +01:00
|
|
|
drawpartystatussummary BS_FAINTED
|
|
|
|
getswitchedmondata BS_FAINTED
|
|
|
|
switchindataupdate BS_FAINTED
|
|
|
|
hpthresholds BS_FAINTED
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_SWITCHINMON
|
2018-06-28 21:06:32 +02:00
|
|
|
hidepartystatussummary BS_FAINTED
|
2018-02-08 11:17:41 +01:00
|
|
|
switchinanim BS_FAINTED, FALSE
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
|
|
|
switchineffects 5
|
2021-04-03 18:38:07 +02:00
|
|
|
jumpifbytenotequal gBattlerFainted, gBattlersCount, BattleScript_HandleFaintedMonLoop
|
|
|
|
BattleScript_HandleFaintedMonMultipleEnd::
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_LocalTrainerBattleWon::
|
2017-12-02 14:08:55 +01:00
|
|
|
jumpifbattletype BATTLE_TYPE_TWO_OPPONENTS, BattleScript_LocalTwoTrainersDefeated
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PLAYERDEFEATEDTRAINER1
|
2017-11-26 01:19:57 +01:00
|
|
|
goto BattleScript_LocalBattleWonLoseTexts
|
|
|
|
BattleScript_LocalTwoTrainersDefeated::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_TWOENEMIESDEFEATED
|
2017-11-26 01:19:57 +01:00
|
|
|
BattleScript_LocalBattleWonLoseTexts::
|
2018-02-08 11:17:41 +01:00
|
|
|
trainerslidein BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
|
|
|
printstring STRINGID_TRAINER1LOSETEXT
|
2017-12-02 14:08:55 +01:00
|
|
|
jumpifnotbattletype BATTLE_TYPE_TWO_OPPONENTS, BattleScript_LocalBattleWonReward
|
2018-01-16 21:01:31 +01:00
|
|
|
trainerslideout B_POSITION_OPPONENT_LEFT
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
2018-02-08 11:17:41 +01:00
|
|
|
trainerslidein BS_FAINTED
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
|
|
|
printstring STRINGID_TRAINER2LOSETEXT
|
2017-11-26 01:19:57 +01:00
|
|
|
BattleScript_LocalBattleWonReward::
|
2017-11-25 18:42:31 +01:00
|
|
|
getmoneyreward
|
|
|
|
printstring STRINGID_PLAYERGOTMONEY
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
BattleScript_PayDayMoneyAndPickUpItems::
|
|
|
|
givepaydaymoney
|
|
|
|
pickup
|
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_LocalBattleLost::
|
2017-12-02 14:08:55 +01:00
|
|
|
jumpifbattletype BATTLE_TYPE_DOME, BattleScript_CheckDomeDrew
|
2018-06-30 14:12:17 +02:00
|
|
|
jumpifbattletype BATTLE_TYPE_FRONTIER, BattleScript_LocalBattleLostPrintTrainersWinText
|
2018-09-20 22:00:00 +02:00
|
|
|
jumpifbattletype BATTLE_TYPE_TRAINER_HILL, BattleScript_LocalBattleLostPrintTrainersWinText
|
2017-12-02 14:08:55 +01:00
|
|
|
jumpifbattletype BATTLE_TYPE_EREADER_TRAINER, BattleScript_LocalBattleLostEnd
|
2021-04-02 08:17:36 +02:00
|
|
|
jumpifhalfword CMP_EQUAL, gTrainerBattleOpponent_A, TRAINER_SECRET_BASE, BattleScript_LocalBattleLostEnd
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_LocalBattleLostPrintWhiteOut::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PLAYERWHITEOUT
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PLAYERWHITEOUT2
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_LocalBattleLostEnd::
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_CheckDomeDrew::
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_EQUAL, gBattleOutcome, B_OUTCOME_DREW, BattleScript_LocalBattleLostEnd_
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_LocalBattleLostPrintTrainersWinText::
|
2017-12-02 14:08:55 +01:00
|
|
|
jumpifnotbattletype BATTLE_TYPE_TRAINER, BattleScript_LocalBattleLostPrintWhiteOut
|
2018-02-08 11:17:41 +01:00
|
|
|
returnopponentmon1toball BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
2018-02-08 11:17:41 +01:00
|
|
|
returnopponentmon2toball BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
2018-02-08 11:17:41 +01:00
|
|
|
trainerslidein BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
|
|
|
printstring STRINGID_TRAINER1WINTEXT
|
2021-01-13 21:17:32 +01:00
|
|
|
jumpifbattletype BATTLE_TYPE_TOWER_LINK_MULTI, BattleScript_LocalBattleLostDoTrainer2WinText
|
2017-12-02 14:08:55 +01:00
|
|
|
jumpifnotbattletype BATTLE_TYPE_TWO_OPPONENTS, BattleScript_LocalBattleLostEnd_
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_LocalBattleLostDoTrainer2WinText::
|
2018-01-16 21:01:31 +01:00
|
|
|
trainerslideout B_POSITION_OPPONENT_LEFT
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
2018-02-08 11:17:41 +01:00
|
|
|
trainerslidein BS_FAINTED
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
|
|
|
printstring STRINGID_TRAINER2WINTEXT
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_LocalBattleLostEnd_::
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
2021-01-22 08:48:22 +01:00
|
|
|
BattleScript_FrontierLinkBattleLost::
|
2018-02-08 11:17:41 +01:00
|
|
|
returnopponentmon1toball BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
2018-02-08 11:17:41 +01:00
|
|
|
returnopponentmon2toball BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
2018-02-08 11:17:41 +01:00
|
|
|
trainerslidein BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
|
|
|
printstring STRINGID_TRAINER1WINTEXT
|
2018-01-16 21:01:31 +01:00
|
|
|
trainerslideout B_POSITION_OPPONENT_LEFT
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
2018-02-08 11:17:41 +01:00
|
|
|
trainerslidein BS_FAINTED
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
|
|
|
printstring STRINGID_TRAINER2WINTEXT
|
2021-01-22 08:48:22 +01:00
|
|
|
jumpifbattletype BATTLE_TYPE_RECORDED, BattleScript_FrontierLinkBattleLostEnd
|
|
|
|
endlinkbattle
|
|
|
|
BattleScript_FrontierLinkBattleLostEnd::
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_LinkBattleWonOrLost::
|
2021-01-22 08:48:22 +01:00
|
|
|
jumpifbattletype BATTLE_TYPE_BATTLE_TOWER, BattleScript_TowerLinkBattleWon
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_BATTLEEND
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-12-02 14:08:55 +01:00
|
|
|
jumpifbattletype BATTLE_TYPE_RECORDED, BattleScript_LinkBattleWonOrLostWaitEnd
|
2021-01-22 08:48:22 +01:00
|
|
|
endlinkbattle
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_LinkBattleWonOrLostWaitEnd::
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
2021-01-22 08:48:22 +01:00
|
|
|
BattleScript_TowerLinkBattleWon::
|
2018-02-08 11:17:41 +01:00
|
|
|
playtrainerdefeatbgm BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_BATTLEEND
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
trainerslidein BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
|
|
|
printstring STRINGID_TRAINER1LOSETEXT
|
2018-01-16 21:01:31 +01:00
|
|
|
trainerslideout B_POSITION_OPPONENT_LEFT
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
2018-02-08 11:17:41 +01:00
|
|
|
trainerslidein BS_FAINTED
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
|
|
|
printstring STRINGID_TRAINER2LOSETEXT
|
2021-01-22 08:48:22 +01:00
|
|
|
jumpifbattletype BATTLE_TYPE_RECORDED, BattleScript_TowerLinkBattleWonEnd
|
|
|
|
endlinkbattle
|
|
|
|
BattleScript_TowerLinkBattleWonEnd::
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_FrontierTrainerBattleWon::
|
2017-12-02 14:08:55 +01:00
|
|
|
jumpifnotbattletype BATTLE_TYPE_TRAINER, BattleScript_PayDayMoneyAndPickUpItems
|
2018-09-01 20:00:13 +02:00
|
|
|
jumpifbattletype BATTLE_TYPE_TWO_OPPONENTS, BattleScript_FrontierTrainerBattleWon_TwoDefeated
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PLAYERDEFEATEDTRAINER1
|
2018-09-01 20:00:13 +02:00
|
|
|
goto BattleScript_FrontierTrainerBattleWon_LoseTexts
|
|
|
|
BattleScript_FrontierTrainerBattleWon_TwoDefeated:
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_TWOENEMIESDEFEATED
|
2018-09-01 20:00:13 +02:00
|
|
|
BattleScript_FrontierTrainerBattleWon_LoseTexts:
|
2018-02-08 11:17:41 +01:00
|
|
|
trainerslidein BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
|
|
|
printstring STRINGID_TRAINER1LOSETEXT
|
2020-08-05 02:33:05 +02:00
|
|
|
jumpifnotbattletype BATTLE_TYPE_TWO_OPPONENTS, BattleScript_TryPickUpItems
|
2018-01-16 21:01:31 +01:00
|
|
|
trainerslideout B_POSITION_OPPONENT_LEFT
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
2018-02-08 11:17:41 +01:00
|
|
|
trainerslidein BS_FAINTED
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
|
|
|
printstring STRINGID_TRAINER2LOSETEXT
|
2020-08-05 02:33:05 +02:00
|
|
|
BattleScript_TryPickUpItems:
|
2018-09-01 20:00:13 +02:00
|
|
|
jumpifnotbattletype BATTLE_TYPE_PYRAMID, BattleScript_FrontierTrainerBattleWon_End
|
2017-11-25 18:42:31 +01:00
|
|
|
pickup
|
2018-09-01 20:00:13 +02:00
|
|
|
BattleScript_FrontierTrainerBattleWon_End:
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_SmokeBallEscape::
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_SMOKEBALL_ESCAPE, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNFLEDUSINGITS
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_RanAwayUsingMonAbility::
|
|
|
|
printstring STRINGID_PKMNFLEDUSING
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_GotAwaySafely::
|
|
|
|
printstring STRINGID_GOTAWAYSAFELY
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_WildMonFled::
|
|
|
|
printstring STRINGID_WILDPKMNFLED
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
2017-11-26 17:26:11 +01:00
|
|
|
BattleScript_PrintCantRunFromTrainer::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_NORUNNINGFROMTRAINERS
|
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_PrintFailedToRunString::
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gNoEscapeStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
2017-11-26 17:26:11 +01:00
|
|
|
BattleScript_PrintCantEscapeFromBattle::
|
2017-11-26 00:33:40 +01:00
|
|
|
printselectionstringfromtable gNoEscapeStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
endselectionscript
|
|
|
|
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_PrintFullBox::
|
2017-11-25 18:42:31 +01:00
|
|
|
printselectionstring STRINGID_BOXISFULL
|
|
|
|
endselectionscript
|
|
|
|
|
|
|
|
BattleScript_ActionSwitch::
|
2018-02-08 11:17:41 +01:00
|
|
|
hpthresholds2 BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_RETURNMON
|
2017-12-02 14:08:55 +01:00
|
|
|
jumpifbattletype BATTLE_TYPE_DOUBLE, BattleScript_PursuitSwitchDmgSetMultihit
|
2021-04-03 18:38:07 +02:00
|
|
|
setmultihit 1
|
2017-12-02 00:03:46 +01:00
|
|
|
goto BattleScript_PursuitSwitchDmgLoop
|
|
|
|
BattleScript_PursuitSwitchDmgSetMultihit::
|
2021-04-03 18:38:07 +02:00
|
|
|
setmultihit 2
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_PursuitSwitchDmgLoop::
|
|
|
|
jumpifnopursuitswitchdmg BattleScript_DoSwitchOut
|
2018-06-30 14:12:17 +02:00
|
|
|
swapattackerwithtarget
|
2017-11-25 18:42:31 +01:00
|
|
|
trysetdestinybondtohappen
|
2017-12-02 00:03:46 +01:00
|
|
|
call BattleScript_PursuitDmgOnSwitchOut
|
2018-06-30 14:12:17 +02:00
|
|
|
swapattackerwithtarget
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_DoSwitchOut::
|
|
|
|
decrementmultihit BattleScript_PursuitSwitchDmgLoop
|
2018-02-08 11:17:41 +01:00
|
|
|
switchoutabilities BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
|
|
|
returnatktoball
|
|
|
|
waitstate
|
2018-02-08 11:17:41 +01:00
|
|
|
drawpartystatussummary BS_ATTACKER
|
2021-04-03 18:38:07 +02:00
|
|
|
switchhandleorder BS_ATTACKER, 1
|
2018-02-08 11:17:41 +01:00
|
|
|
getswitchedmondata BS_ATTACKER
|
|
|
|
switchindataupdate BS_ATTACKER
|
|
|
|
hpthresholds BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_SWITCHINMON
|
2018-06-28 21:06:32 +02:00
|
|
|
hidepartystatussummary BS_ATTACKER
|
2018-02-08 11:17:41 +01:00
|
|
|
switchinanim BS_ATTACKER, FALSE
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
2018-02-08 11:17:41 +01:00
|
|
|
switchineffects BS_ATTACKER
|
2019-11-10 12:09:14 +01:00
|
|
|
moveendcase MOVEEND_STATUS_IMMUNITY_ABILITIES
|
2019-08-23 14:46:21 +02:00
|
|
|
moveendcase MOVEEND_MIRROR_MOVE
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_PursuitDmgOnSwitchOut::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-25 18:42:31 +01:00
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
critcalc
|
|
|
|
damagecalc
|
2018-07-14 22:56:03 +02:00
|
|
|
adjustdamage
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
effectivenesssound
|
2018-02-08 11:17:41 +01:00
|
|
|
hitanimation BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_TARGET
|
|
|
|
datahpupdate BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
critmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
resultmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
tryfaintmon BS_TARGET, FALSE, NULL
|
2019-11-10 12:09:14 +01:00
|
|
|
moveendfromto MOVEEND_ABILITIES, MOVEEND_CHOICE_MOVE
|
2020-07-17 02:12:12 +02:00
|
|
|
getbattlerfainted BS_TARGET
|
|
|
|
jumpifbyte CMP_EQUAL, gBattleCommunication, FALSE, BattleScript_PursuitDmgOnSwitchOutRet
|
2021-04-03 18:38:07 +02:00
|
|
|
setbyte sGIVEEXP_STATE, 0
|
2018-02-08 11:17:41 +01:00
|
|
|
getexp BS_TARGET
|
2018-09-01 20:00:13 +02:00
|
|
|
BattleScript_PursuitDmgOnSwitchOutRet:
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_Pausex20::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_LevelUp::
|
2020-08-21 00:02:00 +02:00
|
|
|
fanfare MUS_LEVEL_UP
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNGREWTOLV
|
2021-04-03 18:38:07 +02:00
|
|
|
setbyte sLVLBOX_STATE, 0
|
2017-11-25 18:42:31 +01:00
|
|
|
drawlvlupbox
|
|
|
|
handlelearnnewmove BattleScript_LearnedNewMove, BattleScript_LearnMoveReturn, TRUE
|
|
|
|
goto BattleScript_AskToLearnMove
|
|
|
|
BattleScript_TryLearnMoveLoop::
|
|
|
|
handlelearnnewmove BattleScript_LearnedNewMove, BattleScript_LearnMoveReturn, FALSE
|
|
|
|
BattleScript_AskToLearnMove::
|
|
|
|
buffermovetolearn
|
|
|
|
printstring STRINGID_TRYTOLEARNMOVE1
|
|
|
|
printstring STRINGID_TRYTOLEARNMOVE2
|
|
|
|
printstring STRINGID_TRYTOLEARNMOVE3
|
|
|
|
waitstate
|
2021-04-03 18:38:07 +02:00
|
|
|
setbyte sLEARNMOVE_STATE, 0
|
2017-11-25 18:42:31 +01:00
|
|
|
yesnoboxlearnmove BattleScript_ForgotAndLearnedNewMove
|
|
|
|
printstring STRINGID_STOPLEARNINGMOVE
|
|
|
|
waitstate
|
2021-04-03 18:38:07 +02:00
|
|
|
setbyte sLEARNMOVE_STATE, 0
|
2017-11-25 18:42:31 +01:00
|
|
|
yesnoboxstoplearningmove BattleScript_AskToLearnMove
|
|
|
|
printstring STRINGID_DIDNOTLEARNMOVE
|
|
|
|
goto BattleScript_TryLearnMoveLoop
|
|
|
|
BattleScript_ForgotAndLearnedNewMove::
|
|
|
|
printstring STRINGID_123POOF
|
|
|
|
printstring STRINGID_PKMNFORGOTMOVE
|
|
|
|
printstring STRINGID_ANDELLIPSIS
|
|
|
|
BattleScript_LearnedNewMove::
|
|
|
|
buffermovetolearn
|
2020-08-21 00:02:00 +02:00
|
|
|
fanfare MUS_LEVEL_UP
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNLEARNEDMOVE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
updatechoicemoveonlvlup BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_TryLearnMoveLoop
|
|
|
|
BattleScript_LearnMoveReturn::
|
|
|
|
return
|
|
|
|
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_RainContinuesOrEnds::
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gRainContinuesStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_RAIN_STOPPED, BattleScript_RainContinuesOrEndsEnd
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_RAIN_CONTINUES, NULL
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_RainContinuesOrEndsEnd::
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_DamagingWeatherContinues::
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gSandStormHailContinuesStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation2 BS_ATTACKER, sB_ANIM_ARG1, NULL
|
2021-04-03 18:38:07 +02:00
|
|
|
setbyte gBattleCommunication, 0
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_DamagingWeatherLoop::
|
2021-04-03 18:38:07 +02:00
|
|
|
copyarraywithindex gBattlerAttacker, gBattlerByTurnOrder, gBattleCommunication, 1
|
2017-11-25 18:42:31 +01:00
|
|
|
weatherdamage
|
2021-04-03 18:38:07 +02:00
|
|
|
jumpifword CMP_EQUAL, gBattleMoveDamage, 0, BattleScript_DamagingWeatherLoopIncrement
|
2018-07-22 22:41:13 +02:00
|
|
|
jumpifword CMP_COMMON_BITS gBattleMoveDamage, 1 << 31, BattleScript_DamagingWeatherHeal
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gSandStormHailDmgStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
effectivenesssound
|
2018-02-08 11:17:41 +01:00
|
|
|
hitanimation BS_ATTACKER
|
2018-07-22 22:41:13 +02:00
|
|
|
goto BattleScript_DamagingWeatherHpChange
|
|
|
|
BattleScript_DamagingWeatherHeal:
|
2020-01-18 19:18:57 +01:00
|
|
|
call BattleScript_AbilityPopUp
|
2018-07-22 22:41:13 +02:00
|
|
|
printstring STRINGID_ICEBODYHPGAIN
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-22 22:41:13 +02:00
|
|
|
BattleScript_DamagingWeatherHpChange:
|
|
|
|
orword gHitMarker, HITMARKER_x20 | HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_x100000 | HITMARKER_GRUDGE
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_ATTACKER
|
|
|
|
datahpupdate BS_ATTACKER
|
|
|
|
tryfaintmon BS_ATTACKER, FALSE, NULL
|
2017-11-26 17:15:28 +01:00
|
|
|
atk24 BattleScript_DamagingWeatherLoopIncrement
|
|
|
|
BattleScript_DamagingWeatherLoopIncrement::
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_NOT_EQUAL, gBattleOutcome, 0, BattleScript_DamagingWeatherContinuesEnd
|
2021-04-03 18:38:07 +02:00
|
|
|
addbyte gBattleCommunication, 1
|
2018-02-06 02:46:59 +01:00
|
|
|
jumpifbytenotequal gBattleCommunication, gBattlersCount, BattleScript_DamagingWeatherLoop
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_DamagingWeatherContinuesEnd::
|
2017-11-25 18:42:31 +01:00
|
|
|
bicword gHitMarker, HITMARKER_x20 | HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_x100000 | HITMARKER_GRUDGE
|
|
|
|
end2
|
|
|
|
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_SandStormHailEnds::
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gSandStormHailEndStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_SunlightContinues::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_SUNLIGHTSTRONG
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_SUN_CONTINUES, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_SunlightFaded::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_SUNLIGHTFADED
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_OverworldWeatherStarts::
|
2020-07-21 19:29:51 +02:00
|
|
|
printfromtable gWeatherStartsStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation2 BS_ATTACKER, sB_ANIM_ARG1, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
end3
|
|
|
|
|
2020-12-14 03:42:48 +01:00
|
|
|
BattleScript_OverworldTerrain::
|
|
|
|
printfromtable gTerrainStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-12-14 03:42:48 +01:00
|
|
|
playanimation BS_SCRIPTING, B_ANIM_RESTORE_BG, NULL
|
|
|
|
end3
|
|
|
|
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_SideStatusWoreOff::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSXWOREOFF
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-09-23 19:03:53 +02:00
|
|
|
BattleScript_SideStatusWoreOffReturn::
|
|
|
|
printstring STRINGID_PKMNSXWOREOFF
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-23 19:03:53 +02:00
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-21 12:56:07 +02:00
|
|
|
BattleScript_LuckyChantEnds::
|
|
|
|
printstring STRINGID_LUCKYCHANTENDS
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-21 12:56:07 +02:00
|
|
|
end2
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-21 12:56:07 +02:00
|
|
|
BattleScript_TailwindEnds::
|
|
|
|
printstring STRINGID_TAILWINDENDS
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-21 12:56:07 +02:00
|
|
|
end2
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-21 13:24:20 +02:00
|
|
|
BattleScript_TrickRoomEnds::
|
|
|
|
printstring STRINGID_TRICKROOMENDS
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-21 13:24:20 +02:00
|
|
|
end2
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-21 13:24:20 +02:00
|
|
|
BattleScript_WonderRoomEnds::
|
|
|
|
printstring STRINGID_WONDERROOMENDS
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-21 13:24:20 +02:00
|
|
|
end2
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-21 13:24:20 +02:00
|
|
|
BattleScript_MagicRoomEnds::
|
|
|
|
printstring STRINGID_MAGICROOMENDS
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-21 13:24:20 +02:00
|
|
|
end2
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-21 13:24:20 +02:00
|
|
|
BattleScript_ElectricTerrainEnds::
|
|
|
|
printstring STRINGID_ELECTRICTERRAINENDS
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-11-18 03:45:27 +01:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_RESTORE_BG, NULL
|
2018-07-21 13:24:20 +02:00
|
|
|
end2
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-21 13:24:20 +02:00
|
|
|
BattleScript_MistyTerrainEnds::
|
|
|
|
printstring STRINGID_MISTYTERRAINENDS
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-11-18 03:45:27 +01:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_RESTORE_BG, NULL
|
2018-07-21 13:24:20 +02:00
|
|
|
end2
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-21 13:24:20 +02:00
|
|
|
BattleScript_GrassyTerrainEnds::
|
|
|
|
printstring STRINGID_GRASSYTERRAINENDS
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-11-18 03:45:27 +01:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_RESTORE_BG, NULL
|
2018-07-21 13:24:20 +02:00
|
|
|
end2
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-21 13:24:20 +02:00
|
|
|
BattleScript_PsychicTerrainEnds::
|
|
|
|
printstring STRINGID_PSYCHICTERRAINENDS
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-11-18 03:45:27 +01:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_RESTORE_BG, NULL
|
2018-07-21 13:24:20 +02:00
|
|
|
end2
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-21 13:24:20 +02:00
|
|
|
BattleScript_MudSportEnds::
|
|
|
|
printstring STRINGID_MUDSPORTENDS
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-21 13:24:20 +02:00
|
|
|
end2
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-21 13:24:20 +02:00
|
|
|
BattleScript_WaterSportEnds::
|
|
|
|
printstring STRINGID_WATERSPORTENDS
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-21 13:24:20 +02:00
|
|
|
end2
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-21 16:34:43 +02:00
|
|
|
BattleScript_GravityEnds::
|
|
|
|
printstring STRINGID_GRAVITYENDS
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-21 16:34:43 +02:00
|
|
|
end2
|
2017-11-25 18:42:31 +01:00
|
|
|
|
2017-11-26 01:19:57 +01:00
|
|
|
BattleScript_SafeguardProtected::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNUSEDSAFEGUARD
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_SafeguardEnds::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSAFEGUARDEXPIRED
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_LeechSeedTurnDrain::
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_LEECH_SEED_DRAIN, sB_ANIM_ARG1
|
2017-11-25 18:42:31 +01:00
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_x100000
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_ATTACKER
|
|
|
|
datahpupdate BS_ATTACKER
|
2017-11-25 21:32:17 +01:00
|
|
|
copyword gBattleMoveDamage, gHpDealt
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifability BS_ATTACKER, ABILITY_LIQUID_OOZE, BattleScript_LeechSeedTurnPrintLiquidOoze
|
2021-04-02 08:27:12 +02:00
|
|
|
setbyte cMULTISTRING_CHOOSER, B_MSG_LEECH_SEED_DRAIN
|
2020-06-22 10:40:08 +02:00
|
|
|
jumpifstatus3 BS_TARGET, STATUS3_HEAL_BLOCK, BattleScript_LeechSeedHealBlock
|
|
|
|
manipulatedamage DMG_BIG_ROOT
|
2017-12-03 00:47:21 +01:00
|
|
|
goto BattleScript_LeechSeedTurnPrintAndUpdateHp
|
|
|
|
BattleScript_LeechSeedTurnPrintLiquidOoze::
|
2020-02-22 19:25:35 +01:00
|
|
|
copybyte gBattlerAbility, gBattlerAttacker
|
|
|
|
call BattleScript_AbilityPopUp
|
2021-04-02 08:27:12 +02:00
|
|
|
setbyte cMULTISTRING_CHOOSER, B_MSG_LEECH_SEED_OOZE
|
2017-12-03 00:47:21 +01:00
|
|
|
BattleScript_LeechSeedTurnPrintAndUpdateHp::
|
2017-11-25 18:42:31 +01:00
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_x100000
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_TARGET
|
|
|
|
datahpupdate BS_TARGET
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gLeechSeedStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
tryfaintmon BS_ATTACKER, FALSE, NULL
|
|
|
|
tryfaintmon BS_TARGET, FALSE, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
2020-06-22 10:40:08 +02:00
|
|
|
BattleScript_LeechSeedHealBlock:
|
|
|
|
setword gBattleMoveDamage, 0
|
|
|
|
goto BattleScript_LeechSeedTurnPrintAndUpdateHp
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_BideStoringEnergy::
|
|
|
|
printstring STRINGID_PKMNSTORINGENERGY
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_BideAttack::
|
|
|
|
attackcanceler
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_CHARGING
|
2018-02-08 11:17:41 +01:00
|
|
|
clearstatusfromeffect BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNUNLEASHEDENERGY
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
accuracycheck BattleScript_MoveMissed, ACC_CURR_MOVE
|
|
|
|
typecalc
|
2018-07-21 15:11:13 +02:00
|
|
|
bichalfword gMoveResultFlags, MOVE_RESULT_SUPER_EFFECTIVE | MOVE_RESULT_NOT_VERY_EFFECTIVE
|
2017-11-25 21:32:17 +01:00
|
|
|
copyword gBattleMoveDamage, sBIDE_DMG
|
2018-07-14 22:56:03 +02:00
|
|
|
adjustdamage
|
2021-04-03 18:38:07 +02:00
|
|
|
setbyte sB_ANIM_TURN, 1
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
effectivenesssound
|
2018-02-08 11:17:41 +01:00
|
|
|
hitanimation BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_TARGET
|
|
|
|
datahpupdate BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
resultmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
tryfaintmon BS_TARGET, FALSE, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_BideNoEnergyToAttack::
|
|
|
|
attackcanceler
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_CHARGING
|
2018-02-08 11:17:41 +01:00
|
|
|
clearstatusfromeffect BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNUNLEASHEDENERGY
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_ButItFailed
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-03-06 12:09:34 +01:00
|
|
|
BattleScript_RoarSuccessSwitch::
|
|
|
|
call BattleScript_RoarSuccessRet
|
2018-02-08 11:17:41 +01:00
|
|
|
getswitchedmondata BS_TARGET
|
|
|
|
switchindataupdate BS_TARGET
|
|
|
|
switchinanim BS_TARGET, FALSE
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
|
|
|
printstring STRINGID_PKMNWASDRAGGEDOUT
|
2018-02-08 11:17:41 +01:00
|
|
|
switchineffects BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-03-06 12:09:34 +01:00
|
|
|
BattleScript_RoarSuccessEndBattle::
|
|
|
|
call BattleScript_RoarSuccessRet
|
|
|
|
setoutcomeonteleport BS_ATTACKER
|
|
|
|
finishaction
|
|
|
|
|
|
|
|
BattleScript_RoarSuccessRet:
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
switchoutabilities BS_TARGET
|
|
|
|
returntoball BS_TARGET
|
|
|
|
waitstate
|
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-05-09 20:31:58 +02:00
|
|
|
BattleScript_WeaknessPolicy::
|
|
|
|
copybyte sBATTLER, gBattlerTarget
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifstat BS_TARGET, CMP_LESS_THAN, STAT_ATK, MAX_STAT_STAGE, BattleScript_WeaknessPolicyAtk
|
|
|
|
jumpifstat BS_TARGET, CMP_EQUAL, STAT_SPATK, MAX_STAT_STAGE, BattleScript_WeaknessPolicyEnd
|
2019-05-09 20:31:58 +02:00
|
|
|
BattleScript_WeaknessPolicyAtk:
|
2020-02-29 13:59:41 +01:00
|
|
|
playanimation BS_TARGET, B_ANIM_HELD_ITEM_EFFECT, NULL
|
2019-05-09 20:31:58 +02:00
|
|
|
waitanimation
|
|
|
|
setbyte sSTAT_ANIM_PLAYED, FALSE
|
2019-11-10 12:09:14 +01:00
|
|
|
playstatchangeanimation BS_TARGET, BIT_ATK | BIT_SPATK, STAT_CHANGE_BY_TWO
|
2019-05-09 20:31:58 +02:00
|
|
|
setstatchanger STAT_ATK, 2, FALSE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange STAT_BUFF_ALLOW_PTR, BattleScript_WeaknessPolicySpAtk
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_WeaknessPolicySpAtk
|
|
|
|
printstring STRINGID_USINGITEMSTATOFPKMNROSE
|
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-05-09 20:31:58 +02:00
|
|
|
BattleScript_WeaknessPolicySpAtk:
|
|
|
|
setstatchanger STAT_SPATK, 2, FALSE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange STAT_BUFF_ALLOW_PTR, BattleScript_WeaknessPolicyRemoveItem
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_WeaknessPolicyRemoveItem
|
|
|
|
printstring STRINGID_USINGITEMSTATOFPKMNROSE
|
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-05-09 20:31:58 +02:00
|
|
|
BattleScript_WeaknessPolicyRemoveItem:
|
|
|
|
removeitem BS_TARGET
|
|
|
|
BattleScript_WeaknessPolicyEnd:
|
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-05-09 20:31:58 +02:00
|
|
|
BattleScript_TargetItemStatRaise::
|
|
|
|
copybyte sBATTLER, gBattlerTarget
|
|
|
|
statbuffchange 0, BattleScript_TargetItemStatRaiseRemoveItemRet
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_TargetItemStatRaiseRemoveItemRet
|
2020-02-29 13:59:41 +01:00
|
|
|
playanimation BS_TARGET, B_ANIM_HELD_ITEM_EFFECT, NULL
|
2019-05-09 20:31:58 +02:00
|
|
|
waitanimation
|
|
|
|
setgraphicalstatchangevalues
|
|
|
|
playanimation BS_TARGET, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
|
|
|
waitanimation
|
2021-04-28 03:36:37 +02:00
|
|
|
printstring STRINGID_USINGITEMSTATOFPKMNROSE
|
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-05-09 20:31:58 +02:00
|
|
|
removeitem BS_TARGET
|
|
|
|
BattleScript_TargetItemStatRaiseRemoveItemRet:
|
|
|
|
return
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_MistProtected::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNPROTECTEDBYMIST
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_RageIsBuilding::
|
|
|
|
printstring STRINGID_PKMNRAGEBUILDING
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_MoveUsedIsDisabled::
|
|
|
|
printstring STRINGID_PKMNMOVEISDISABLED
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_SelectingDisabledMove::
|
2017-11-25 18:42:31 +01:00
|
|
|
printselectionstring STRINGID_PKMNMOVEISDISABLED
|
|
|
|
endselectionscript
|
|
|
|
|
|
|
|
BattleScript_DisabledNoMore::
|
|
|
|
printstring STRINGID_PKMNMOVEDISABLEDNOMORE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
2017-12-03 00:47:21 +01:00
|
|
|
BattleScript_SelectingDisabledMoveInPalace::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNMOVEISDISABLED
|
2017-12-03 00:47:21 +01:00
|
|
|
BattleScript_SelectingUnusableMoveInPalace::
|
2019-08-23 14:46:21 +02:00
|
|
|
moveendto MOVEEND_NEXT_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
BattleScript_EncoredNoMore::
|
|
|
|
printstring STRINGID_PKMNENCOREENDED
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_DestinyBondTakesLife::
|
|
|
|
printstring STRINGID_PKMNTOOKFOE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_x100000
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_ATTACKER
|
|
|
|
datahpupdate BS_ATTACKER
|
|
|
|
tryfaintmon BS_ATTACKER, FALSE, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
2018-07-24 21:47:00 +02:00
|
|
|
BattleScript_DmgHazardsOnAttacker::
|
2017-11-25 18:42:31 +01:00
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_x100000
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_ATTACKER
|
|
|
|
datahpupdate BS_ATTACKER
|
2018-07-24 21:47:00 +02:00
|
|
|
call BattleScript_PrintHurtByDmgHazards
|
2018-02-08 11:17:41 +01:00
|
|
|
tryfaintmon BS_ATTACKER, FALSE, NULL
|
2018-07-24 21:47:00 +02:00
|
|
|
tryfaintmon BS_ATTACKER, TRUE, BattleScript_DmgHazardsOnAttackerFainted
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
2018-07-24 21:47:00 +02:00
|
|
|
BattleScript_DmgHazardsOnAttackerFainted::
|
2021-04-03 18:38:07 +02:00
|
|
|
setbyte sGIVEEXP_STATE, 0
|
2018-02-08 11:17:41 +01:00
|
|
|
getexp BS_ATTACKER
|
2019-03-30 12:37:18 +01:00
|
|
|
moveendall
|
2017-12-02 14:08:55 +01:00
|
|
|
goto BattleScript_HandleFaintedMon
|
2017-11-25 18:42:31 +01:00
|
|
|
|
2018-07-24 21:47:00 +02:00
|
|
|
BattleScript_DmgHazardsOnTarget::
|
2017-11-25 18:42:31 +01:00
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_x100000
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_TARGET
|
|
|
|
datahpupdate BS_TARGET
|
2018-07-24 21:47:00 +02:00
|
|
|
call BattleScript_PrintHurtByDmgHazards
|
2018-02-08 11:17:41 +01:00
|
|
|
tryfaintmon BS_TARGET, FALSE, NULL
|
2018-07-24 21:47:00 +02:00
|
|
|
tryfaintmon BS_TARGET, TRUE, BattleScript_DmgHazardsOnTargetFainted
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
2018-07-24 21:47:00 +02:00
|
|
|
BattleScript_DmgHazardsOnTargetFainted::
|
2021-04-03 18:38:07 +02:00
|
|
|
setbyte sGIVEEXP_STATE, 0
|
2018-02-08 11:17:41 +01:00
|
|
|
getexp BS_TARGET
|
2019-03-30 12:37:18 +01:00
|
|
|
moveendall
|
2017-12-02 14:08:55 +01:00
|
|
|
goto BattleScript_HandleFaintedMon
|
2017-11-25 18:42:31 +01:00
|
|
|
|
2018-07-24 21:47:00 +02:00
|
|
|
BattleScript_DmgHazardsOnFaintedBattler::
|
2017-11-25 18:42:31 +01:00
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_x100000
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_FAINTED
|
|
|
|
datahpupdate BS_FAINTED
|
2018-07-24 21:47:00 +02:00
|
|
|
call BattleScript_PrintHurtByDmgHazards
|
2018-02-08 11:17:41 +01:00
|
|
|
tryfaintmon BS_FAINTED, FALSE, NULL
|
2018-07-24 21:47:00 +02:00
|
|
|
tryfaintmon BS_FAINTED, TRUE, BattleScript_DmgHazardsOnFaintedBattlerFainted
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
2018-07-24 21:47:00 +02:00
|
|
|
BattleScript_DmgHazardsOnFaintedBattlerFainted::
|
2021-04-03 18:38:07 +02:00
|
|
|
setbyte sGIVEEXP_STATE, 0
|
2018-02-08 11:17:41 +01:00
|
|
|
getexp BS_FAINTED
|
2019-03-30 12:37:18 +01:00
|
|
|
moveendall
|
2017-12-02 14:08:55 +01:00
|
|
|
goto BattleScript_HandleFaintedMon
|
2017-11-25 18:42:31 +01:00
|
|
|
|
2018-07-24 21:47:00 +02:00
|
|
|
BattleScript_PrintHurtByDmgHazards::
|
|
|
|
printfromtable gDmgHazardsStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-24 21:47:00 +02:00
|
|
|
BattleScript_ToxicSpikesAbsorbed::
|
|
|
|
printstring STRINGID_TOXICSPIKESABSORBED
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-24 21:47:00 +02:00
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-24 21:47:00 +02:00
|
|
|
BattleScript_ToxicSpikesPoisoned::
|
|
|
|
printstring STRINGID_TOXICSPIKESPOISONED
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-24 21:47:00 +02:00
|
|
|
statusanimation BS_SCRIPTING
|
|
|
|
updatestatusicon BS_SCRIPTING
|
|
|
|
waitstate
|
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-24 22:09:55 +02:00
|
|
|
BattleScript_StickyWebOnSwitchIn::
|
|
|
|
savetarget
|
2019-05-09 20:31:58 +02:00
|
|
|
copybyte gBattlerTarget, sBATTLER
|
2018-07-24 22:09:55 +02:00
|
|
|
printstring STRINGID_STICKYWEBSWITCHIN
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange STAT_BUFF_ALLOW_PTR, BattleScript_StickyWebOnSwitchInEnd
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_LESS_THAN, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_DECREASE, BattleScript_StickyWebOnSwitchInStatAnim
|
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_FELL_EMPTY, BattleScript_StickyWebOnSwitchInEnd
|
|
|
|
pause B_WAIT_TIME_SHORT
|
2018-07-24 22:09:55 +02:00
|
|
|
goto BattleScript_StickyWebOnSwitchInPrintStatMsg
|
|
|
|
BattleScript_StickyWebOnSwitchInStatAnim:
|
|
|
|
setgraphicalstatchangevalues
|
|
|
|
playanimation BS_TARGET, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
|
|
|
BattleScript_StickyWebOnSwitchInPrintStatMsg:
|
|
|
|
printfromtable gStatDownStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-24 22:09:55 +02:00
|
|
|
BattleScript_StickyWebOnSwitchInEnd:
|
|
|
|
restoretarget
|
|
|
|
return
|
2017-11-25 18:42:31 +01:00
|
|
|
|
2017-11-26 17:26:11 +01:00
|
|
|
BattleScript_PerishSongTakesLife::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNPERISHCOUNTFELL
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_x100000
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_ATTACKER
|
|
|
|
datahpupdate BS_ATTACKER
|
|
|
|
tryfaintmon BS_ATTACKER, FALSE, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
2020-12-11 23:00:30 +01:00
|
|
|
BattleScript_PerishBodyActivates::
|
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
printstring STRINGID_PKMNSWILLPERISHIN3TURNS
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-12-11 23:00:30 +01:00
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_x100000
|
|
|
|
return
|
|
|
|
|
2017-11-26 17:26:11 +01:00
|
|
|
BattleScript_PerishSongCountGoesDown::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNPERISHCOUNTFELL
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_AllStatsUp::
|
2020-08-05 02:33:05 +02:00
|
|
|
jumpifstat BS_ATTACKER, CMP_LESS_THAN, STAT_ATK, MAX_STAT_STAGE, BattleScript_AllStatsUpAtk
|
|
|
|
jumpifstat BS_ATTACKER, CMP_LESS_THAN, STAT_DEF, MAX_STAT_STAGE, BattleScript_AllStatsUpAtk
|
|
|
|
jumpifstat BS_ATTACKER, CMP_LESS_THAN, STAT_SPEED, MAX_STAT_STAGE, BattleScript_AllStatsUpAtk
|
|
|
|
jumpifstat BS_ATTACKER, CMP_LESS_THAN, STAT_SPATK, MAX_STAT_STAGE, BattleScript_AllStatsUpAtk
|
|
|
|
jumpifstat BS_ATTACKER, CMP_EQUAL, STAT_SPDEF, MAX_STAT_STAGE, BattleScript_AllStatsUpRet
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_AllStatsUpAtk::
|
2018-07-29 15:33:16 +02:00
|
|
|
setbyte sSTAT_ANIM_PLAYED, FALSE
|
2021-04-03 18:38:07 +02:00
|
|
|
playstatchangeanimation BS_ATTACKER, BIT_ATK | BIT_DEF | BIT_SPEED | BIT_SPATK | BIT_SPDEF, 0
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_ATK, 1, FALSE
|
2019-09-27 08:46:33 +02:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_AllStatsUpDef
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_AllStatsUpDef::
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_DEF, 1, FALSE
|
2019-09-27 08:46:33 +02:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_AllStatsUpSpeed
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_AllStatsUpSpeed::
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_SPEED, 1, FALSE
|
2019-09-27 08:46:33 +02:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_AllStatsUpSpAtk
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_AllStatsUpSpAtk::
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_SPATK, 1, FALSE
|
2019-09-27 08:46:33 +02:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_AllStatsUpSpDef
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_AllStatsUpSpDef::
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_SPDEF, 1, FALSE
|
2019-09-27 08:46:33 +02:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_AllStatsUpRet
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_AllStatsUpRet::
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_RapidSpinAway::
|
|
|
|
rapidspinfree
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_WrapFree::
|
|
|
|
printstring STRINGID_PKMNGOTFREE
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-10-27 00:04:18 +02:00
|
|
|
copybyte gBattlerTarget, sBATTLER
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_LeechSeedFree::
|
|
|
|
printstring STRINGID_PKMNSHEDLEECHSEED
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_SpikesFree::
|
|
|
|
printstring STRINGID_PKMNBLEWAWAYSPIKES
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-08-04 22:23:07 +02:00
|
|
|
BattleScript_ToxicSpikesFree::
|
|
|
|
printstring STRINGID_PKMNBLEWAWAYTOXICSPIKES
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-08-04 22:23:07 +02:00
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-08-04 22:23:07 +02:00
|
|
|
BattleScript_StickyWebFree::
|
|
|
|
printstring STRINGID_PKMNBLEWAWAYSTICKYWEB
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-08-04 22:23:07 +02:00
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-08-04 22:23:07 +02:00
|
|
|
BattleScript_StealthRockFree::
|
|
|
|
printstring STRINGID_PKMNBLEWAWAYSTEALTHROCK
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-08-04 22:23:07 +02:00
|
|
|
return
|
2017-11-25 18:42:31 +01:00
|
|
|
|
2017-11-26 17:26:11 +01:00
|
|
|
BattleScript_MonTookFutureAttack::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNTOOKATTACK
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
|
|
|
jumpifbyte CMP_NOT_EQUAL, cMULTISTRING_CHOOSER, B_MSG_FUTURE_SIGHT, BattleScript_CheckDoomDesireMiss
|
2017-12-03 00:47:21 +01:00
|
|
|
accuracycheck BattleScript_FutureAttackMiss, MOVE_FUTURE_SIGHT
|
|
|
|
goto BattleScript_FutureAttackAnimate
|
|
|
|
BattleScript_CheckDoomDesireMiss::
|
|
|
|
accuracycheck BattleScript_FutureAttackMiss, MOVE_DOOM_DESIRE
|
|
|
|
BattleScript_FutureAttackAnimate::
|
2018-12-02 18:47:39 +01:00
|
|
|
critcalc
|
|
|
|
damagecalc
|
2018-07-14 22:56:03 +02:00
|
|
|
adjustdamage
|
2018-12-02 18:47:39 +01:00
|
|
|
jumpifmovehadnoeffect BattleScript_DoFutureAttackResult
|
2021-04-02 08:27:12 +02:00
|
|
|
jumpifbyte CMP_NOT_EQUAL, cMULTISTRING_CHOOSER, B_MSG_FUTURE_SIGHT, BattleScript_FutureHitAnimDoomDesire
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_FUTURE_SIGHT_HIT, NULL
|
2017-12-03 00:47:21 +01:00
|
|
|
goto BattleScript_DoFutureAttackHit
|
|
|
|
BattleScript_FutureHitAnimDoomDesire::
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_DOOM_DESIRE_HIT, NULL
|
2017-12-03 00:47:21 +01:00
|
|
|
BattleScript_DoFutureAttackHit::
|
2017-11-25 18:42:31 +01:00
|
|
|
effectivenesssound
|
2018-02-08 11:17:41 +01:00
|
|
|
hitanimation BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_TARGET
|
|
|
|
datahpupdate BS_TARGET
|
2018-12-02 18:47:39 +01:00
|
|
|
critmessage
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-12-02 18:47:39 +01:00
|
|
|
BattleScript_DoFutureAttackResult:
|
2017-11-25 18:42:31 +01:00
|
|
|
resultmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
tryfaintmon BS_TARGET, FALSE, NULL
|
2017-12-03 00:47:21 +01:00
|
|
|
atk24 BattleScript_FutureAttackEnd
|
|
|
|
BattleScript_FutureAttackEnd::
|
2019-08-23 14:46:21 +02:00
|
|
|
moveendcase MOVEEND_RAGE
|
|
|
|
moveendfromto MOVEEND_ITEM_EFFECTS_ALL, MOVEEND_UPDATE_LAST_MOVES
|
2018-01-16 22:12:38 +01:00
|
|
|
setbyte gMoveResultFlags, 0
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
2017-12-03 00:47:21 +01:00
|
|
|
BattleScript_FutureAttackMiss::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2018-12-02 18:47:39 +01:00
|
|
|
sethword gMoveResultFlags, MOVE_RESULT_FAILED
|
2017-11-25 18:42:31 +01:00
|
|
|
resultmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-21 15:11:13 +02:00
|
|
|
sethword gMoveResultFlags, 0
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_NoMovesLeft::
|
|
|
|
printselectionstring STRINGID_PKMNHASNOMOVESLEFT
|
|
|
|
endselectionscript
|
|
|
|
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_SelectingMoveWithNoPP::
|
2017-11-25 18:42:31 +01:00
|
|
|
printselectionstring STRINGID_NOPPLEFT
|
|
|
|
endselectionscript
|
|
|
|
|
|
|
|
BattleScript_NoPPForMove::
|
|
|
|
attackstring
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_BUTNOPPLEFT
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_SelectingTormentedMove::
|
2017-11-25 18:42:31 +01:00
|
|
|
printselectionstring STRINGID_PKMNCANTUSEMOVETORMENT
|
|
|
|
endselectionscript
|
|
|
|
|
2017-12-03 00:47:21 +01:00
|
|
|
BattleScript_MoveUsedIsTormented::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNCANTUSEMOVETORMENT
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2017-12-03 00:47:21 +01:00
|
|
|
BattleScript_SelectingTormentedMoveInPalace::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNCANTUSEMOVETORMENT
|
2017-12-03 00:47:21 +01:00
|
|
|
goto BattleScript_SelectingUnusableMoveInPalace
|
2017-11-25 18:42:31 +01:00
|
|
|
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_SelectingNotAllowedMoveTaunt::
|
2017-11-25 18:42:31 +01:00
|
|
|
printselectionstring STRINGID_PKMNCANTUSEMOVETAUNT
|
|
|
|
endselectionscript
|
|
|
|
|
|
|
|
BattleScript_MoveUsedIsTaunted::
|
|
|
|
printstring STRINGID_PKMNCANTUSEMOVETAUNT
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2017-12-03 00:47:21 +01:00
|
|
|
BattleScript_SelectingNotAllowedMoveTauntInPalace::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNCANTUSEMOVETAUNT
|
2017-12-03 00:47:21 +01:00
|
|
|
goto BattleScript_SelectingUnusableMoveInPalace
|
2019-11-14 00:03:20 +01:00
|
|
|
|
2019-04-16 15:01:48 +02:00
|
|
|
BattleScript_SelectingNotAllowedMoveThroatChop::
|
|
|
|
printselectionstring STRINGID_PKMNCANTUSEMOVETHROATCHOP
|
|
|
|
endselectionscript
|
|
|
|
|
|
|
|
BattleScript_MoveUsedIsThroatChopPrevented::
|
|
|
|
printstring STRINGID_PKMNCANTUSEMOVETHROATCHOP
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-04-16 15:01:48 +02:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_SelectingNotAllowedMoveThroatChopInPalace::
|
|
|
|
printstring STRINGID_PKMNCANTUSEMOVETHROATCHOP
|
|
|
|
goto BattleScript_SelectingUnusableMoveInPalace
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-04-16 15:01:48 +02:00
|
|
|
BattleScript_ThroatChopEndTurn::
|
|
|
|
printstring STRINGID_THROATCHOPENDS
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-04-16 15:01:48 +02:00
|
|
|
end2
|
2020-04-18 12:52:15 +02:00
|
|
|
|
|
|
|
BattleScript_SlowStartEnds::
|
2021-04-28 03:36:37 +02:00
|
|
|
pause 5
|
2020-04-18 12:52:15 +02:00
|
|
|
copybyte gBattlerAbility, gBattlerAttacker
|
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
printstring STRINGID_SLOWSTARTEND
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-04-18 12:52:15 +02:00
|
|
|
end2
|
2019-04-16 15:01:48 +02:00
|
|
|
|
2018-07-31 23:09:47 +02:00
|
|
|
BattleScript_SelectingNotAllowedMoveGravity::
|
|
|
|
printselectionstring STRINGID_GRAVITYPREVENTSUSAGE
|
|
|
|
endselectionscript
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-02-01 14:17:24 +01:00
|
|
|
BattleScript_SelectingNotAllowedBelch::
|
|
|
|
printselectionstring STRINGID_BELCHCANTSELECT
|
|
|
|
endselectionscript
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-02-01 14:17:24 +01:00
|
|
|
BattleScript_SelectingNotAllowedBelchInPalace::
|
2019-02-01 14:34:16 +01:00
|
|
|
printstring STRINGID_BELCHCANTSELECT
|
2019-02-01 14:17:24 +01:00
|
|
|
goto BattleScript_SelectingUnusableMoveInPalace
|
2018-07-31 23:09:47 +02:00
|
|
|
|
|
|
|
BattleScript_MoveUsedGravityPrevents::
|
|
|
|
printstring STRINGID_GRAVITYPREVENTSUSAGE
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-31 23:09:47 +02:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_SelectingNotAllowedMoveGravityInPalace::
|
|
|
|
printstring STRINGID_GRAVITYPREVENTSUSAGE
|
|
|
|
goto BattleScript_SelectingUnusableMoveInPalace
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-31 23:09:47 +02:00
|
|
|
BattleScript_SelectingNotAllowedMoveHealBlock::
|
2019-03-24 03:45:21 +01:00
|
|
|
printselectionstring STRINGID_HEALBLOCKPREVENTSUSAGE
|
2018-07-31 23:09:47 +02:00
|
|
|
endselectionscript
|
|
|
|
|
|
|
|
BattleScript_MoveUsedHealBlockPrevents::
|
2019-03-24 03:45:21 +01:00
|
|
|
printstring STRINGID_HEALBLOCKPREVENTSUSAGE
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-31 23:09:47 +02:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_SelectingNotAllowedMoveHealBlockInPalace::
|
2019-03-24 03:45:21 +01:00
|
|
|
printstring STRINGID_HEALBLOCKPREVENTSUSAGE
|
2018-07-31 23:09:47 +02:00
|
|
|
goto BattleScript_SelectingUnusableMoveInPalace
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_WishComesTrue::
|
2021-04-03 18:38:07 +02:00
|
|
|
trywish 1, BattleScript_WishButFullHp
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_TARGET, B_ANIM_WISH_HEAL, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNWISHCAMETRUE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_TARGET
|
|
|
|
datahpupdate BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNREGAINEDHEALTH
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
2017-12-03 00:47:21 +01:00
|
|
|
BattleScript_WishButFullHp::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNWISHCAMETRUE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNHPFULL
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_IngrainTurnHeal::
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_INGRAIN_HEAL, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNABSORBEDNUTRIENTS
|
2018-07-18 22:07:48 +02:00
|
|
|
BattleScript_TurnHeal:
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_ATTACKER
|
|
|
|
datahpupdate BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-18 22:07:48 +02:00
|
|
|
BattleScript_AquaRingHeal::
|
|
|
|
playanimation BS_ATTACKER, B_ANIM_INGRAIN_HEAL, NULL
|
|
|
|
printstring STRINGID_AQUARINGHEAL
|
|
|
|
goto BattleScript_TurnHeal
|
2017-11-25 18:42:31 +01:00
|
|
|
|
2017-12-03 00:47:21 +01:00
|
|
|
BattleScript_PrintMonIsRooted::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNANCHOREDITSELF
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_AtkDefDown::
|
2018-07-29 15:33:16 +02:00
|
|
|
setbyte sSTAT_ANIM_PLAYED, FALSE
|
2019-10-26 17:53:00 +02:00
|
|
|
playstatchangeanimation BS_ATTACKER, BIT_DEF | BIT_ATK, STAT_CHANGE_CANT_PREVENT | STAT_CHANGE_NEGATIVE | STAT_CHANGE_MULTIPLE_STATS
|
|
|
|
playstatchangeanimation BS_ATTACKER, BIT_ATK, STAT_CHANGE_CANT_PREVENT | STAT_CHANGE_NEGATIVE
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_ATK, 1, TRUE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | MOVE_EFFECT_CERTAIN | STAT_BUFF_ALLOW_PTR, BattleScript_AtkDefDownTryDef
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_DECREASE, BattleScript_AtkDefDownTryDef
|
2018-09-22 01:12:27 +02:00
|
|
|
printfromtable gStatDownStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-22 10:45:43 +02:00
|
|
|
BattleScript_AtkDefDownTryDef:
|
2019-10-26 17:53:00 +02:00
|
|
|
playstatchangeanimation BS_ATTACKER, BIT_DEF, STAT_CHANGE_CANT_PREVENT | STAT_CHANGE_NEGATIVE
|
2018-09-22 01:12:27 +02:00
|
|
|
setstatchanger STAT_DEF, 1, TRUE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | MOVE_EFFECT_CERTAIN | STAT_BUFF_ALLOW_PTR, BattleScript_AtkDefDownRet
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_DECREASE, BattleScript_AtkDefDownRet
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatDownStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-22 10:45:43 +02:00
|
|
|
BattleScript_AtkDefDownRet:
|
2018-09-22 01:12:27 +02:00
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-09-22 01:12:27 +02:00
|
|
|
BattleScript_DefSpDefDown::
|
|
|
|
setbyte sSTAT_ANIM_PLAYED, FALSE
|
2021-04-28 03:36:37 +02:00
|
|
|
playstatchangeanimation BS_ATTACKER, BIT_DEF | BIT_SPDEF, STAT_CHANGE_CANT_PREVENT | STAT_CHANGE_NEGATIVE | STAT_CHANGE_MULTIPLE_STATS
|
2019-11-10 12:09:14 +01:00
|
|
|
playstatchangeanimation BS_ATTACKER, BIT_DEF, STAT_CHANGE_CANT_PREVENT | STAT_CHANGE_NEGATIVE
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_DEF, 1, TRUE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | MOVE_EFFECT_CERTAIN | STAT_BUFF_ALLOW_PTR, BattleScript_DefSpDefDownTrySpDef
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_DECREASE, BattleScript_DefSpDefDownTrySpDef
|
2018-09-22 01:12:27 +02:00
|
|
|
printfromtable gStatDownStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-22 01:12:27 +02:00
|
|
|
BattleScript_DefSpDefDownTrySpDef::
|
2019-11-10 12:09:14 +01:00
|
|
|
playstatchangeanimation BS_ATTACKER, BIT_SPDEF, STAT_CHANGE_CANT_PREVENT | STAT_CHANGE_NEGATIVE
|
2018-09-22 01:12:27 +02:00
|
|
|
setstatchanger STAT_SPDEF, 1, TRUE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | MOVE_EFFECT_CERTAIN | STAT_BUFF_ALLOW_PTR, BattleScript_DefSpDefDownRet
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_DECREASE, BattleScript_DefSpDefDownRet
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatDownStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-22 01:12:27 +02:00
|
|
|
BattleScript_DefSpDefDownRet::
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_KnockedOff::
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_TARGET, B_ANIM_ITEM_KNOCKOFF, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNKNOCKEDOFF
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_MoveUsedIsImprisoned::
|
|
|
|
printstring STRINGID_PKMNCANTUSEMOVESEALED
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2019-03-02 23:40:38 +01:00
|
|
|
BattleScript_SelectingImprisonedMove::
|
2017-11-25 18:42:31 +01:00
|
|
|
printselectionstring STRINGID_PKMNCANTUSEMOVESEALED
|
|
|
|
endselectionscript
|
|
|
|
|
2019-03-02 23:40:38 +01:00
|
|
|
BattleScript_SelectingImprisonedMoveInPalace::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNCANTUSEMOVESEALED
|
2017-12-03 00:47:21 +01:00
|
|
|
goto BattleScript_SelectingUnusableMoveInPalace
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_GrudgeTakesPp::
|
|
|
|
printstring STRINGID_PKMNLOSTPPGRUDGE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_MagicCoatBounce::
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2018-07-28 10:41:20 +02:00
|
|
|
printfromtable gMagicCoatBounceStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
orword gHitMarker, HITMARKER_ATTACKSTRING_PRINTED | HITMARKER_NO_PPDEDUCT | HITMARKER_x800000
|
2018-02-08 11:17:41 +01:00
|
|
|
setmagiccoattarget BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_SnatchedMove::
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-06-30 14:12:17 +02:00
|
|
|
snatchsetbattlers
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_TARGET, B_ANIM_SNATCH_MOVE, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSNATCHEDMOVE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
orword gHitMarker, HITMARKER_ATTACKSTRING_PRINTED | HITMARKER_NO_PPDEDUCT | HITMARKER_x800000
|
2018-06-30 14:12:17 +02:00
|
|
|
swapattackerwithtarget
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_EnduredMsg::
|
|
|
|
printstring STRINGID_PKMNENDUREDHIT
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-21 15:11:13 +02:00
|
|
|
BattleScript_SturdiedMsg::
|
2019-03-01 13:53:06 +01:00
|
|
|
copybyte gBattlerAbility, gBattlerTarget
|
2021-04-28 03:36:37 +02:00
|
|
|
pause 16
|
2019-03-01 13:53:06 +01:00
|
|
|
call BattleScript_AbilityPopUp
|
2018-07-21 15:11:13 +02:00
|
|
|
printstring STRINGID_ENDUREDSTURDY
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-21 15:11:13 +02:00
|
|
|
return
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_OneHitKOMsg::
|
|
|
|
printstring STRINGID_ONEHITKO
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_SAtkDown2::
|
2018-07-29 15:33:16 +02:00
|
|
|
setbyte sSTAT_ANIM_PLAYED, FALSE
|
2019-10-26 17:53:00 +02:00
|
|
|
playstatchangeanimation BS_ATTACKER, BIT_SPATK, STAT_CHANGE_CANT_PREVENT | STAT_CHANGE_NEGATIVE | STAT_CHANGE_BY_TWO
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_SPATK, 2, TRUE
|
2019-09-27 08:46:33 +02:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | MOVE_EFFECT_CERTAIN | STAT_BUFF_ALLOW_PTR, BattleScript_SAtkDown2End
|
2021-04-02 08:27:12 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_DECREASE, BattleScript_SAtkDown2End
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatDownStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-29 15:33:16 +02:00
|
|
|
BattleScript_SAtkDown2End::
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-09-22 16:15:00 +02:00
|
|
|
BattleScript_MoveEffectClearSmog::
|
|
|
|
printstring STRINGID_RESETSTARGETSSTATLEVELS
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-22 16:15:00 +02:00
|
|
|
return
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_FocusPunchSetUp::
|
|
|
|
printstring STRINGID_EMPTYSTRING3
|
2021-04-02 08:16:01 +02:00
|
|
|
waitmessage 1
|
2018-09-10 21:19:19 +02:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_FOCUS_PUNCH_SETUP, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNTIGHTENINGFOCUS
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
2018-09-20 11:23:12 +02:00
|
|
|
|
2018-09-16 18:55:32 +02:00
|
|
|
BattleScript_MegaEvolution::
|
|
|
|
printstring STRINGID_MEGAEVOREACTING
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-05-02 23:10:01 +02:00
|
|
|
setbyte gIsCriticalHit, 0
|
|
|
|
handlemegaevo BS_ATTACKER, 0
|
|
|
|
handlemegaevo BS_ATTACKER, 1
|
2018-09-16 18:55:32 +02:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_MEGA_EVOLUTION, NULL
|
|
|
|
waitanimation
|
2019-05-02 23:10:01 +02:00
|
|
|
handlemegaevo BS_ATTACKER, 2
|
2018-09-16 18:55:32 +02:00
|
|
|
printstring STRINGID_MEGAEVOEVOLVED
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-02-16 13:34:25 +01:00
|
|
|
switchinabilities BS_ATTACKER
|
2018-09-16 18:55:32 +02:00
|
|
|
end2
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2020-11-07 13:53:34 +01:00
|
|
|
BattleScript_WishMegaEvolution::
|
|
|
|
printstring STRINGID_FERVENTWISHREACHED
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-11-07 13:53:34 +01:00
|
|
|
setbyte gIsCriticalHit, 0
|
|
|
|
handlemegaevo BS_ATTACKER, 0
|
|
|
|
handlemegaevo BS_ATTACKER, 1
|
|
|
|
playanimation BS_ATTACKER, B_ANIM_MEGA_EVOLUTION, NULL
|
|
|
|
waitanimation
|
|
|
|
handlemegaevo BS_ATTACKER, 2
|
|
|
|
printstring STRINGID_MEGAEVOEVOLVED
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-11-07 13:53:34 +01:00
|
|
|
switchinabilities BS_ATTACKER
|
|
|
|
end2
|
|
|
|
|
2020-04-19 21:18:39 +02:00
|
|
|
BattleScript_AttackerFormChange::
|
2021-04-28 03:36:37 +02:00
|
|
|
pause 5
|
2020-01-18 20:33:46 +01:00
|
|
|
copybyte gBattlerAbility, gBattlerAttacker
|
2019-12-31 19:11:53 +01:00
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
printstring STRINGID_EMPTYSTRING3
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage 1
|
2019-12-31 19:11:53 +01:00
|
|
|
handleformchange BS_ATTACKER, 0
|
|
|
|
handleformchange BS_ATTACKER, 1
|
|
|
|
playanimation BS_ATTACKER, B_ANIM_FORM_CHANGE, NULL
|
|
|
|
waitanimation
|
|
|
|
handleformchange BS_ATTACKER, 2
|
|
|
|
return
|
2020-04-19 21:18:39 +02:00
|
|
|
|
|
|
|
BattleScript_AttackerFormChangeEnd3::
|
|
|
|
call BattleScript_AttackerFormChange
|
|
|
|
end3
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2020-12-03 03:09:35 +01:00
|
|
|
BattleScript_BallFetch::
|
2020-12-05 07:03:55 +01:00
|
|
|
call BattleScript_AbilityPopUp
|
2020-12-03 03:09:35 +01:00
|
|
|
printstring STRINGID_FETCHEDPOKEBALL
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-12-03 03:09:35 +01:00
|
|
|
end3
|
|
|
|
|
2020-04-19 21:18:39 +02:00
|
|
|
BattleScript_TargetFormChange::
|
2021-04-28 03:36:37 +02:00
|
|
|
pause 5
|
2020-02-08 19:29:51 +01:00
|
|
|
copybyte gBattlerAbility, gBattlerTarget
|
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
printstring STRINGID_EMPTYSTRING3
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage 1
|
2020-02-08 19:29:51 +01:00
|
|
|
handleformchange BS_TARGET, 0
|
|
|
|
handleformchange BS_TARGET, 1
|
|
|
|
playanimation BS_TARGET, B_ANIM_FORM_CHANGE, NULL
|
|
|
|
waitanimation
|
|
|
|
handleformchange BS_TARGET, 2
|
|
|
|
return
|
2017-11-25 18:42:31 +01:00
|
|
|
|
2019-08-08 13:06:55 +02:00
|
|
|
BattleScript_IllusionOff::
|
|
|
|
spriteignore0hp TRUE
|
|
|
|
playanimation BS_TARGET, B_ANIM_ILLUSION_OFF, NULL
|
|
|
|
waitanimation
|
|
|
|
updatenick BS_TARGET
|
|
|
|
waitstate
|
|
|
|
spriteignore0hp FALSE
|
|
|
|
printstring STRINGID_ILLUSIONWOREOFF
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-08-08 13:06:55 +02:00
|
|
|
return
|
|
|
|
|
2020-12-03 02:53:00 +01:00
|
|
|
BattleScript_CottonDownActivates::
|
2020-12-13 01:24:39 +01:00
|
|
|
setbyte sFIXED_ABILITY_POPUP, TRUE
|
2020-12-07 19:03:52 +01:00
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
copybyte gEffectBattler, gBattlerTarget
|
|
|
|
savetarget
|
2021-04-28 03:36:37 +02:00
|
|
|
setbyte gBattlerTarget, 0
|
2020-12-03 02:53:00 +01:00
|
|
|
BattleScript_CottonDownLoop:
|
2021-07-13 18:54:31 +02:00
|
|
|
getbattlerfainted BS_TARGET
|
|
|
|
jumpifbyte CMP_EQUAL, gBattleCommunication, TRUE, BattleScript_CottonDownLoopIncrement
|
2020-12-03 02:53:00 +01:00
|
|
|
setstatchanger STAT_SPEED, 1, TRUE
|
2020-12-07 19:03:52 +01:00
|
|
|
jumpifbyteequal gBattlerTarget, gEffectBattler, BattleScript_CottonDownLoopIncrement
|
|
|
|
statbuffchange STAT_BUFF_NOT_PROTECT_AFFECTED, BattleScript_CottonDownTargetSpeedCantGoLower
|
2020-12-03 02:53:00 +01:00
|
|
|
setgraphicalstatchangevalues
|
|
|
|
playanimation BS_TARGET, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
|
|
|
printfromtable gStatDownStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-12-07 19:03:52 +01:00
|
|
|
goto BattleScript_CottonDownLoopIncrement
|
|
|
|
BattleScript_CottonDownTargetSpeedCantGoLower:
|
|
|
|
printstring STRINGID_STATSWONTDECREASE
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-12-07 19:03:52 +01:00
|
|
|
BattleScript_CottonDownLoopIncrement:
|
2021-04-28 03:36:37 +02:00
|
|
|
addbyte gBattlerTarget, 1
|
2020-12-03 02:53:00 +01:00
|
|
|
jumpifbytenotequal gBattlerTarget, gBattlersCount, BattleScript_CottonDownLoop
|
2020-12-07 19:03:52 +01:00
|
|
|
BattleScript_CottonDownReturn:
|
|
|
|
restoretarget
|
2020-12-13 01:24:39 +01:00
|
|
|
destroyabilitypopup
|
2020-12-07 19:03:52 +01:00
|
|
|
return
|
2020-12-03 02:53:00 +01:00
|
|
|
|
2020-04-11 12:24:25 +02:00
|
|
|
BattleScript_AnticipationActivates::
|
2021-04-28 03:36:37 +02:00
|
|
|
pause 5
|
2020-04-11 12:24:25 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
printstring STRINGID_ANTICIPATIONACTIVATES
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-04-11 12:24:25 +02:00
|
|
|
return
|
|
|
|
|
2019-12-21 09:01:42 +01:00
|
|
|
BattleScript_AftermathDmg::
|
2021-04-28 03:36:37 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2019-12-23 18:17:54 +01:00
|
|
|
call BattleScript_AbilityPopUp
|
2019-12-21 09:01:42 +01:00
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_x100000
|
|
|
|
healthbarupdate BS_ATTACKER
|
|
|
|
datahpupdate BS_ATTACKER
|
|
|
|
printstring STRINGID_AFTERMATHDMG
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-12-21 09:01:42 +01:00
|
|
|
tryfaintmon BS_ATTACKER, FALSE, NULL
|
|
|
|
return
|
|
|
|
|
2017-11-25 18:42:31 +01:00
|
|
|
BattleScript_MoveUsedIsAsleep::
|
|
|
|
printstring STRINGID_PKMNFASTASLEEP
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
statusanimation BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_MoveUsedWokeUp::
|
|
|
|
bicword gHitMarker, HITMARKER_x10
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gWokeUpStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
updatestatusicon BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
2017-11-26 17:26:11 +01:00
|
|
|
BattleScript_MonWokeUpInUproar::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNWOKEUPINUPROAR
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
updatestatusicon BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_PoisonTurnDmg::
|
|
|
|
printstring STRINGID_PKMNHURTBYPOISON
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_DoStatusTurnDmg::
|
2018-02-08 11:17:41 +01:00
|
|
|
statusanimation BS_ATTACKER
|
2020-04-13 15:49:40 +02:00
|
|
|
BattleScript_DoTurnDmg:
|
2017-11-25 18:42:31 +01:00
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_x100000
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_ATTACKER
|
|
|
|
datahpupdate BS_ATTACKER
|
|
|
|
tryfaintmon BS_ATTACKER, FALSE, NULL
|
2017-12-02 00:03:46 +01:00
|
|
|
atk24 BattleScript_DoTurnDmgEnd
|
2020-04-13 15:49:40 +02:00
|
|
|
BattleScript_DoTurnDmgEnd:
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-22 18:40:18 +02:00
|
|
|
BattleScript_PoisonHealActivates::
|
|
|
|
printstring STRINGID_POISONHEALHPUP
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-22 18:40:18 +02:00
|
|
|
recordability BS_ATTACKER
|
|
|
|
statusanimation BS_ATTACKER
|
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_x100000
|
|
|
|
healthbarupdate BS_ATTACKER
|
|
|
|
datahpupdate BS_ATTACKER
|
|
|
|
end2
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_BurnTurnDmg::
|
|
|
|
printstring STRINGID_PKMNHURTBYBURN
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-12-02 00:03:46 +01:00
|
|
|
goto BattleScript_DoStatusTurnDmg
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_MoveUsedIsFrozen::
|
|
|
|
printstring STRINGID_PKMNISFROZEN
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
statusanimation BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_MoveUsedUnfroze::
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gGotDefrostedStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
updatestatusicon BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_DefrostedViaFireMove::
|
|
|
|
printstring STRINGID_PKMNWASDEFROSTED
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
updatestatusicon BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_MoveUsedIsParalyzed::
|
|
|
|
printstring STRINGID_PKMNISPARALYZED
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
statusanimation BS_ATTACKER
|
|
|
|
cancelmultiturnmoves BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-03-02 13:08:50 +01:00
|
|
|
BattleScript_PowderMoveNoEffect::
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2021-04-28 03:36:37 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2019-03-02 13:08:50 +01:00
|
|
|
jumpiftype BS_TARGET, TYPE_GRASS, BattleScript_PowderMoveNoEffectPrint
|
2019-03-08 10:16:54 +01:00
|
|
|
jumpifability BS_TARGET, ABILITY_OVERCOAT, BattleScript_PowderMoveNoEffectOvercoat
|
|
|
|
printstring STRINGID_SAFETYGOOGLESPROTECTED
|
|
|
|
goto BattleScript_PowderMoveNoEffectWaitMsg
|
|
|
|
BattleScript_PowderMoveNoEffectOvercoat:
|
2019-03-02 13:08:50 +01:00
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
BattleScript_PowderMoveNoEffectPrint:
|
|
|
|
printstring STRINGID_ITDOESNTAFFECT
|
2019-03-08 10:16:54 +01:00
|
|
|
BattleScript_PowderMoveNoEffectWaitMsg:
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-03-02 13:08:50 +01:00
|
|
|
cancelmultiturnmoves BS_ATTACKER
|
|
|
|
sethword gMoveResultFlags, MOVE_RESULT_FAILED
|
|
|
|
goto BattleScript_MoveEnd
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_MoveUsedFlinched::
|
|
|
|
printstring STRINGID_PKMNFLINCHED
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-22 18:40:18 +02:00
|
|
|
jumpifability BS_ATTACKER ABILITY_STEADFAST BattleScript_TryActivateSteadFast
|
|
|
|
BattleScript_MoveUsedFlinchedEnd:
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
2018-07-22 18:40:18 +02:00
|
|
|
BattleScript_TryActivateSteadFast:
|
|
|
|
setstatchanger STAT_SPEED, 1, FALSE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_MoveUsedFlinchedEnd
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_MoveUsedFlinchedEnd
|
2020-01-04 18:41:59 +01:00
|
|
|
copybyte gBattlerAbility, gBattlerAttacker
|
|
|
|
call BattleScript_AbilityPopUp
|
2018-07-22 18:40:18 +02:00
|
|
|
setgraphicalstatchangevalues
|
|
|
|
playanimation BS_ATTACKER, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
|
|
|
setbyte gBattleCommunication STAT_SPEED
|
|
|
|
stattextbuffer BS_ATTACKER
|
2020-01-04 18:41:59 +01:00
|
|
|
printstring STRINGID_ATTACKERABILITYSTATRAISE
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-22 18:40:18 +02:00
|
|
|
goto BattleScript_MoveUsedFlinchedEnd
|
2017-11-25 18:42:31 +01:00
|
|
|
|
2017-11-26 17:26:11 +01:00
|
|
|
BattleScript_PrintUproarOverTurns::
|
|
|
|
printfromtable gUproarOverTurnStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_ThrashConfuses::
|
2018-02-08 11:17:41 +01:00
|
|
|
chosenstatus2animation BS_ATTACKER, STATUS2_CONFUSION
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNFATIGUECONFUSION
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_MoveUsedIsConfused::
|
|
|
|
printstring STRINGID_PKMNISCONFUSED
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
status2animation BS_ATTACKER, STATUS2_CONFUSION
|
2021-04-02 08:27:12 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, FALSE, BattleScript_MoveUsedIsConfusedRet
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_DoSelfConfusionDmg::
|
2018-02-08 11:17:41 +01:00
|
|
|
cancelmultiturnmoves BS_ATTACKER
|
2018-07-14 22:56:03 +02:00
|
|
|
adjustdamage
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_ITHURTCONFUSION
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
effectivenesssound
|
2018-02-08 11:17:41 +01:00
|
|
|
hitanimation BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_x100000
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_ATTACKER
|
|
|
|
datahpupdate BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
resultmessage
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
tryfaintmon BS_ATTACKER, FALSE, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_MoveUsedIsConfusedRet::
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-12-03 12:50:32 +01:00
|
|
|
BattleScript_MoveUsedPowder::
|
|
|
|
bicword gHitMarker, HITMARKER_NO_ATTACKSTRING | HITMARKER_ATTACKSTRING_PRINTED
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2021-04-28 03:36:37 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2018-12-03 12:50:32 +01:00
|
|
|
cancelmultiturnmoves BS_ATTACKER
|
|
|
|
status2animation BS_ATTACKER, STATUS2_POWDER
|
|
|
|
waitanimation
|
|
|
|
effectivenesssound
|
|
|
|
hitanimation BS_ATTACKER
|
|
|
|
waitstate
|
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_x100000
|
|
|
|
healthbarupdate BS_ATTACKER
|
|
|
|
datahpupdate BS_ATTACKER
|
|
|
|
printstring STRINGID_POWDEREXPLODES
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-12-03 12:50:32 +01:00
|
|
|
tryfaintmon BS_ATTACKER, FALSE, NULL
|
|
|
|
goto BattleScript_MoveEnd
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_MoveUsedIsConfusedNoMore::
|
|
|
|
printstring STRINGID_PKMNHEALEDCONFUSION
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_PrintPayDayMoneyString::
|
2021-01-11 14:47:11 +01:00
|
|
|
printstring STRINGID_PLAYERPICKEDUPMONEY
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_WrapTurnDmg::
|
2020-04-13 15:49:40 +02:00
|
|
|
jumpifability BS_ATTACKER, ABILITY_MAGIC_GUARD, BattleScript_DoTurnDmgEnd
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_TURN_TRAP, sB_ANIM_ARG1
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNHURTBY
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-12-02 00:03:46 +01:00
|
|
|
goto BattleScript_DoTurnDmg
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_WrapEnds::
|
|
|
|
printstring STRINGID_PKMNFREEDFROM
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_MoveUsedIsInLove::
|
|
|
|
printstring STRINGID_PKMNINLOVE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
status2animation BS_ATTACKER, STATUS2_INFATUATION
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
2019-03-05 17:06:29 +01:00
|
|
|
BattleScript_MoveUsedIsInLoveCantAttack::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNIMMOBILIZEDBYLOVE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_NightmareTurnDmg::
|
|
|
|
printstring STRINGID_PKMNLOCKEDINNIGHTMARE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
status2animation BS_ATTACKER, STATUS2_NIGHTMARE
|
2017-12-02 00:03:46 +01:00
|
|
|
goto BattleScript_DoTurnDmg
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_CurseTurnDmg::
|
|
|
|
printstring STRINGID_PKMNAFFLICTEDBYCURSE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
status2animation BS_ATTACKER, STATUS2_CURSED
|
2017-12-02 00:03:46 +01:00
|
|
|
goto BattleScript_DoTurnDmg
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_TargetPRLZHeal::
|
|
|
|
printstring STRINGID_PKMNHEALEDPARALYSIS
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
updatestatusicon BS_TARGET
|
2021-09-07 06:34:32 +02:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_TargetWokeUp::
|
|
|
|
printstring STRINGID_TARGETWOKEUP
|
|
|
|
waitmessage B_WAIT_TIME_LONG
|
|
|
|
updatestatusicon BS_TARGET
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_TargetBurnHeal::
|
|
|
|
printstring STRINGID_PKMNBURNHEALED
|
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
updatestatusicon BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_MoveEffectSleep::
|
2018-02-08 11:17:41 +01:00
|
|
|
statusanimation BS_EFFECT_BATTLER
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gFellAsleepStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_UpdateEffectStatusIconRet::
|
2018-02-08 11:17:41 +01:00
|
|
|
updatestatusicon BS_EFFECT_BATTLER
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_YawnMakesAsleep::
|
2018-02-08 11:17:41 +01:00
|
|
|
statusanimation BS_EFFECT_BATTLER
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNFELLASLEEP
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
updatestatusicon BS_EFFECT_BATTLER
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
2018-02-08 11:17:41 +01:00
|
|
|
makevisible BS_EFFECT_BATTLER
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-18 22:07:48 +02:00
|
|
|
BattleScript_EmbargoEndTurn::
|
|
|
|
printstring STRINGID_EMBARGOENDS
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-18 22:07:48 +02:00
|
|
|
end2
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-18 22:07:48 +02:00
|
|
|
BattleScript_TelekinesisEndTurn::
|
|
|
|
printstring STRINGID_TELEKINESISENDS
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-18 22:07:48 +02:00
|
|
|
end2
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-03-24 03:45:21 +01:00
|
|
|
BattleScript_BufferEndTurn::
|
|
|
|
printstring STRINGID_BUFFERENDS
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-18 22:07:48 +02:00
|
|
|
end2
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-05-10 11:03:33 +02:00
|
|
|
BattleScript_ToxicOrb::
|
|
|
|
setbyte cMULTISTRING_CHOOSER, 0
|
|
|
|
copybyte gEffectBattler, gBattlerAttacker
|
|
|
|
call BattleScript_MoveEffectToxic
|
|
|
|
end2
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-05-10 11:03:33 +02:00
|
|
|
BattleScript_FlameOrb::
|
|
|
|
setbyte cMULTISTRING_CHOOSER, 0
|
|
|
|
copybyte gEffectBattler, gBattlerAttacker
|
|
|
|
call BattleScript_MoveEffectBurn
|
|
|
|
end2
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_MoveEffectPoison::
|
2018-02-08 11:17:41 +01:00
|
|
|
statusanimation BS_EFFECT_BATTLER
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gGotPoisonedStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-12-02 00:03:46 +01:00
|
|
|
goto BattleScript_UpdateEffectStatusIconRet
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_MoveEffectBurn::
|
2018-02-08 11:17:41 +01:00
|
|
|
statusanimation BS_EFFECT_BATTLER
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gGotBurnedStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-12-02 00:03:46 +01:00
|
|
|
goto BattleScript_UpdateEffectStatusIconRet
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_MoveEffectFreeze::
|
2018-02-08 11:17:41 +01:00
|
|
|
statusanimation BS_EFFECT_BATTLER
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gGotFrozenStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-12-02 00:03:46 +01:00
|
|
|
goto BattleScript_UpdateEffectStatusIconRet
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_MoveEffectParalysis::
|
2018-02-08 11:17:41 +01:00
|
|
|
statusanimation BS_EFFECT_BATTLER
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gGotParalyzedStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-12-02 00:03:46 +01:00
|
|
|
goto BattleScript_UpdateEffectStatusIconRet
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_MoveEffectUproar::
|
|
|
|
printstring STRINGID_PKMNCAUSEDUPROAR
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_MoveEffectToxic::
|
2018-02-08 11:17:41 +01:00
|
|
|
statusanimation BS_EFFECT_BATTLER
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNBADLYPOISONED
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-12-02 00:03:46 +01:00
|
|
|
goto BattleScript_UpdateEffectStatusIconRet
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_MoveEffectPayDay::
|
|
|
|
printstring STRINGID_COINSSCATTERED
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_MoveEffectWrap::
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gWrappedStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_MoveEffectConfusion::
|
2018-02-08 11:17:41 +01:00
|
|
|
chosenstatus2animation BS_EFFECT_BATTLER, STATUS2_CONFUSION
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNWASCONFUSED
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
2018-09-22 10:45:43 +02:00
|
|
|
BattleScript_MoveEffectRecoilWithStatus::
|
|
|
|
argumentstatuseffect
|
|
|
|
copyword gBattleMoveDamage, sSAVED_DMG
|
2018-09-01 20:00:13 +02:00
|
|
|
BattleScript_MoveEffectRecoil::
|
|
|
|
jumpifmove MOVE_STRUGGLE, BattleScript_DoRecoil
|
|
|
|
jumpifability BS_ATTACKER, ABILITY_ROCK_HEAD, BattleScript_RecoilEnd
|
|
|
|
BattleScript_DoRecoil::
|
2021-09-06 08:27:42 +02:00
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_x100000 | HITMARKER_IGNORE_DISGUISE
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_ATTACKER
|
|
|
|
datahpupdate BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNHITWITHRECOIL
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
tryfaintmon BS_ATTACKER, FALSE, NULL
|
2018-09-01 20:00:13 +02:00
|
|
|
BattleScript_RecoilEnd::
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-09-22 10:45:43 +02:00
|
|
|
BattleScript_EffectWithChance::
|
|
|
|
seteffectwithchance
|
|
|
|
return
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_ItemSteal::
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_TARGET, B_ANIM_ITEM_STEAL, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSTOLEITEM
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_DrizzleActivates::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNMADEITRAIN
|
|
|
|
waitstate
|
2018-07-01 12:16:52 +02:00
|
|
|
playanimation BS_BATTLER_0, B_ANIM_RAIN_CONTINUES, NULL
|
2017-11-26 01:19:57 +01:00
|
|
|
call BattleScript_WeatherFormChanges
|
2017-11-25 18:42:31 +01:00
|
|
|
end3
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-02-16 12:54:11 +01:00
|
|
|
BattleScript_DefiantActivates::
|
2021-04-28 03:36:37 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2019-02-16 12:54:11 +01:00
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
statbuffchange 0, NULL
|
|
|
|
setgraphicalstatchangevalues
|
|
|
|
playanimation BS_ABILITY_BATTLER, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
2021-04-28 03:36:37 +02:00
|
|
|
printstring STRINGID_DEFENDERSSTATROSE
|
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-02-16 12:54:11 +01:00
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-09-29 13:36:33 +02:00
|
|
|
BattleScript_AbilityPopUp:
|
2021-06-08 12:56:38 +02:00
|
|
|
.if B_ABILITY_POP_UP == TRUE
|
2018-09-29 13:36:33 +02:00
|
|
|
showabilitypopup BS_ABILITY_BATTLER
|
|
|
|
recordability BS_ABILITY_BATTLER
|
2020-11-10 18:05:11 +01:00
|
|
|
pause 40
|
2021-06-08 12:56:38 +02:00
|
|
|
.endif
|
2021-02-02 17:00:07 +01:00
|
|
|
sethword sABILITY_OVERWRITE, 0
|
2018-09-29 13:36:33 +02:00
|
|
|
return
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_SpeedBoostActivates::
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNRAISEDSPEED
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
end3
|
2020-04-19 15:44:44 +02:00
|
|
|
|
|
|
|
@ Can't compare directly to a value, have to compare to value at pointer
|
|
|
|
sZero:
|
|
|
|
.byte 0
|
|
|
|
|
|
|
|
BattleScript_MoodyActivates::
|
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
jumpifbyteequal sSTATCHANGER, sZero, BattleScript_MoodyLower
|
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | MOVE_EFFECT_CERTAIN | STAT_BUFF_NOT_PROTECT_AFFECTED, BattleScript_MoodyLower
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_GREATER_THAN, cMULTISTRING_CHOOSER, B_MSG_DEFENDER_STAT_ROSE, BattleScript_MoodyLower
|
2020-04-19 15:44:44 +02:00
|
|
|
setgraphicalstatchangevalues
|
|
|
|
playanimation BS_ATTACKER, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-04-19 15:44:44 +02:00
|
|
|
BattleScript_MoodyLower:
|
|
|
|
jumpifbyteequal sSAVED_STAT_CHANGER, sZero, BattleScript_MoodyEnd
|
|
|
|
copybyte sSTATCHANGER, sSAVED_STAT_CHANGER
|
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | MOVE_EFFECT_CERTAIN | STAT_BUFF_NOT_PROTECT_AFFECTED, BattleScript_MoodyEnd
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_GREATER_THAN, cMULTISTRING_CHOOSER, B_MSG_DEFENDER_STAT_FELL, BattleScript_MoodyEnd
|
2020-04-19 15:44:44 +02:00
|
|
|
setgraphicalstatchangevalues
|
|
|
|
playanimation BS_ATTACKER, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
|
|
|
printfromtable gStatDownStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-04-19 15:44:44 +02:00
|
|
|
BattleScript_MoodyEnd:
|
|
|
|
end3
|
2020-07-15 17:21:12 +02:00
|
|
|
|
|
|
|
BattleScript_EmergencyExit::
|
2021-04-28 03:36:37 +02:00
|
|
|
pause 5
|
2020-07-15 17:21:12 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2021-04-28 03:36:37 +02:00
|
|
|
pause B_WAIT_TIME_LONG
|
2020-07-15 17:21:12 +02:00
|
|
|
BattleScript_EmergencyExitNoPopUp::
|
|
|
|
playanimation BS_TARGET, B_ANIM_SLIDE_OFFSCREEN, NULL
|
|
|
|
waitanimation
|
|
|
|
openpartyscreen BS_TARGET, BattleScript_EmergencyExitRet
|
|
|
|
switchoutabilities BS_TARGET
|
|
|
|
waitstate
|
|
|
|
switchhandleorder BS_TARGET, 2
|
|
|
|
returntoball BS_TARGET
|
|
|
|
getswitchedmondata BS_TARGET
|
|
|
|
switchindataupdate BS_TARGET
|
|
|
|
hpthresholds BS_TARGET
|
|
|
|
printstring STRINGID_SWITCHINMON
|
|
|
|
switchinanim BS_TARGET, TRUE
|
|
|
|
waitstate
|
|
|
|
switchineffects BS_TARGET
|
|
|
|
BattleScript_EmergencyExitRet:
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_EmergencyExitWild::
|
2021-04-28 03:36:37 +02:00
|
|
|
pause 5
|
2020-07-15 17:21:12 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2021-04-28 03:36:37 +02:00
|
|
|
pause B_WAIT_TIME_LONG
|
2020-07-15 17:21:12 +02:00
|
|
|
BattleScript_EmergencyExitWildNoPopUp::
|
|
|
|
playanimation BS_TARGET, B_ANIM_SLIDE_OFFSCREEN, NULL
|
|
|
|
waitanimation
|
|
|
|
setoutcomeonteleport BS_TARGET
|
|
|
|
finishaction
|
|
|
|
return
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_TraceActivates::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNTRACED
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-08-30 12:25:21 +02:00
|
|
|
settracedability BS_SCRIPTING
|
|
|
|
switchinabilities BS_SCRIPTING
|
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-08-30 12:25:21 +02:00
|
|
|
BattleScript_TraceActivatesEnd3::
|
|
|
|
call BattleScript_TraceActivates
|
2017-11-25 18:42:31 +01:00
|
|
|
end3
|
|
|
|
|
2020-04-19 12:07:56 +02:00
|
|
|
BattleScript_ReceiverActivates::
|
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
printstring STRINGID_RECEIVERABILITYTAKEOVER
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-04-19 12:07:56 +02:00
|
|
|
settracedability BS_ABILITY_BATTLER
|
|
|
|
return
|
2020-07-16 15:20:03 +02:00
|
|
|
|
|
|
|
BattleScript_AbilityHpHeal:
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSXRESTOREDHPALITTLE2
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_ATTACKER
|
|
|
|
datahpupdate BS_ATTACKER
|
2020-07-16 15:20:03 +02:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_RainDishActivates::
|
|
|
|
call BattleScript_AbilityHpHeal
|
2017-11-25 18:42:31 +01:00
|
|
|
end3
|
2020-07-16 15:20:03 +02:00
|
|
|
|
|
|
|
BattleScript_CheekPouchActivates::
|
|
|
|
copybyte sSAVED_BATTLER, gBattlerAttacker
|
|
|
|
copybyte gBattlerAttacker, gBattlerAbility
|
|
|
|
call BattleScript_AbilityHpHeal
|
|
|
|
copybyte gBattlerAttacker, sSAVED_BATTLER
|
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-28 17:13:47 +02:00
|
|
|
BattleScript_HarvestActivates::
|
2021-04-28 03:36:37 +02:00
|
|
|
pause 5
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2018-07-28 17:13:47 +02:00
|
|
|
printstring STRINGID_HARVESTBERRY
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-28 17:13:47 +02:00
|
|
|
end3
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-26 21:56:23 +02:00
|
|
|
BattleScript_SolarPowerActivates::
|
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_x100000
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2018-07-26 21:56:23 +02:00
|
|
|
healthbarupdate BS_ATTACKER
|
|
|
|
datahpupdate BS_ATTACKER
|
|
|
|
printstring STRINGID_SOLARPOWERHPDROP
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-26 21:56:23 +02:00
|
|
|
tryfaintmon BS_ATTACKER, FALSE, NULL
|
|
|
|
end3
|
2020-04-18 19:09:17 +02:00
|
|
|
|
|
|
|
BattleScript_HealerActivates::
|
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
curestatus BS_SCRIPTING
|
|
|
|
updatestatusicon BS_SCRIPTING
|
|
|
|
printstring STRINGID_HEALERCURE
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-04-18 19:09:17 +02:00
|
|
|
end3
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_SandstreamActivates::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSXWHIPPEDUPSANDSTORM
|
|
|
|
waitstate
|
2018-07-01 12:16:52 +02:00
|
|
|
playanimation BS_BATTLER_0, B_ANIM_SANDSTORM_CONTINUES, NULL
|
2017-11-26 01:19:57 +01:00
|
|
|
call BattleScript_WeatherFormChanges
|
2017-11-25 18:42:31 +01:00
|
|
|
end3
|
|
|
|
|
2020-12-11 20:41:53 +01:00
|
|
|
BattleScript_SandSpitActivates::
|
2021-04-28 03:36:37 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2020-12-11 20:41:53 +01:00
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
printstring STRINGID_ASANDSTORMKICKEDUP
|
|
|
|
waitstate
|
|
|
|
playanimation BS_BATTLER_0, B_ANIM_SANDSTORM_CONTINUES, NULL
|
|
|
|
call BattleScript_WeatherFormChanges
|
|
|
|
return
|
|
|
|
|
2017-11-25 18:42:31 +01:00
|
|
|
BattleScript_ShedSkinActivates::
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSXCUREDYPROBLEM
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
updatestatusicon BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
end3
|
|
|
|
|
2017-11-26 01:19:57 +01:00
|
|
|
BattleScript_WeatherFormChanges::
|
2021-04-03 18:38:07 +02:00
|
|
|
setbyte sBATTLER, 0
|
2017-11-26 01:19:57 +01:00
|
|
|
BattleScript_WeatherFormChangesLoop::
|
2017-11-25 18:42:31 +01:00
|
|
|
trycastformdatachange
|
2021-04-03 18:38:07 +02:00
|
|
|
addbyte sBATTLER, 1
|
2018-10-27 00:04:18 +02:00
|
|
|
jumpifbytenotequal sBATTLER, gBattlersCount, BattleScript_WeatherFormChangesLoop
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_CastformChange::
|
2020-08-05 02:33:05 +02:00
|
|
|
call BattleScript_DoCastformChange
|
2017-11-25 18:42:31 +01:00
|
|
|
end3
|
|
|
|
|
2020-08-05 02:33:05 +02:00
|
|
|
BattleScript_DoCastformChange::
|
2019-06-14 12:58:29 +02:00
|
|
|
copybyte gBattlerAbility, sBATTLER
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2017-11-25 18:42:31 +01:00
|
|
|
docastformchangeanimation
|
|
|
|
waitstate
|
|
|
|
printstring STRINGID_PKMNTRANSFORMED
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
2020-04-22 15:12:25 +02:00
|
|
|
|
|
|
|
BattleScript_TryAdrenalineOrb:
|
|
|
|
jumpifnoholdeffect BS_TARGET, HOLD_EFFECT_ADRENALINE_ORB, BattleScript_TryAdrenalineOrbRet
|
|
|
|
jumpifstat BS_TARGET, CMP_EQUAL, STAT_SPEED, 12, BattleScript_TryAdrenalineOrbRet
|
|
|
|
setstatchanger STAT_SPEED, 1, FALSE
|
|
|
|
statbuffchange STAT_BUFF_NOT_PROTECT_AFFECTED | MOVE_EFFECT_CERTAIN | STAT_BUFF_ALLOW_PTR, BattleScript_TryAdrenalineOrbRet
|
|
|
|
playanimation BS_TARGET, B_ANIM_HELD_ITEM_EFFECT, NULL
|
|
|
|
setgraphicalstatchangevalues
|
|
|
|
playanimation BS_TARGET, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
|
|
|
copybyte sBATTLER, gBattlerTarget
|
|
|
|
setlastuseditem BS_TARGET
|
2021-04-28 03:36:37 +02:00
|
|
|
printstring STRINGID_USINGITEMSTATOFPKMNROSE
|
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-04-22 15:12:25 +02:00
|
|
|
removeitem BS_TARGET
|
|
|
|
BattleScript_TryAdrenalineOrbRet:
|
|
|
|
return
|
2017-11-25 18:42:31 +01:00
|
|
|
|
2018-09-01 20:00:13 +02:00
|
|
|
BattleScript_IntimidateActivatesEnd3::
|
|
|
|
call BattleScript_PauseIntimidateActivates
|
2017-11-25 18:42:31 +01:00
|
|
|
end3
|
|
|
|
|
2018-09-01 20:00:13 +02:00
|
|
|
BattleScript_PauseIntimidateActivates:
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2018-09-01 20:00:13 +02:00
|
|
|
BattleScript_IntimidateActivates::
|
2021-04-03 18:38:07 +02:00
|
|
|
setbyte gBattlerTarget, 0
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2018-09-01 20:00:13 +02:00
|
|
|
BattleScript_IntimidateActivatesLoop:
|
2020-04-22 15:12:25 +02:00
|
|
|
setstatchanger STAT_ATK, 1, TRUE
|
2018-09-01 20:00:13 +02:00
|
|
|
trygetintimidatetarget BattleScript_IntimidateActivatesReturn
|
|
|
|
jumpifstatus2 BS_TARGET, STATUS2_SUBSTITUTE, BattleScript_IntimidateActivatesLoopIncrement
|
|
|
|
jumpifability BS_TARGET, ABILITY_CLEAR_BODY, BattleScript_IntimidatePrevented
|
|
|
|
jumpifability BS_TARGET, ABILITY_HYPER_CUTTER, BattleScript_IntimidatePrevented
|
|
|
|
jumpifability BS_TARGET, ABILITY_WHITE_SMOKE, BattleScript_IntimidatePrevented
|
2021-01-14 02:42:56 +01:00
|
|
|
.if B_UPDATED_INTIMIDATE >= GEN_8
|
2020-11-10 14:18:16 +01:00
|
|
|
jumpifability BS_TARGET, ABILITY_INNER_FOCUS, BattleScript_IntimidatePrevented
|
|
|
|
jumpifability BS_TARGET, ABILITY_SCRAPPY, BattleScript_IntimidatePrevented
|
|
|
|
jumpifability BS_TARGET, ABILITY_OWN_TEMPO, BattleScript_IntimidatePrevented
|
|
|
|
jumpifability BS_TARGET, ABILITY_OBLIVIOUS, BattleScript_IntimidatePrevented
|
2021-01-14 02:42:56 +01:00
|
|
|
.endif
|
2019-09-27 08:46:33 +02:00
|
|
|
statbuffchange STAT_BUFF_NOT_PROTECT_AFFECTED | STAT_BUFF_ALLOW_PTR, BattleScript_IntimidateActivatesLoopIncrement
|
2021-04-02 08:27:12 +02:00
|
|
|
jumpifbyte CMP_GREATER_THAN, cMULTISTRING_CHOOSER, 1, BattleScript_IntimidateActivatesLoopIncrement
|
2017-11-25 18:42:31 +01:00
|
|
|
setgraphicalstatchangevalues
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_TARGET, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNCUTSATTACKWITH
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-04-22 15:12:25 +02:00
|
|
|
call BattleScript_TryAdrenalineOrb
|
2018-09-01 20:00:13 +02:00
|
|
|
BattleScript_IntimidateActivatesLoopIncrement:
|
2021-04-03 18:38:07 +02:00
|
|
|
addbyte gBattlerTarget, 1
|
2018-09-01 20:00:13 +02:00
|
|
|
goto BattleScript_IntimidateActivatesLoop
|
|
|
|
BattleScript_IntimidateActivatesReturn:
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
2018-09-01 20:00:13 +02:00
|
|
|
BattleScript_IntimidatePrevented:
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2020-11-10 14:34:51 +01:00
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
setbyte gBattleCommunication STAT_ATK
|
|
|
|
stattextbuffer BS_ATTACKER
|
|
|
|
printstring STRINGID_STATWASNOTLOWERED
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-04-22 15:12:25 +02:00
|
|
|
call BattleScript_TryAdrenalineOrb
|
2018-09-01 20:00:13 +02:00
|
|
|
goto BattleScript_IntimidateActivatesLoopIncrement
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2017-11-25 18:42:31 +01:00
|
|
|
BattleScript_DroughtActivates::
|
2021-04-28 03:36:37 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSXINTENSIFIEDSUN
|
|
|
|
waitstate
|
2018-07-01 12:16:52 +02:00
|
|
|
playanimation BS_BATTLER_0, B_ANIM_SUN_CONTINUES, NULL
|
2017-11-26 01:19:57 +01:00
|
|
|
call BattleScript_WeatherFormChanges
|
2017-11-25 18:42:31 +01:00
|
|
|
end3
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-27 23:40:10 +02:00
|
|
|
BattleScript_SnowWarningActivates::
|
2021-04-28 03:36:37 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2018-07-27 23:40:10 +02:00
|
|
|
printstring STRINGID_SNOWWARNINGHAIL
|
|
|
|
waitstate
|
|
|
|
playanimation BS_BATTLER_0, B_ANIM_HAIL_CONTINUES, NULL
|
|
|
|
call BattleScript_WeatherFormChanges
|
|
|
|
end3
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-02-09 14:30:16 +01:00
|
|
|
BattleScript_ElectricSurgeActivates::
|
2021-04-28 03:36:37 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2019-02-09 14:30:16 +01:00
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
printstring STRINGID_TERRAINBECOMESELECTRIC
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-12-14 03:42:48 +01:00
|
|
|
playanimation BS_SCRIPTING, B_ANIM_RESTORE_BG, NULL
|
2019-02-09 14:30:16 +01:00
|
|
|
end3
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-02-09 14:30:16 +01:00
|
|
|
BattleScript_MistySurgeActivates::
|
2021-04-28 03:36:37 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2019-02-09 14:30:16 +01:00
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
printstring STRINGID_TERRAINBECOMESMISTY
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-12-14 03:42:48 +01:00
|
|
|
playanimation BS_SCRIPTING, B_ANIM_RESTORE_BG, NULL
|
2019-02-09 14:30:16 +01:00
|
|
|
end3
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-02-09 14:30:16 +01:00
|
|
|
BattleScript_GrassySurgeActivates::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2019-02-09 14:30:16 +01:00
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
printstring STRINGID_TERRAINBECOMESGRASSY
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-12-14 03:42:48 +01:00
|
|
|
playanimation BS_SCRIPTING, B_ANIM_RESTORE_BG, NULL
|
2019-02-09 14:30:16 +01:00
|
|
|
end3
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-02-09 14:30:16 +01:00
|
|
|
BattleScript_PsychicSurgeActivates::
|
2021-04-28 03:36:37 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2019-02-09 14:30:16 +01:00
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
printstring STRINGID_TERRAINBECOMESPSYCHIC
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-12-14 03:42:48 +01:00
|
|
|
playanimation BS_SCRIPTING, B_ANIM_RESTORE_BG, NULL
|
2019-02-09 14:30:16 +01:00
|
|
|
end3
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-22 21:05:12 +02:00
|
|
|
BattleScript_BadDreamsActivates::
|
|
|
|
setbyte gBattlerTarget, 0
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2018-07-22 21:05:12 +02:00
|
|
|
BattleScript_BadDreamsLoop:
|
|
|
|
trygetbaddreamstarget BattleScript_BadDreamsEnd
|
|
|
|
dmg_1_8_targethp
|
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_x100000
|
|
|
|
printstring STRINGID_BADDREAMSDMG
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-06-26 15:14:15 +02:00
|
|
|
jumpifability BS_TARGET, ABILITY_MAGIC_GUARD, BattleScript_BadDreamsIncrement
|
2018-07-22 21:05:12 +02:00
|
|
|
healthbarupdate BS_TARGET
|
|
|
|
datahpupdate BS_TARGET
|
|
|
|
tryfaintmon BS_TARGET, FALSE, NULL
|
|
|
|
atk24 BattleScript_BadDreamsIncrement
|
|
|
|
BattleScript_BadDreamsIncrement:
|
|
|
|
addbyte gBattlerTarget, 1
|
|
|
|
goto BattleScript_BadDreamsLoop
|
|
|
|
BattleScript_BadDreamsEnd:
|
|
|
|
end3
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_TookAttack::
|
|
|
|
attackstring
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSXTOOKATTACK
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
orword gHitMarker, HITMARKER_ATTACKSTRING_PRINTED
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_SturdyPreventsOHKO::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNPROTECTEDBY
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_DampStopsExplosion::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2020-02-29 09:45:37 +01:00
|
|
|
copybyte gBattlerAbility, gBattlerTarget
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNPREVENTSUSAGE
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_LONG
|
2020-04-11 12:02:51 +02:00
|
|
|
moveendto MOVEEND_NEXT_TARGET
|
|
|
|
moveendcase MOVEEND_CLEAR_BITS
|
|
|
|
end
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_MoveHPDrain_PPLoss::
|
|
|
|
ppreduce
|
|
|
|
BattleScript_MoveHPDrain::
|
|
|
|
attackstring
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2020-02-22 19:25:35 +01:00
|
|
|
call BattleScript_AbilityPopUp
|
2017-11-25 18:42:31 +01:00
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_TARGET
|
|
|
|
datahpupdate BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNRESTOREDHPUSING
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-21 15:11:13 +02:00
|
|
|
orhalfword gMoveResultFlags, MOVE_RESULT_DOESNT_AFFECT_FOE
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-22 18:40:18 +02:00
|
|
|
BattleScript_MoveStatDrain_PPLoss::
|
|
|
|
ppreduce
|
|
|
|
BattleScript_MoveStatDrain::
|
|
|
|
attackstring
|
2021-04-28 03:36:37 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2020-02-22 19:25:35 +01:00
|
|
|
call BattleScript_AbilityPopUp
|
2018-07-22 18:40:18 +02:00
|
|
|
setgraphicalstatchangevalues
|
|
|
|
playanimation BS_TARGET, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_TARGETABILITYSTATRAISE
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2021-09-08 12:38:46 +02:00
|
|
|
tryfaintmon BS_ATTACKER, FALSE, NULL
|
2018-07-22 18:40:18 +02:00
|
|
|
goto BattleScript_MoveEnd
|
2017-11-25 18:42:31 +01:00
|
|
|
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_MonMadeMoveUseless_PPLoss::
|
2017-11-25 18:42:31 +01:00
|
|
|
ppreduce
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_MonMadeMoveUseless::
|
2017-11-25 18:42:31 +01:00
|
|
|
attackstring
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSXMADEYUSELESS
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2021-09-08 12:38:46 +02:00
|
|
|
tryfaintmon BS_ATTACKER, FALSE, NULL
|
2018-07-21 15:11:13 +02:00
|
|
|
orhalfword gMoveResultFlags, MOVE_RESULT_DOESNT_AFFECT_FOE
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_FlashFireBoost_PPLoss::
|
|
|
|
ppreduce
|
|
|
|
BattleScript_FlashFireBoost::
|
|
|
|
attackstring
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gFlashFireStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2021-09-08 12:38:46 +02:00
|
|
|
tryfaintmon BS_ATTACKER, FALSE, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2017-12-03 00:47:21 +01:00
|
|
|
BattleScript_AbilityPreventsPhasingOut::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNANCHORSITSELFWITH
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_AbilityNoStatLoss::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNPREVENTSSTATLOSSWITH
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_BRNPrevention::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gBRNPreventionStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_PRLZPrevention::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gPRLZPreventionStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_PSNPrevention::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gPSNPreventionStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_ObliviousPreventsAttraction::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNPREVENTSROMANCEWITH
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2017-11-26 01:19:57 +01:00
|
|
|
BattleScript_OwnTempoPrevents::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNPREVENTSCONFUSIONWITH
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_SoundproofProtected::
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSXBLOCKSY
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-11-30 22:12:18 +01:00
|
|
|
BattleScript_DazzlingProtected::
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2021-04-28 03:36:37 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2018-11-30 22:12:18 +01:00
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
printstring STRINGID_POKEMONCANNOTUSEMOVE
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-11-30 22:12:18 +01:00
|
|
|
goto BattleScript_MoveEnd
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-12-01 11:35:49 +01:00
|
|
|
BattleScript_MoveUsedPsychicTerrainPrevents::
|
|
|
|
printstring STRINGID_POKEMONCANNOTUSEMOVE
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-12-01 11:35:49 +01:00
|
|
|
goto BattleScript_MoveEnd
|
2017-11-25 18:42:31 +01:00
|
|
|
|
2020-06-29 18:26:53 +02:00
|
|
|
BattleScript_GrassyTerrainHeals::
|
|
|
|
setbyte gBattleCommunication, 0
|
|
|
|
BattleScript_GrassyTerrainLoop:
|
2021-04-28 03:36:37 +02:00
|
|
|
copyarraywithindex gBattlerAttacker, gBattlerByTurnOrder, gBattleCommunication, 1
|
2019-02-28 15:02:54 +01:00
|
|
|
checkgrassyterrainheal BS_ATTACKER, BattleScript_GrassyTerrainLoopIncrement
|
|
|
|
printstring STRINGID_GRASSYTERRAINHEALS
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-02-28 15:02:54 +01:00
|
|
|
BattleScript_GrassyTerrainHpChange:
|
2019-03-02 23:54:08 +01:00
|
|
|
orword gHitMarker, HITMARKER_x20 | HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_x100000
|
2019-02-28 15:02:54 +01:00
|
|
|
healthbarupdate BS_ATTACKER
|
|
|
|
datahpupdate BS_ATTACKER
|
|
|
|
BattleScript_GrassyTerrainLoopIncrement::
|
2021-04-28 03:36:37 +02:00
|
|
|
addbyte gBattleCommunication, 1
|
2019-02-28 15:02:54 +01:00
|
|
|
jumpifbytenotequal gBattleCommunication, gBattlersCount, BattleScript_GrassyTerrainLoop
|
|
|
|
BattleScript_GrassyTerrainLoopEnd::
|
2019-03-02 23:54:08 +01:00
|
|
|
bicword gHitMarker, HITMARKER_x20 | HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_x100000
|
2020-12-14 03:42:48 +01:00
|
|
|
jumpifword CMP_COMMON_BITS, gFieldStatuses, STATUS_FIELD_TERRAIN_PERMANENT, BattleScript_GrassyTerrainHealEnd
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, gFieldTimers + 5, 0, BattleScript_GrassyTerrainEnds
|
2020-12-14 03:42:48 +01:00
|
|
|
BattleScript_GrassyTerrainHealEnd:
|
2019-02-28 15:02:54 +01:00
|
|
|
end2
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2017-11-25 18:42:31 +01:00
|
|
|
BattleScript_AbilityNoSpecificStatLoss::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSXPREVENTSYLOSS
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
|
|
|
setbyte cMULTISTRING_CHOOSER, B_MSG_STAT_FELL_EMPTY
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_StickyHoldActivates::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSXMADEYINEFFECTIVE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_ColorChangeActivates::
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNCHANGEDTYPEWITH
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-11-30 21:21:43 +01:00
|
|
|
BattleScript_ProteanActivates::
|
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
printstring STRINGID_PKMNCHANGEDTYPE
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-11-30 21:21:43 +01:00
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-26 21:56:23 +02:00
|
|
|
BattleScript_CursedBodyActivates::
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2018-07-26 21:56:23 +02:00
|
|
|
printstring STRINGID_CUSEDBODYDISABLED
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-26 21:56:23 +02:00
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-26 21:56:23 +02:00
|
|
|
BattleScript_MummyActivates::
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2018-07-26 21:56:23 +02:00
|
|
|
printstring STRINGID_ATTACKERACQUIREDABILITY
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-26 21:56:23 +02:00
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2020-12-10 22:27:35 +01:00
|
|
|
BattleScript_TargetsStatWasMaxedOut::
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange STAT_BUFF_NOT_PROTECT_AFFECTED | MOVE_EFFECT_CERTAIN, NULL
|
2019-03-23 16:33:08 +01:00
|
|
|
setgraphicalstatchangevalues
|
2018-07-22 18:40:18 +02:00
|
|
|
playanimation BS_TARGET, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
2020-12-10 22:27:35 +01:00
|
|
|
printstring STRINGID_TARGETSSTATWASMAXEDOUT
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-22 18:40:18 +02:00
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2020-12-05 17:50:47 +01:00
|
|
|
BattleScript_BattlerAbilityStatRaiseOnSwitchIn::
|
2020-12-05 18:03:13 +01:00
|
|
|
copybyte gBattlerAbility, gBattlerAttacker
|
2020-12-02 22:46:29 +01:00
|
|
|
call BattleScript_AbilityPopUp
|
2021-01-07 08:30:34 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_NOT_PROTECT_AFFECTED | MOVE_EFFECT_CERTAIN, NULL
|
2020-12-02 22:46:29 +01:00
|
|
|
setgraphicalstatchangevalues
|
2020-12-05 18:03:13 +01:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
2020-12-02 22:46:29 +01:00
|
|
|
waitanimation
|
2020-12-05 18:03:13 +01:00
|
|
|
printstring STRINGID_BATTLERABILITYRAISEDSTAT
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-12-02 22:46:29 +01:00
|
|
|
end3
|
|
|
|
|
|
|
|
BattleScript_TargetAbilityStatRaiseOnMoveEnd::
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange STAT_BUFF_NOT_PROTECT_AFFECTED | MOVE_EFFECT_CERTAIN, NULL
|
2019-03-23 16:37:56 +01:00
|
|
|
setgraphicalstatchangevalues
|
2018-07-22 18:40:18 +02:00
|
|
|
playanimation BS_TARGET, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
|
|
|
waitanimation
|
2021-01-07 21:56:23 +01:00
|
|
|
printstring STRINGID_ABILITYRAISEDSTATDRASTICALLY
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-22 18:40:18 +02:00
|
|
|
return
|
2020-04-18 19:59:09 +02:00
|
|
|
|
|
|
|
BattleScript_ScriptingAbilityStatRaise::
|
|
|
|
copybyte gBattlerAbility, sBATTLER
|
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
copybyte sSAVED_DMG, gBattlerAttacker
|
|
|
|
copybyte gBattlerAttacker, sBATTLER
|
|
|
|
statbuffchange STAT_BUFF_NOT_PROTECT_AFFECTED | MOVE_EFFECT_CERTAIN, NULL
|
|
|
|
setgraphicalstatchangevalues
|
|
|
|
playanimation BS_SCRIPTING, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_ATTACKERABILITYSTATRAISE
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-04-18 19:59:09 +02:00
|
|
|
copybyte gBattlerAttacker, sSAVED_DMG
|
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-26 21:56:23 +02:00
|
|
|
BattleScript_WeakArmorActivates::
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2019-03-23 16:56:56 +01:00
|
|
|
setstatchanger STAT_DEF, 1, TRUE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange STAT_BUFF_ALLOW_PTR, BattleScript_WeakArmorActivatesSpeed
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_LESS_THAN, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_DECREASE, BattleScript_WeakArmorDefAnim
|
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_FELL_EMPTY, BattleScript_WeakArmorActivatesSpeed
|
|
|
|
pause 16
|
2018-07-26 21:56:23 +02:00
|
|
|
printfromtable gStatDownStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-26 21:56:23 +02:00
|
|
|
goto BattleScript_WeakArmorActivatesSpeed
|
|
|
|
BattleScript_WeakArmorDefAnim:
|
|
|
|
setgraphicalstatchangevalues
|
|
|
|
playanimation BS_TARGET, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
|
|
|
printstring STRINGID_TARGETABILITYSTATLOWER
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-26 21:56:23 +02:00
|
|
|
BattleScript_WeakArmorActivatesSpeed:
|
2019-03-23 16:56:56 +01:00
|
|
|
setstatchanger STAT_SPEED, 2, FALSE
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange STAT_BUFF_ALLOW_PTR, BattleScript_WeakArmorActivatesEnd
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_LESS_THAN, cMULTISTRING_CHOOSER, B_MSG_STAT_WONT_INCREASE, BattleScript_WeakArmorSpeedAnim
|
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_STAT_ROSE_EMPTY, BattleScript_WeakArmorActivatesEnd
|
|
|
|
pause 16
|
2018-07-26 21:56:23 +02:00
|
|
|
printstring STRINGID_TARGETSTATWONTGOHIGHER
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-26 21:56:23 +02:00
|
|
|
goto BattleScript_WeakArmorActivatesEnd
|
|
|
|
BattleScript_WeakArmorSpeedAnim:
|
|
|
|
setgraphicalstatchangevalues
|
|
|
|
playanimation BS_TARGET, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
|
|
|
printstring STRINGID_TARGETABILITYSTATRAISE
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-26 21:56:23 +02:00
|
|
|
BattleScript_WeakArmorActivatesEnd:
|
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2021-02-02 17:00:07 +01:00
|
|
|
BattleScript_RaiseStatOnFaintingTarget::
|
|
|
|
copybyte gBattlerAbility, gBattlerAttacker
|
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
setgraphicalstatchangevalues
|
|
|
|
playanimation BS_ATTACKER, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_LASTABILITYRAISEDSTAT
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2021-02-02 17:00:07 +01:00
|
|
|
return
|
|
|
|
|
2018-07-22 18:40:18 +02:00
|
|
|
BattleScript_AttackerAbilityStatRaise::
|
2020-01-18 19:40:49 +01:00
|
|
|
copybyte gBattlerAbility, gBattlerAttacker
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2020-04-19 15:44:44 +02:00
|
|
|
setgraphicalstatchangevalues
|
2018-07-22 18:40:18 +02:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_ATTACKERABILITYSTATRAISE
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-22 18:40:18 +02:00
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-26 23:40:55 +02:00
|
|
|
BattleScript_FellStingerRaisesStat::
|
2019-11-10 12:09:14 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_FellStingerRaisesAtkEnd
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_GREATER_THAN, cMULTISTRING_CHOOSER, B_MSG_DEFENDER_STAT_ROSE, BattleScript_FellStingerRaisesAtkEnd
|
2018-07-26 23:40:55 +02:00
|
|
|
setgraphicalstatchangevalues
|
|
|
|
playanimation BS_ATTACKER, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-26 23:40:55 +02:00
|
|
|
BattleScript_FellStingerRaisesAtkEnd:
|
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-22 18:40:18 +02:00
|
|
|
BattleScript_AttackerAbilityStatRaiseEnd3::
|
|
|
|
call BattleScript_AttackerAbilityStatRaise
|
|
|
|
end3
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-22 22:21:47 +02:00
|
|
|
BattleScript_SwitchInAbilityMsg::
|
2019-08-05 11:24:49 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2018-07-22 22:21:47 +02:00
|
|
|
printfromtable gSwitchInAbilityStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-22 22:21:47 +02:00
|
|
|
end3
|
2021-02-02 17:00:07 +01:00
|
|
|
|
|
|
|
BattleScript_ActivateAsOne::
|
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
printfromtable gSwitchInAbilityStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2021-02-02 17:00:07 +01:00
|
|
|
@ show unnerve
|
|
|
|
sethword sABILITY_OVERWRITE, ABILITY_UNNERVE
|
2021-04-28 03:36:37 +02:00
|
|
|
setbyte cMULTISTRING_CHOOSER, B_MSG_SWITCHIN_UNNERVE
|
2021-02-02 17:00:07 +01:00
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
printfromtable gSwitchInAbilityStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-22 22:21:47 +02:00
|
|
|
end3
|
2020-04-19 13:37:56 +02:00
|
|
|
|
|
|
|
BattleScript_FriskMsgWithPopup::
|
|
|
|
copybyte gBattlerAbility, gBattlerAttacker
|
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
BattleScript_FriskMsg::
|
|
|
|
printstring STRINGID_FRISKACTIVATES
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-04-19 13:37:56 +02:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_FriskActivates::
|
|
|
|
tryfriskmsg BS_ATTACKER
|
|
|
|
end3
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-29 12:21:28 +02:00
|
|
|
BattleScript_ImposterActivates::
|
|
|
|
transformdataexecution
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
playmoveanimation BS_ATTACKER, MOVE_TRANSFORM
|
2018-07-29 12:21:28 +02:00
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_IMPOSTERTRANSFORM
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-07-29 12:21:28 +02:00
|
|
|
end3
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-05-09 20:31:58 +02:00
|
|
|
BattleScript_HurtAttacker:
|
2017-11-25 18:42:31 +01:00
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_x100000
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_ATTACKER
|
|
|
|
datahpupdate BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNHURTSWITH
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
tryfaintmon BS_ATTACKER, FALSE, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
2019-05-09 20:31:58 +02:00
|
|
|
BattleScript_RoughSkinActivates::
|
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
call BattleScript_HurtAttacker
|
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-05-09 20:31:58 +02:00
|
|
|
BattleScript_RockyHelmetActivates::
|
2020-06-25 16:15:11 +02:00
|
|
|
@ don't play the animation for a fainted mon
|
|
|
|
jumpifabsent BS_TARGET, BattleScript_RockyHelmetActivatesDmg
|
2020-02-29 13:59:41 +01:00
|
|
|
playanimation BS_TARGET, B_ANIM_HELD_ITEM_EFFECT, NULL
|
2019-05-09 20:31:58 +02:00
|
|
|
waitanimation
|
2020-06-25 16:15:11 +02:00
|
|
|
BattleScript_RockyHelmetActivatesDmg:
|
2019-05-09 20:31:58 +02:00
|
|
|
call BattleScript_HurtAttacker
|
|
|
|
return
|
|
|
|
|
2019-03-15 13:54:11 +01:00
|
|
|
BattleScript_SpikyShieldEffect::
|
2021-02-19 01:57:29 +01:00
|
|
|
jumpifabsent BS_ATTACKER, BattleScript_SpikyShieldRet
|
2019-03-15 13:54:11 +01:00
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_x100000
|
2019-04-15 13:02:25 +02:00
|
|
|
bichalfword gMoveResultFlags, MOVE_RESULT_NO_EFFECT
|
2019-03-15 13:54:11 +01:00
|
|
|
healthbarupdate BS_ATTACKER
|
|
|
|
datahpupdate BS_ATTACKER
|
|
|
|
printstring STRINGID_PKMNHURTSWITH
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-03-15 13:54:11 +01:00
|
|
|
tryfaintmon BS_ATTACKER, FALSE, NULL
|
2021-02-19 01:57:29 +01:00
|
|
|
BattleScript_SpikyShieldRet::
|
2019-03-15 13:54:11 +01:00
|
|
|
return
|
|
|
|
|
2019-04-15 13:02:25 +02:00
|
|
|
BattleScript_KingsShieldEffect::
|
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_x100000
|
|
|
|
bichalfword gMoveResultFlags, MOVE_RESULT_NO_EFFECT
|
|
|
|
seteffectsecondary
|
|
|
|
setmoveeffect 0
|
|
|
|
copybyte sBATTLER, gBattlerTarget
|
|
|
|
copybyte gBattlerTarget, gBattlerAttacker
|
|
|
|
copybyte gBattlerAttacker, sBATTLER
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_BanefulBunkerEffect::
|
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_IGNORE_SAFEGUARD | HITMARKER_x100000
|
|
|
|
bichalfword gMoveResultFlags, MOVE_RESULT_NO_EFFECT
|
|
|
|
seteffectsecondary
|
|
|
|
setmoveeffect 0
|
|
|
|
return
|
|
|
|
|
2017-11-25 18:42:31 +01:00
|
|
|
BattleScript_CuteCharmActivates::
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2018-02-08 11:17:41 +01:00
|
|
|
status2animation BS_ATTACKER, STATUS2_INFATUATION
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSXINFATUATEDY
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-04-22 14:40:44 +02:00
|
|
|
call BattleScript_TryDestinyKnotTarget
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
2019-03-01 13:59:08 +01:00
|
|
|
BattleScript_AbilityStatusEffect::
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
2019-03-01 13:59:08 +01:00
|
|
|
call BattleScript_AbilityPopUp
|
2017-11-25 18:42:31 +01:00
|
|
|
seteffectsecondary
|
|
|
|
return
|
|
|
|
|
2019-11-14 00:03:20 +01:00
|
|
|
BattleScript_DancerActivates::
|
|
|
|
call BattleScript_AbilityPopUp
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_SHORT
|
|
|
|
setbyte sB_ANIM_TURN, 0
|
|
|
|
setbyte sB_ANIM_TARGETS_HIT, 0
|
2019-11-14 00:03:20 +01:00
|
|
|
orword gHitMarker, HITMARKER_x800000
|
|
|
|
jumptocalledmove TRUE
|
|
|
|
|
2017-11-25 18:42:31 +01:00
|
|
|
BattleScript_SynchronizeActivates::
|
|
|
|
waitstate
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2017-11-25 18:42:31 +01:00
|
|
|
seteffectprimary
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_NoItemSteal::
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSXMADEYINEFFECTIVE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_AbilityCuredStatus::
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSXCUREDITSYPROBLEM
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
updatestatusicon BS_SCRIPTING
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
2021-06-03 12:55:44 +02:00
|
|
|
BattleScript_BattlerShookOffTaunt::
|
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
printstring STRINGID_PKMNSHOOKOFFTHETAUNT
|
|
|
|
waitmessage B_WAIT_TIME_LONG
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_BattlerGotOverItsInfatuation::
|
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
printstring STRINGID_PKMNGOTOVERITSINFATUATION
|
|
|
|
waitmessage B_WAIT_TIME_LONG
|
|
|
|
return
|
|
|
|
|
2018-09-01 20:00:13 +02:00
|
|
|
BattleScript_IgnoresWhileAsleep::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNIGNORESASLEEP
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-08-23 14:46:21 +02:00
|
|
|
moveendto MOVEEND_NEXT_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
end
|
|
|
|
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_IgnoresAndUsesRandomMove::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNIGNOREDORDERS
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-09-22 19:08:41 +02:00
|
|
|
jumptocalledmove FALSE
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_MoveUsedLoafingAround::
|
2021-04-28 03:36:37 +02:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, B_MSG_LOAFING, BattleScript_MoveUsedLoafingAroundMsg
|
2021-04-02 08:27:12 +02:00
|
|
|
jumpifbyte CMP_NOT_EQUAL, cMULTISTRING_CHOOSER, B_MSG_INCAPABLE_OF_POWER, BattleScript_MoveUsedLoafingAroundMsg
|
|
|
|
setbyte gBattleCommunication, 0
|
2018-02-08 11:17:41 +01:00
|
|
|
various24 BS_ATTACKER
|
2021-04-02 08:27:12 +02:00
|
|
|
setbyte cMULTISTRING_CHOOSER, B_MSG_INCAPABLE_OF_POWER
|
|
|
|
BattleScript_MoveUsedLoafingAroundMsg::
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gInobedientStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-08-23 14:46:21 +02:00
|
|
|
moveendto MOVEEND_NEXT_TARGET
|
2018-09-29 13:36:33 +02:00
|
|
|
end
|
2020-04-18 13:04:28 +02:00
|
|
|
BattleScript_TruantLoafingAround::
|
2018-09-29 13:36:33 +02:00
|
|
|
call BattleScript_AbilityPopUp
|
2021-04-28 03:36:37 +02:00
|
|
|
goto BattleScript_MoveUsedLoafingAroundMsg
|
2017-11-25 18:42:31 +01:00
|
|
|
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_IgnoresAndFallsAsleep::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNBEGANTONAP
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_SLEEP | MOVE_EFFECT_AFFECTS_USER
|
2017-11-25 18:42:31 +01:00
|
|
|
seteffectprimary
|
2019-08-23 14:46:21 +02:00
|
|
|
moveendto MOVEEND_NEXT_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
end
|
|
|
|
|
2018-09-01 20:00:13 +02:00
|
|
|
BattleScript_IgnoresAndHitsItself::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNWONTOBEY
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-12-02 00:03:46 +01:00
|
|
|
goto BattleScript_DoSelfConfusionDmg
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_SubstituteFade::
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_TARGET, B_ANIM_SUBSTITUTE_FADE, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSUBSTITUTEFADED
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_BerryCurePrlzEnd2::
|
|
|
|
call BattleScript_BerryCureParRet
|
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_BerryCureParRet::
|
2020-02-20 05:13:54 +01:00
|
|
|
playanimation BS_SCRIPTING, B_ANIM_HELD_ITEM_EFFECT, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSITEMCUREDPARALYSIS
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
updatestatusicon BS_SCRIPTING
|
|
|
|
removeitem BS_SCRIPTING
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_BerryCurePsnEnd2::
|
|
|
|
call BattleScript_BerryCurePsnRet
|
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_BerryCurePsnRet::
|
2020-02-20 05:13:54 +01:00
|
|
|
playanimation BS_SCRIPTING, B_ANIM_HELD_ITEM_EFFECT, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSITEMCUREDPOISON
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
updatestatusicon BS_SCRIPTING
|
|
|
|
removeitem BS_SCRIPTING
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_BerryCureBrnEnd2::
|
|
|
|
call BattleScript_BerryCureBrnRet
|
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_BerryCureBrnRet::
|
2020-02-20 05:13:54 +01:00
|
|
|
playanimation BS_SCRIPTING, B_ANIM_HELD_ITEM_EFFECT, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSITEMHEALEDBURN
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
updatestatusicon BS_SCRIPTING
|
|
|
|
removeitem BS_SCRIPTING
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_BerryCureFrzEnd2::
|
|
|
|
call BattleScript_BerryCureFrzRet
|
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_BerryCureFrzRet::
|
2020-02-20 05:13:54 +01:00
|
|
|
playanimation BS_SCRIPTING, B_ANIM_HELD_ITEM_EFFECT, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSITEMDEFROSTEDIT
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
updatestatusicon BS_SCRIPTING
|
|
|
|
removeitem BS_SCRIPTING
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_BerryCureSlpEnd2::
|
|
|
|
call BattleScript_BerryCureSlpRet
|
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_BerryCureSlpRet::
|
2020-02-20 05:13:54 +01:00
|
|
|
playanimation BS_SCRIPTING, B_ANIM_HELD_ITEM_EFFECT, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSITEMWOKEIT
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
updatestatusicon BS_SCRIPTING
|
|
|
|
removeitem BS_SCRIPTING
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-05-07 15:26:58 +02:00
|
|
|
BattleScript_GemActivates::
|
2020-02-29 13:59:41 +01:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_HELD_ITEM_EFFECT, NULL
|
2019-05-07 15:26:58 +02:00
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_GEMACTIVATES
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-05-07 15:26:58 +02:00
|
|
|
removeitem BS_ATTACKER
|
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-05-07 15:26:58 +02:00
|
|
|
BattleScript_BerryReduceDmg::
|
2020-02-29 13:59:41 +01:00
|
|
|
playanimation BS_TARGET, B_ANIM_HELD_ITEM_EFFECT, NULL
|
2019-05-07 15:26:58 +02:00
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_TARGETATEITEM
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-05-07 15:26:58 +02:00
|
|
|
removeitem BS_TARGET
|
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-05-07 15:26:58 +02:00
|
|
|
BattleScript_PrintBerryReduceString::
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-05-07 15:26:58 +02:00
|
|
|
printstring STRINGID_BERRYDMGREDUCES
|
|
|
|
return
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_BerryCureConfusionEnd2::
|
|
|
|
call BattleScript_BerryCureConfusionRet
|
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_BerryCureConfusionRet::
|
2020-02-20 05:13:54 +01:00
|
|
|
playanimation BS_SCRIPTING, B_ANIM_HELD_ITEM_EFFECT, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSITEMSNAPPEDOUT
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
removeitem BS_SCRIPTING
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_BerryCureChosenStatusEnd2::
|
|
|
|
call BattleScript_BerryCureChosenStatusRet
|
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_BerryCureChosenStatusRet::
|
2020-02-20 05:13:54 +01:00
|
|
|
playanimation BS_SCRIPTING, B_ANIM_HELD_ITEM_EFFECT, NULL
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gBerryEffectStringIds
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
updatestatusicon BS_SCRIPTING
|
|
|
|
removeitem BS_SCRIPTING
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_WhiteHerbEnd2::
|
|
|
|
call BattleScript_WhiteHerbRet
|
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_WhiteHerbRet::
|
2020-02-20 05:13:54 +01:00
|
|
|
playanimation BS_SCRIPTING, B_ANIM_HELD_ITEM_EFFECT, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSITEMRESTOREDSTATUS
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
removeitem BS_SCRIPTING
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
2020-06-29 18:04:13 +02:00
|
|
|
|
|
|
|
BattleScript_ItemHealHP_RemoveItemRet::
|
2021-01-06 05:15:21 +01:00
|
|
|
jumpifability BS_SCRIPTING, ABILITY_RIPEN, BattleScript_ItemHealHP_RemoveItemRet_AbilityPopUp
|
|
|
|
goto BattleScript_ItemHealHP_RemoveItemRet_Anim
|
|
|
|
BattleScript_ItemHealHP_RemoveItemRet_AbilityPopUp:
|
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
BattleScript_ItemHealHP_RemoveItemRet_Anim:
|
2020-06-29 18:04:13 +02:00
|
|
|
playanimation BS_SCRIPTING, B_ANIM_HELD_ITEM_EFFECT, NULL
|
|
|
|
printstring STRINGID_PKMNSITEMRESTOREDHEALTH
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-06-29 18:04:13 +02:00
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE
|
|
|
|
healthbarupdate BS_SCRIPTING
|
|
|
|
datahpupdate BS_SCRIPTING
|
|
|
|
removeitem BS_SCRIPTING
|
|
|
|
return
|
2021-01-06 06:13:32 +01:00
|
|
|
|
2020-06-29 18:04:13 +02:00
|
|
|
BattleScript_ItemHealHP_RemoveItemEnd2::
|
2021-01-06 06:13:32 +01:00
|
|
|
jumpifability BS_ATTACKER, ABILITY_RIPEN, BattleScript_ItemHealHP_RemoveItemEnd2_AbilityPopUp
|
2021-01-06 05:15:21 +01:00
|
|
|
goto BattleScript_ItemHealHP_RemoveItemEnd2_Anim
|
|
|
|
BattleScript_ItemHealHP_RemoveItemEnd2_AbilityPopUp:
|
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
BattleScript_ItemHealHP_RemoveItemEnd2_Anim:
|
2020-02-20 05:13:54 +01:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_HELD_ITEM_EFFECT, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSITEMRESTOREDHEALTH
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_ATTACKER
|
|
|
|
datahpupdate BS_ATTACKER
|
|
|
|
removeitem BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_BerryPPHealEnd2::
|
2021-01-06 06:13:32 +01:00
|
|
|
jumpifability BS_ATTACKER, ABILITY_RIPEN, BattleScript_BerryPPHealEnd2_AbilityPopup
|
|
|
|
goto BattleScript_BerryPPHealEnd2_Anim
|
|
|
|
BattleScript_BerryPPHealEnd2_AbilityPopup:
|
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
BattleScript_BerryPPHealEnd2_Anim:
|
2020-02-20 05:13:54 +01:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_HELD_ITEM_EFFECT, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSITEMRESTOREDPP
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
removeitem BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_ItemHealHP_End2::
|
|
|
|
call BattleScript_ItemHealHP_Ret
|
|
|
|
end2
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-05-09 20:31:58 +02:00
|
|
|
BattleScript_AirBaloonMsgIn::
|
|
|
|
printstring STRINGID_AIRBALLOONFLOAT
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-05-20 12:20:49 +02:00
|
|
|
end3
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-05-09 20:31:58 +02:00
|
|
|
BattleScript_AirBaloonMsgPop::
|
|
|
|
printstring STRINGID_AIRBALLOONPOP
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-05-09 20:31:58 +02:00
|
|
|
removeitem BS_TARGET
|
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-05-10 11:03:33 +02:00
|
|
|
BattleScript_ItemHurtRet::
|
2021-09-06 08:27:42 +02:00
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_x100000 | HITMARKER_IGNORE_DISGUISE
|
2019-05-09 20:31:58 +02:00
|
|
|
healthbarupdate BS_ATTACKER
|
|
|
|
datahpupdate BS_ATTACKER
|
|
|
|
printstring STRINGID_HURTBYITEM
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2019-05-09 20:31:58 +02:00
|
|
|
tryfaintmon BS_ATTACKER, FALSE, NULL
|
2019-05-10 11:03:33 +02:00
|
|
|
return
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2019-05-10 11:03:33 +02:00
|
|
|
BattleScript_ItemHurtEnd2::
|
|
|
|
playanimation BS_ATTACKER, B_ANIM_MON_HIT, NULL
|
|
|
|
waitanimation
|
|
|
|
call BattleScript_ItemHurtRet
|
2019-05-09 20:31:58 +02:00
|
|
|
end2
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_ItemHealHP_Ret::
|
2020-02-20 05:13:54 +01:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_HELD_ITEM_EFFECT, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSITEMRESTOREDHPALITTLE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2021-09-06 08:27:42 +02:00
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_IGNORE_DISGUISE
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_ATTACKER
|
|
|
|
datahpupdate BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_SelectingNotAllowedMoveChoiceItem::
|
2017-11-25 18:42:31 +01:00
|
|
|
printselectionstring STRINGID_ITEMALLOWSONLYYMOVE
|
|
|
|
endselectionscript
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2018-07-31 23:09:47 +02:00
|
|
|
BattleScript_SelectingNotAllowedMoveAssaultVest::
|
|
|
|
printselectionstring STRINGID_ASSAULTVESTDOESNTALLOW
|
|
|
|
endselectionscript
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_HangedOnMsg::
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_TARGET, B_ANIM_HANGED_ON, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNHUNGONWITHX
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-06-22 10:50:50 +02:00
|
|
|
jumpifnoholdeffect BS_TARGET, HOLD_EFFECT_FOCUS_SASH, BattleScript_HangedOnMsgRet
|
|
|
|
removeitem BS_TARGET
|
|
|
|
BattleScript_HangedOnMsgRet:
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_BerryConfuseHealEnd2::
|
2021-01-06 06:13:32 +01:00
|
|
|
jumpifability BS_ATTACKER, ABILITY_RIPEN, BattleScript_BerryConfuseHealEnd2_AbilityPopup
|
|
|
|
goto BattleScript_BerryConfuseHealEnd2_Anim
|
|
|
|
BattleScript_BerryConfuseHealEnd2_AbilityPopup:
|
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
BattleScript_BerryConfuseHealEnd2_Anim:
|
2020-02-20 05:13:54 +01:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_HELD_ITEM_EFFECT, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSITEMRESTOREDHEALTH
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_ATTACKER
|
|
|
|
datahpupdate BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_FORXCOMMAYZ
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_CONFUSION | MOVE_EFFECT_AFFECTS_USER
|
2017-11-25 18:42:31 +01:00
|
|
|
seteffectprimary
|
2018-02-08 11:17:41 +01:00
|
|
|
removeitem BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
2021-01-06 06:13:32 +01:00
|
|
|
BattleScript_BerryConfuseHealRet::
|
|
|
|
jumpifability BS_SCRIPTING, ABILITY_RIPEN, BattleScript_BerryConfuseHealRet_AbilityPopup
|
|
|
|
goto BattleScript_BerryConfuseHealRet_Anim
|
|
|
|
BattleScript_BerryConfuseHealRet_AbilityPopup:
|
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
BattleScript_BerryConfuseHealRet_Anim:
|
|
|
|
playanimation BS_SCRIPTING, B_ANIM_HELD_ITEM_EFFECT, NULL
|
|
|
|
printstring STRINGID_PKMNSITEMRESTOREDHEALTH
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2021-01-06 06:13:32 +01:00
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE
|
|
|
|
healthbarupdate BS_SCRIPTING
|
|
|
|
datahpupdate BS_SCRIPTING
|
|
|
|
printstring STRINGID_FORXCOMMAYZ
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2021-01-06 06:13:32 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_CONFUSION | MOVE_EFFECT_AFFECTS_USER
|
|
|
|
seteffectprimary
|
|
|
|
removeitem BS_SCRIPTING
|
|
|
|
return
|
|
|
|
|
2017-11-25 18:42:31 +01:00
|
|
|
BattleScript_BerryStatRaiseEnd2::
|
2021-01-06 06:13:32 +01:00
|
|
|
jumpifability BS_ATTACKER, ABILITY_RIPEN, BattleScript_BerryStatRaiseEnd2_AbilityPopup
|
|
|
|
goto BattleScript_BerryStatRaiseEnd2_Anim
|
|
|
|
BattleScript_BerryStatRaiseEnd2_AbilityPopup:
|
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
BattleScript_BerryStatRaiseEnd2_Anim:
|
2020-02-20 05:13:54 +01:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_HELD_ITEM_EFFECT, NULL
|
2021-04-02 08:27:12 +02:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | STAT_BUFF_ALLOW_PTR, BattleScript_BerryStatRaiseDoStatUp
|
|
|
|
BattleScript_BerryStatRaiseDoStatUp::
|
|
|
|
setbyte cMULTISTRING_CHOOSER, B_MSG_STAT_ROSE_ITEM
|
2017-11-25 18:42:31 +01:00
|
|
|
call BattleScript_StatUp
|
2018-02-08 11:17:41 +01:00
|
|
|
removeitem BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
2021-01-06 06:13:32 +01:00
|
|
|
BattleScript_BerryStatRaiseRet::
|
|
|
|
jumpifability BS_SCRIPTING, ABILITY_RIPEN, BattleScript_BerryStatRaiseRet_AbilityPopup
|
|
|
|
goto BattleScript_BerryStatRaiseRet_Anim
|
|
|
|
BattleScript_BerryStatRaiseRet_AbilityPopup:
|
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
BattleScript_BerryStatRaiseRet_Anim:
|
|
|
|
playanimation BS_SCRIPTING, B_ANIM_HELD_ITEM_EFFECT, NULL
|
|
|
|
statbuffchange STAT_BUFF_ALLOW_PTR, BattleScript_BerryStatRaiseRet_End
|
|
|
|
BattleScript_BerryStatRaiseRet_End:
|
2021-04-28 03:36:37 +02:00
|
|
|
setbyte cMULTISTRING_CHOOSER, B_MSG_STAT_ROSE_ITEM
|
2021-01-06 06:13:32 +01:00
|
|
|
call BattleScript_StatUp
|
|
|
|
removeitem BS_SCRIPTING
|
|
|
|
return
|
|
|
|
|
2017-11-25 18:42:31 +01:00
|
|
|
BattleScript_BerryFocusEnergyEnd2::
|
2020-02-20 05:13:54 +01:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_HELD_ITEM_EFFECT, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNUSEDXTOGETPUMPED
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
removeitem BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_ActionSelectionItemsCantBeUsed::
|
|
|
|
printselectionstring STRINGID_ITEMSCANTBEUSEDNOW
|
|
|
|
endselectionscript
|
|
|
|
|
2018-09-01 20:00:13 +02:00
|
|
|
BattleScript_FlushMessageBox::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_EMPTYSTRING3
|
|
|
|
return
|
|
|
|
|
2020-07-17 02:12:12 +02:00
|
|
|
BattleScript_PalacePrintFlavorText::
|
|
|
|
setbyte gBattleCommunication + 1, 0
|
|
|
|
BattleScript_PalaceTryBattlerFlavorText::
|
|
|
|
palaceflavortext BS_ATTACKER @ BS_ATTACKER here overwritten by gBattleCommunication + 1
|
|
|
|
jumpifbyte CMP_NOT_EQUAL, gBattleCommunication, TRUE, BattleScript_PalaceEndFlavorText
|
|
|
|
printfromtable gBattlePalaceFlavorTextTable
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-07-17 02:12:12 +02:00
|
|
|
BattleScript_PalaceEndFlavorText::
|
|
|
|
addbyte gBattleCommunication + 1, 1
|
|
|
|
jumpifbytenotequal gBattleCommunication + 1, gBattlersCount, BattleScript_PalaceTryBattlerFlavorText
|
|
|
|
setbyte gBattleCommunication, 0
|
|
|
|
setbyte gBattleCommunication + 1, 0
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
2018-08-25 21:04:12 +02:00
|
|
|
BattleScript_ArenaTurnBeginning::
|
2018-02-08 11:17:41 +01:00
|
|
|
waitcry BS_ATTACKER
|
2018-08-25 21:04:12 +02:00
|
|
|
volumedown
|
2020-08-21 00:02:00 +02:00
|
|
|
playse SE_ARENA_TIMEUP1
|
2021-04-02 08:16:01 +02:00
|
|
|
pause 8
|
2020-08-21 00:02:00 +02:00
|
|
|
playse SE_ARENA_TIMEUP1
|
2018-02-08 11:17:41 +01:00
|
|
|
various14 BS_ATTACKER
|
2021-04-03 18:38:07 +02:00
|
|
|
arenajudgmentstring B_MSG_REF_COMMENCE_BATTLE
|
|
|
|
arenawaitmessage B_MSG_REF_COMMENCE_BATTLE
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
various15 BS_ATTACKER
|
2018-08-25 21:04:12 +02:00
|
|
|
volumeup
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
2020-02-16 13:14:18 +01:00
|
|
|
|
2021-04-03 18:38:07 +02:00
|
|
|
@ Unused
|
|
|
|
BattleScript_ArenaNothingDecided::
|
2020-08-21 00:02:00 +02:00
|
|
|
playse SE_DING_DONG
|
2018-02-08 11:17:41 +01:00
|
|
|
various14 BS_ATTACKER
|
2021-04-03 18:38:07 +02:00
|
|
|
arenajudgmentstring B_MSG_REF_NOTHING_IS_DECIDED
|
|
|
|
arenawaitmessage B_MSG_REF_NOTHING_IS_DECIDED
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
various15 BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
2018-11-11 18:33:16 +01:00
|
|
|
BattleScript_ArenaDoJudgment::
|
|
|
|
makevisible BS_PLAYER1
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
2018-02-08 11:17:41 +01:00
|
|
|
makevisible BS_OPPONENT1
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
2018-08-25 21:04:12 +02:00
|
|
|
volumedown
|
2020-08-21 00:02:00 +02:00
|
|
|
playse SE_ARENA_TIMEUP1
|
2021-04-02 08:16:01 +02:00
|
|
|
pause 8
|
2020-08-21 00:02:00 +02:00
|
|
|
playse SE_ARENA_TIMEUP1
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
various14 BS_ATTACKER
|
2021-04-03 18:38:07 +02:00
|
|
|
arenajudgmentstring B_MSG_REF_THATS_IT
|
|
|
|
arenawaitmessage B_MSG_REF_THATS_IT
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_LONG
|
2021-04-03 18:38:07 +02:00
|
|
|
setbyte gBattleCommunication, 0
|
2018-11-11 18:33:16 +01:00
|
|
|
arenajudgmentwindow
|
2021-04-02 08:27:12 +02:00
|
|
|
pause B_WAIT_TIME_LONG
|
2018-11-11 18:33:16 +01:00
|
|
|
arenajudgmentwindow
|
2021-04-03 18:38:07 +02:00
|
|
|
arenajudgmentstring B_MSG_REF_JUDGE_MIND
|
|
|
|
arenawaitmessage B_MSG_REF_JUDGE_MIND
|
2018-11-11 18:33:16 +01:00
|
|
|
arenajudgmentwindow
|
2021-04-03 18:38:07 +02:00
|
|
|
arenajudgmentstring B_MSG_REF_JUDGE_SKILL
|
|
|
|
arenawaitmessage B_MSG_REF_JUDGE_SKILL
|
2018-11-11 18:33:16 +01:00
|
|
|
arenajudgmentwindow
|
2021-04-03 18:38:07 +02:00
|
|
|
arenajudgmentstring B_MSG_REF_JUDGE_BODY
|
|
|
|
arenawaitmessage B_MSG_REF_JUDGE_BODY
|
2018-11-11 18:33:16 +01:00
|
|
|
arenajudgmentwindow
|
2021-04-03 18:38:07 +02:00
|
|
|
jumpifbyte CMP_EQUAL, gBattleCommunication + 1, 3, BattleScript_ArenaJudgmentPlayerLoses
|
|
|
|
jumpifbyte CMP_EQUAL, gBattleCommunication + 1, 4, BattleScript_ArenaJudgmentDraw
|
|
|
|
arenajudgmentstring B_MSG_REF_PLAYER_WON
|
|
|
|
arenawaitmessage B_MSG_REF_PLAYER_WON
|
2018-11-11 18:33:16 +01:00
|
|
|
arenajudgmentwindow
|
2018-02-08 11:17:41 +01:00
|
|
|
various15 BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_DEFEATEDOPPONENTBYREFEREE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-02-08 11:17:41 +01:00
|
|
|
playfaintcry BS_OPPONENT1
|
|
|
|
waitcry BS_ATTACKER
|
|
|
|
dofaintanimation BS_OPPONENT1
|
|
|
|
cleareffectsonfaint BS_OPPONENT1
|
2018-11-11 18:33:16 +01:00
|
|
|
arenaopponentmonlost
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
2018-11-11 18:33:16 +01:00
|
|
|
BattleScript_ArenaJudgmentPlayerLoses:
|
2021-04-03 18:38:07 +02:00
|
|
|
arenajudgmentstring B_MSG_REF_OPPONENT_WON
|
|
|
|
arenawaitmessage B_MSG_REF_OPPONENT_WON
|
2018-11-11 18:33:16 +01:00
|
|
|
arenajudgmentwindow
|
2018-02-08 11:17:41 +01:00
|
|
|
various15 BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_LOSTTOOPPONENTBYREFEREE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-11-11 18:33:16 +01:00
|
|
|
playfaintcry BS_PLAYER1
|
2018-02-08 11:17:41 +01:00
|
|
|
waitcry BS_ATTACKER
|
2018-11-11 18:33:16 +01:00
|
|
|
dofaintanimation BS_PLAYER1
|
|
|
|
cleareffectsonfaint BS_PLAYER1
|
|
|
|
arenaplayermonlost
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
2018-11-11 18:33:16 +01:00
|
|
|
BattleScript_ArenaJudgmentDraw:
|
2021-04-03 18:38:07 +02:00
|
|
|
arenajudgmentstring B_MSG_REF_DRAW
|
|
|
|
arenawaitmessage B_MSG_REF_DRAW
|
2018-11-11 18:33:16 +01:00
|
|
|
arenajudgmentwindow
|
2018-02-08 11:17:41 +01:00
|
|
|
various15 BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_TIEDOPPONENTBYREFEREE
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2018-11-11 18:33:16 +01:00
|
|
|
playfaintcry BS_PLAYER1
|
2018-02-08 11:17:41 +01:00
|
|
|
waitcry BS_ATTACKER
|
2018-11-11 18:33:16 +01:00
|
|
|
dofaintanimation BS_PLAYER1
|
|
|
|
cleareffectsonfaint BS_PLAYER1
|
2018-02-08 11:17:41 +01:00
|
|
|
playfaintcry BS_OPPONENT1
|
|
|
|
waitcry BS_ATTACKER
|
|
|
|
dofaintanimation BS_OPPONENT1
|
|
|
|
cleareffectsonfaint BS_OPPONENT1
|
2018-11-11 18:33:16 +01:00
|
|
|
arenabothmonlost
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
2017-11-26 17:26:11 +01:00
|
|
|
BattleScript_AskIfWantsToForfeitMatch::
|
2017-11-25 18:42:31 +01:00
|
|
|
printselectionstring STRINGID_QUESTIONFORFEITMATCH
|
2018-02-08 11:17:41 +01:00
|
|
|
forfeityesnobox BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
endselectionscript
|
|
|
|
|
2017-12-03 00:47:21 +01:00
|
|
|
BattleScript_PrintPlayerForfeited::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_FORFEITEDMATCH
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
2017-12-03 00:47:21 +01:00
|
|
|
BattleScript_PrintPlayerForfeitedLinkBattle::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_FORFEITEDMATCH
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2021-01-22 08:48:22 +01:00
|
|
|
endlinkbattle
|
2021-04-02 08:27:12 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
2020-11-19 18:35:37 +01:00
|
|
|
|
|
|
|
BattleScript_TotemFlaredToLife::
|
|
|
|
playanimation BS_ATTACKER, B_ANIM_TOTEM_FLARE, NULL
|
|
|
|
printstring STRINGID_AURAFLAREDTOLIFE
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-11-19 18:35:37 +01:00
|
|
|
goto BattleScript_ApplyTotemVarBoost
|
|
|
|
|
|
|
|
BattleScript_TotemVar::
|
|
|
|
gettotemboost BattleScript_ApplyTotemVarBoost
|
|
|
|
BattleScript_TotemVarEnd:
|
|
|
|
end2
|
|
|
|
BattleScript_ApplyTotemVarBoost:
|
|
|
|
statbuffchange STAT_BUFF_ALLOW_PTR, BattleScript_TotemVarEnd
|
|
|
|
setgraphicalstatchangevalues
|
|
|
|
playanimation BS_SCRIPTING, B_ANIM_STATS_CHANGE, sB_ANIM_ARG1
|
|
|
|
BattleScript_TotemVarPrintStatMsg:
|
|
|
|
printfromtable gStatUpStringIds
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-11-19 18:35:37 +01:00
|
|
|
goto BattleScript_TotemVar @loop until stats bitfield is empty
|
2020-12-01 23:57:57 +01:00
|
|
|
|
2020-11-19 19:42:00 +01:00
|
|
|
BattleScript_AnnounceAirLockCloudNine::
|
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
printstring STRINGID_AIRLOCKACTIVATES
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-11-19 19:42:00 +01:00
|
|
|
call BattleScript_WeatherFormChanges
|
|
|
|
end3
|
2021-01-06 17:37:31 +01:00
|
|
|
|
|
|
|
BattleScript_QuickClawActivation::
|
2021-02-01 07:31:27 +01:00
|
|
|
printstring STRINGID_EMPTYSTRING3
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage 1
|
2021-03-03 17:21:06 +01:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_HELD_ITEM_EFFECT, NULL
|
2021-01-06 17:37:31 +01:00
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_CANACTFASTERTHANKSTO
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2021-01-06 17:37:31 +01:00
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_CustapBerryActivation::
|
2021-02-01 07:31:27 +01:00
|
|
|
printstring STRINGID_EMPTYSTRING3
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage 1
|
2021-01-06 17:37:31 +01:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_HELD_ITEM_EFFECT, NULL
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_CANACTFASTERTHANKSTO
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2021-01-06 17:37:31 +01:00
|
|
|
removeitem BS_ATTACKER
|
|
|
|
end2
|
2021-01-06 18:47:07 +01:00
|
|
|
|
|
|
|
BattleScript_MicleBerryActivateEnd2::
|
|
|
|
jumpifability BS_ATTACKER, ABILITY_RIPEN, BattleScript_MicleBerryActivateEnd2_Ripen
|
|
|
|
goto BattleScript_MicleBerryActivateEnd2_Anim
|
|
|
|
BattleScript_MicleBerryActivateEnd2_Ripen:
|
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
BattleScript_MicleBerryActivateEnd2_Anim:
|
|
|
|
playanimation BS_ATTACKER, B_ANIM_HELD_ITEM_EFFECT, NULL
|
|
|
|
printstring STRINGID_MICLEBERRYACTIVATES
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2021-01-06 18:47:07 +01:00
|
|
|
removeitem BS_ATTACKER
|
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_MicleBerryActivateRet::
|
|
|
|
jumpifability BS_SCRIPTING, ABILITY_RIPEN, BattleScript_MicleBerryActivateRet_Ripen
|
|
|
|
goto BattleScript_MicleBerryActivateRet_Anim
|
|
|
|
BattleScript_MicleBerryActivateRet_Ripen:
|
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
BattleScript_MicleBerryActivateRet_Anim:
|
|
|
|
playanimation BS_SCRIPTING, B_ANIM_HELD_ITEM_EFFECT, NULL
|
|
|
|
printstring STRINGID_MICLEBERRYACTIVATES
|
2021-04-28 03:36:37 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2021-01-06 18:47:07 +01:00
|
|
|
removeitem BS_SCRIPTING
|
|
|
|
return
|
|
|
|
|
2021-01-06 19:15:56 +01:00
|
|
|
BattleScript_JabocaRowapBerryActivates::
|
|
|
|
jumpifability BS_TARGET, ABILITY_RIPEN, BattleScript_JabocaRowapBerryActivate_Ripen
|
|
|
|
goto BattleScript_JabocaRowapBerryActivate_Anim
|
|
|
|
BattleScript_JabocaRowapBerryActivate_Ripen:
|
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
BattleScript_JabocaRowapBerryActivate_Anim:
|
|
|
|
jumpifabsent BS_TARGET, BattleScript_JabocaRowapBerryActivate_Dmg @ dont play the animation for a fainted target
|
|
|
|
playanimation BS_TARGET, B_ANIM_HELD_ITEM_EFFECT, NULL
|
|
|
|
waitanimation
|
|
|
|
BattleScript_JabocaRowapBerryActivate_Dmg:
|
|
|
|
call BattleScript_HurtAttacker
|
|
|
|
removeitem BS_TARGET
|
|
|
|
return
|
2021-08-12 07:26:13 +02:00
|
|
|
|
2020-11-12 02:08:46 +01:00
|
|
|
BattleScript_Pickpocket::
|
|
|
|
call BattleScript_AbilityPopUp
|
2020-12-09 18:28:18 +01:00
|
|
|
jumpifability BS_ATTACKER, ABILITY_STICKY_HOLD, BattleScript_PickpocketPrevented
|
2020-11-12 02:37:11 +01:00
|
|
|
swapattackerwithtarget
|
2020-11-13 07:30:00 +01:00
|
|
|
call BattleScript_ItemSteal
|
2020-11-12 02:37:11 +01:00
|
|
|
swapattackerwithtarget
|
2020-11-13 07:30:00 +01:00
|
|
|
activateitemeffects BS_TARGET
|
2020-11-12 02:37:11 +01:00
|
|
|
return
|
2020-12-09 18:28:18 +01:00
|
|
|
|
|
|
|
BattleScript_PickpocketPrevented:
|
2021-08-12 07:26:13 +02:00
|
|
|
pause B_WAIT_TIME_SHORT
|
2020-12-09 18:28:18 +01:00
|
|
|
copybyte gBattlerAbility, gBattlerAttacker
|
|
|
|
call BattleScript_AbilityPopUp
|
|
|
|
printstring STRINGID_ITEMCANNOTBEREMOVED
|
2021-08-12 07:26:13 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-12-09 18:28:18 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_StickyBarbTransfer::
|
|
|
|
playanimation BS_TARGET, B_ANIM_ITEM_STEAL, NULL
|
|
|
|
printstring STRINGID_STICKYBARBTRANSFER
|
2021-08-12 07:26:13 +02:00
|
|
|
waitmessage B_WAIT_TIME_LONG
|
2020-12-09 18:28:18 +01:00
|
|
|
removeitem BS_TARGET
|
|
|
|
return
|
2021-08-12 07:26:13 +02:00
|
|
|
|
2021-01-17 00:14:36 +01:00
|
|
|
BattleScript_DarkTypePreventsPrankster::
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_ITDOESNTAFFECT
|
|
|
|
waitmessage 0x40
|
|
|
|
orhalfword gMoveResultFlags, MOVE_RESULT_NO_EFFECT
|
|
|
|
goto BattleScript_MoveEnd
|
2021-09-09 15:44:18 +02:00
|
|
|
|