• Welcome to Final Fantasy Hacktics. Please login or sign up.
 
April 16, 2024, 12:12:43 am

News:

Use of ePSXe before 2.0 is highly discouraged. Mednafen, RetroArch, and Duckstation are recommended for playing/testing, pSX is recommended for debugging.


Make Knight's Breaks add Status Effects?

Started by mrjane, September 15, 2017, 12:35:23 pm

mrjane

Has anyone done this? Is it possible? I find the Break powers really underwhelming and I thought it would be neat if they added things like Slow and Darkness.

I did notice in the formulas, there's the "NS" which equals "No status infliction possible." I tried ignoring this and doing it anyway, but I haven't seen a status get added to an enemy yet.

Any thoughts on how to get this to work? And to get it to be 100% to add?
  • Modding version: Other/Unknown

Nyzer

Most people interested in doing so would just give the knights new abilities that do so, instead of modding Breaks to also inflict status. Break Weapon is powerful, breaking armor permanently tears off chunks of max HP... shield/accessory are a little weak, but that's really only because the base game never utilizes its full potential for NPCs; readjustment mods can make those significantly more useful.
The direct stat breakers are less useful unless you're grinding or stealing, but adding 100% status to them would make them stupidly OP.
  • Modding version: Other/Unknown

mrjane

Yup, 100% SE sure would be OP. So, anyone know how to do it?
  • Modding version: Other/Unknown

Nyzer

You seem to be missing the point... not only am I recommending you personally rethink your plan here, but I'm also saying that it's unlikely anyone has ever been interested in doing it, so I doubt there's a premade ASM for it either.

Which is, of course, what it'd take.

At best you might be able to find a general, all-purpose ASM that allows you to pick and choose which abilities you want to add status infliction to, that doesn't interfere with the hardcoding on the Break abilities. See what OrgASM's got.
  • Modding version: Other/Unknown

Emmy

I'm pretty sure what you're thinking of hasn't been done.  However, MT's break skills are crazy good, even in a game where 98% of enemies don't have equipment.  I made break into something more similar to Meliadoul's vanilla abilities (only that they hit monsters too). 

ASM for this (along with required code):


  <Patch name="Formula 40 - Defense ignoring damage/item break">
    <Description>Requires break/steal/mighty sword de-hardcoding.  Requires Disable defend/merge equip change, maintenance, move-find on move-find's slot.  Deals defense ignoring damage PA^2. If item indexed is present and unit doesn't have Maintenance (merged to move find slot), item is broken.</Description>
    <Location file="BATTLE_BIN" offset="123088">
E8FFBD27
1000BFAF
4421060C
00000000
19004014
00000000
19800A3C
942D4D8D
982D4B8D
902D4C8D
3600A291
95006391
18004200
80000434
250084A1
01000434
000084A1
12100000
01006330
040082A5
09006014
00000000
721E060C
00000000
05004014
00000000
19800A3C
902D4C8D
04000234
100082A5
1000BF8F
1800BD27
0800E003
00000000
    </Location>
  </Patch>

<Patch name="Break/Steal/Mighty Sword de-hardcoding">
<Description>
    This removes the hard-code on STEAL, MIGHTY SWORD, and BREAK.  This means any skill taking those formulas can break stuff and MIGHTY SWORD will work on units if they do not equip anything to break (but will still be blocked by maintenance).  This means, among other things, that you can create Accessory Break.
    This formula reads the unused Y value in those three formulas.  Y = 5 breaks the head slot, Y = 4 breaks the armor slot, Y = 3 breaks the accessory slot, Y = 2 breaks the weapon slot, Y = 1 breaks the shield slot, Y = 0 breaks nothing.  Do not insert other values; they WILL cause glitchy effects!  Please update the preexisting BREAK/STEAL/MIGHTY SWORD attacks to correspond to the new rules.

**Changed to work with MT formulas**
</Description>
<Location file="BATTLE_BIN" offset="1209C8">
    1980013C
    FA382390
    982D218C
    05000234
    1A002424
    00008590
    06004314
    FF000634
    0400A610
    04000634
    04304600
    8F1E0608
    A50126A0
    FFFF4224
    03004628
    F5FFC010
    01008424
    0E004010
    00008590
    F9FF4314
    FF000634
    0500A614
    04000634
    02008590
    FF000634
    F3FFA610
    01000634
    04304600
    A50126A0
    8F0125A0
    0800E003
    21100000
    FE000234
    950122A0
    0800E003
    8F0120A0
</Location>
</Patch>

  <Patch name="Disable Defend. Merge Equip Change, Maintenance, Move-Find on Move-Find's slot">
    <Description>^^^^^</Description>
    <Location file="BATTLE_BIN" offset="11a450">    <!-- Equip Change -->
95006690
    </Location>
    <Location file="BATTLE_BIN" offset="11a4c8">    <!-- Disables Defend (required for Equip Change's move to work) -->
03000010
    </Location>
    <Location file="BATTLE_BIN" offset="11a4d8">    <!-- Equip Change -->
0100C230
    </Location>
    <Location file="BATTLE_BIN" offset="120644">    <!-- Maintenance -->
95004290
00000000
01004230
    </Location>
  </Patch>


However if you still *really* want it to apply status as well as breaking an item, you can learn asm.  This is a relatively simple hack to make for someone experienced with asm (is literally just 2 additional lines of code, one of which is a nop), since the inflict status byte isn't used by these formulas.  Though because you're adding to the code, you'll also have to either move the code of the formula that you're using for break, or copy over a longer unused formula.
  • Modding version: PSX