STEAM GROUP
Final Fantasy - Modding FF-Modding
STEAM GROUP
Final Fantasy - Modding FF-Modding
208
IN-GAME
1,788
ONLINE
Founded
26 July, 2015
Language
English
Location
United States 
Showing 1-10 of 265 entries
5
[Mod] Memoria FF1/2/3/4/5
867
1
Memoria - Engine modifications
Originally posted by Hndsum Jeck:
So, I am looking through everything but I cant really find out how to change how immunity-support abilities work. For example, I want Clear Headed to make you immun to Confusion and Berserk. Does someone know how that works?

Also, changing the base stats mid-playthrough changes anything or only at a fresh game/level up?
https://github.com/Albeoris/Memoria/blob/main/Assembly-CSharp/FF9/btl_abil.cs
There is a method CheckStatusAbility

You need to change this:
if (btl.HasSupportAbility(SupportAbility2.ClearHeaded)) { btl.ResistStatus |= BattleStatus.Confuse; }

...like this:
if (btl.HasSupportAbility(SupportAbility2.ClearHeaded)) { btl.ResistStatus |= BattleStatus.Confuse; btl.ResistStatus |= BattleStatus.Berserk; }

You can do this:
By rebuilding Memoria
By editing Assembly-CSharp in dnSpy
By implementing a hook using Harmony.
I recommend using the Harmony. Now Memoria doesn't use it, but you can load it by writing a custom battle script. If necessary, I can load custom patches to the game on startup.

It would be most correct to change the engine and describe all mechanics of the support abilities in external files, as well as combat abilities. Unfortunately, now the logic of their usage is spread throughout the game code. We don't have a rule "Clear Headed ability gives the player immunity to Confuse.". There is only a flag - the character has this ability or not. And then, in arbitrary places in the code, we check - if he has the ability, we perform some action. If not, others. Summarizing this and putting it into external files is the right way, but a difficult task.

Originally posted by Hndsum Jeck:
Also, changing the base stats mid-playthrough changes anything or only at a fresh game/level up?
Depends. The changes that you described do NOT require starting the game again.
Showing 1-10 of 265 entries