• Welcome to Final Fantasy Hacktics. Please login or sign up.
 
June 22, 2025, 08:11:19 am

News:

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


Changing "Require Materia Blade" boolean.

Started by gil, January 04, 2013, 03:09:22 pm

gil

Hi!

I just registered because I can't find the info I want. (I think i found it, but not save it :( )

Well, I'm planning to make a patch. I'm going to have Paladins. They can equip Swords and Knight Swords.

In their skillset, they will have, for example, 3 swordskills, AAA, BBB, CCC, but I want the CCC skill be available ONLY with Knight Swords. Since FFTPatcher have the Sword and Materia Blade boolean, i wanted a way to use Materia Blade boolean for CCC skill, but actually checking for Knight Swords.

I know about ARH, but I just want this. Is there a easy way?

Thanks in advance!




Glain

I'm pretty sure the latest FFTP should have an ASM hack that changes "Require Materia Blade" into Require (other item type) and you can specify which item type you want.  Looks like I completely neglected to add that to my ASM thread, but it should be there...

Actually, I found it in the FFTP source thread:

  <Patch name="Require Materia Blade -> Require Item Type X (Default Lance)">
    <Description>
      Require Materia Blade -> Require Item Type X (Default 0x0F = Lance)
      Weapon Type List: 00 = Fists 01 = Daggers 02 = Ninjato 03 = Sword 04 = Knight Sword 05 = Katana 06 = Axe 07 = Rod 08 = Staff 09 = Flail 0A = Gun 0B = Crossbow 0C = Bow 0D = Instrument 0E = Book 0F = Lance 10 = Stick/Pole 11 = Bag 12 = Carpet/Veil
    </Description>
    <Location file="SCUS_942_21" offset="4CE24" mode="ASM">
      li      t0, 0x0f
      move      v1, a1
      sll     t1, v1, 1
      addu     t1, t1, v1
      sll     t1, t1, 2
      lui     at, 0x8006
      addu     at, at, t1
      lbu     v0, 0x2ebd(at)
      lbu     t3, 0x0184(s1)
      subu      t1, v0, t0
      sltiu     t1, t1, 1
      sll     t1, t1, 2
      or     t3, t3, t1
      j       0x5c668
      sb     t3, 0x0184(s1)
    </Location>
    <Variable name="X" file="SCUS_942_21" offset="4CE24" default="0F" />
  </Patch>
  • Modding version: Other/Unknown

gil

Thank you :) I donn't wan't to mess with ASM but I'm guessing there's no other way... Thanks :)