- 157
- Posts
- 8
- Years
- Seen Nov 19, 2023
So I'm working on a move effect in BSP, the desired outcome with be essentially the opposite of Quiver Dance, which is to say it will increase Attack, Defense and Speed all by 1 stage. My current version of the script ALMOST works. Currently, the Attack and Speed buffs will go off, while the Defense buff is skipped over. Here is my current script:
If anyone is able to spot what my mistake here is I'd really appreciate it!
Spoiler:
#dynamic 0xA9B0C0
#freespacebyte 0xFF
#include moves.bsh
#org @start
jumpifhalfword 0x0 0x20241EA 0x336 @QDance
goto 0x82DA731
#org @QDance
attackcanceler
attackstring
ppreduce
jumpifstat 0x1 0x3 0x2 0xC @Att
jumpifstat 0x1 0x3 0x1 0xC @Att
jumpifstat 0x1 0x0 0x3 0xC 0x82DA71D
#org @Att
attackanimation
waitanimation
setbyte 0x202448F 0x0
playstatchangeanimation 0x0 0x38 0x0
setbyte 0x202448E 0x11
statbuffchange 0x41 TRUE @Def
jumpifbyte 0x0 0x2024337 0x2 @Def
printfromtable 0x85CC89C
waitmessage 0x40
#org @Def
setbyte 0x202448E 0x12
statbuffchange 0x41 TRUE @Speed
jumpifbyte 0x0 0x2024337 0x2 @Speed
printfromtable 0x85CC89C
waitmessage 0x40
#org @Speed
setbyte 0x202448E 0x13
statbuffchange 0x41 TRUE 0x82DA790
jumpifbyte 0x0 0x2024337 0x2 0x82DA790
printfromtable 0x85CC89C
waitmessage 0x40
goto 0x82D8A4E
#freespacebyte 0xFF
#include moves.bsh
#org @start
jumpifhalfword 0x0 0x20241EA 0x336 @QDance
goto 0x82DA731
#org @QDance
attackcanceler
attackstring
ppreduce
jumpifstat 0x1 0x3 0x2 0xC @Att
jumpifstat 0x1 0x3 0x1 0xC @Att
jumpifstat 0x1 0x0 0x3 0xC 0x82DA71D
#org @Att
attackanimation
waitanimation
setbyte 0x202448F 0x0
playstatchangeanimation 0x0 0x38 0x0
setbyte 0x202448E 0x11
statbuffchange 0x41 TRUE @Def
jumpifbyte 0x0 0x2024337 0x2 @Def
printfromtable 0x85CC89C
waitmessage 0x40
#org @Def
setbyte 0x202448E 0x12
statbuffchange 0x41 TRUE @Speed
jumpifbyte 0x0 0x2024337 0x2 @Speed
printfromtable 0x85CC89C
waitmessage 0x40
#org @Speed
setbyte 0x202448E 0x13
statbuffchange 0x41 TRUE 0x82DA790
jumpifbyte 0x0 0x2024337 0x2 0x82DA790
printfromtable 0x85CC89C
waitmessage 0x40
goto 0x82D8A4E
If anyone is able to spot what my mistake here is I'd really appreciate it!