Users browsing this thread: 1 Guest(s)
Making two different Jump commands
In RotDS I noticed when using the Morph command with Aurora, it negates 99 MP. So would it be possible to create a another Jump command (of course replacing some other command) that would negate 1/8 of your maximum health. Just wondering if it could be possible. I have a small hack in the works that could utilize those commands.
Shock works in a very similar way in BNW, you should ask to Synchysi
THE GREATEST CHALLENGE OF ALL TIMES AWAITS:
http://www.ff6hacking.com/forums/showthr...p?tid=2593
DO YOU HAVE WHAT IT TAKES TO SLAY A GOD?
------------------------------------------------------------------------
Tenkarider's project #2 is started: FF6 Curse of the Madsiur Joke (CotMJ)
http://www.ff6hacking.com/forums/showthr...p?tid=2755
What happens when Madsiur tweaks your account? This full game hack will show that!
That should be really simple to do, or am I completely nuts? Only thing that might make it difficult would be if you want to check and see beforehand if it will kill the player using it.
*Edit* Okay, I'm fairly sure that would be very easy to do. I am not sure where to find a good example of how it would be done though.
*Edit* Okay, I'm fairly sure that would be very easy to do. I am not sure where to find a good example of how it would be done though.
The only true wisdom is knowing you know nothing.
10-25-2015, 12:41 PM
Alright, I'll ask Synchysi.
10-26-2015, 02:44 AM
It is pretty easy. This is how I did it for Shock in BNW (place this after whatever code you want for the skill):
If you'd rather the skill not fire at all if it would kill the user, use this:
Code:
[Insert skill code here]
LDA $3C1C,Y ; Attacker's max HP
LDX #$08
JSR $4792 ; Max HP / 8
PHA
LDA $3BF4,Y ; Attacker's current HP
SEC
SBC $01,S ; Current HP - (Max HP / 8)
STA $3BF4,Y ; Store in current HP
BCS Exit ; If carry is clear, self-inflicted damage exceeded current HP
JSR $1390 ; Needed to run if someone takes lethal damage
Exit:
PLA
RTS
If you'd rather the skill not fire at all if it would kill the user, use this:
Code:
LDA $3C1C,Y ; Attacker's max HP
LDX #$08
JSR $4792 ; Max HP / 8
PHA
LDA $3BF4,Y ; Attacker's current HP
SEC
SBC $01,S ; Current HP - (Max HP / 8)
BCC Exit ; If carry is clear, self-inflicted damage exceeded current HP, so branch
STA $3BF4,Y ; Else, store in current HP
[Insert skill code here]
Exit:
PLA
RTS
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)