Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2020-08-21 00:02:59

Ferropexola
Member
Registered: 2020-06-08
Post 24/25

Making Hone Claws work properly in Pokecrystal

So here is my asm file for Hone Claws. I copied portions of Curse since it's the only move in the game that affects more than one stat at a time.

; If no stats can be increased, don't.

; Attack
ld a, [bc]
cp MAX_STAT_LEVEL
jr c, .raise

; Accuracy
inc bc
ld a, [bc]
cp MAX_STAT_LEVEL
jr nc, .cantraise

.raise

ld a, $1
ld [wKickCounter], a
call AnimateCurrentMove
call ResetMiss
call BattleCommand_AttackUp
call BattleCommand_StatUpMessage
call ResetMiss
call BattleCommand_AccuracyUp
jp BattleCommand_StatUpMessage

.cantraise

; Can't raise either stat.

ld b, ABILITY + 1
call GetStatName
call AnimateFailedMove
ld hl, WontRiseAnymoreText
jp StdBattleTextbox

The problem is when the stats are maxed out. It plays the animation, and then its turn ends. I'm pretty sure that AnimateFailedMove needs to go, but I'm not sure what else I need to change. Any tips would be helpful. Thank you.

Last edited by Ferropexola (2020-08-21 00:03:15)


Just because you can, doesn't mean you have to.

Offline

Board footer

Powered by FluxBB