Users browsing this thread: 1 Guest(s)
Making two different Jump commands

#1
Posts: 324
Threads: 25
Thanks Received: 13
Thanks Given: 15
Joined: Oct 2013
Reputation: 2
Status
X-Zone
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.
  Find
Quote  

#2
Posts: 1,633
Threads: 56
Thanks Received: 13
Thanks Given: 84
Joined: Apr 2014
Reputation: 12
Status
Atma
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!
  Find
Quote  

#3
Posts: 676
Threads: 44
Thanks Received: 26
Thanks Given: 21
Joined: Jan 2015
Reputation: 11
Status
Zombie
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.


The only true wisdom is knowing you know nothing.
  Find
Quote  

#4
Posts: 324
Threads: 25
Thanks Received: 13
Thanks Given: 15
Joined: Oct 2013
Reputation: 2
Status
X-Zone
Alright, I'll ask Synchysi.


Shine 
  Find
Quote  

#5
Posts: 290
Threads: 3
Thanks Received: 40
Thanks Given: 1
Joined: Apr 2012
Reputation: 9
Status
None
It is pretty easy. This is how I did it for Shock in BNW (place this after whatever code you want for the skill):

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


GET A SILK BAG FROM THE GRAVEYARD DUCK TO LIVE LONGER.

Brave New World
  Find
Quote  



Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite