Author Topic: How to edit a materia's ability list?  (Read 418 times)

Axel Firestorm

  • *
  • Posts: 96
    • View Profile
How to edit a materia's ability list?
« on: 2025-02-18 22:59:45 »
So I've added a few new materia to my mod, things like Strength Up and Defense Up, but unlike existing ones like Magic Up, they don't show the progressive bonuses under the ability list even though they're independent materia made in the same way. Does anyone know how to edit that list to make things like Strength +10%, Strength +20% etc. appear the way the Magic + bonuses do?

nfitc1

  • *
  • Posts: 3012
  • I just don't know what went wrong.
    • View Profile
    • WM/PrC Blog
Re: How to edit a materia's ability list?
« Reply #1 on: 2025-02-19 01:20:07 »

Axel Firestorm

  • *
  • Posts: 96
    • View Profile
Re: How to edit a materia's ability list?
« Reply #2 on: 2025-02-19 01:54:02 »
Partially, but there doesn't seem to be a way to edit the list in WallMarket or Scarlet, unless there's some variable I'm missing that has to be set for it to show up.





Basically, I'm trying to figure out how to get the Strength Up materia to show the bonus percentage like the Magic Up one does. Magic Plus (Up in my mod) is, as you know, a normal materia in the game. And in WallMarket the only difference I can see between it and the Strength Up materia I made is the code to set the latter to Strength instead of Magic. Is there something else I have to do to get it to show the percentage bonus instead of "Strength Up" under the ability list?
« Last Edit: 2025-02-19 02:28:28 by Axel Firestorm »

Final_Figue

  • *
  • Posts: 110
    • View Profile
Re: How to edit a materia's ability list?
« Reply #3 on: 2025-02-19 03:05:26 »
Hello.

I was looking for the same result, the closer that I saw was the materia Omniplus on New Threat, but if you managed to apply this like you show on the second picture, please, share the way to make this possible.



I hope this help you in some way.

mav

  • *
  • Posts: 262
  • The Sauce team
    • View Profile
Re: How to edit a materia's ability list?
« Reply #4 on: 2025-02-19 09:12:42 »
Two things:

The Ability list on the left of the materia info window is pretty much hardcoded in the EXE in what it shows. There are only a couple materia where it's coded to show attribute names with per-level percentages, and these are the first 5 materias (as stored in game's data): MP Plus, HP Plus, Speed Plus, Magic Plus and Luck Plus. You cannot change via simple kernel editing what text is being displayed by these materias as this is hardcoded in the EXE.

The Equip effect can be changed by editing kernel data but there's a hardcoded list of atribute sets and their stat bonuses to choose from (see https://wiki.ffrtt.ru/index.php/FF7/Materia_data). These are always the same no matter what level the materia is. What New Threat did with the Omni Plus materia is they've modified the EXE and put in a new stat bonus list (or changed an existing one).

Now assuming you want to have Strength Plus materia that shows a per-level stat bonus for Strength the simplest way would be to change one of the 5 aformentioned materias (MP/HP/Speed/Magic/Luck Plus) to Strength Plus, adjust its attribute to be Strength and then also modify the EXE to show the correct text in the menu. Here for example I've changed Magic Plus to Strength Plus:



To achieve this I've modified the code starting from memory address 0x70b667:

Code: [Select]
70b667 = 68 38 0D 92 00  ; PUSH 920D38 - address of "Strength" text
70B694 = 6A 7F           ; PUSH 127 - X coordinate of the stat bonus number
70B6AF = 6A 73           ; PUSH 115 - X coordinate of the "+" character
70B6CA = 68 97           ; PUSH 151 - X coordinate of the "%" character
« Last Edit: 2025-02-19 09:19:09 by mav »

Axel Firestorm

  • *
  • Posts: 96
    • View Profile
Re: How to edit a materia's ability list?
« Reply #5 on: 2025-02-19 22:12:13 »
Thanks, mav. I want to keep the exist 5 materias, just wanted to also have materia for the other three stats (Strength, Defense, and Spirit). I've made them and they work fine, I just didn't know I couldn't change the text under the ability list to show what they do. Can that text be edited via Scarlet, which has an FF7.exe editor?

mav

  • *
  • Posts: 262
  • The Sauce team
    • View Profile
Re: How to edit a materia's ability list?
« Reply #6 on: 2025-02-20 08:06:07 »
Thanks, mav. I want to keep the exist 5 materias, just wanted to also have materia for the other three stats (Strength, Defense, and Spirit). I've made them and they work fine, I just didn't know I couldn't change the text under the ability list to show what they do. Can that text be edited via Scarlet, which has an FF7.exe editor?

If you want to add more than 5 materias that change stats based on level you unfortunately won't be able to achieve the same result as Magic Plus and others. Best you can do is just have a static text. I believe by default the game just repeats the materia name in the Ability List and that's the best you can do without some heavier exe modifications.