Thread: Development: Move Resource Thread
View Single Post
  #54    
Old October 5th, 2013 (03:13 AM). Edited October 5th, 2013 by daniilS.
daniilS's Avatar
daniilS
busy trying to do stuff not done yet
 
Join Date: Aug 2013
Age: 15
Gender: Male
I have made a simple script that swaps the defense and special defense stats. This can be used for the moves psystrike, psyshock, secret sword, and custom moves (f.e. physical doing special damage). Here it is, in BSP form:
Spoiler:

Code:
#dynamic 0x720000
#freespacebyte 0xFF

#include moves.bsh

#org @start
attackcanceler
accuracycheck 0x1D695E 0x0
call @swapphysicalspecialdefence
attackstring
ppreduce
calculatedamage
attackanimation
waitanimation
cmd5c 0x0
waitstate
datahpupdate 0x0
graphicalhpupdate 0x0
critmessage
waitmessage 0x40
resultmessage
waitmessage 0x40
call @swapphysicalspecialdefence
goto 0x1D6947

@swapphysicalspecialdefence
copyarray 0x020247DC @fourbytesoffreespace 2
copyarray 0x020247DA 0x020247DC 2
copyarray @fourbytesoffreespace 0x020247DA 2
copyarray 0x02024840 @anotherfourbytesoffreespace 2
copyarray 0x0202483E 0x02024840 2
copyarray @anotherfourbytesoffreespace 0x0202483E 2
return
__________________

Thanks to JPAN, Jambo51, Shiny Quagsire and knizz for teaching me almost everything I know about hacking, through tutorials or in person.
Reply With Quote