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"
|
|
|
|
#include "constants/moves.h"
|
|
|
|
#include "constants/songs.h"
|
2018-10-06 09:37:52 +02:00
|
|
|
#include "constants/game_stat.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
|
2017-09-23 20:13:45 +02:00
|
|
|
gBattleScriptsForMoveEffects:: @ 82D86A8
|
2017-11-25 18:42:31 +01:00
|
|
|
.4byte BattleScript_EffectHit
|
|
|
|
.4byte BattleScript_EffectSleep
|
|
|
|
.4byte BattleScript_EffectPoisonHit
|
|
|
|
.4byte BattleScript_EffectAbsorb
|
|
|
|
.4byte BattleScript_EffectBurnHit
|
|
|
|
.4byte BattleScript_EffectFreezeHit
|
|
|
|
.4byte BattleScript_EffectParalyzeHit
|
|
|
|
.4byte BattleScript_EffectExplosion
|
|
|
|
.4byte BattleScript_EffectDreamEater
|
|
|
|
.4byte BattleScript_EffectMirrorMove
|
|
|
|
.4byte BattleScript_EffectAttackUp
|
|
|
|
.4byte BattleScript_EffectDefenseUp
|
2017-11-26 00:33:40 +01:00
|
|
|
.4byte BattleScript_EffectSpeedUp
|
2017-11-25 18:42:31 +01:00
|
|
|
.4byte BattleScript_EffectSpecialAttackUp
|
2017-11-26 00:33:40 +01:00
|
|
|
.4byte BattleScript_EffectSpecialDefenseUp
|
|
|
|
.4byte BattleScript_EffectAccuracyUp
|
2017-11-25 18:42:31 +01:00
|
|
|
.4byte BattleScript_EffectEvasionUp
|
2017-11-26 00:33:40 +01:00
|
|
|
.4byte BattleScript_EffectAlwaysHit
|
2017-11-25 18:42:31 +01:00
|
|
|
.4byte BattleScript_EffectAttackDown
|
|
|
|
.4byte BattleScript_EffectDefenseDown
|
|
|
|
.4byte BattleScript_EffectSpeedDown
|
2017-11-26 00:33:40 +01:00
|
|
|
.4byte BattleScript_EffectSpecialAttackDown
|
|
|
|
.4byte BattleScript_EffectSpecialDefenseDown
|
2017-11-25 18:42:31 +01:00
|
|
|
.4byte BattleScript_EffectAccuracyDown
|
|
|
|
.4byte BattleScript_EffectEvasionDown
|
|
|
|
.4byte BattleScript_EffectHaze
|
|
|
|
.4byte BattleScript_EffectBide
|
|
|
|
.4byte BattleScript_EffectRampage
|
|
|
|
.4byte BattleScript_EffectRoar
|
|
|
|
.4byte BattleScript_EffectMultiHit
|
|
|
|
.4byte BattleScript_EffectConversion
|
|
|
|
.4byte BattleScript_EffectFlinchHit
|
|
|
|
.4byte BattleScript_EffectRestoreHp
|
|
|
|
.4byte BattleScript_EffectToxic
|
|
|
|
.4byte BattleScript_EffectPayDay
|
|
|
|
.4byte BattleScript_EffectLightScreen
|
|
|
|
.4byte BattleScript_EffectTriAttack
|
|
|
|
.4byte BattleScript_EffectRest
|
2017-11-26 00:33:40 +01:00
|
|
|
.4byte BattleScript_EffectOHKO
|
2017-11-25 18:42:31 +01:00
|
|
|
.4byte BattleScript_EffectRazorWind
|
|
|
|
.4byte BattleScript_EffectSuperFang
|
|
|
|
.4byte BattleScript_EffectDragonRage
|
|
|
|
.4byte BattleScript_EffectTrap
|
2017-11-26 00:33:40 +01:00
|
|
|
.4byte BattleScript_EffectHighCritical
|
2017-11-25 18:42:31 +01:00
|
|
|
.4byte BattleScript_EffectDoubleHit
|
|
|
|
.4byte BattleScript_EffectRecoilIfMiss
|
|
|
|
.4byte BattleScript_EffectMist
|
|
|
|
.4byte BattleScript_EffectFocusEnergy
|
|
|
|
.4byte BattleScript_EffectRecoil
|
|
|
|
.4byte BattleScript_EffectConfuse
|
|
|
|
.4byte BattleScript_EffectAttackUp2
|
|
|
|
.4byte BattleScript_EffectDefenseUp2
|
|
|
|
.4byte BattleScript_EffectSpeedUp2
|
|
|
|
.4byte BattleScript_EffectSpecialAttackUp2
|
|
|
|
.4byte BattleScript_EffectSpecialDefenseUp2
|
2017-11-26 00:33:40 +01:00
|
|
|
.4byte BattleScript_EffectAccuracyUp2
|
|
|
|
.4byte BattleScript_EffectEvasionUp2
|
2017-11-25 18:42:31 +01:00
|
|
|
.4byte BattleScript_EffectTransform
|
|
|
|
.4byte BattleScript_EffectAttackDown2
|
|
|
|
.4byte BattleScript_EffectDefenseDown2
|
|
|
|
.4byte BattleScript_EffectSpeedDown2
|
2017-11-26 00:33:40 +01:00
|
|
|
.4byte BattleScript_EffectSpecialAttackDown2
|
2017-11-25 18:42:31 +01:00
|
|
|
.4byte BattleScript_EffectSpecialDefenseDown2
|
2017-11-26 00:33:40 +01:00
|
|
|
.4byte BattleScript_EffectAccuracyDown2
|
|
|
|
.4byte BattleScript_EffectEvasionDown2
|
2017-11-25 18:42:31 +01:00
|
|
|
.4byte BattleScript_EffectReflect
|
|
|
|
.4byte BattleScript_EffectPoison
|
|
|
|
.4byte BattleScript_EffectParalyze
|
|
|
|
.4byte BattleScript_EffectAttackDownHit
|
|
|
|
.4byte BattleScript_EffectDefenseDownHit
|
|
|
|
.4byte BattleScript_EffectSpeedDownHit
|
|
|
|
.4byte BattleScript_EffectSpecialAttackDownHit
|
|
|
|
.4byte BattleScript_EffectSpecialDefenseDownHit
|
|
|
|
.4byte BattleScript_EffectAccuracyDownHit
|
2017-11-26 00:33:40 +01:00
|
|
|
.4byte BattleScript_EffectEvasionDownHit
|
2017-11-25 18:42:31 +01:00
|
|
|
.4byte BattleScript_EffectSkyAttack
|
|
|
|
.4byte BattleScript_EffectConfuseHit
|
|
|
|
.4byte BattleScript_EffectTwineedle
|
2017-11-26 00:33:40 +01:00
|
|
|
.4byte BattleScript_EffectVitalThrow
|
2017-11-25 18:42:31 +01:00
|
|
|
.4byte BattleScript_EffectSubstitute
|
|
|
|
.4byte BattleScript_EffectRecharge
|
|
|
|
.4byte BattleScript_EffectRage
|
|
|
|
.4byte BattleScript_EffectMimic
|
|
|
|
.4byte BattleScript_EffectMetronome
|
|
|
|
.4byte BattleScript_EffectLeechSeed
|
|
|
|
.4byte BattleScript_EffectSplash
|
|
|
|
.4byte BattleScript_EffectDisable
|
|
|
|
.4byte BattleScript_EffectLevelDamage
|
|
|
|
.4byte BattleScript_EffectPsywave
|
|
|
|
.4byte BattleScript_EffectCounter
|
|
|
|
.4byte BattleScript_EffectEncore
|
|
|
|
.4byte BattleScript_EffectPainSplit
|
|
|
|
.4byte BattleScript_EffectSnore
|
|
|
|
.4byte BattleScript_EffectConversion2
|
|
|
|
.4byte BattleScript_EffectLockOn
|
|
|
|
.4byte BattleScript_EffectSketch
|
2017-11-26 00:33:40 +01:00
|
|
|
.4byte BattleScript_EffectUnused60//Thaw
|
2017-11-25 18:42:31 +01:00
|
|
|
.4byte BattleScript_EffectSleepTalk
|
|
|
|
.4byte BattleScript_EffectDestinyBond
|
|
|
|
.4byte BattleScript_EffectFlail
|
|
|
|
.4byte BattleScript_EffectSpite
|
2017-11-26 00:33:40 +01:00
|
|
|
.4byte BattleScript_EffectFalseSwipe
|
2017-11-25 18:42:31 +01:00
|
|
|
.4byte BattleScript_EffectHealBell
|
2017-11-26 00:33:40 +01:00
|
|
|
.4byte BattleScript_EffectQuickAttack
|
2017-11-25 18:42:31 +01:00
|
|
|
.4byte BattleScript_EffectTripleKick
|
|
|
|
.4byte BattleScript_EffectThief
|
|
|
|
.4byte BattleScript_EffectMeanLook
|
|
|
|
.4byte BattleScript_EffectNightmare
|
|
|
|
.4byte BattleScript_EffectMinimize
|
|
|
|
.4byte BattleScript_EffectCurse
|
2017-11-26 00:33:40 +01:00
|
|
|
.4byte BattleScript_EffectUnused6e
|
2017-11-25 18:42:31 +01:00
|
|
|
.4byte BattleScript_EffectProtect
|
|
|
|
.4byte BattleScript_EffectSpikes
|
|
|
|
.4byte BattleScript_EffectForesight
|
|
|
|
.4byte BattleScript_EffectPerishSong
|
|
|
|
.4byte BattleScript_EffectSandstorm
|
2017-11-26 00:33:40 +01:00
|
|
|
.4byte BattleScript_EffectEndure
|
2017-11-25 18:42:31 +01:00
|
|
|
.4byte BattleScript_EffectRollout
|
|
|
|
.4byte BattleScript_EffectSwagger
|
|
|
|
.4byte BattleScript_EffectFuryCutter
|
|
|
|
.4byte BattleScript_EffectAttract
|
|
|
|
.4byte BattleScript_EffectReturn
|
|
|
|
.4byte BattleScript_EffectPresent
|
2017-11-26 00:33:40 +01:00
|
|
|
.4byte BattleScript_EffectFrustration
|
2017-11-25 18:42:31 +01:00
|
|
|
.4byte BattleScript_EffectSafeguard
|
|
|
|
.4byte BattleScript_EffectThawHit
|
|
|
|
.4byte BattleScript_EffectMagnitude
|
|
|
|
.4byte BattleScript_EffectBatonPass
|
2017-11-26 00:33:40 +01:00
|
|
|
.4byte BattleScript_EffectPursuit
|
2017-11-25 18:42:31 +01:00
|
|
|
.4byte BattleScript_EffectRapidSpin
|
|
|
|
.4byte BattleScript_EffectSonicboom
|
2017-11-26 00:33:40 +01:00
|
|
|
.4byte BattleScript_EffectUnused83
|
2017-11-25 18:42:31 +01:00
|
|
|
.4byte BattleScript_EffectMorningSun
|
2017-11-26 00:33:40 +01:00
|
|
|
.4byte BattleScript_EffectSynthesis
|
|
|
|
.4byte BattleScript_EffectMoonlight
|
2017-11-25 18:42:31 +01:00
|
|
|
.4byte BattleScript_EffectHiddenPower
|
|
|
|
.4byte BattleScript_EffectRainDance
|
|
|
|
.4byte BattleScript_EffectSunnyDay
|
|
|
|
.4byte BattleScript_EffectDefenseUpHit
|
|
|
|
.4byte BattleScript_EffectAttackUpHit
|
|
|
|
.4byte BattleScript_EffectAllStatsUpHit
|
2017-11-26 00:33:40 +01:00
|
|
|
.4byte BattleScript_EffectUnused8d
|
2017-11-25 18:42:31 +01:00
|
|
|
.4byte BattleScript_EffectBellyDrum
|
|
|
|
.4byte BattleScript_EffectPsychUp
|
|
|
|
.4byte BattleScript_EffectMirrorCoat
|
|
|
|
.4byte BattleScript_EffectSkullBash
|
|
|
|
.4byte BattleScript_EffectTwister
|
|
|
|
.4byte BattleScript_EffectEarthquake
|
|
|
|
.4byte BattleScript_EffectFutureSight
|
|
|
|
.4byte BattleScript_EffectGust
|
|
|
|
.4byte BattleScript_EffectStomp
|
|
|
|
.4byte BattleScript_EffectSolarbeam
|
|
|
|
.4byte BattleScript_EffectThunder
|
|
|
|
.4byte BattleScript_EffectTeleport
|
|
|
|
.4byte BattleScript_EffectBeatUp
|
2017-11-26 00:33:40 +01:00
|
|
|
.4byte BattleScript_EffectSemiInvulnerable
|
2017-11-25 18:42:31 +01:00
|
|
|
.4byte BattleScript_EffectDefenseCurl
|
|
|
|
.4byte BattleScript_EffectSoftboiled
|
|
|
|
.4byte BattleScript_EffectFakeOut
|
|
|
|
.4byte BattleScript_EffectUproar
|
|
|
|
.4byte BattleScript_EffectStockpile
|
|
|
|
.4byte BattleScript_EffectSpitUp
|
|
|
|
.4byte BattleScript_EffectSwallow
|
2017-11-26 00:33:40 +01:00
|
|
|
.4byte BattleScript_EffectUnusedA3
|
2017-11-25 18:42:31 +01:00
|
|
|
.4byte BattleScript_EffectHail
|
|
|
|
.4byte BattleScript_EffectTorment
|
|
|
|
.4byte BattleScript_EffectFlatter
|
|
|
|
.4byte BattleScript_EffectWillOWisp
|
|
|
|
.4byte BattleScript_EffectMemento
|
|
|
|
.4byte BattleScript_EffectFacade
|
|
|
|
.4byte BattleScript_EffectFocusPunch
|
|
|
|
.4byte BattleScript_EffectSmellingsalt
|
|
|
|
.4byte BattleScript_EffectFollowMe
|
|
|
|
.4byte BattleScript_EffectNaturePower
|
|
|
|
.4byte BattleScript_EffectCharge
|
|
|
|
.4byte BattleScript_EffectTaunt
|
|
|
|
.4byte BattleScript_EffectHelpingHand
|
|
|
|
.4byte BattleScript_EffectTrick
|
|
|
|
.4byte BattleScript_EffectRolePlay
|
|
|
|
.4byte BattleScript_EffectWish
|
|
|
|
.4byte BattleScript_EffectAssist
|
|
|
|
.4byte BattleScript_EffectIngrain
|
|
|
|
.4byte BattleScript_EffectSuperpower
|
|
|
|
.4byte BattleScript_EffectMagicCoat
|
|
|
|
.4byte BattleScript_EffectRecycle
|
|
|
|
.4byte BattleScript_EffectRevenge
|
|
|
|
.4byte BattleScript_EffectBrickBreak
|
|
|
|
.4byte BattleScript_EffectYawn
|
|
|
|
.4byte BattleScript_EffectKnockOff
|
|
|
|
.4byte BattleScript_EffectEndeavor
|
|
|
|
.4byte BattleScript_EffectEruption
|
|
|
|
.4byte BattleScript_EffectSkillSwap
|
|
|
|
.4byte BattleScript_EffectImprison
|
|
|
|
.4byte BattleScript_EffectRefresh
|
|
|
|
.4byte BattleScript_EffectGrudge
|
|
|
|
.4byte BattleScript_EffectSnatch
|
|
|
|
.4byte BattleScript_EffectLowKick
|
|
|
|
.4byte BattleScript_EffectSecretPower
|
|
|
|
.4byte BattleScript_EffectDoubleEdge
|
|
|
|
.4byte BattleScript_EffectTeeterDance
|
2017-11-26 00:33:40 +01:00
|
|
|
.4byte BattleScript_EffectBlazeKick
|
2017-11-25 18:42:31 +01:00
|
|
|
.4byte BattleScript_EffectMudSport
|
|
|
|
.4byte BattleScript_EffectPoisonFang
|
|
|
|
.4byte BattleScript_EffectWeatherBall
|
|
|
|
.4byte BattleScript_EffectOverheat
|
|
|
|
.4byte BattleScript_EffectTickle
|
|
|
|
.4byte BattleScript_EffectCosmicPower
|
|
|
|
.4byte BattleScript_EffectSkyUppercut
|
|
|
|
.4byte BattleScript_EffectBulkUp
|
2017-11-26 00:33:40 +01:00
|
|
|
.4byte BattleScript_EffectPoisonTail
|
|
|
|
.4byte BattleScript_EffectWaterSport
|
2017-11-25 18:42:31 +01:00
|
|
|
.4byte BattleScript_EffectCalmMind
|
|
|
|
.4byte BattleScript_EffectDragonDance
|
|
|
|
.4byte BattleScript_EffectCamouflage
|
|
|
|
|
2017-11-26 00:33:40 +01:00
|
|
|
BattleScript_EffectSpeedUp::
|
|
|
|
BattleScript_EffectSpecialDefenseUp::
|
|
|
|
BattleScript_EffectAccuracyUp::
|
|
|
|
BattleScript_EffectAlwaysHit::
|
|
|
|
BattleScript_EffectSpecialAttackDown::
|
|
|
|
BattleScript_EffectSpecialDefenseDown::
|
|
|
|
BattleScript_EffectHighCritical::
|
|
|
|
BattleScript_EffectAccuracyUp2::
|
|
|
|
BattleScript_EffectEvasionUp2::
|
|
|
|
BattleScript_EffectSpecialAttackDown2::
|
|
|
|
BattleScript_EffectAccuracyDown2::
|
|
|
|
BattleScript_EffectEvasionDown2::
|
|
|
|
BattleScript_EffectEvasionDownHit::
|
|
|
|
BattleScript_EffectVitalThrow::
|
|
|
|
BattleScript_EffectUnused60::
|
|
|
|
BattleScript_EffectFalseSwipe::
|
|
|
|
BattleScript_EffectQuickAttack::
|
|
|
|
BattleScript_EffectUnused6e::
|
|
|
|
BattleScript_EffectPursuit::
|
|
|
|
BattleScript_EffectUnused83::
|
|
|
|
BattleScript_EffectUnused8d::
|
|
|
|
BattleScript_EffectUnusedA3::
|
2017-11-25 18:42:31 +01:00
|
|
|
BattleScript_EffectHit::
|
2017-11-26 11:55:17 +01:00
|
|
|
jumpifnotmove MOVE_SURF, BattleScript_HitFromAtkCanceler
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifnostatus3 BS_TARGET, STATUS3_UNDERWATER, BattleScript_HitFromAtkCanceler
|
2017-11-25 18:42:31 +01:00
|
|
|
orword gHitMarker, HITMARKER_IGNORE_UNDERWATER
|
|
|
|
setbyte sDMG_MULTIPLIER, 0x2
|
|
|
|
BattleScript_HitFromAtkCanceler::
|
|
|
|
attackcanceler
|
|
|
|
BattleScript_HitFromAccCheck::
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
BattleScript_HitFromAtkString::
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
BattleScript_HitFromCritCalc::
|
|
|
|
critcalc
|
|
|
|
damagecalc
|
|
|
|
typecalc
|
|
|
|
adjustnormaldamage
|
|
|
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
resultmessage
|
|
|
|
waitmessage 0x40
|
|
|
|
seteffectwithchance
|
2018-02-08 11:17:41 +01:00
|
|
|
tryfaintmon BS_TARGET, FALSE, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
BattleScript_MoveEnd::
|
|
|
|
setbyte sMOVEEND_STATE, 0x0
|
|
|
|
moveend 0x0, 0x0
|
|
|
|
end
|
|
|
|
|
|
|
|
BattleScript_MakeMoveMissed::
|
2018-01-16 22:12:38 +01:00
|
|
|
orbyte gMoveResultFlags, MOVE_RESULT_MISSED
|
2017-11-25 18:42:31 +01:00
|
|
|
BattleScript_PrintMoveMissed::
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
BattleScript_MoveMissedPause::
|
|
|
|
pause 0x20
|
|
|
|
BattleScript_MoveMissed::
|
|
|
|
effectivenesssound
|
|
|
|
resultmessage
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectSleep::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus2 BS_TARGET, STATUS2_SUBSTITUTE, BattleScript_ButItFailed
|
|
|
|
jumpifstatus BS_TARGET, STATUS1_SLEEP, BattleScript_AlreadyAsleep
|
2017-11-26 13:26:58 +01:00
|
|
|
jumpifcantmakeasleep BattleScript_CantMakeAsleep
|
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
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifsideaffecting BS_TARGET, SIDE_STATUS_SAFEGUARD, 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
|
|
|
|
|
2017-11-26 13:26:58 +01:00
|
|
|
BattleScript_AlreadyAsleep::
|
2018-11-11 18:33:16 +01:00
|
|
|
setalreadystatusedmoveattempt BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_PKMNALREADYASLEEP
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2017-11-26 13:26:58 +01:00
|
|
|
BattleScript_WasntAffected::
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_PKMNWASNTAFFECTED
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2017-11-26 13:26:58 +01:00
|
|
|
BattleScript_CantMakeAsleep::
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x20
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gUproarAwakeStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectPoisonHit::
|
2017-11-26 00:33:40 +01:00
|
|
|
BattleScript_EffectPoisonTail::
|
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
|
|
|
|
typecalc
|
|
|
|
adjustnormaldamage
|
|
|
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
resultmessage
|
|
|
|
waitmessage 0x40
|
|
|
|
negativedamage
|
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifability BS_TARGET, ABILITY_LIQUID_OOZE, BattleScript_AbsorbLiquidOoze
|
2017-11-25 18:42:31 +01:00
|
|
|
setbyte cMULTISTRING_CHOOSER, 0x0
|
2017-12-02 00:03:46 +01:00
|
|
|
goto BattleScript_AbsorbUpdateHp
|
|
|
|
BattleScript_AbsorbLiquidOoze::
|
2017-11-25 18:42:31 +01:00
|
|
|
manipulatedamage ATK80_DMG_CHANGE_SIGN
|
|
|
|
setbyte cMULTISTRING_CHOOSER, 0x1
|
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
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gLeechSeedDrainStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
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::
|
2017-11-26 00:33:40 +01:00
|
|
|
BattleScript_EffectBlazeKick::
|
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
|
|
|
|
typecalc
|
|
|
|
adjustnormaldamage
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
resultmessage
|
|
|
|
waitmessage 0x40
|
2018-02-08 11:17:41 +01:00
|
|
|
tryfaintmon BS_TARGET, FALSE, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
setbyte sMOVEEND_STATE, 0x0
|
|
|
|
moveend 0x2, 0x10
|
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
|
2018-09-01 20:00:13 +02:00
|
|
|
BattleScript_ExplosionMissed:
|
2017-11-25 18:42:31 +01:00
|
|
|
effectivenesssound
|
|
|
|
resultmessage
|
|
|
|
waitmessage 0x40
|
|
|
|
setbyte sMOVEEND_STATE, 0x0
|
|
|
|
moveend 0x2, 0x10
|
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
|
|
|
|
|
2018-09-01 20:00:13 +02:00
|
|
|
BattleScript_PreserveMissedBitDoMoveAnim:
|
2018-01-16 22:12:38 +01:00
|
|
|
bicbyte gMoveResultFlags, MOVE_RESULT_MISSED
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2018-01-16 22:12:38 +01:00
|
|
|
orbyte gMoveResultFlags, MOVE_RESULT_MISSED
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_EffectDreamEater::
|
|
|
|
attackcanceler
|
2018-09-01 20:00:13 +02:00
|
|
|
jumpifstatus2 BS_TARGET, STATUS2_SUBSTITUTE, BattleScript_DreamEaterNoEffect
|
|
|
|
jumpifstatus BS_TARGET, STATUS1_SLEEP, BattleScript_DreamEaterWorked
|
|
|
|
BattleScript_DreamEaterNoEffect:
|
2017-11-25 18:42:31 +01:00
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
waitmessage 0x40
|
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
|
|
|
|
typecalc
|
|
|
|
adjustnormaldamage
|
|
|
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
resultmessage
|
|
|
|
waitmessage 0x40
|
|
|
|
negativedamage
|
|
|
|
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
|
|
|
|
waitmessage 0x40
|
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
|
|
|
|
pause 0x40
|
|
|
|
trymirrormove
|
|
|
|
ppreduce
|
2018-01-16 22:12:38 +01:00
|
|
|
orbyte gMoveResultFlags, MOVE_RESULT_FAILED
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_MIRRORMOVEFAILED
|
|
|
|
waitmessage 0x40
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
2018-02-08 00:35:13 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | 0x1, BattleScript_StatUpEnd
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_NOT_EQUAL, cMULTISTRING_CHOOSER, 0x2, BattleScript_StatUpAttackAnim
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x20
|
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
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
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
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
|
|
|
return
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
BattleScript_EffectEvasionDown::
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_EVASION, 1, TRUE
|
2017-11-25 18:42:31 +01:00
|
|
|
BattleScript_EffectStatDown::
|
|
|
|
attackcanceler
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus2 BS_TARGET, STATUS2_SUBSTITUTE, BattleScript_ButItFailedAtkStringPpReduce
|
2017-11-25 18:42:31 +01:00
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2017-11-26 01:19:57 +01:00
|
|
|
statbuffchange 0x1, BattleScript_StatDownEnd
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_LESS_THAN, cMULTISTRING_CHOOSER, 0x2, BattleScript_StatDownDoAnim
|
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, 0x3, BattleScript_StatDownEnd
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x20
|
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
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
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
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_EffectHaze::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
normalisebuffs
|
|
|
|
printstring STRINGID_STATCHANGESGONE
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectBide::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
orword gHitMarker, HITMARKER_x8000000
|
|
|
|
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
|
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
|
2017-11-25 18:42:31 +01:00
|
|
|
forcerandomswitch BattleScript_ButItFailed
|
|
|
|
|
|
|
|
BattleScript_EffectMultiHit::
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
setmultihitcounter 0x0
|
|
|
|
initmultihitstring
|
2017-12-02 23:31:58 +01:00
|
|
|
setbyte sMULTIHIT_EFFECT, 0x0
|
|
|
|
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
|
2017-12-02 23:31:58 +01:00
|
|
|
copybyte cEFFECT_CHOOSER, sMULTIHIT_EFFECT
|
2017-11-25 18:42:31 +01:00
|
|
|
critcalc
|
|
|
|
damagecalc
|
|
|
|
typecalc
|
2017-12-02 23:31:58 +01:00
|
|
|
jumpifmovehadnoeffect BattleScript_MultiHitNoMoreHits
|
2017-11-25 18:42:31 +01:00
|
|
|
adjustnormaldamage
|
|
|
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
printstring STRINGID_EMPTYSTRING3
|
|
|
|
waitmessage 0x1
|
|
|
|
addbyte sMULTIHIT_STRING + 4, 0x1
|
|
|
|
setbyte sMOVEEND_STATE, 0x0
|
|
|
|
moveend 0x2, 0x10
|
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::
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x20
|
2017-12-02 23:31:58 +01:00
|
|
|
BattleScript_MultiHitPrintStrings::
|
2017-11-25 18:42:31 +01:00
|
|
|
resultmessage
|
|
|
|
waitmessage 0x40
|
2017-12-02 23:31:58 +01:00
|
|
|
jumpifmovehadnoeffect BattleScript_MultiHitEnd
|
2017-11-25 18:42:31 +01:00
|
|
|
copyarray gBattleTextBuff1, sMULTIHIT_STRING, 0x6
|
|
|
|
printstring STRINGID_HITXTIMES
|
|
|
|
waitmessage 0x40
|
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
|
2017-11-25 18:42:31 +01:00
|
|
|
setbyte sMOVEEND_STATE, 0x2
|
|
|
|
moveend 0x1, 0x0
|
|
|
|
setbyte sMOVEEND_STATE, 0x4
|
|
|
|
moveend 0x0, 0x0
|
|
|
|
end
|
|
|
|
|
|
|
|
BattleScript_EffectConversion::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
tryconversiontypechange BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNCHANGEDTYPE
|
|
|
|
waitmessage 0x40
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectToxic::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifability BS_TARGET, ABILITY_IMMUNITY, BattleScript_ImmunityProtected
|
|
|
|
jumpifstatus2 BS_TARGET, STATUS2_SUBSTITUTE, BattleScript_ButItFailed
|
|
|
|
jumpifstatus BS_TARGET, STATUS1_POISON, BattleScript_AlreadyPoisoned
|
|
|
|
jumpifstatus BS_TARGET, STATUS1_TOXIC_POISON, BattleScript_AlreadyPoisoned
|
|
|
|
jumpifstatus BS_TARGET, STATUS1_ANY, BattleScript_ButItFailed
|
|
|
|
jumpiftype BS_TARGET, TYPE_POISON, BattleScript_NotAffected
|
|
|
|
jumpiftype BS_TARGET, TYPE_STEEL, BattleScript_NotAffected
|
2017-11-25 18:42:31 +01:00
|
|
|
accuracycheck BattleScript_ButItFailed, ACC_CURR_MOVE
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifsideaffecting BS_TARGET, SIDE_STATUS_SAFEGUARD, 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
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_AlreadyPoisoned::
|
2018-11-11 18:33:16 +01:00
|
|
|
setalreadystatusedmoveattempt BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x40
|
|
|
|
printstring STRINGID_PKMNALREADYPOISONED
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2017-11-26 01:19:57 +01:00
|
|
|
BattleScript_ImmunityProtected::
|
2018-02-08 11:17:41 +01:00
|
|
|
copybyte gEffectBattler, gBattlerTarget
|
2017-11-25 18:42:31 +01:00
|
|
|
setbyte cMULTISTRING_CHOOSER, 0x0
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
2017-11-26 17:15:28 +01:00
|
|
|
jumpifcantmakeasleep BattleScript_RestCantSleep
|
2017-11-25 18:42:31 +01:00
|
|
|
trysetrest BattleScript_AlreadyAtFullHp
|
|
|
|
pause 0x20
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gRestUsedStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
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::
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x40
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gUproarAwakeStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_RestIsAlreadyAsleep::
|
2018-11-11 18:33:16 +01:00
|
|
|
setalreadystatusedmoveattempt BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_PKMNALREADYASLEEP2
|
|
|
|
waitmessage 0x40
|
|
|
|
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::
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x40
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gKOFailedStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectRazorWind::
|
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
|
2017-11-26 00:33:40 +01:00
|
|
|
setbyte sTWOTURN_STRINGID, 0x0
|
|
|
|
call BattleScriptFirstChargingTurn
|
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
|
|
|
|
setbyte sB_ANIM_TURN, 0x1
|
2018-02-08 11:17:41 +01:00
|
|
|
clearstatusfromeffect BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
orword gHitMarker, HITMARKER_NO_PPDEDUCT
|
2017-11-26 11:55:17 +01:00
|
|
|
jumpifnotmove MOVE_SKY_ATTACK, BattleScript_HitFromAccCheck
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_FLINCH
|
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
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
orword gHitMarker, HITMARKER_x8000000
|
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
|
2017-11-26 00:33:40 +01:00
|
|
|
copybyte cMULTISTRING_CHOOSER, sTWOTURN_STRINGID
|
|
|
|
printfromtable gFirstTurnOfTwoStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_EffectSuperFang::
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
typecalc
|
2018-01-16 22:12:38 +01:00
|
|
|
bicbyte 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-01-16 22:12:38 +01:00
|
|
|
bicbyte gMoveResultFlags, MOVE_RESULT_SUPER_EFFECTIVE | MOVE_RESULT_NOT_VERY_EFFECTIVE
|
2017-11-25 21:11:20 +01:00
|
|
|
setword gBattleMoveDamage, 40
|
2017-11-25 18:42:31 +01:00
|
|
|
adjustsetdamage
|
|
|
|
goto BattleScript_HitFromAtkAnimation
|
|
|
|
|
|
|
|
BattleScript_EffectTrap::
|
2017-11-26 17:15:28 +01:00
|
|
|
jumpifnotmove MOVE_WHIRLPOOL, BattleScript_DoWrapEffect
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifnostatus3 BS_TARGET, STATUS3_UNDERWATER, BattleScript_DoWrapEffect
|
2017-11-25 18:42:31 +01:00
|
|
|
orword gHitMarker, HITMARKER_IGNORE_UNDERWATER
|
|
|
|
setbyte sDMG_MULTIPLIER, 0x2
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_DoWrapEffect::
|
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
|
|
|
|
setmultihitcounter 0x2
|
|
|
|
initmultihitstring
|
2017-12-02 23:31:58 +01:00
|
|
|
setbyte sMULTIHIT_EFFECT, 0x0
|
|
|
|
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
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_HitFromAtkString
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_MoveMissedDoDamage::
|
2017-11-25 18:42:31 +01:00
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
pause 0x40
|
|
|
|
resultmessage
|
|
|
|
waitmessage 0x40
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_COMMON_BITS, gMoveResultFlags, MOVE_RESULT_DOESNT_AFFECT_FOE, BattleScript_MoveEnd
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNCRASHED
|
|
|
|
waitmessage 0x40
|
|
|
|
damagecalc
|
|
|
|
typecalc
|
|
|
|
adjustnormaldamage
|
|
|
|
manipulatedamage ATK80_DMG_HALF_BY_TWO_NOT_MORE_THAN_HALF_MAX_HP
|
2018-01-16 22:12:38 +01:00
|
|
|
bicbyte gMoveResultFlags, MOVE_RESULT_MISSED
|
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
|
|
|
|
tryfaintmon BS_ATTACKER, FALSE, NULL
|
2018-01-16 22:12:38 +01:00
|
|
|
orbyte gMoveResultFlags, MOVE_RESULT_MISSED
|
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
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectFocusEnergy::
|
|
|
|
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
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectRecoil::
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_RECOIL_25 | MOVE_EFFECT_AFFECTS_USER | MOVE_EFFECT_CERTAIN
|
2017-11-26 11:55:17 +01:00
|
|
|
jumpifnotmove MOVE_STRUGGLE, BattleScript_EffectHit
|
2018-10-06 09:37:52 +02:00
|
|
|
incrementgamestat GAME_STAT_USED_STRUGGLE
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_EffectConfuse::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifability BS_TARGET, ABILITY_OWN_TEMPO, BattleScript_OwnTempoPrevents
|
|
|
|
jumpifstatus2 BS_TARGET, STATUS2_SUBSTITUTE, BattleScript_ButItFailed
|
|
|
|
jumpifstatus2 BS_TARGET, STATUS2_CONFUSION, BattleScript_AlreadyConfused
|
2017-11-25 18:42:31 +01:00
|
|
|
accuracycheck BattleScript_ButItFailed, ACC_CURR_MOVE
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifsideaffecting BS_TARGET, SIDE_STATUS_SAFEGUARD, 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
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2017-11-26 13:26:58 +01:00
|
|
|
BattleScript_AlreadyConfused::
|
2018-11-11 18:33:16 +01:00
|
|
|
setalreadystatusedmoveattempt BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_PKMNALREADYCONFUSED
|
|
|
|
waitmessage 0x40
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
BattleScript_EffectTransform::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
transformdataexecution
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gTransformUsedStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectPoison::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifability BS_TARGET, ABILITY_IMMUNITY, BattleScript_ImmunityProtected
|
|
|
|
jumpifstatus2 BS_TARGET, STATUS2_SUBSTITUTE, BattleScript_ButItFailed
|
|
|
|
jumpifstatus BS_TARGET, STATUS1_POISON, BattleScript_AlreadyPoisoned
|
|
|
|
jumpifstatus BS_TARGET, STATUS1_TOXIC_POISON, BattleScript_AlreadyPoisoned
|
|
|
|
jumpiftype BS_TARGET, TYPE_POISON, BattleScript_NotAffected
|
|
|
|
jumpiftype BS_TARGET, TYPE_STEEL, BattleScript_NotAffected
|
|
|
|
jumpifstatus BS_TARGET, STATUS1_ANY, BattleScript_ButItFailed
|
2017-11-25 18:42:31 +01:00
|
|
|
accuracycheck BattleScript_ButItFailed, ACC_CURR_MOVE
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifsideaffecting BS_TARGET, SIDE_STATUS_SAFEGUARD, 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
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectParalyze::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifability BS_TARGET, ABILITY_LIMBER, BattleScript_LimberProtected
|
|
|
|
jumpifstatus2 BS_TARGET, STATUS2_SUBSTITUTE, 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
|
|
|
|
jumpifstatus BS_TARGET, STATUS1_ANY, BattleScript_ButItFailed
|
2017-11-25 18:42:31 +01:00
|
|
|
accuracycheck BattleScript_ButItFailed, ACC_CURR_MOVE
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifsideaffecting BS_TARGET, SIDE_STATUS_SAFEGUARD, BattleScript_SafeguardProtected
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2017-11-26 13:26:58 +01:00
|
|
|
BattleScript_AlreadyParalyzed::
|
2018-11-11 18:33:16 +01:00
|
|
|
setalreadystatusedmoveattempt BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_PKMNISALREADYPARALYZED
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2017-11-26 01:19:57 +01:00
|
|
|
BattleScript_LimberProtected::
|
2018-02-08 11:17:41 +01:00
|
|
|
copybyte gEffectBattler, gBattlerTarget
|
2017-11-25 18:42:31 +01:00
|
|
|
setbyte cMULTISTRING_CHOOSER, 0x0
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
BattleScript_EffectSkyAttack::
|
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
|
2017-11-26 00:33:40 +01:00
|
|
|
setbyte sTWOTURN_STRINGID, 0x3
|
|
|
|
call BattleScriptFirstChargingTurn
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
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
|
2018-02-08 00:35:13 +01:00
|
|
|
setbyte sMULTIHIT_EFFECT, MOVE_EFFECT_POISON
|
2017-11-25 18:42:31 +01:00
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
setmultihitcounter 0x2
|
|
|
|
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
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_NOT_EQUAL, cMULTISTRING_CHOOSER, 0x1, BattleScript_SubstituteAnim
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x20
|
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::
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gSubsituteUsedStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_AlreadyHasSubstitute::
|
2018-11-11 18:33:16 +01:00
|
|
|
setalreadystatusedmoveattempt BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_PKMNHASSUBSTITUTE
|
|
|
|
waitmessage 0x40
|
|
|
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
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-02-08 11:17:41 +01:00
|
|
|
jumpifstatus2 BS_TARGET, STATUS2_SUBSTITUTE, 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
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectMetronome::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
pause 0x20
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2018-02-08 00:35:13 +01:00
|
|
|
setbyte sB_ANIM_TURN, 0x0
|
|
|
|
setbyte sB_ANIM_TARGETS_HIT, 0x0
|
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
|
|
|
|
pause 0x20
|
|
|
|
ppreduce
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus2 BS_TARGET, STATUS2_SUBSTITUTE, 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
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectSplash::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2018-10-06 09:37:52 +02:00
|
|
|
incrementgamestat GAME_STAT_USED_SPLASH
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_BUTNOTHINGHAPPENED
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectDisable::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
accuracycheck BattleScript_ButItFailed, ACC_CURR_MOVE
|
|
|
|
disablelastusedattack BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNMOVEWASDISABLED
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectLevelDamage::
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
typecalc
|
2018-01-16 22:12:38 +01:00
|
|
|
bicbyte gMoveResultFlags, MOVE_RESULT_SUPER_EFFECTIVE | MOVE_RESULT_NOT_VERY_EFFECTIVE
|
2017-11-25 18:42:31 +01:00
|
|
|
dmgtolevel
|
|
|
|
adjustsetdamage
|
|
|
|
goto BattleScript_HitFromAtkAnimation
|
|
|
|
|
|
|
|
BattleScript_EffectPsywave::
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
typecalc
|
2018-01-16 22:12:38 +01:00
|
|
|
bicbyte gMoveResultFlags, MOVE_RESULT_SUPER_EFFECTIVE | MOVE_RESULT_NOT_VERY_EFFECTIVE
|
2017-11-25 18:42:31 +01:00
|
|
|
psywavedamageeffect
|
|
|
|
adjustsetdamage
|
|
|
|
goto BattleScript_HitFromAtkAnimation
|
|
|
|
|
|
|
|
BattleScript_EffectCounter::
|
|
|
|
attackcanceler
|
|
|
|
counterdamagecalculator BattleScript_ButItFailedAtkStringPpReduce
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
typecalc2
|
|
|
|
adjustsetdamage
|
|
|
|
goto BattleScript_HitFromAtkAnimation
|
|
|
|
|
|
|
|
BattleScript_EffectEncore::
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
trysetencore BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNGOTENCORE
|
|
|
|
waitmessage 0x40
|
|
|
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectSnore::
|
|
|
|
attackcanceler
|
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
|
|
|
|
waitmessage 0x40
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectLockOn::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus2 BS_TARGET, STATUS2_SUBSTITUTE, BattleScript_ButItFailed
|
2017-11-25 18:42:31 +01:00
|
|
|
accuracycheck BattleScript_ButItFailed, ACC_CURR_MOVE
|
|
|
|
setalwayshitflag
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNTOOKAIM
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectSketch::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus2 BS_TARGET, STATUS2_SUBSTITUTE, BattleScript_ButItFailed
|
2017-11-25 18:42:31 +01:00
|
|
|
copymovepermanently BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNSKETCHEDMOVE
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectSleepTalk::
|
|
|
|
attackcanceler
|
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
|
|
|
|
waitmessage 0x40
|
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
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x40
|
|
|
|
goto BattleScript_ButItFailed
|
2017-11-26 01:19:57 +01:00
|
|
|
BattleScript_SleepTalkUsingMove::
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2018-02-08 00:35:13 +01:00
|
|
|
setbyte sB_ANIM_TURN, 0x0
|
|
|
|
setbyte sB_ANIM_TARGETS_HIT, 0x0
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectFlail::
|
|
|
|
remaininghptopower
|
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_EffectSpite::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
accuracycheck BattleScript_ButItFailed, ACC_CURR_MOVE
|
|
|
|
tryspiteppreduce BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNREDUCEDPP
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectHealBell::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
healpartystatus
|
|
|
|
waitstate
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gPartyStatusHealStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
2017-11-26 17:15:28 +01:00
|
|
|
jumpifnotmove MOVE_HEAL_BELL, BattleScript_PartyHealEnd
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_NO_COMMON_BITS, cMULTISTRING_CHOOSER, 0x1, BattleScript_CheckHealBellMon2Unaffected
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSXBLOCKSY
|
|
|
|
waitmessage 0x40
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_CheckHealBellMon2Unaffected::
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_NO_COMMON_BITS, cMULTISTRING_CHOOSER, 0x2, BattleScript_PartyHealEnd
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSXBLOCKSY2
|
|
|
|
waitmessage 0x40
|
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
|
2017-11-26 13:26:58 +01:00
|
|
|
sethword sTRIPLE_KICK_POWER, 0x0
|
2017-11-25 18:42:31 +01:00
|
|
|
initmultihitstring
|
|
|
|
setmultihit 0x3
|
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
|
2017-11-25 18:42:31 +01:00
|
|
|
addbyte sMULTIHIT_STRING + 4, 0x1
|
2017-11-26 13:26:58 +01:00
|
|
|
copyhword gDynamicBasePower, sTRIPLE_KICK_POWER
|
2017-11-25 18:42:31 +01:00
|
|
|
critcalc
|
|
|
|
damagecalc
|
|
|
|
typecalc
|
|
|
|
adjustnormaldamage
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
printstring STRINGID_EMPTYSTRING3
|
|
|
|
waitmessage 0x1
|
|
|
|
setbyte sMOVEEND_STATE, 0x0
|
|
|
|
moveend 0x2, 0x10
|
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::
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x20
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_EQUAL, sMULTIHIT_STRING + 4, 0x0, BattleScript_TripleKickPrintStrings
|
2018-01-16 22:12:38 +01:00
|
|
|
bicbyte gMoveResultFlags, MOVE_RESULT_MISSED
|
2017-11-26 13:26:58 +01:00
|
|
|
BattleScript_TripleKickPrintStrings::
|
2017-11-25 18:42:31 +01:00
|
|
|
resultmessage
|
|
|
|
waitmessage 0x40
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_EQUAL, sMULTIHIT_STRING + 4, 0x0, BattleScript_TripleKickEnd
|
|
|
|
jumpifbyte CMP_COMMON_BITS, gMoveResultFlags, MOVE_RESULT_DOESNT_AFFECT_FOE, BattleScript_TripleKickEnd
|
2017-11-25 18:42:31 +01:00
|
|
|
copyarray gBattleTextBuff1, sMULTIHIT_STRING, 0x6
|
|
|
|
printstring STRINGID_HITXTIMES
|
|
|
|
waitmessage 0x40
|
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
|
2017-11-25 18:42:31 +01:00
|
|
|
setbyte sMOVEEND_STATE, 0xE
|
|
|
|
moveend 0x0, 0x0
|
|
|
|
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
|
|
|
|
|
|
|
|
BattleScript_EffectMeanLook::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
accuracycheck BattleScript_ButItFailed, NO_ACC_CALC
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus2 BS_TARGET, STATUS2_ESCAPE_PREVENTION, BattleScript_ButItFailed
|
|
|
|
jumpifstatus2 BS_TARGET, STATUS2_SUBSTITUTE, 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
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectNightmare::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus2 BS_TARGET, STATUS2_SUBSTITUTE, BattleScript_ButItFailed
|
|
|
|
jumpifstatus2 BS_TARGET, STATUS2_NIGHTMARE, BattleScript_ButItFailed
|
|
|
|
jumpifstatus BS_TARGET, STATUS1_SLEEP, 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
|
|
|
|
waitmessage 0x40
|
|
|
|
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-02-08 11:17:41 +01:00
|
|
|
jumpiftype2 BS_ATTACKER, TYPE_GHOST, BattleScript_GhostCurse
|
2017-11-25 18:42:31 +01:00
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstat BS_ATTACKER, CMP_GREATER_THAN, STAT_SPEED, 0x0, BattleScript_CurseTrySpeed
|
|
|
|
jumpifstat BS_ATTACKER, CMP_NOT_EQUAL, STAT_ATK, 0xC, BattleScript_CurseTrySpeed
|
|
|
|
jumpifstat BS_ATTACKER, CMP_EQUAL, STAT_DEF, 0xC, BattleScript_ButItFailed
|
2017-11-26 01:19:57 +01:00
|
|
|
BattleScript_CurseTrySpeed::
|
2018-02-06 23:09:39 +01:00
|
|
|
copybyte gBattlerTarget, gBattlerAttacker
|
2018-02-08 00:35:13 +01:00
|
|
|
setbyte sB_ANIM_TURN, 0x1
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_SPEED, 1, TRUE
|
2018-02-08 00:35:13 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | 0x1, BattleScript_CurseTryAttack
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatDownStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
2017-11-26 01:19:57 +01:00
|
|
|
BattleScript_CurseTryAttack::
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_ATK, 1, FALSE
|
2018-02-08 00:35:13 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | 0x1, BattleScript_CurseTryDefence
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
2017-11-26 01:19:57 +01:00
|
|
|
BattleScript_CurseTryDefence::
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_DEF, 1, FALSE
|
2018-02-08 00:35:13 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | 0x1, BattleScript_CurseEnd
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
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
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus2 BS_TARGET, STATUS2_SUBSTITUTE, BattleScript_ButItFailed
|
2017-11-25 18:42:31 +01:00
|
|
|
accuracycheck BattleScript_ButItFailed, NO_ACC_CALC_CHECK_LOCK_ON
|
|
|
|
cursetarget BattleScript_ButItFailed
|
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE
|
2018-02-08 00:35:13 +01:00
|
|
|
setbyte sB_ANIM_TURN, 0x0
|
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
|
|
|
|
waitmessage 0x40
|
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_EffectProtect::
|
2017-11-26 00:33:40 +01:00
|
|
|
BattleScript_EffectEndure::
|
2017-11-25 18:42:31 +01:00
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
setprotectlike
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gProtectLikeUsedStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectSpikes::
|
|
|
|
attackcanceler
|
|
|
|
trysetspikes BattleScript_ButItFailedAtkStringPpReduce
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_SPIKESSCATTERED
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectForesight::
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
setforesight
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNIDENTIFIED
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectPerishSong::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
trysetperishsong BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_FAINTINTHREE
|
|
|
|
waitmessage 0x40
|
2018-10-27 00:04:18 +02:00
|
|
|
setbyte sBATTLER, 0x0
|
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::
|
2018-10-27 00:04:18 +02:00
|
|
|
addbyte sBATTLER, 0x1
|
|
|
|
jumpifbytenotequal sBATTLER, gBattlersCount, BattleScript_PerishSongLoop
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_PerishSongNotAffected::
|
|
|
|
printstring STRINGID_PKMNSXBLOCKSY2
|
|
|
|
waitmessage 0x40
|
|
|
|
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::
|
2017-11-25 18:42:31 +01:00
|
|
|
typecalc2
|
|
|
|
rolloutdamagecalculation
|
|
|
|
goto BattleScript_HitFromCritCalc
|
|
|
|
|
|
|
|
BattleScript_EffectSwagger::
|
|
|
|
attackcanceler
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus2 BS_TARGET, STATUS2_SUBSTITUTE, 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
|
2017-11-26 17:15:28 +01:00
|
|
|
statbuffchange 0x1, BattleScript_SwaggerTryConfuse
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, 0x2, 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
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_SwaggerTryConfuse::
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifability BS_TARGET, ABILITY_OWN_TEMPO, BattleScript_OwnTempoPrevents
|
|
|
|
jumpifsideaffecting BS_TARGET, SIDE_STATUS_SAFEGUARD, 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_EffectFuryCutter::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2017-11-26 17:15:28 +01:00
|
|
|
accuracycheck BattleScript_FuryCutterHit, ACC_CURR_MOVE
|
|
|
|
BattleScript_FuryCutterHit::
|
2017-11-25 18:42:31 +01:00
|
|
|
furycuttercalc
|
|
|
|
critcalc
|
|
|
|
damagecalc
|
|
|
|
typecalc
|
2017-12-02 00:03:46 +01:00
|
|
|
jumpifmovehadnoeffect BattleScript_FuryCutterHit
|
2017-11-25 18:42:31 +01:00
|
|
|
adjustnormaldamage
|
|
|
|
goto BattleScript_HitFromAtkAnimation
|
|
|
|
|
|
|
|
BattleScript_EffectAttract::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
accuracycheck BattleScript_ButItFailed, ACC_CURR_MOVE
|
|
|
|
tryinfatuating BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNFELLINLOVE
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectReturn::
|
2017-11-26 00:33:40 +01:00
|
|
|
BattleScript_EffectFrustration::
|
2017-11-25 18:42:31 +01:00
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
happinesstodamagecalculation
|
|
|
|
goto BattleScript_HitFromAtkString
|
|
|
|
|
|
|
|
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_EffectThawHit::
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_BURN
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_EffectMagnitude::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
selectfirstvalidtarget
|
|
|
|
magnitudedamagecalculation
|
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_MAGNITUDESTRENGTH
|
|
|
|
waitmessage 0x40
|
2017-12-03 00:47:21 +01:00
|
|
|
goto BattleScript_HitsAllWithUndergroundBonusLoop
|
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
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifcantswitch ATK4F_DONT_CHECK_STATUSES | BS_ATTACKER, BattleScript_ButItFailed
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
openpartyscreen 0x1, BattleScript_ButItFailed
|
2018-02-08 11:17:41 +01:00
|
|
|
switchoutabilities BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
2018-02-08 11:17:41 +01:00
|
|
|
switchhandleorder BS_ATTACKER, 0x2
|
|
|
|
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::
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_RAPIDSPIN | MOVE_EFFECT_AFFECTS_USER | MOVE_EFFECT_CERTAIN
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_EffectSonicboom::
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
typecalc
|
2018-01-16 22:12:38 +01:00
|
|
|
bicbyte gMoveResultFlags, MOVE_RESULT_SUPER_EFFECTIVE | MOVE_RESULT_NOT_VERY_EFFECTIVE
|
2017-11-25 21:11:20 +01:00
|
|
|
setword gBattleMoveDamage, 20
|
2017-11-25 18:42:31 +01:00
|
|
|
adjustsetdamage
|
|
|
|
goto BattleScript_HitFromAtkAnimation
|
|
|
|
|
|
|
|
BattleScript_EffectMorningSun::
|
2017-11-26 00:33:40 +01:00
|
|
|
BattleScript_EffectSynthesis::
|
|
|
|
BattleScript_EffectMoonlight::
|
2017-11-25 18:42:31 +01:00
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
recoverbasedonsunlight BattleScript_AlreadyAtFullHp
|
|
|
|
goto BattleScript_PresentHealTarget
|
|
|
|
|
|
|
|
BattleScript_EffectHiddenPower::
|
|
|
|
hiddenpowercalc
|
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
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
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectPsychUp::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
copyfoestats BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNCOPIEDSTATCHANGES
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectMirrorCoat::
|
|
|
|
attackcanceler
|
|
|
|
mirrorcoatdamagecalculator BattleScript_ButItFailedAtkStringPpReduce
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
typecalc2
|
|
|
|
adjustsetdamage
|
|
|
|
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
|
2017-11-26 00:33:40 +01:00
|
|
|
setbyte sTWOTURN_STRINGID, 0x2
|
|
|
|
call BattleScriptFirstChargingTurn
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_DEF, 1, FALSE
|
2018-02-08 00:35:13 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | 0x1, BattleScript_SkullBashEnd
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, 0x2, 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
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_SkullBashEnd::
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectTwister::
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifnostatus3 BS_TARGET, STATUS3_ON_AIR, BattleScript_FlinchEffect
|
2017-11-25 18:42:31 +01:00
|
|
|
orword gHitMarker, HITMARKER_IGNORE_ON_AIR
|
|
|
|
setbyte sDMG_MULTIPLIER, 0x2
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_FlinchEffect::
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_FLINCH
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_EffectEarthquake::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
selectfirstvalidtarget
|
2017-12-03 00:47:21 +01:00
|
|
|
BattleScript_HitsAllWithUndergroundBonusLoop::
|
2017-11-25 18:42:31 +01:00
|
|
|
movevaluescleanup
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifnostatus3 BS_TARGET, STATUS3_UNDERGROUND, BattleScript_HitsAllNoUndergroundBonus
|
2017-11-25 18:42:31 +01:00
|
|
|
orword gHitMarker, HITMARKER_IGNORE_UNDERGROUND
|
|
|
|
setbyte sDMG_MULTIPLIER, 0x2
|
2017-12-03 00:47:21 +01:00
|
|
|
goto BattleScript_DoHitAllWithUndergroundBonus
|
|
|
|
BattleScript_HitsAllNoUndergroundBonus::
|
2017-11-25 18:42:31 +01:00
|
|
|
bicword gHitMarker, HITMARKER_IGNORE_UNDERGROUND
|
|
|
|
setbyte sDMG_MULTIPLIER, 0x1
|
2017-12-03 00:47:21 +01:00
|
|
|
BattleScript_DoHitAllWithUndergroundBonus::
|
|
|
|
accuracycheck BattleScript_HitAllWithUndergroundBonusMissed, ACC_CURR_MOVE
|
2017-11-25 18:42:31 +01:00
|
|
|
critcalc
|
|
|
|
damagecalc
|
|
|
|
typecalc
|
|
|
|
adjustnormaldamage
|
|
|
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
resultmessage
|
|
|
|
waitmessage 0x40
|
|
|
|
printstring STRINGID_EMPTYSTRING3
|
|
|
|
waitmessage 0x1
|
2018-02-08 11:17:41 +01:00
|
|
|
tryfaintmon BS_TARGET, FALSE, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
setbyte sMOVEEND_STATE, 0x0
|
|
|
|
moveend 0x2, 0x10
|
2017-12-03 00:47:21 +01:00
|
|
|
jumpifnexttargetvalid BattleScript_HitsAllWithUndergroundBonusLoop
|
2017-11-25 18:42:31 +01:00
|
|
|
end
|
2017-12-03 00:47:21 +01:00
|
|
|
BattleScript_HitAllWithUndergroundBonusMissed::
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x20
|
|
|
|
typecalc
|
|
|
|
effectivenesssound
|
|
|
|
resultmessage
|
|
|
|
waitmessage 0x40
|
|
|
|
setbyte sMOVEEND_STATE, 0x0
|
|
|
|
moveend 0x2, 0x10
|
2017-12-03 00:47:21 +01:00
|
|
|
jumpifnexttargetvalid BattleScript_HitsAllWithUndergroundBonusLoop
|
2017-11-25 18:42:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
BattleScript_EffectFutureSight::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
trysetfutureattack BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gFutureMoveUsedStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectGust::
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifnostatus3 BS_TARGET, STATUS3_ON_AIR, BattleScript_EffectHit
|
2017-11-25 18:42:31 +01:00
|
|
|
orword gHitMarker, HITMARKER_IGNORE_ON_AIR
|
|
|
|
setbyte sDMG_MULTIPLIER, 0x2
|
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_EffectStomp::
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifnostatus3 BS_TARGET, STATUS3_MINIMIZED, BattleScript_FlinchEffect
|
2017-11-25 18:42:31 +01:00
|
|
|
setbyte sDMG_MULTIPLIER, 0x2
|
2017-11-26 17:15:28 +01:00
|
|
|
goto BattleScript_FlinchEffect
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
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
|
2017-11-26 00:33:40 +01:00
|
|
|
setbyte sTWOTURN_STRINGID, 0x1
|
|
|
|
call BattleScriptFirstChargingTurn
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
2017-11-26 01:19:57 +01:00
|
|
|
BattleScript_SolarbeamOnFirstTurn::
|
2017-11-25 18:42:31 +01:00
|
|
|
orword gHitMarker, HITMARKER_x8000000
|
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
|
|
|
|
|
|
|
BattleScript_EffectThunder::
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_PARALYSIS
|
2017-11-25 18:42:31 +01:00
|
|
|
orword gHitMarker, HITMARKER_IGNORE_ON_AIR
|
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_EffectTeleport::
|
|
|
|
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
|
|
|
|
jumpifbyte CMP_EQUAL, gBattleCommunication, 0x1, BattleScript_ButItFailed
|
|
|
|
jumpifbyte CMP_EQUAL, gBattleCommunication, 0x2, BattleScript_PrintAbilityMadeIneffective
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNFLEDFROMBATTLE
|
|
|
|
waitmessage 0x40
|
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
|
|
|
|
pause 0x20
|
|
|
|
ppreduce
|
|
|
|
setbyte gBattleCommunication, 0x0
|
|
|
|
BattleScript_BeatUpLoop::
|
|
|
|
movevaluescleanup
|
|
|
|
trydobeatup BattleScript_BeatUpEnd, BattleScript_ButItFailed
|
|
|
|
printstring STRINGID_PKMNATTACK
|
|
|
|
critcalc
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_NOT_EQUAL, gCritMultiplier, 0x2, BattleScript_BeatUpAttack
|
2017-11-25 18:42:31 +01:00
|
|
|
manipulatedamage ATK80_DMG_DOUBLED
|
|
|
|
BattleScript_BeatUpAttack::
|
|
|
|
adjustnormaldamage
|
|
|
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
resultmessage
|
|
|
|
waitmessage 0x40
|
2018-02-08 11:17:41 +01:00
|
|
|
tryfaintmon BS_TARGET, FALSE, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
setbyte sMOVEEND_STATE, 0x0
|
|
|
|
moveend 0x2, 0x10
|
|
|
|
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
|
2017-11-26 00:33:40 +01:00
|
|
|
setbyte sTWOTURN_STRINGID, 0x5
|
|
|
|
goto BattleScript_FirstTurnSemiInvulnerable
|
|
|
|
|
|
|
|
BattleScript_FirstTurnBounce::
|
|
|
|
setbyte sTWOTURN_STRINGID, 0x7
|
|
|
|
goto BattleScript_FirstTurnSemiInvulnerable
|
|
|
|
|
|
|
|
BattleScript_FirstTurnDive::
|
|
|
|
setbyte sTWOTURN_STRINGID, 0x6
|
|
|
|
goto BattleScript_FirstTurnSemiInvulnerable
|
|
|
|
|
|
|
|
BattleScript_FirstTurnFly::
|
|
|
|
setbyte sTWOTURN_STRINGID, 0x4
|
|
|
|
BattleScript_FirstTurnSemiInvulnerable::
|
|
|
|
call BattleScriptFirstChargingTurn
|
2017-11-25 18:42:31 +01:00
|
|
|
setsemiinvulnerablebit
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
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
|
|
|
|
setbyte sB_ANIM_TURN, 0x1
|
2018-02-08 11:17:41 +01:00
|
|
|
clearstatusfromeffect BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
orword gHitMarker, HITMARKER_NO_PPDEDUCT
|
2017-11-26 17:15:28 +01:00
|
|
|
jumpifnotmove MOVE_BOUNCE, BattleScript_SemiInvulnerableTryHit
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_PARALYSIS
|
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
|
2018-02-08 00:35:13 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | 0x1, BattleScript_DefenseCurlDoStatUpAnim
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, 0x2, 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
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_AlreadyAtFullHp::
|
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_PKMNHPFULL
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectFakeOut::
|
|
|
|
attackcanceler
|
|
|
|
jumpifnotfirstturn BattleScript_ButItFailedAtkStringPpReduce
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_FLINCH | MOVE_EFFECT_CERTAIN
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_ButItFailedAtkStringPpReduce::
|
|
|
|
attackstring
|
|
|
|
BattleScript_ButItFailedPpReduce::
|
|
|
|
ppreduce
|
|
|
|
BattleScript_ButItFailed::
|
|
|
|
pause 0x20
|
2018-01-16 22:12:38 +01:00
|
|
|
orbyte gMoveResultFlags, MOVE_RESULT_FAILED
|
2017-11-25 18:42:31 +01:00
|
|
|
resultmessage
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_NotAffected::
|
|
|
|
pause 0x20
|
2018-01-16 22:12:38 +01:00
|
|
|
orbyte gMoveResultFlags, MOVE_RESULT_DOESNT_AFFECT_FOE
|
2017-11-25 18:42:31 +01:00
|
|
|
resultmessage
|
|
|
|
waitmessage 0x40
|
|
|
|
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
|
|
|
nop
|
|
|
|
goto BattleScript_HitFromCritCalc
|
|
|
|
|
|
|
|
BattleScript_EffectStockpile::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
stockpile
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStockpileUsedStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectSpitUp::
|
|
|
|
attackcanceler
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_EQUAL, gBattleCommunication + 6, 0x1, BattleScript_82D9FA2
|
2017-11-25 18:42:31 +01:00
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
stockpiletobasedamage BattleScript_SpitUpFail
|
|
|
|
typecalc
|
|
|
|
adjustsetdamage
|
|
|
|
goto BattleScript_HitFromAtkAnimation
|
|
|
|
BattleScript_SpitUpFail::
|
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_FAILEDTOSPITUP
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_82D9FA2::
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
pause 0x40
|
|
|
|
stockpiletobasedamage BattleScript_SpitUpFail
|
|
|
|
resultmessage
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectSwallow::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
stockpiletohpheal BattleScript_SwallowFail
|
|
|
|
goto BattleScript_PresentHealTarget
|
|
|
|
|
|
|
|
BattleScript_SwallowFail::
|
|
|
|
pause 0x20
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gSwallowFailStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
|
|
|
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
|
|
|
|
settorment BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNSUBJECTEDTOTORMENT
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectFlatter::
|
|
|
|
attackcanceler
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus2 BS_TARGET, STATUS2_SUBSTITUTE, 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
|
2017-11-26 17:15:28 +01:00
|
|
|
statbuffchange 0x1, BattleScript_FlatterTryConfuse
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, 0x2, 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
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
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
|
|
|
|
jumpifsideaffecting BS_TARGET, SIDE_STATUS_SAFEGUARD, 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-02-08 11:17:41 +01:00
|
|
|
jumpifstatus2 BS_TARGET, STATUS2_SUBSTITUTE, BattleScript_ButItFailed
|
|
|
|
jumpifstatus BS_TARGET, STATUS1_BURN, BattleScript_AlreadyBurned
|
|
|
|
jumpiftype BS_TARGET, TYPE_FIRE, BattleScript_NotAffected
|
|
|
|
jumpifability BS_TARGET, ABILITY_WATER_VEIL, BattleScript_WaterVeilPrevents
|
|
|
|
jumpifstatus BS_TARGET, STATUS1_ANY, BattleScript_ButItFailed
|
2017-11-25 18:42:31 +01:00
|
|
|
accuracycheck BattleScript_ButItFailed, ACC_CURR_MOVE
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifsideaffecting BS_TARGET, SIDE_STATUS_SAFEGUARD, 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::
|
2018-02-08 11:17:41 +01:00
|
|
|
copybyte gEffectBattler, gBattlerTarget
|
2017-11-25 18:42:31 +01:00
|
|
|
setbyte cMULTISTRING_CHOOSER, 0x0
|
|
|
|
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
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_PKMNALREADYHASBURN
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectMemento::
|
|
|
|
attackcanceler
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_EQUAL, gBattleCommunication + 6, 0x1, BattleScript_82DA153
|
2017-11-25 18:42:31 +01:00
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
jumpifattackandspecialattackcannotfall BattleScript_ButItFailed
|
|
|
|
setatkhptozero
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2018-07-29 15:33:16 +02:00
|
|
|
jumpifstatus2 BS_TARGET, STATUS2_SUBSTITUTE, BattleScript_EffectMementoPrintNoEffect
|
|
|
|
setbyte sSTAT_ANIM_PLAYED, FALSE
|
|
|
|
playstatchangeanimation BS_TARGET, BIT_ATK | BIT_SPATK, ATK48_STAT_NEGATIVE | ATK48_STAT_BY_TWO | ATK48_ONLY_MULTIPLE
|
|
|
|
playstatchangeanimation BS_TARGET, BIT_ATK, ATK48_STAT_NEGATIVE | ATK48_STAT_BY_TWO
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_ATK, 2, TRUE
|
2018-07-29 15:33:16 +02:00
|
|
|
statbuffchange 0x1, BattleScript_EffectMementoTrySpAtk
|
|
|
|
jumpifbyte CMP_GREATER_THAN, cMULTISTRING_CHOOSER, 0x1, BattleScript_EffectMementoTrySpAtk
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatDownStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
2018-07-29 15:33:16 +02:00
|
|
|
BattleScript_EffectMementoTrySpAtk:
|
|
|
|
playstatchangeanimation BS_TARGET, BIT_SPATK, ATK48_STAT_NEGATIVE | ATK48_STAT_BY_TWO
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_SPATK, 2, TRUE
|
2018-07-29 15:33:16 +02:00
|
|
|
statbuffchange 0x1, BattleScript_EffectMementoTryFaint
|
|
|
|
jumpifbyte CMP_GREATER_THAN, cMULTISTRING_CHOOSER, 0x1, BattleScript_EffectMementoTryFaint
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatDownStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
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
|
|
|
|
waitmessage 0x40
|
2018-07-29 15:33:16 +02:00
|
|
|
goto BattleScript_EffectMementoTryFaint
|
|
|
|
BattleScript_82DA153:
|
2017-11-25 18:42:31 +01:00
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
jumpifattackandspecialattackcannotfall BattleScript_82DA15A
|
2018-07-29 15:33:16 +02:00
|
|
|
BattleScript_82DA15A:
|
2017-11-25 18:42:31 +01:00
|
|
|
setatkhptozero
|
|
|
|
pause 0x40
|
|
|
|
effectivenesssound
|
|
|
|
resultmessage
|
|
|
|
waitmessage 0x40
|
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_EffectFacade::
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus BS_ATTACKER, STATUS1_POISON | STATUS1_BURN | STATUS1_PARALYSIS | STATUS1_TOXIC_POISON, BattleScript_FacadeDoubleDmg
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_FacadeDoubleDmg::
|
|
|
|
setbyte sDMG_MULTIPLIER, 0x2
|
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_EffectFocusPunch::
|
|
|
|
attackcanceler
|
|
|
|
jumpifnodamage BattleScript_HitFromAccCheck
|
|
|
|
ppreduce
|
|
|
|
printstring STRINGID_PKMNLOSTFOCUS
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectSmellingsalt::
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus2 BS_TARGET, STATUS2_SUBSTITUTE, BattleScript_EffectHit
|
2018-02-08 00:35:13 +01:00
|
|
|
setmoveeffect MOVE_EFFECT_REMOVE_PARALYSIS | MOVE_EFFECT_CERTAIN
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus BS_TARGET, STATUS1_PARALYSIS, BattleScript_SmellingsaltDoubleDmg
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_EffectHit
|
2018-09-01 20:00:13 +02:00
|
|
|
BattleScript_SmellingsaltDoubleDmg:
|
2017-11-25 18:42:31 +01:00
|
|
|
setbyte sDMG_MULTIPLIER, 0x2
|
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_EffectFollowMe::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
setforcedtarget
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNCENTERATTENTION
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectNaturePower::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
pause 0x20
|
|
|
|
callterrainattack
|
|
|
|
printstring STRINGID_NATUREPOWERTURNEDINTO
|
|
|
|
waitmessage 0x40
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_EffectCharge::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
setcharge
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNCHARGINGPOWER
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectTaunt::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
accuracycheck BattleScript_ButItFailed, ACC_CURR_MOVE
|
|
|
|
settaunt BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNFELLFORTAUNT
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectHelpingHand::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
trysethelpinghand BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNREADYTOHELP
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectTrick::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstatus2 BS_TARGET, STATUS2_SUBSTITUTE, BattleScript_ButItFailed
|
2017-11-25 18:42:31 +01:00
|
|
|
accuracycheck BattleScript_ButItFailed, ACC_CURR_MOVE
|
|
|
|
tryswapitems BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNSWITCHEDITEMS
|
|
|
|
waitmessage 0x40
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gItemSwapStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
|
|
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectWish::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
trywish 0x0, BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectAssist::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
asistattackselect BattleScript_ButItFailedPpReduce
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2018-02-08 00:35:13 +01:00
|
|
|
setbyte sB_ANIM_TURN, 0x0
|
|
|
|
setbyte sB_ANIM_TARGETS_HIT, 0x0
|
2018-09-22 19:08:41 +02:00
|
|
|
jumptocalledmove TRUE
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_EffectIngrain::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
trysetroots BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNPLANTEDROOTS
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
BattleScript_EffectMagicCoat::
|
|
|
|
attackcanceler
|
|
|
|
trysetmagiccoat BattleScript_ButItFailedAtkStringPpReduce
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNSHROUDEDITSELF
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectRecycle::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
tryrecycleitem BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_XFOUNDONEY
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectRevenge::
|
|
|
|
doubledamagedealtifdamaged
|
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_EffectBrickBreak::
|
|
|
|
attackcanceler
|
|
|
|
accuracycheck BattleScript_PrintMoveMissed, ACC_CURR_MOVE
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
removelightscreenreflect
|
|
|
|
critcalc
|
|
|
|
damagecalc
|
|
|
|
typecalc
|
|
|
|
adjustnormaldamage
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_EQUAL, sB_ANIM_TURN, 0x0, BattleScript_BrickBreakAnim
|
2018-01-16 22:12:38 +01:00
|
|
|
bicbyte 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
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_LESS_THAN, sB_ANIM_TURN, 0x2, BattleScript_BrickBreakDoHit
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_THEWALLSHATTERED
|
|
|
|
waitmessage 0x40
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_BrickBreakDoHit::
|
2017-11-25 18:42:31 +01:00
|
|
|
typecalc2
|
|
|
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
resultmessage
|
|
|
|
waitmessage 0x40
|
|
|
|
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
|
|
|
|
jumpifstatus2 BS_TARGET, STATUS2_SUBSTITUTE, BattleScript_ButItFailed
|
|
|
|
jumpifsideaffecting BS_TARGET, SIDE_STATUS_SAFEGUARD, 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
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
2017-12-02 23:31:58 +01:00
|
|
|
BattleScript_PrintBankAbilityMadeIneffective::
|
2018-10-27 00:04:18 +02:00
|
|
|
copybyte sBATTLER, sBATTLER_WITH_ABILITY
|
2017-12-02 23:31:58 +01:00
|
|
|
BattleScript_PrintAbilityMadeIneffective::
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_PKMNSXMADEITINEFFECTIVE
|
|
|
|
waitmessage 0x40
|
|
|
|
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-01-16 22:12:38 +01:00
|
|
|
bicbyte gMoveResultFlags, MOVE_RESULT_SUPER_EFFECTIVE | MOVE_RESULT_NOT_VERY_EFFECTIVE
|
2017-11-25 21:32:17 +01:00
|
|
|
copyword gBattleMoveDamage, gHpDealt
|
2017-11-25 18:42:31 +01:00
|
|
|
adjustsetdamage
|
|
|
|
goto BattleScript_HitFromAtkAnimation
|
|
|
|
|
|
|
|
BattleScript_EffectEruption::
|
|
|
|
scaledamagebyhealthratio
|
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_EffectSkillSwap::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
accuracycheck BattleScript_ButItFailed, NO_ACC_CALC_CHECK_LOCK_ON
|
|
|
|
tryswapabilities BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNSWAPPEDABILITIES
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectImprison::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
tryimprision BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNSEALEDOPPONENTMOVE
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectRefresh::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
cureifburnedparalysedorpoisoned BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNSTATUSNORMAL
|
|
|
|
waitmessage 0x40
|
2018-02-08 11:17:41 +01:00
|
|
|
updatestatusicon BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectGrudge::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
trysetgrudge BattleScript_ButItFailed
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
printstring STRINGID_PKMNWANTSGRUDGE
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectSnatch::
|
|
|
|
attackcanceler
|
|
|
|
trysetsnatch BattleScript_ButItFailedAtkStringPpReduce
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_PKMNWAITSFORTARGET
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectLowKick::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
weightdamagecalculation
|
|
|
|
accuracycheck BattleScript_MoveMissedPause, ACC_CURR_MOVE
|
|
|
|
goto BattleScript_HitFromCritCalc
|
|
|
|
|
|
|
|
BattleScript_EffectSecretPower::
|
|
|
|
getsecretpowereffect
|
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_EffectDoubleEdge::
|
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
|
|
|
|
|
|
|
|
BattleScript_EffectTeeterDance::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-02-06 23:09:39 +01:00
|
|
|
setbyte gBattlerTarget, 0x0
|
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
|
|
|
|
jumpifstatus2 BS_TARGET, STATUS2_SUBSTITUTE, BattleScript_TeeterDanceSubstitutePrevents
|
|
|
|
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
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifsideaffecting BS_TARGET, SIDE_STATUS_SAFEGUARD, BattleScript_TeeterDanceSafeguardProtected
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
|
|
|
seteffectprimary
|
|
|
|
resultmessage
|
|
|
|
waitmessage 0x40
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_TeeterDanceDoMoveEndIncrement::
|
2017-11-25 18:42:31 +01:00
|
|
|
setbyte sMOVEEND_STATE, 0x0
|
|
|
|
moveend 0x2, 0x10
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_TeeterDanceLoopIncrement::
|
2018-02-06 23:09:39 +01:00
|
|
|
addbyte gBattlerTarget, 0x1
|
|
|
|
jumpifbytenotequal gBattlerTarget, gBattlersCount, BattleScript_TeeterDanceLoop
|
2017-11-25 18:42:31 +01:00
|
|
|
end
|
|
|
|
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_TeeterDanceOwnTempoPrevents::
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_PKMNPREVENTSCONFUSIONWITH
|
|
|
|
waitmessage 0x40
|
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::
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_PKMNUSEDSAFEGUARD
|
|
|
|
waitmessage 0x40
|
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::
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_BUTITFAILED
|
|
|
|
waitmessage 0x40
|
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
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_PKMNALREADYCONFUSED
|
|
|
|
waitmessage 0x40
|
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
|
|
|
|
waitmessage 0x40
|
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
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
|
|
|
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_EffectWeatherBall::
|
|
|
|
setweatherballtype
|
|
|
|
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
|
|
|
|
|
|
|
|
BattleScript_EffectTickle::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstat BS_TARGET, CMP_GREATER_THAN, STAT_ATK, 0x0, BattleScript_TickleDoMoveAnim
|
|
|
|
jumpifstat BS_TARGET, CMP_EQUAL, STAT_DEF, 0x0, 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
|
|
|
|
playstatchangeanimation BS_TARGET, BIT_ATK | BIT_DEF, ATK48_STAT_NEGATIVE | ATK48_ONLY_MULTIPLE
|
|
|
|
playstatchangeanimation BS_TARGET, BIT_ATK, ATK48_STAT_NEGATIVE
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_ATK, 1, TRUE
|
2017-11-26 17:15:28 +01:00
|
|
|
statbuffchange 0x1, BattleScript_TickleTryLowerDef
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, 0x2, BattleScript_TickleTryLowerDef
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatDownStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_TickleTryLowerDef::
|
2018-07-29 15:33:16 +02:00
|
|
|
playstatchangeanimation BS_TARGET, BIT_DEF, ATK48_STAT_NEGATIVE
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_DEF, 1, TRUE
|
2017-11-26 17:15:28 +01:00
|
|
|
statbuffchange 0x1, BattleScript_TickleEnd
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, 0x2, BattleScript_TickleEnd
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatDownStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
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::
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x20
|
2018-01-16 22:12:38 +01:00
|
|
|
orbyte gMoveResultFlags, MOVE_RESULT_FAILED
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_STATSWONTDECREASE2
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectCosmicPower::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstat BS_ATTACKER, CMP_LESS_THAN, STAT_DEF, 0xC, BattleScript_CosmicPowerDoMoveAnim
|
|
|
|
jumpifstat BS_ATTACKER, CMP_EQUAL, STAT_SPDEF, 0xC, 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
|
|
|
|
playstatchangeanimation BS_ATTACKER, BIT_DEF | BIT_SPDEF, 0x0
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_DEF, 1, FALSE
|
2018-02-08 00:35:13 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | 0x1, BattleScript_CosmicPowerTrySpDef
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, 0x2, BattleScript_CosmicPowerTrySpDef
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_CosmicPowerTrySpDef::
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_SPDEF, 1, FALSE
|
2018-02-08 00:35:13 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | 0x1, BattleScript_CosmicPowerEnd
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, 0x2, BattleScript_CosmicPowerEnd
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_CosmicPowerEnd::
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectSkyUppercut::
|
|
|
|
orword gHitMarker, HITMARKER_IGNORE_ON_AIR
|
|
|
|
goto BattleScript_EffectHit
|
|
|
|
|
|
|
|
BattleScript_EffectBulkUp::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstat BS_ATTACKER, CMP_LESS_THAN, STAT_ATK, 0xC, BattleScript_BulkUpDoMoveAnim
|
|
|
|
jumpifstat BS_ATTACKER, CMP_EQUAL, STAT_DEF, 0xC, 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
|
|
|
|
playstatchangeanimation BS_ATTACKER, BIT_ATK | BIT_DEF, 0x0
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_ATK, 1, FALSE
|
2018-02-08 00:35:13 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | 0x1, BattleScript_BulkUpTryDef
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, 0x2, BattleScript_BulkUpTryDef
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_BulkUpTryDef::
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_DEF, 1, FALSE
|
2018-02-08 00:35:13 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | 0x1, BattleScript_BulkUpEnd
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, 0x2, BattleScript_BulkUpEnd
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
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
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstat BS_ATTACKER, CMP_LESS_THAN, STAT_SPATK, 0xC, BattleScript_CalmMindDoMoveAnim
|
|
|
|
jumpifstat BS_ATTACKER, CMP_EQUAL, STAT_SPDEF, 0xC, 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
|
|
|
|
playstatchangeanimation BS_ATTACKER, BIT_SPATK | BIT_SPDEF, 0x0
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_SPATK, 1, FALSE
|
2018-02-08 00:35:13 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | 0x1, BattleScript_CalmMindTrySpDef
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, 0x2, BattleScript_CalmMindTrySpDef
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_CalmMindTrySpDef::
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_SPDEF, 1, FALSE
|
2018-02-08 00:35:13 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | 0x1, BattleScript_CalmMindEnd
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, 0x2, BattleScript_CalmMindEnd
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_CalmMindEnd::
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_CantRaiseMultipleStats::
|
|
|
|
pause 0x20
|
2018-01-16 22:12:38 +01:00
|
|
|
orbyte gMoveResultFlags, MOVE_RESULT_FAILED
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_STATSWONTINCREASE2
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_EffectDragonDance::
|
|
|
|
attackcanceler
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstat BS_ATTACKER, CMP_LESS_THAN, STAT_ATK, 0xC, BattleScript_DragonDanceDoMoveAnim
|
|
|
|
jumpifstat BS_ATTACKER, CMP_EQUAL, STAT_SPEED, 0xC, 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
|
|
|
|
playstatchangeanimation BS_ATTACKER, BIT_ATK | BIT_SPEED, 0x0
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_ATK, 1, FALSE
|
2018-02-08 00:35:13 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | 0x1, BattleScript_DragonDanceTrySpeed
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, 0x2, BattleScript_DragonDanceTrySpeed
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_DragonDanceTrySpeed::
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_SPEED, 1, FALSE
|
2018-02-08 00:35:13 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | 0x1, BattleScript_DragonDanceEnd
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, 0x2, BattleScript_DragonDanceEnd
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_FaintAttacker::
|
2018-02-08 11:17:41 +01:00
|
|
|
playfaintcry BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x40
|
2018-02-08 11:17:41 +01:00
|
|
|
dofaintanimation BS_ATTACKER
|
|
|
|
cleareffectsonfaint BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_ATTACKERFAINTED
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_FaintTarget::
|
2018-02-08 11:17:41 +01:00
|
|
|
playfaintcry BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x40
|
2018-02-08 11:17:41 +01:00
|
|
|
dofaintanimation BS_TARGET
|
|
|
|
cleareffectsonfaint BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_TARGETFAINTED
|
|
|
|
return
|
|
|
|
|
2017-12-02 14:08:55 +01:00
|
|
|
BattleScript_GiveExp::
|
2017-11-25 18:42:31 +01:00
|
|
|
setbyte sGIVEEXP_STATE, 0x0
|
2018-02-08 11:17:41 +01:00
|
|
|
getexp BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
2017-12-02 14:08:55 +01:00
|
|
|
BattleScript_HandleFaintedMon::
|
2017-11-25 18:42:31 +01:00
|
|
|
atk24 BattleScript_82DA8F6
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_NOT_EQUAL, gBattleOutcome, 0, BattleScript_FaintedMonEnd
|
2017-12-02 14:08:55 +01:00
|
|
|
jumpifbattletype BATTLE_TYPE_TRAINER, 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
|
|
|
|
setbyte gBattleCommunication, 0x0
|
|
|
|
yesnobox
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_EQUAL, gBattleCommunication + 1, 0x0, BattleScript_FaintedMonTryChooseAnother
|
2017-12-02 14:08:55 +01:00
|
|
|
jumpifplayerran BattleScript_FaintedMonEnd
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_CANTESCAPE2
|
2017-12-02 14:08:55 +01:00
|
|
|
BattleScript_FaintedMonTryChooseAnother::
|
|
|
|
openpartyscreen 0x3, BattleScript_FaintedMonEnd
|
2018-02-08 11:17:41 +01:00
|
|
|
switchhandleorder BS_FAINTED, 0x2
|
2017-12-02 14:08:55 +01:00
|
|
|
jumpifnotbattletype BATTLE_TYPE_TRAINER, BattleScript_FaintedMonChooseAnother
|
|
|
|
jumpifbattletype BATTLE_TYPE_LINK, BattleScript_FaintedMonChooseAnother
|
|
|
|
jumpifbattletype BATTLE_TYPE_x2000000, 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
|
|
|
|
jumpifbyte CMP_EQUAL, sBATTLE_STYLE, 0x1, BattleScript_FaintedMonChooseAnother
|
2017-12-02 14:08:55 +01:00
|
|
|
jumpifcantswitch 11, BattleScript_FaintedMonChooseAnother
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_ENEMYABOUTTOSWITCHPKMN
|
|
|
|
setbyte gBattleCommunication, 0x0
|
|
|
|
yesnobox
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_EQUAL, gBattleCommunication + 1, 0x1, BattleScript_FaintedMonChooseAnother
|
2017-11-25 18:42:31 +01:00
|
|
|
setatktoplayer0
|
2017-12-02 14:08:55 +01:00
|
|
|
openpartyscreen 0x81, BattleScript_FaintedMonChooseAnother
|
2018-02-08 11:17:41 +01:00
|
|
|
switchhandleorder BS_ATTACKER, 0x2
|
|
|
|
jumpifbyte CMP_EQUAL, gBattleCommunication, 0x6, BattleScript_FaintedMonChooseAnother
|
2017-11-25 18:42:31 +01:00
|
|
|
atknameinbuff1
|
2018-02-08 11:17:41 +01:00
|
|
|
resetintrimidatetracebits BS_ATTACKER
|
|
|
|
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
|
2018-02-08 11:17:41 +01:00
|
|
|
switchinanim BS_ATTACKER, 0x0
|
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
|
|
|
resetsentmonsvalue
|
2017-12-02 14:08:55 +01: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
|
|
|
|
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
|
|
|
|
|
|
|
|
BattleScript_82DA8F6::
|
|
|
|
openpartyscreen 0x5, BattleScript_82DA8FC
|
|
|
|
BattleScript_82DA8FC::
|
2018-02-08 11:17:41 +01:00
|
|
|
switchhandleorder BS_FAINTED, 0x0
|
2017-11-25 18:42:31 +01:00
|
|
|
openpartyscreen 0x6, BattleScript_82DA92C
|
2018-02-08 11:17:41 +01:00
|
|
|
switchhandleorder BS_FAINTED, 0x0
|
2017-11-25 18:42:31 +01:00
|
|
|
BattleScript_82DA908::
|
2018-02-08 11:17:41 +01:00
|
|
|
switchhandleorder BS_FAINTED, 0x3
|
|
|
|
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
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbytenotequal gBattlerFainted, gBattlersCount, BattleScript_82DA908
|
2017-11-25 18:42:31 +01:00
|
|
|
BattleScript_82DA92C::
|
|
|
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
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
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifhalfword CMP_EQUAL, gTrainerBattleOpponent_A, 0x400, BattleScript_LocalBattleLostEnd
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_LocalBattleLostPrintWhiteOut::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PLAYERWHITEOUT
|
|
|
|
waitmessage 0x40
|
|
|
|
printstring STRINGID_PLAYERWHITEOUT2
|
|
|
|
waitmessage 0x40
|
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
|
2017-12-02 14:08:55 +01:00
|
|
|
jumpifbattletype BATTLE_TYPE_x800000, BattleScript_LocalBattleLostDoTrainer2WinText
|
|
|
|
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
|
|
|
|
|
|
|
|
BattleScript_82DAA0B::
|
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
|
2017-12-02 14:08:55 +01:00
|
|
|
jumpifbattletype BATTLE_TYPE_RECORDED, BattleScript_82DAA31
|
2017-11-25 18:42:31 +01:00
|
|
|
atk57
|
|
|
|
BattleScript_82DAA31::
|
|
|
|
waitmessage 0x40
|
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_LinkBattleWonOrLost::
|
2017-12-02 14:08:55 +01:00
|
|
|
jumpifbattletype BATTLE_TYPE_BATTLE_TOWER, BattleScript_82DAA5C
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_BATTLEEND
|
|
|
|
waitmessage 0x40
|
2017-12-02 14:08:55 +01:00
|
|
|
jumpifbattletype BATTLE_TYPE_RECORDED, BattleScript_LinkBattleWonOrLostWaitEnd
|
2017-11-25 18:42:31 +01:00
|
|
|
atk57
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_LinkBattleWonOrLostWaitEnd::
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_82DAA5C::
|
2018-02-08 11:17:41 +01:00
|
|
|
playtrainerdefeatbgm BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_BATTLEEND
|
|
|
|
waitmessage 0x40
|
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
|
2017-12-02 14:08:55 +01:00
|
|
|
jumpifbattletype BATTLE_TYPE_RECORDED, BattleScript_82DAA83
|
2017-11-25 18:42:31 +01:00
|
|
|
atk57
|
|
|
|
BattleScript_82DAA83::
|
|
|
|
waitmessage 0x40
|
|
|
|
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
|
2017-12-02 14:08:55 +01:00
|
|
|
jumpifnotbattletype BATTLE_TYPE_TWO_OPPONENTS, BattleScript_82DAACB
|
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
|
2018-09-01 20:00:13 +02:00
|
|
|
BattleScript_82DAACB:
|
|
|
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_RanAwayUsingMonAbility::
|
|
|
|
printstring STRINGID_PKMNFLEDUSING
|
|
|
|
waitmessage 0x40
|
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_GotAwaySafely::
|
|
|
|
printstring STRINGID_GOTAWAYSAFELY
|
|
|
|
waitmessage 0x40
|
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_WildMonFled::
|
|
|
|
printstring STRINGID_WILDPKMNFLED
|
|
|
|
waitmessage 0x40
|
|
|
|
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
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
|
|
|
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
|
|
|
|
setbyte sDMG_MULTIPLIER, 0x2
|
2017-12-02 14:08:55 +01:00
|
|
|
jumpifbattletype BATTLE_TYPE_DOUBLE, BattleScript_PursuitSwitchDmgSetMultihit
|
2017-11-25 18:42:31 +01:00
|
|
|
setmultihit 0x1
|
2017-12-02 00:03:46 +01:00
|
|
|
goto BattleScript_PursuitSwitchDmgLoop
|
|
|
|
BattleScript_PursuitSwitchDmgSetMultihit::
|
2017-11-25 18:42:31 +01:00
|
|
|
setmultihit 0x2
|
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
|
|
|
|
switchhandleorder BS_ATTACKER, 0x1
|
|
|
|
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
|
2017-11-25 18:42:31 +01:00
|
|
|
setbyte sMOVEEND_STATE, 0x4
|
|
|
|
moveend 0x1, 0x0
|
|
|
|
setbyte sMOVEEND_STATE, 0xF
|
|
|
|
moveend 0x1, 0x0
|
|
|
|
end2
|
|
|
|
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_PursuitDmgOnSwitchOut::
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x20
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
critcalc
|
|
|
|
damagecalc
|
|
|
|
typecalc
|
|
|
|
adjustnormaldamage
|
|
|
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
resultmessage
|
|
|
|
waitmessage 0x40
|
2018-02-08 11:17:41 +01:00
|
|
|
tryfaintmon BS_TARGET, FALSE, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
setbyte sMOVEEND_STATE, 0x3
|
|
|
|
moveend 0x2, 0x6
|
2018-02-08 11:17:41 +01:00
|
|
|
various4 BS_TARGET
|
|
|
|
jumpifbyte CMP_EQUAL, gBattleCommunication, 0x0, BattleScript_PursuitDmgOnSwitchOutRet
|
2017-11-25 18:42:31 +01:00
|
|
|
setbyte sGIVEEXP_STATE, 0x0
|
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::
|
|
|
|
pause 0x20
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_LevelUp::
|
2017-12-22 08:46:19 +01:00
|
|
|
fanfare MUS_FANFA1
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNGREWTOLV
|
|
|
|
setbyte sLVLBOX_STATE, 0x0
|
|
|
|
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
|
|
|
|
setbyte sLEARNMOVE_STATE, 0x0
|
|
|
|
yesnoboxlearnmove BattleScript_ForgotAndLearnedNewMove
|
|
|
|
printstring STRINGID_STOPLEARNINGMOVE
|
|
|
|
waitstate
|
|
|
|
setbyte sLEARNMOVE_STATE, 0x0
|
|
|
|
yesnoboxstoplearningmove BattleScript_AskToLearnMove
|
|
|
|
printstring STRINGID_DIDNOTLEARNMOVE
|
|
|
|
goto BattleScript_TryLearnMoveLoop
|
|
|
|
BattleScript_ForgotAndLearnedNewMove::
|
|
|
|
printstring STRINGID_123POOF
|
|
|
|
printstring STRINGID_PKMNFORGOTMOVE
|
|
|
|
printstring STRINGID_ANDELLIPSIS
|
|
|
|
BattleScript_LearnedNewMove::
|
|
|
|
buffermovetolearn
|
2017-12-22 08:46:19 +01:00
|
|
|
fanfare MUS_FANFA1
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNLEARNEDMOVE
|
|
|
|
waitmessage 0x40
|
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
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, 0x2, BattleScript_RainContinuesOrEndsEnd
|
|
|
|
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
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation2 BS_ATTACKER, sB_ANIM_ARG1, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
setbyte gBattleCommunication, 0x0
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_DamagingWeatherLoop::
|
2018-06-30 14:12:17 +02:00
|
|
|
copyarraywithindex gBattlerAttacker, gBattlerByTurnOrder, gBattleCommunication, 0x1
|
2017-11-25 18:42:31 +01:00
|
|
|
weatherdamage
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifword CMP_EQUAL, gBattleMoveDamage, 0x0, BattleScript_DamagingWeatherLoopIncrement
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gSandStormHailDmgStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
|
|
|
orword gHitMarker, HITMARKER_x20 | HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_x100000 | HITMARKER_GRUDGE
|
|
|
|
effectivenesssound
|
2018-02-08 11:17:41 +01:00
|
|
|
hitanimation BS_ATTACKER
|
|
|
|
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
|
2017-11-25 18:42:31 +01:00
|
|
|
addbyte gBattleCommunication, 0x1
|
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
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
|
|
|
end2
|
|
|
|
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_SunlightContinues::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_SUNLIGHTSTRONG
|
|
|
|
waitmessage 0x40
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
end2
|
|
|
|
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_OverworldWeatherStarts::
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gWeatherContinuesStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation2 BS_ATTACKER, sB_ANIM_ARG1, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
end3
|
|
|
|
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_SideStatusWoreOff::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSXWOREOFF
|
|
|
|
waitmessage 0x40
|
|
|
|
end2
|
|
|
|
|
2017-11-26 01:19:57 +01:00
|
|
|
BattleScript_SafeguardProtected::
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_PKMNUSEDSAFEGUARD
|
|
|
|
waitmessage 0x40
|
|
|
|
end2
|
|
|
|
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_SafeguardEnds::
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_PKMNSAFEGUARDEXPIRED
|
|
|
|
waitmessage 0x40
|
|
|
|
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
|
2017-11-25 18:42:31 +01:00
|
|
|
manipulatedamage ATK80_DMG_CHANGE_SIGN
|
|
|
|
setbyte cMULTISTRING_CHOOSER, 0x3
|
2017-12-03 00:47:21 +01:00
|
|
|
goto BattleScript_LeechSeedTurnPrintAndUpdateHp
|
|
|
|
BattleScript_LeechSeedTurnPrintLiquidOoze::
|
2017-11-25 18:42:31 +01:00
|
|
|
setbyte cMULTISTRING_CHOOSER, 0x4
|
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
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
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
|
|
|
|
|
|
|
|
BattleScript_BideStoringEnergy::
|
|
|
|
printstring STRINGID_PKMNSTORINGENERGY
|
|
|
|
waitmessage 0x40
|
|
|
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
accuracycheck BattleScript_MoveMissed, ACC_CURR_MOVE
|
|
|
|
typecalc
|
2018-01-16 22:12:38 +01:00
|
|
|
bicbyte gMoveResultFlags, MOVE_RESULT_SUPER_EFFECTIVE | MOVE_RESULT_NOT_VERY_EFFECTIVE
|
2017-11-25 21:32:17 +01:00
|
|
|
copyword gBattleMoveDamage, sBIDE_DMG
|
2017-11-25 18:42:31 +01:00
|
|
|
adjustsetdamage
|
2018-02-08 00:35:13 +01:00
|
|
|
setbyte sB_ANIM_TURN, 0x1
|
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
|
|
|
|
waitmessage 0x40
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_ButItFailed
|
|
|
|
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_SuccessForceOut::
|
2017-11-25 18:42:31 +01:00
|
|
|
attackanimation
|
|
|
|
waitanimation
|
2018-02-08 11:17:41 +01:00
|
|
|
switchoutabilities BS_TARGET
|
|
|
|
returntoball BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
waitstate
|
2017-12-02 14:08:55 +01:00
|
|
|
jumpifbattletype BATTLE_TYPE_TRAINER, BattleScript_TrainerBattleForceOut
|
2018-02-08 11:17:41 +01:00
|
|
|
setoutcomeonteleport BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
finishaction
|
|
|
|
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_TrainerBattleForceOut::
|
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
|
|
|
|
|
|
|
|
BattleScript_MistProtected::
|
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_PKMNPROTECTEDBYMIST
|
|
|
|
waitmessage 0x40
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_RageIsBuilding::
|
|
|
|
printstring STRINGID_PKMNRAGEBUILDING
|
|
|
|
waitmessage 0x40
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_MoveUsedIsDisabled::
|
|
|
|
printstring STRINGID_PKMNMOVEISDISABLED
|
|
|
|
waitmessage 0x40
|
|
|
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
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::
|
2017-11-25 18:42:31 +01:00
|
|
|
setbyte sMOVEEND_STATE, 0x0
|
|
|
|
moveend 0x2, 0x10
|
|
|
|
end
|
|
|
|
|
|
|
|
BattleScript_EncoredNoMore::
|
|
|
|
printstring STRINGID_PKMNENCOREENDED
|
|
|
|
waitmessage 0x40
|
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_DestinyBondTakesLife::
|
|
|
|
printstring STRINGID_PKMNTOOKFOE
|
|
|
|
waitmessage 0x40
|
|
|
|
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
|
|
|
|
|
|
|
|
BattleScript_SpikesOnAttacker::
|
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_x100000
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_ATTACKER
|
|
|
|
datahpupdate BS_ATTACKER
|
2017-12-02 00:03:46 +01:00
|
|
|
call BattleScript_PrintHurtBySpikes
|
2018-02-08 11:17:41 +01:00
|
|
|
tryfaintmon BS_ATTACKER, FALSE, NULL
|
|
|
|
tryfaintmon BS_ATTACKER, TRUE, BattleScript_SpikesOnAttackerFainted
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_SpikesOnAttackerFainted::
|
2017-11-25 18:42:31 +01:00
|
|
|
setbyte sGIVEEXP_STATE, 0x0
|
2018-02-08 11:17:41 +01:00
|
|
|
getexp BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
setbyte sMOVEEND_STATE, 0x0
|
|
|
|
moveend 0x0, 0x0
|
2017-12-02 14:08:55 +01:00
|
|
|
goto BattleScript_HandleFaintedMon
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_SpikesOnTarget::
|
|
|
|
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE | HITMARKER_x100000
|
2018-02-08 11:17:41 +01:00
|
|
|
healthbarupdate BS_TARGET
|
|
|
|
datahpupdate BS_TARGET
|
2017-12-02 00:03:46 +01:00
|
|
|
call BattleScript_PrintHurtBySpikes
|
2018-02-08 11:17:41 +01:00
|
|
|
tryfaintmon BS_TARGET, FALSE, NULL
|
|
|
|
tryfaintmon BS_TARGET, TRUE, BattleScript_SpikesOnTargetFainted
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_SpikesOnTargetFainted::
|
2017-11-25 18:42:31 +01:00
|
|
|
setbyte sGIVEEXP_STATE, 0x0
|
2018-02-08 11:17:41 +01:00
|
|
|
getexp BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
setbyte sMOVEEND_STATE, 0x0
|
|
|
|
moveend 0x0, 0x0
|
2017-12-02 14:08:55 +01:00
|
|
|
goto BattleScript_HandleFaintedMon
|
2017-11-25 18:42:31 +01:00
|
|
|
|
2018-02-08 11:17:41 +01:00
|
|
|
BattleScript_SpikesOnFaintedBattler::
|
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
|
2017-12-02 00:03:46 +01:00
|
|
|
call BattleScript_PrintHurtBySpikes
|
2018-02-08 11:17:41 +01:00
|
|
|
tryfaintmon BS_FAINTED, FALSE, NULL
|
|
|
|
tryfaintmon BS_FAINTED, TRUE, BattleScript_SpikesOnFaintedBattlerFainted
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
2018-02-08 11:17:41 +01:00
|
|
|
BattleScript_SpikesOnFaintedBattlerFainted::
|
2017-11-25 18:42:31 +01:00
|
|
|
setbyte sGIVEEXP_STATE, 0x0
|
2018-02-08 11:17:41 +01:00
|
|
|
getexp BS_FAINTED
|
2017-11-25 18:42:31 +01:00
|
|
|
setbyte sMOVEEND_STATE, 0x0
|
|
|
|
moveend 0x0, 0x0
|
2017-12-02 14:08:55 +01:00
|
|
|
goto BattleScript_HandleFaintedMon
|
2017-11-25 18:42:31 +01:00
|
|
|
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_PrintHurtBySpikes::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNHURTBYSPIKES
|
|
|
|
waitmessage 0x40
|
|
|
|
return
|
|
|
|
|
2017-11-26 17:26:11 +01:00
|
|
|
BattleScript_PerishSongTakesLife::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNPERISHCOUNTFELL
|
|
|
|
waitmessage 0x40
|
|
|
|
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
|
|
|
|
|
2017-11-26 17:26:11 +01:00
|
|
|
BattleScript_PerishSongCountGoesDown::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNPERISHCOUNTFELL
|
|
|
|
waitmessage 0x40
|
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_AllStatsUp::
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifstat BS_ATTACKER, CMP_LESS_THAN, STAT_ATK, 0xC, BattleScript_AllStatsUpAtk
|
|
|
|
jumpifstat BS_ATTACKER, CMP_LESS_THAN, STAT_DEF, 0xC, BattleScript_AllStatsUpAtk
|
|
|
|
jumpifstat BS_ATTACKER, CMP_LESS_THAN, STAT_SPEED, 0xC, BattleScript_AllStatsUpAtk
|
|
|
|
jumpifstat BS_ATTACKER, CMP_LESS_THAN, STAT_SPATK, 0xC, BattleScript_AllStatsUpAtk
|
|
|
|
jumpifstat BS_ATTACKER, CMP_EQUAL, STAT_SPDEF, 0xC, 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
|
|
|
|
playstatchangeanimation BS_ATTACKER, BIT_ATK | BIT_DEF | BIT_SPEED | BIT_SPATK | BIT_SPDEF, 0x0
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_ATK, 1, FALSE
|
2018-02-08 00:35:13 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | 0x1, BattleScript_AllStatsUpDef
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_AllStatsUpDef::
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_DEF, 1, FALSE
|
2018-02-08 00:35:13 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | 0x1, BattleScript_AllStatsUpSpeed
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_AllStatsUpSpeed::
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_SPEED, 1, FALSE
|
2018-02-08 00:35:13 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | 0x1, BattleScript_AllStatsUpSpAtk
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_AllStatsUpSpAtk::
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_SPATK, 1, FALSE
|
2018-02-08 00:35:13 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | 0x1, BattleScript_AllStatsUpSpDef
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_AllStatsUpSpDef::
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_SPDEF, 1, FALSE
|
2018-02-08 00:35:13 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | 0x1, BattleScript_AllStatsUpRet
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatUpStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
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
|
|
|
|
waitmessage 0x40
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_SpikesFree::
|
|
|
|
printstring STRINGID_PKMNBLEWAWAYSPIKES
|
|
|
|
waitmessage 0x40
|
|
|
|
return
|
|
|
|
|
2017-11-26 17:26:11 +01:00
|
|
|
BattleScript_MonTookFutureAttack::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNTOOKATTACK
|
|
|
|
waitmessage 0x40
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_NOT_EQUAL, cMULTISTRING_CHOOSER, 0x0, 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::
|
2017-11-25 18:42:31 +01:00
|
|
|
adjustnormaldamage2
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_NOT_EQUAL, cMULTISTRING_CHOOSER, 0x0, BattleScript_FutureHitAnimDoomDesire
|
|
|
|
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
|
2017-11-25 18:42:31 +01:00
|
|
|
resultmessage
|
|
|
|
waitmessage 0x40
|
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::
|
2017-11-25 18:42:31 +01:00
|
|
|
setbyte sMOVEEND_STATE, 0x0
|
|
|
|
moveend 0x1, 0x0
|
|
|
|
setbyte sMOVEEND_STATE, 0xB
|
|
|
|
moveend 0x2, 0xE
|
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::
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x20
|
2018-01-16 22:12:38 +01:00
|
|
|
setbyte gMoveResultFlags, 0
|
|
|
|
orbyte gMoveResultFlags, MOVE_RESULT_FAILED
|
2017-11-25 18:42:31 +01:00
|
|
|
resultmessage
|
|
|
|
waitmessage 0x40
|
2018-01-16 22:12:38 +01:00
|
|
|
setbyte 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
|
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_BUTNOPPLEFT
|
|
|
|
waitmessage 0x40
|
|
|
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
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
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_WishComesTrue::
|
2017-12-03 00:47:21 +01:00
|
|
|
trywish 0x1, 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
|
|
|
|
waitmessage 0x40
|
|
|
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
end2
|
|
|
|
|
2017-12-03 00:47:21 +01:00
|
|
|
BattleScript_WishButFullHp::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNWISHCAMETRUE
|
|
|
|
waitmessage 0x40
|
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_PKMNHPFULL
|
|
|
|
waitmessage 0x40
|
|
|
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
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
|
|
|
|
|
2017-12-03 00:47:21 +01:00
|
|
|
BattleScript_PrintMonIsRooted::
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_PKMNANCHOREDITSELF
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_AtkDefDown::
|
2018-07-29 15:33:16 +02:00
|
|
|
setbyte sSTAT_ANIM_PLAYED, FALSE
|
|
|
|
playstatchangeanimation BS_ATTACKER, BIT_DEF | BIT_ATK, ATK48_DONT_CHECK_LOWER | ATK48_STAT_NEGATIVE | ATK48_ONLY_MULTIPLE
|
|
|
|
playstatchangeanimation BS_ATTACKER, BIT_ATK, ATK48_DONT_CHECK_LOWER | ATK48_STAT_NEGATIVE
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_ATK, 1, TRUE
|
2018-02-08 00:35:13 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | MOVE_EFFECT_CERTAIN | 0x1, BattleScript_82DB144
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, 0x2, BattleScript_82DB144
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatDownStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
|
|
|
BattleScript_82DB144::
|
2018-07-29 15:33:16 +02:00
|
|
|
playstatchangeanimation BS_ATTACKER, BIT_DEF, ATK48_DONT_CHECK_LOWER | ATK48_STAT_NEGATIVE
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_DEF, 1, TRUE
|
2018-02-08 00:35:13 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | MOVE_EFFECT_CERTAIN | 0x1, BattleScript_82DB167
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, 0x2, BattleScript_82DB167
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatDownStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
|
|
|
BattleScript_82DB167::
|
|
|
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_MoveUsedIsImprisoned::
|
|
|
|
printstring STRINGID_PKMNCANTUSEMOVESEALED
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_SelectingImprisionedMove::
|
2017-11-25 18:42:31 +01:00
|
|
|
printselectionstring STRINGID_PKMNCANTUSEMOVESEALED
|
|
|
|
endselectionscript
|
|
|
|
|
2017-12-03 00:47:21 +01:00
|
|
|
BattleScript_SelectingImprisionedMoveInPalace::
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_MagicCoatBounce::
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_PKMNMOVEBOUNCED
|
|
|
|
waitmessage 0x40
|
|
|
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_OneHitKOMsg::
|
|
|
|
printstring STRINGID_ONEHITKO
|
|
|
|
waitmessage 0x40
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_SAtkDown2::
|
2018-07-29 15:33:16 +02:00
|
|
|
setbyte sSTAT_ANIM_PLAYED, FALSE
|
|
|
|
playstatchangeanimation BS_ATTACKER, BIT_SPATK, ATK48_DONT_CHECK_LOWER | ATK48_STAT_NEGATIVE | ATK48_STAT_BY_TWO
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_SPATK, 2, TRUE
|
2018-07-29 15:33:16 +02:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | MOVE_EFFECT_CERTAIN | 0x1, BattleScript_SAtkDown2End
|
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, 0x2, BattleScript_SAtkDown2End
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStatDownStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
2018-07-29 15:33:16 +02:00
|
|
|
BattleScript_SAtkDown2End::
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_FocusPunchSetUp::
|
|
|
|
printstring STRINGID_EMPTYSTRING3
|
|
|
|
waitmessage 0x1
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_MoveUsedIsAsleep::
|
|
|
|
printstring STRINGID_PKMNFASTASLEEP
|
|
|
|
waitmessage 0x40
|
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
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
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
|
|
|
|
waitmessage 0x40
|
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
|
|
|
|
waitmessage 0x40
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_DoStatusTurnDmg::
|
2018-02-08 11:17:41 +01:00
|
|
|
statusanimation BS_ATTACKER
|
2017-12-02 00:03:46 +01: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
|
|
|
|
BattleScript_DoTurnDmgEnd::
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_BurnTurnDmg::
|
|
|
|
printstring STRINGID_PKMNHURTBYBURN
|
|
|
|
waitmessage 0x40
|
2017-12-02 00:03:46 +01:00
|
|
|
goto BattleScript_DoStatusTurnDmg
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_MoveUsedIsFrozen::
|
|
|
|
printstring STRINGID_PKMNISFROZEN
|
|
|
|
waitmessage 0x40
|
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
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
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
|
|
|
|
waitmessage 0x40
|
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
|
|
|
|
waitmessage 0x40
|
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
|
|
|
|
|
|
|
|
BattleScript_MoveUsedFlinched::
|
|
|
|
printstring STRINGID_PKMNFLINCHED
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2017-11-26 17:26:11 +01:00
|
|
|
BattleScript_PrintUproarOverTurns::
|
|
|
|
printfromtable gUproarOverTurnStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
|
|
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_MoveUsedIsConfused::
|
|
|
|
printstring STRINGID_PKMNISCONFUSED
|
|
|
|
waitmessage 0x40
|
2018-02-08 11:17:41 +01:00
|
|
|
status2animation BS_ATTACKER, STATUS2_CONFUSION
|
|
|
|
jumpifbyte CMP_EQUAL, cMULTISTRING_CHOOSER, 0x0, BattleScript_MoveUsedIsConfusedRet
|
2017-12-02 00:03:46 +01:00
|
|
|
BattleScript_DoSelfConfusionDmg::
|
2018-02-08 11:17:41 +01:00
|
|
|
cancelmultiturnmoves BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
adjustnormaldamage2
|
|
|
|
printstring STRINGID_ITHURTCONFUSION
|
|
|
|
waitmessage 0x40
|
|
|
|
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
|
|
|
|
waitmessage 0x40
|
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
|
|
|
|
|
|
|
|
BattleScript_MoveUsedIsConfusedNoMore::
|
|
|
|
printstring STRINGID_PKMNHEALEDCONFUSION
|
|
|
|
waitmessage 0x40
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_PrintPayDayMoneyString::
|
|
|
|
printstring STRINGID_PKMNPICKEDUPITEM
|
|
|
|
waitmessage 0x40
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_WrapTurnDmg::
|
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
|
|
|
|
waitmessage 0x40
|
2017-12-02 00:03:46 +01:00
|
|
|
goto BattleScript_DoTurnDmg
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_WrapEnds::
|
|
|
|
printstring STRINGID_PKMNFREEDFROM
|
|
|
|
waitmessage 0x40
|
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_MoveUsedIsInLove::
|
|
|
|
printstring STRINGID_PKMNINLOVE
|
|
|
|
waitmessage 0x40
|
2018-02-08 11:17:41 +01:00
|
|
|
status2animation BS_ATTACKER, STATUS2_INFATUATION
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_MoveUsedIsParalyzedCantAttack::
|
|
|
|
printstring STRINGID_PKMNIMMOBILIZEDBYLOVE
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_NightmareTurnDmg::
|
|
|
|
printstring STRINGID_PKMNLOCKEDINNIGHTMARE
|
|
|
|
waitmessage 0x40
|
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
|
|
|
|
waitmessage 0x40
|
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
|
|
|
|
waitmessage 0x40
|
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
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
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
|
|
|
|
waitmessage 0x40
|
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
|
|
|
|
|
|
|
|
BattleScript_MoveEffectPoison::
|
2018-02-08 11:17:41 +01:00
|
|
|
statusanimation BS_EFFECT_BATTLER
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gGotPoisonedStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
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
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
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
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
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
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
2017-12-02 00:03:46 +01:00
|
|
|
goto BattleScript_UpdateEffectStatusIconRet
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_MoveEffectUproar::
|
|
|
|
printstring STRINGID_PKMNCAUSEDUPROAR
|
|
|
|
waitmessage 0x40
|
|
|
|
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
|
|
|
|
waitmessage 0x40
|
2017-12-02 00:03:46 +01:00
|
|
|
goto BattleScript_UpdateEffectStatusIconRet
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_MoveEffectPayDay::
|
|
|
|
printstring STRINGID_COINSSCATTERED
|
|
|
|
waitmessage 0x40
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_MoveEffectWrap::
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gWrappedStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
|
|
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
return
|
|
|
|
|
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::
|
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_PKMNHITWITHRECOIL
|
|
|
|
waitmessage 0x40
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_DrizzleActivates::
|
|
|
|
pause 0x20
|
|
|
|
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
|
|
|
|
|
|
|
|
BattleScript_SpeedBoostActivates::
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
end3
|
|
|
|
|
|
|
|
BattleScript_TraceActivates::
|
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_PKMNTRACED
|
|
|
|
waitmessage 0x40
|
|
|
|
end3
|
|
|
|
|
|
|
|
BattleScript_RainDishActivates::
|
|
|
|
printstring STRINGID_PKMNSXRESTOREDHPALITTLE2
|
|
|
|
waitmessage 0x40
|
|
|
|
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
|
|
|
end3
|
|
|
|
|
|
|
|
BattleScript_SandstreamActivates::
|
|
|
|
pause 0x20
|
|
|
|
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
|
|
|
|
|
|
|
|
BattleScript_ShedSkinActivates::
|
|
|
|
printstring STRINGID_PKMNSXCUREDYPROBLEM
|
|
|
|
waitmessage 0x40
|
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::
|
2018-10-27 00:04:18 +02:00
|
|
|
setbyte sBATTLER, 0x0
|
2017-11-26 01:19:57 +01:00
|
|
|
BattleScript_WeatherFormChangesLoop::
|
2017-11-25 18:42:31 +01:00
|
|
|
trycastformdatachange
|
2018-10-27 00:04:18 +02:00
|
|
|
addbyte sBATTLER, 0x1
|
|
|
|
jumpifbytenotequal sBATTLER, gBattlersCount, BattleScript_WeatherFormChangesLoop
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_CastformChange::
|
|
|
|
call BattleScript_82DB4AF
|
|
|
|
end3
|
|
|
|
|
|
|
|
BattleScript_82DB4AF::
|
|
|
|
docastformchangeanimation
|
|
|
|
waitstate
|
|
|
|
printstring STRINGID_PKMNTRANSFORMED
|
|
|
|
waitmessage 0x40
|
|
|
|
return
|
|
|
|
|
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:
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x20
|
2018-09-01 20:00:13 +02:00
|
|
|
BattleScript_IntimidateActivates::
|
2018-02-06 23:09:39 +01:00
|
|
|
setbyte gBattlerTarget, 0x0
|
2018-02-08 11:17:41 +01:00
|
|
|
setstatchanger STAT_ATK, 1, TRUE
|
2018-09-01 20:00:13 +02:00
|
|
|
BattleScript_IntimidateActivatesLoop:
|
|
|
|
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
|
|
|
|
statbuffchange 0x21, BattleScript_IntimidateActivatesLoopIncrement
|
|
|
|
jumpifbyte CMP_GREATER_THAN, cMULTISTRING_CHOOSER, 0x1, 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
|
|
|
|
waitmessage 0x40
|
2018-09-01 20:00:13 +02:00
|
|
|
BattleScript_IntimidateActivatesLoopIncrement:
|
2018-02-06 23:09:39 +01:00
|
|
|
addbyte gBattlerTarget, 0x1
|
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:
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_PREVENTEDFROMWORKING
|
|
|
|
waitmessage 0x40
|
2018-09-01 20:00:13 +02:00
|
|
|
goto BattleScript_IntimidateActivatesLoopIncrement
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_DroughtActivates::
|
|
|
|
pause 0x20
|
|
|
|
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
|
|
|
|
|
|
|
|
BattleScript_TookAttack::
|
|
|
|
attackstring
|
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_PKMNSXTOOKATTACK
|
|
|
|
waitmessage 0x40
|
|
|
|
orword gHitMarker, HITMARKER_ATTACKSTRING_PRINTED
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_SturdyPreventsOHKO::
|
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_PKMNPROTECTEDBY
|
|
|
|
pause 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_DampStopsExplosion::
|
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_PKMNPREVENTSUSAGE
|
|
|
|
pause 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_MoveHPDrain_PPLoss::
|
|
|
|
ppreduce
|
|
|
|
BattleScript_MoveHPDrain::
|
|
|
|
attackstring
|
|
|
|
pause 0x20
|
|
|
|
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
|
|
|
|
waitmessage 0x40
|
2018-01-16 22:12:38 +01:00
|
|
|
orbyte gMoveResultFlags, MOVE_RESULT_DOESNT_AFFECT_FOE
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
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
|
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_PKMNSXMADEYUSELESS
|
|
|
|
waitmessage 0x40
|
2018-01-16 22:12:38 +01:00
|
|
|
orbyte gMoveResultFlags, MOVE_RESULT_DOESNT_AFFECT_FOE
|
2017-11-25 18:42:31 +01:00
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_FlashFireBoost_PPLoss::
|
|
|
|
ppreduce
|
|
|
|
BattleScript_FlashFireBoost::
|
|
|
|
attackstring
|
|
|
|
pause 0x20
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gFlashFireStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2017-12-03 00:47:21 +01:00
|
|
|
BattleScript_AbilityPreventsPhasingOut::
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_PKMNANCHORSITSELFWITH
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_AbilityNoStatLoss::
|
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_PKMNPREVENTSSTATLOSSWITH
|
|
|
|
waitmessage 0x40
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_BRNPrevention::
|
|
|
|
pause 0x20
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gBRNPreventionStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_PRLZPrevention::
|
|
|
|
pause 0x20
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gPRLZPreventionStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_PSNPrevention::
|
|
|
|
pause 0x20
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gPSNPreventionStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_ObliviousPreventsAttraction::
|
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_PKMNPREVENTSROMANCEWITH
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_FlinchPrevention::
|
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_PKMNSXPREVENTSFLINCHING
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
2017-11-26 01:19:57 +01:00
|
|
|
BattleScript_OwnTempoPrevents::
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_PKMNPREVENTSCONFUSIONWITH
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_SoundproofProtected::
|
|
|
|
attackstring
|
|
|
|
ppreduce
|
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_PKMNSXBLOCKSY
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_AbilityNoSpecificStatLoss::
|
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_PKMNSXPREVENTSYLOSS
|
|
|
|
waitmessage 0x40
|
|
|
|
setbyte cMULTISTRING_CHOOSER, 0x3
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_StickyHoldActivates::
|
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_PKMNSXMADEYINEFFECTIVE
|
|
|
|
waitmessage 0x40
|
|
|
|
goto BattleScript_MoveEnd
|
|
|
|
|
|
|
|
BattleScript_ColorChangeActivates::
|
|
|
|
printstring STRINGID_PKMNCHANGEDTYPEWITH
|
|
|
|
waitmessage 0x40
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_RoughSkinActivates::
|
|
|
|
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
|
|
|
|
waitmessage 0x40
|
2018-02-08 11:17:41 +01:00
|
|
|
tryfaintmon BS_ATTACKER, FALSE, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_CuteCharmActivates::
|
2018-02-08 11:17:41 +01:00
|
|
|
status2animation BS_ATTACKER, STATUS2_INFATUATION
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSXINFATUATEDY
|
|
|
|
waitmessage 0x40
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_ApplySecondaryEffect::
|
|
|
|
waitstate
|
|
|
|
seteffectsecondary
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_SynchronizeActivates::
|
|
|
|
waitstate
|
|
|
|
seteffectprimary
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_NoItemSteal::
|
|
|
|
pause 0x20
|
|
|
|
printstring STRINGID_PKMNSXMADEYINEFFECTIVE
|
|
|
|
waitmessage 0x40
|
|
|
|
return
|
|
|
|
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_AbilityCuredStatus::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSXCUREDITSYPROBLEM
|
|
|
|
waitmessage 0x40
|
2018-02-08 11:17:41 +01:00
|
|
|
updatestatusicon BS_SCRIPTING
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
2018-09-01 20:00:13 +02:00
|
|
|
BattleScript_IgnoresWhileAsleep::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNIGNORESASLEEP
|
|
|
|
waitmessage 0x40
|
|
|
|
setbyte sMOVEEND_STATE, 0x0
|
|
|
|
moveend 0x2, 0x10
|
|
|
|
end
|
|
|
|
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_IgnoresAndUsesRandomMove::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNIGNOREDORDERS
|
|
|
|
waitmessage 0x40
|
2018-09-22 19:08:41 +02:00
|
|
|
jumptocalledmove FALSE
|
2017-11-25 18:42:31 +01:00
|
|
|
|
|
|
|
BattleScript_MoveUsedLoafingAround::
|
2018-02-08 11:17:41 +01:00
|
|
|
jumpifbyte CMP_NOT_EQUAL, cMULTISTRING_CHOOSER, 0x4, BattleScript_82DB6C7
|
2017-11-25 18:42:31 +01:00
|
|
|
setbyte gBattleCommunication, 0x0
|
2018-02-08 11:17:41 +01:00
|
|
|
various24 BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
setbyte cMULTISTRING_CHOOSER, 0x4
|
|
|
|
BattleScript_82DB6C7::
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gInobedientStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
|
|
|
setbyte sMOVEEND_STATE, 0x0
|
|
|
|
moveend 0x2, 0x10
|
|
|
|
end
|
|
|
|
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_IgnoresAndFallsAsleep::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNBEGANTONAP
|
|
|
|
waitmessage 0x40
|
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
|
|
|
|
setbyte sMOVEEND_STATE, 0x0
|
|
|
|
moveend 0x2, 0x10
|
|
|
|
end
|
|
|
|
|
2018-09-01 20:00:13 +02:00
|
|
|
BattleScript_IgnoresAndHitsItself::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNWONTOBEY
|
|
|
|
waitmessage 0x40
|
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::
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_SCRIPTING, B_ANIM_ITEM_EFFECT, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSITEMCUREDPARALYSIS
|
|
|
|
waitmessage 0x40
|
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::
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_SCRIPTING, B_ANIM_ITEM_EFFECT, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSITEMCUREDPOISON
|
|
|
|
waitmessage 0x40
|
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::
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_SCRIPTING, B_ANIM_ITEM_EFFECT, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSITEMHEALEDBURN
|
|
|
|
waitmessage 0x40
|
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::
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_SCRIPTING, B_ANIM_ITEM_EFFECT, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSITEMDEFROSTEDIT
|
|
|
|
waitmessage 0x40
|
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::
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_SCRIPTING, B_ANIM_ITEM_EFFECT, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSITEMWOKEIT
|
|
|
|
waitmessage 0x40
|
2018-02-08 11:17:41 +01:00
|
|
|
updatestatusicon BS_SCRIPTING
|
|
|
|
removeitem BS_SCRIPTING
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_BerryCureConfusionEnd2::
|
|
|
|
call BattleScript_BerryCureConfusionRet
|
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_BerryCureConfusionRet::
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_SCRIPTING, B_ANIM_ITEM_EFFECT, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSITEMSNAPPEDOUT
|
|
|
|
waitmessage 0x40
|
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::
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_SCRIPTING, B_ANIM_ITEM_EFFECT, NULL
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gBerryEffectStringIds
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
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::
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_SCRIPTING, B_ANIM_ITEM_EFFECT, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSITEMRESTOREDSTATUS
|
|
|
|
waitmessage 0x40
|
2018-02-08 11:17:41 +01:00
|
|
|
removeitem BS_SCRIPTING
|
2017-11-25 18:42:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_ItemHealHP_RemoveItem::
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_ITEM_EFFECT, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSITEMRESTOREDHEALTH
|
|
|
|
waitmessage 0x40
|
|
|
|
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::
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_ITEM_EFFECT, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSITEMRESTOREDPP
|
|
|
|
waitmessage 0x40
|
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
|
|
|
|
|
|
|
|
BattleScript_ItemHealHP_Ret::
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_ITEM_EFFECT, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSITEMRESTOREDHPALITTLE
|
|
|
|
waitmessage 0x40
|
|
|
|
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
|
|
|
return
|
|
|
|
|
2017-11-26 17:15:28 +01:00
|
|
|
BattleScript_SelectingNotAllowedMoveChoiceItem::
|
2017-11-25 18:42:31 +01:00
|
|
|
printselectionstring STRINGID_ITEMALLOWSONLYYMOVE
|
|
|
|
endselectionscript
|
|
|
|
|
|
|
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
return
|
|
|
|
|
|
|
|
BattleScript_BerryConfuseHealEnd2::
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_ITEM_EFFECT, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNSITEMRESTOREDHEALTH
|
|
|
|
waitmessage 0x40
|
|
|
|
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
|
|
|
|
waitmessage 0x40
|
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
|
|
|
|
|
|
|
|
BattleScript_BerryStatRaiseEnd2::
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_ITEM_EFFECT, NULL
|
2018-02-08 00:35:13 +01:00
|
|
|
statbuffchange MOVE_EFFECT_AFFECTS_USER | 0x1, BattleScript_82DB85B
|
2017-11-25 18:42:31 +01:00
|
|
|
BattleScript_82DB85B::
|
|
|
|
setbyte cMULTISTRING_CHOOSER, 0x4
|
|
|
|
call BattleScript_StatUp
|
2018-02-08 11:17:41 +01:00
|
|
|
removeitem BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
end2
|
|
|
|
|
|
|
|
BattleScript_BerryFocusEnergyEnd2::
|
2018-02-08 11:17:41 +01:00
|
|
|
playanimation BS_ATTACKER, B_ANIM_ITEM_EFFECT, NULL
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_PKMNUSEDXTOGETPUMPED
|
|
|
|
waitmessage 0x40
|
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
|
|
|
|
|
|
|
|
BattleScript_82DB881::
|
|
|
|
setbyte gBattleCommunication + 1, 0x0
|
|
|
|
BattleScript_82DB887::
|
2018-02-08 11:17:41 +01:00
|
|
|
various8 BS_ATTACKER
|
|
|
|
jumpifbyte CMP_NOT_EQUAL, gBattleCommunication, 0x1, BattleScript_82DB89D
|
2017-11-26 00:33:40 +01:00
|
|
|
printfromtable gStringIds_85CCF0A
|
2017-11-25 18:42:31 +01:00
|
|
|
waitmessage 0x40
|
|
|
|
BattleScript_82DB89D::
|
|
|
|
addbyte gBattleCommunication + 1, 0x1
|
2018-02-06 02:46:59 +01:00
|
|
|
jumpifbytenotequal gBattleCommunication + 1, gBattlersCount, BattleScript_82DB887
|
2017-11-25 18:42:31 +01:00
|
|
|
setbyte gBattleCommunication, 0x0
|
|
|
|
setbyte gBattleCommunication + 1, 0x0
|
|
|
|
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
|
|
|
|
playse SE_HANTEI1
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x8
|
2018-08-25 21:04:12 +02:00
|
|
|
playse SE_HANTEI1
|
2018-02-08 11:17:41 +01:00
|
|
|
various14 BS_ATTACKER
|
2018-11-11 18:33:16 +01:00
|
|
|
arenajudmengtstring 8
|
|
|
|
arenawaitmessage 8
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x40
|
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
|
|
|
|
|
2018-11-11 18:33:16 +01:00
|
|
|
BattleScript_82DB8E0:: @ Unused battlescript
|
2017-11-25 18:42:31 +01:00
|
|
|
playse SE_PINPON
|
2018-02-08 11:17:41 +01:00
|
|
|
various14 BS_ATTACKER
|
2018-11-11 18:33:16 +01:00
|
|
|
arenajudmengtstring BS_TARGET
|
|
|
|
arenawaitmessage BS_TARGET
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x40
|
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
|
2018-11-11 18:33:16 +01:00
|
|
|
playse SE_HANTEI1
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x8
|
2018-11-11 18:33:16 +01:00
|
|
|
playse SE_HANTEI1
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x40
|
2018-02-08 11:17:41 +01:00
|
|
|
various14 BS_ATTACKER
|
2018-11-11 18:33:16 +01:00
|
|
|
arenajudmengtstring 1
|
|
|
|
arenawaitmessage 1
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x40
|
|
|
|
setbyte gBattleCommunication, 0x0
|
2018-11-11 18:33:16 +01:00
|
|
|
arenajudgmentwindow
|
2017-11-25 18:42:31 +01:00
|
|
|
pause 0x40
|
2018-11-11 18:33:16 +01:00
|
|
|
arenajudgmentwindow
|
|
|
|
arenajudmengtstring 2
|
|
|
|
arenawaitmessage 2
|
|
|
|
arenajudgmentwindow
|
|
|
|
arenajudmengtstring 3
|
|
|
|
arenawaitmessage 3
|
|
|
|
arenajudgmentwindow
|
|
|
|
arenajudmengtstring 4
|
|
|
|
arenawaitmessage 4
|
|
|
|
arenajudgmentwindow
|
|
|
|
jumpifbyte CMP_EQUAL, gBattleCommunication + 1, 0x3, BattleScript_ArenaJudgmentPlayerLoses
|
|
|
|
jumpifbyte CMP_EQUAL, gBattleCommunication + 1, 0x4, BattleScript_ArenaJudgmentDraw
|
|
|
|
arenajudmengtstring 5
|
|
|
|
arenawaitmessage 5
|
|
|
|
arenajudgmentwindow
|
2018-02-08 11:17:41 +01:00
|
|
|
various15 BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_DEFEATEDOPPONENTBYREFEREE
|
|
|
|
waitmessage 0x40
|
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:
|
|
|
|
arenajudmengtstring 6
|
|
|
|
arenawaitmessage 6
|
|
|
|
arenajudgmentwindow
|
2018-02-08 11:17:41 +01:00
|
|
|
various15 BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_LOSTTOOPPONENTBYREFEREE
|
|
|
|
waitmessage 0x40
|
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:
|
|
|
|
arenajudmengtstring 7
|
|
|
|
arenawaitmessage 7
|
|
|
|
arenajudgmentwindow
|
2018-02-08 11:17:41 +01:00
|
|
|
various15 BS_ATTACKER
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_TIEDOPPONENTBYREFEREE
|
|
|
|
waitmessage 0x40
|
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
|
|
|
|
waitmessage 0x40
|
|
|
|
end2
|
|
|
|
|
2017-12-03 00:47:21 +01:00
|
|
|
BattleScript_PrintPlayerForfeitedLinkBattle::
|
2017-11-25 18:42:31 +01:00
|
|
|
printstring STRINGID_FORFEITEDMATCH
|
|
|
|
waitmessage 0x40
|
|
|
|
atk57
|
|
|
|
waitmessage 0x40
|
|
|
|
end2
|