STEAM GROUP
Final Fantasy - Modding FF-Modding
STEAM GROUP
Final Fantasy - Modding FF-Modding
265
IN-GAME
2,279
ONLINE
Founded
26 July, 2015
Language
English
Location
United States 
Showing 1-9 of 9 entries
32
Hades Workshop
After a long abscence I decided to give modding FF IX a go again.

Last time in June, I asked about turning Auto-Life and Auto-Regen into Auto-Shell and Auto-Protect.

I already know how to convert Auto-Life into Auto-Shell. Now I'm attempting to turn Auto-Regen into Auto-Protect. So, in the CIL Code, Auto-Regen is like this by default:

IL_00C5: ldarg.0
IL_00C6: ldfld 0x400024C // BTL_DATA::sa
IL_00CB: ldc.i4.0
IL_00CC: ldelem.u4
IL_00CD: ldc.i4.8
IL_00CE: and
IL_00CF: brfalse IL_00F3
IL_00D4: ldarg.0
IL_00D5: ldfld 0x400022C // BTL_DATA::stat
IL_00DA: dup
IL_00DB: ldfld 0x400021E // STAT_INFO::permanent
IL_00E0: ldc.i4 262144
IL_00E5: or
IL_00E6: stfld 0x400021E // STAT_INFO::permanent
IL_00EB: ldarg.0
IL_00EC: ldc.i4.s 18
IL_00EE: call 0x6000443 // btl_stat::SetOprStatusCount

Following your instructions posted in June, would this do the trick to convert it into Auto-Protect?

IL_00C5: ldarg.0
IL_00C6: ldfld 0x400024C // BTL_DATA::sa
IL_00CB: ldc.i4.0
IL_00CC: ldelem.u4
IL_00CD: ldc.i4.8
IL_00CE: and
IL_00CF: brfalse IL_00F3
IL_00D4: ldarg.0
IL_00D5: ldfld 0x400022C // BTL_DATA::stat
IL_00DA: dup
IL_00DB: ldfld 0x400021E // STAT_INFO::permanent
IL_00E0: ldc.i4 8388608 // NOTE: Was 262144 = Regen, changed to 8388608 = Protect?
IL_00E5: or
IL_00E6: stfld 0x400021E // STAT_INFO::permanent
IL_00EB: ldarg.0

// Start of Edits (basically add this part from start to end of edits?)
IL_XXXX: ldfld 0x400022C // BTL_DATA::stat
IL_XXXX: dup
IL_XXXX: ldfld 0x400021F // STAT_INFO::cur
IL_XXXX: ldc.i4 8388608 // NOTE: 8388608 = Protect?
IL_XXXX: or
IL_XXXX: stfld 0x400021F // STAT_INFO::cur
// End of Edits

IL_00EC: ldc.i4.s 18 // NOTE: Can this part be removed?
IL_00EE: call 0x6000443 // btl_stat::SetOprStatusCount // NOTE: Can this part be removed as well?
3
Is it possible to edit the amount of EXP, AP you need to level up and Gil you receive after battles?
Showing 1-9 of 9 entries