Making two different Jump commands
#1
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.
Reply
#2
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!
Reply
#3
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.
Reply
#4
Alright, I'll ask Synchysi.
Shine 
Reply
#5
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Multiple use "Morph" Commands Catone 3 2,890 08-20-2022, 09:23 AM
Last Post: Seifer
  Gauntlet Jump doofenH 4 4,222 05-11-2022, 11:32 AM
Last Post: doofenH
  Gogo select more commands? xDaygo 12 10,696 05-06-2020, 06:50 PM
Last Post: PowerPanda
  Creating seal commands (Paid job) hoshinmoon 3 3,327 01-20-2019, 09:38 PM
Last Post: madsiur
  Dragon Horn max jump of 3 Lightning 15 11,085 07-20-2018, 12:55 AM
Last Post: GrayShadows
  Disable Jump command if character has Dark status seibaby 5 5,823 12-09-2016, 05:23 PM
Last Post: SSJ Rick
  2 Jump Commands Cyprus 0 1,902 05-07-2016, 10:13 AM
Last Post: Cyprus
  customize FA battle AI commands Tenkarider 6 7,454 05-05-2016, 11:56 PM
Last Post: Imzogelmo
  What makes Spears do double damage on Jump? Kugawattan 3 4,524 07-09-2015, 02:21 PM
Last Post: Drakkhen
  More Commands in Battle Catone 9 9,154 01-21-2015, 12:06 PM
Last Post: Catone

Forum Jump:


Users browsing this thread: 1 Guest(s)