• Welcome to Final Fantasy Hacktics. Please login or sign up.
 
March 29, 2024, 11:21:11 am

News:

Please use .png instead of .bmp when uploading unfinished sprites to the forum!


ASM Request: Merge Weapon & Shield Break/Steal Abilities

Started by Timbo, November 18, 2013, 07:16:23 pm

Timbo

November 18, 2013, 07:16:23 pm Last Edit: November 18, 2013, 09:25:58 pm by Jack of All Trades
It's always annoyed me that Knights can't break accessories and Divine Knights can't break Shields. Would it be possible to change Weapon Break and Hellcry Punch to break Weapons & Shields, to change Shield Break into Accessory Break, and to merge Steal Weapon and Shield? I know when you use it on a two-weapon user it breaks one of the two weapons, so it seems doable. The only thing that makes me think its impossible would be the fact that the ability slots are hard-coded to the item type.

Would someone please do this for me? This would allow for more complete sets for Meliadoul, the Knight, and a much needed more diversified skillset for the thief, all without using up precious ability slots.
  • Modding version: PSX
  • Discord username: Timbo

Atma

Good idea.  The fact alone that you have to either hit the left or right hand (or both with 2 sword) makes me like this.  That proves they can 'aim' for a certain hand.  While a weapon vs a shield might take a different technique to break, it would still be nice to merge them.
Preferably I'd like them separate, but in both skillsets.  Seems unlikely, tho.
My name is Atma... I am pure energy... and as ancient as the cosmos.

Timbo

I was thinking that in Arms Break, the computer would either randomly choose the right or left hand, or it would prioritize the items like so:
1. Break Shield
2. If no shield, then break right hand weapon.
3. If no right hand weapon, then break left hand weapon.
4. If no left hand weapon, then basic attack.

I'm willing to bet it does something like this all ready, just without the shield.
  • Modding version: PSX
  • Discord username: Timbo

formerdeathcorps

November 22, 2013, 01:35:08 pm #3 Last Edit: November 22, 2013, 01:43:17 pm by formerdeathcorps
Jack, I have this ASM already done.
<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.
    Because this hack standardizes the usage of X and Y,  the break and steal formulas are now (PA + WP + X)% and (SP + X)%, respectively.  This means all the old values of Y need to be rerouted to the variable X for BREAK skills.  Because the change to WP + X also affect HOLY SWORD, please similarly reroute the old values of Y to X for HOLY SWORD attacks to use the formula PA * (WP + X).
</Description>
<Location file="BATTLE_BIN" offset="11EE70">
    F9
</Location>
<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>
<Location file="BATTLE_BIN" offset="122BB4">     
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
    00000000
</Location>
</Patch>


QuoteI'm willing to bet it does something like this all ready, just without the shield.

Your guess is correct and I think your version of "arm break" would be an easy addition to the ASM I wrote above (because it fits with existing Square routines that actually REMOVE the item).  If you all want, I can give an ASM lesson on how to modify what I did above into arm break.
The destruction of the will is the rape of the mind.
The dogmas of every era are nothing but the fantasies of those in power; their dreams are our waking nightmares.

Timbo

November 22, 2013, 09:54:00 pm #4 Last Edit: November 22, 2013, 10:18:13 pm by Jack of All Trades
FDC you are a certified bad ass. I will take you up on that offer.

I'm using an ASM that essentially turns formula 42 into something very similar to Holy Sword. Will it interfere with this:

<Patch name="Formula 42 (worker) become Dmg(WP+Y)*PA DmgCas((WP+Y)*PA)/3">
<Description>The formula  now apply elemental, has physical evasion, and % to status</Description>
<Location file="BATTLE_BIN" offset="123184">
4421060C
00000000
1B000214
00000000
9717060C
00000000
FF17060C
00000000
7E21060C
00000000
3E19060C
00000000
7B76050C
00000000
B41B060C
00000000
FE1B060C
00000000
1980023C
902D428C
00000000
00004290
00000000
06000210
00000000
3F1C060C
00000000
3021060C
00000000
AD1F060C
00000000
00000000
00000000
</Location>
<Location file="BATTLE_BIN" offset="F69EC">
E8FFBD27
1000BFAF
5A19060C
00000000
1980023C
902D428C
00000000
04004494
00000000
03000534
1A008500
12200000
1980033C
8C2D638C
01000234
000062A0
040064A4
1980023C
902D428C
80000334
250043A0
1980023C
8C2D428C
00000000
250043A0
1000BF8F
1800BD27
0800E003
00000000
</Location>
</Patch>



Edit: I came up with a better name. Break/Steal/Crush Armaments.
  • Modding version: PSX
  • Discord username: Timbo