The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Help fixing a minor error in BSP

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old January 23rd, 2020 (11:00 PM).
Hillsy13's Avatar
Hillsy13 Hillsy13 is offline
 
Join Date: Aug 2016
Gender: Male
Posts: 157
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:
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

If anyone is able to spot what my mistake here is I'd really appreciate it!
__________________
Pokémon Emerald Genesis [Beta 2.0]
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 9:18 AM.