summaryrefslogtreecommitdiff
path: root/data/battle_scripts_2.s
diff options
context:
space:
mode:
Diffstat (limited to 'data/battle_scripts_2.s')
-rw-r--r--data/battle_scripts_2.s73
1 files changed, 34 insertions, 39 deletions
diff --git a/data/battle_scripts_2.s b/data/battle_scripts_2.s
index caa6cddac..996048dd3 100644
--- a/data/battle_scripts_2.s
+++ b/data/battle_scripts_2.s
@@ -34,7 +34,7 @@ gBattlescriptsForUsingItem:: @ 82DBD3C
.4byte BattleScript_OpponentUsesHealItem @ AI_ITEM_HEAL_HP
.4byte BattleScript_OpponentUsesStatusCureItem @ AI_ITEM_CURE_CONDITION
.4byte BattleScript_OpponentUsesXItem @ AI_ITEM_X_STAT
- .4byte BattleScript_OpponentUsesGuardSpecs @ AI_ITEM_GUARD_SPECS
+ .4byte BattleScript_OpponentUsesGuardSpec @ AI_ITEM_GUARD_SPEC
.align 2
gBattlescriptsForRunningByItem:: @ 82DBD54
@@ -69,16 +69,16 @@ BattleScript_PrintCaughtMonInfo::
trysetcaughtmondexflags BattleScript_TryNicknameCaughtMon
printstring STRINGID_PKMNDATAADDEDTODEX
waitstate
- setbyte gBattleCommunication, 0x0
+ setbyte gBattleCommunication, 0
displaydexinfo
BattleScript_TryNicknameCaughtMon::
printstring STRINGID_GIVENICKNAMECAPTURED
waitstate
- setbyte gBattleCommunication, 0x0
+ setbyte gBattleCommunication, 0
trygivecaughtmonnick BattleScript_GiveCaughtMonEnd
givecaughtmon
printfromtable gCaughtMonStringIds
- waitmessage 0x40
+ waitmessage B_WAIT_TIME_LONG
goto BattleScript_SuccessBallThrowEnd
BattleScript_GiveCaughtMonEnd::
givecaughtmon
@@ -93,83 +93,78 @@ BattleScript_WallyBallThrow::
BattleScript_ShakeBallThrow::
printfromtable gBallEscapeStringIds
- waitmessage 0x40
+ waitmessage B_WAIT_TIME_LONG
jumpifword CMP_NO_COMMON_BITS, gBattleTypeFlags, BATTLE_TYPE_SAFARI, BattleScript_ShakeBallThrowEnd
- jumpifbyte CMP_NOT_EQUAL, gNumSafariBalls, 0x0, BattleScript_ShakeBallThrowEnd
+ jumpifbyte CMP_NOT_EQUAL, gNumSafariBalls, 0, BattleScript_ShakeBallThrowEnd
printstring STRINGID_OUTOFSAFARIBALLS
- waitmessage 0x40
+ waitmessage B_WAIT_TIME_LONG
setbyte gBattleOutcome, B_OUTCOME_NO_SAFARI_BALLS
BattleScript_ShakeBallThrowEnd::
finishaction
BattleScript_TrainerBallBlock::
- waitmessage 0x40
+ waitmessage B_WAIT_TIME_LONG
printstring STRINGID_TRAINERBLOCKEDBALL
- waitmessage 0x40
+ waitmessage B_WAIT_TIME_LONG
printstring STRINGID_DONTBEATHIEF
- waitmessage 0x40
+ waitmessage B_WAIT_TIME_LONG
finishaction
BattleScript_PlayerUsesItem::
- setbyte sMOVEEND_STATE, 0xF
- moveend 0x1, 0x0
+ moveendcase MOVEEND_MIRROR_MOVE
end
BattleScript_OpponentUsesHealItem::
printstring STRINGID_EMPTYSTRING3
- pause 0x30
+ pause B_WAIT_TIME_MED
playse SE_USE_ITEM
printstring STRINGID_TRAINER1USEDITEM
- waitmessage 0x40
+ waitmessage B_WAIT_TIME_LONG
useitemonopponent
orword gHitMarker, HITMARKER_IGNORE_SUBSTITUTE
healthbarupdate BS_ATTACKER
datahpupdate BS_ATTACKER
printstring STRINGID_PKMNSITEMRESTOREDHEALTH
- waitmessage 0x40
+ waitmessage B_WAIT_TIME_LONG
updatestatusicon BS_ATTACKER
- setbyte sMOVEEND_STATE, 0xF
- moveend 0x1, 0x0
+ moveendcase MOVEEND_MIRROR_MOVE
finishaction
BattleScript_OpponentUsesStatusCureItem::
printstring STRINGID_EMPTYSTRING3
- pause 0x30
+ pause B_WAIT_TIME_MED
playse SE_USE_ITEM
printstring STRINGID_TRAINER1USEDITEM
- waitmessage 0x40
+ waitmessage B_WAIT_TIME_LONG
useitemonopponent
printfromtable gTrainerItemCuredStatusStringIds
- waitmessage 0x40
+ waitmessage B_WAIT_TIME_LONG
updatestatusicon BS_ATTACKER
- setbyte sMOVEEND_STATE, 0xF
- moveend 0x1, 0x0
+ moveendcase MOVEEND_MIRROR_MOVE
finishaction
BattleScript_OpponentUsesXItem::
printstring STRINGID_EMPTYSTRING3
- pause 0x30
+ pause B_WAIT_TIME_MED
playse SE_USE_ITEM
printstring STRINGID_TRAINER1USEDITEM
- waitmessage 0x40
+ waitmessage B_WAIT_TIME_LONG
useitemonopponent
printfromtable gStatUpStringIds
- waitmessage 0x40
- setbyte sMOVEEND_STATE, 0xF
- moveend 0x1, 0x0
+ waitmessage B_WAIT_TIME_LONG
+ moveendcase MOVEEND_MIRROR_MOVE
finishaction
-BattleScript_OpponentUsesGuardSpecs::
+BattleScript_OpponentUsesGuardSpec::
printstring STRINGID_EMPTYSTRING3
- pause 0x30
+ pause B_WAIT_TIME_MED
playse SE_USE_ITEM
printstring STRINGID_TRAINER1USEDITEM
- waitmessage 0x40
+ waitmessage B_WAIT_TIME_LONG
useitemonopponent
printfromtable gMistUsedStringIds
- waitmessage 0x40
- setbyte sMOVEEND_STATE, 0xF
- moveend 0x1, 0x0
+ waitmessage B_WAIT_TIME_LONG
+ moveendcase MOVEEND_MIRROR_MOVE
finishaction
BattleScript_RunByUsingItem::
@@ -179,29 +174,29 @@ BattleScript_RunByUsingItem::
BattleScript_ActionWatchesCarefully:
printstring STRINGID_PKMNWATCHINGCAREFULLY
- waitmessage 0x40
+ waitmessage B_WAIT_TIME_LONG
end2
BattleScript_ActionGetNear:
printfromtable gSafariGetNearStringIds
- waitmessage 0x40
+ waitmessage B_WAIT_TIME_LONG
end2
BattleScript_ActionThrowPokeblock:
printstring STRINGID_THREWPOKEBLOCKATPKMN
- waitmessage 0x40
+ waitmessage B_WAIT_TIME_LONG
playanimation BS_ATTACKER, B_ANIM_POKEBLOCK_THROW, NULL
printfromtable gSafariPokeblockResultStringIds
- waitmessage 0x40
+ waitmessage B_WAIT_TIME_LONG
end2
BattleScript_ActionWallyThrow:
printstring STRINGID_RETURNMON
- waitmessage 0x40
+ waitmessage B_WAIT_TIME_LONG
returnatktoball
waitstate
trainerslidein BS_TARGET
waitstate
printstring STRINGID_YOUTHROWABALLNOWRIGHT
- waitmessage 0x40
+ waitmessage B_WAIT_TIME_LONG
end2