FF6 Hacking
About desperation moves... - Printable Version

+- FF6 Hacking (https://www.ff6hacking.com/forums)
+-- Forum: Discussion Forums (https://www.ff6hacking.com/forums/forum-5.html)
+--- Forum: Magitek Research Facility (https://www.ff6hacking.com/forums/forum-9.html)
+--- Thread: About desperation moves... (/thread-2623.html)

Pages: 1 2 3 4


About desperation moves... - Tenkarider - 07-05-2014

Now, i'm trying to customize desperation attacks, in order to give them a reason of exist Laugh

While testing, i noticed that they ignore target flags setted by me, they'll always keep to target the same target that should have been hit from the normal attack(except if i set special effect, like launcher or quadra slash types of attack).

Is there a way to modify the target of desperations?
Maybe with hex editing? in the case i'd like to know the hex position that
deals with the target selection of desperations Smile


RE: About desperation moves... - Gi Nattak - 07-05-2014

Go to Assassin's page and the C2 document and search for 'desperation attack' and you'll find the code to edit. The C2 bank deals with all things battle related.

http://www14.brinkster.com/assassin17/guides.htm


RE: About desperation moves... - Tenkarider - 07-05-2014

I see...

I scrolled the whole disassembly page, but i haven't find any description about desperates, i should had to pay more attention, i guess... Sad

If someone remembers the exact position in the c2 bank, it will help me a lot.


RE: About desperation moves... - Gi Nattak - 07-05-2014

dude use control f (find) and type in 'desperation'. lol don't you know how to search like that as to not have to scroll entire documents to find what you are looking for?


RE: About desperation moves... - Tenkarider - 07-05-2014

Ok, i think i have seen something useful, but i'm confused:

the code should start here:
C2/15C8: C0 08 CPY #$08

and it ends just before this line:
C2/1610: C0 08 CPY #$08

Actually it makes a jump, followed by others jumps Huh
So i don't get in which line i really have the chance to reset the target
(the target selected for the attack, i think), and so make decide who will be the true target to my setted flags on ff3usme.

Any suggestions? Wink


RE: About desperation moves... - madsiur - 07-06-2014

I don't know how to solve your problem, but if you trace the code in the desperation attack section, you'll jump where the command is set as magic and enventually end up in the following section. This is where the targeting byte ($11A0) is or is not used:

Code:
C2/274D: 8D 10 34     STA $3410   (Magic and numerous other commands enter here)
C2/2750: 80 02        BRA $2754   (load spell data for [equipment] magic)


C2/2752: A9 EE        LDA #$EE    (select Spell EEh - Battle)
C2/2754: 20 66 29     JSR $2966   (go load spell data)
C2/2757: A5 BB        LDA $BB     (targeting byte as read from $CFFE01 table?)
C2/2759: 1A           INC        
C2/275A: D0 05        BNE $2761   (branch if it wasn't FF.. if it was, it's null, so we use
                                   the spell byte instead)
C2/275C: AD A0 11     LDA $11A0   (spell aiming byte)
C2/275F: 85 BB        STA $BB



RE: About desperation moves... - Tenkarider - 07-07-2014

Thanks,

After spending a lot of time studying(or trying Laugh ) the code of desperation and target in general, i made up a try...

C2/295A 20 69 64 (jump to 026669, headered)
EA EA EA EA (nothing x 4, for replace 7 bytes)


C2/6669 F0 07 (branch if equal, skip 7 bytes) (related to the original code above the first line, so nothing strange)

A5 B6 (LDA selected spell, the desperate)

C9 F0 (CMP F0, > 0 if B6 >= F0)
B0 01 (BCS 01, if CMP above is >= 0, skip 1 byte)

60 (RTS, all checks failed, so nothing happens)

AD A0 11 (LDA spell aiming byte)
85 BB (STA to targeting byte)
60 (RTS, the first check that work triggers LDA, STA)

I was quite confident on the result... nothing changes Sad
Still better than a crash or crappy stuff, i guess... Laugh

What do you think about the code?
Could it had a chance of working, or i'm on completely the wrong track?


RE: About desperation moves... - BTB - 07-07-2014

One issue I've noticed with desperation attacks is that they seem to disregard the reactive half of the target's script, so that they are never countered and (more importantly) can f**k with scripting tricks used to break the 16-bit HP cap unless you've got a really good buffer in place.


RE: About desperation moves... - Tenkarider - 07-07-2014

About breaking hp limit damage 16 bit cap... that means that it's still possible to deal a maximum of 65535 damage? Kungfu!
(Anyway it wasn't on my plans...)


About targeting, are you saying that it's not possible to edit the target? Surprised

Edit: Ok, that's just too much stupid... Finger

No code, no hex, not complicated stuff... ;[

I found the solution, i think...

One check in ff3usme: you just need to check randomize target(not randomize selection!!!) in special 1, and you're set. End. Surprised Laugh

Tested a bit, if i decide to set as target all the enemies both sides, with that check, then when i use Riot Blade i'll hit all the enemies.

So i'm pretty sure that it works for real. Kungfu!

If you wanted to customize desperation attacks, but you didn't know how, then follow my advice and you'll be able to do it too Wink

I'll keep to test, anyway... meanwhile, i'm still curious to know the answer to some question still to anwser in the previous posts Smile


RE: About desperation moves... - Gi Nattak - 07-07-2014

Please stop posting so many emoticons! Putting one after every sentence just to have one there is highly annoying and will soon become a rule here thanks to you.