1

**Tools / Re: [FF9] General editor - Hades Workshop (0.38)**

« **on:**2017-11-14 18:34:12 »

@savokgear: You ask for changing the battle engine in-depth. Hades Workshop cannot do that. Albeoris's Memoria tool is more suited for that but it is unfortunatly not compatible with HW yet.

http://steamcommunity.com/groups/ff-modding/discussions/13/357284131804133221/

@Loseless: The important line, defining the Magic Stone progression, is this C# line:

"lv * 4 / 10" means that you'll get +0.4 Magic Stone every level (so +1 after 3 levels and +1 after the next 2 levels).

"bonus.cap >> 5" is useless. It may add 5/32 = 0 Magic Stone (since it is an integer division) in certain situation (I think that's when your character has 0 available Magic Stone but I'm not sure). For info, "X >> n" is the same as "X/(2^n)" mathematically.

So in term of CIL Code that you can see and edit in HW, the easy way is to change those "4" and "10" numbers:

http://steamcommunity.com/groups/ff-modding/discussions/13/357284131804133221/

@Loseless: The important line, defining the Magic Stone progression, is this C# line:

Code: [Select]

`int num3 = (int)fF9LEVEL_BASE.cap + lv * 4 / 10 + (bonus.cap >> 5);`

"fF9LEVEL_BASE.cap" is the base number at lvl 1 that you can set in the "Party->Stats" panel."lv * 4 / 10" means that you'll get +0.4 Magic Stone every level (so +1 after 3 levels and +1 after the next 2 levels).

"bonus.cap >> 5" is useless. It may add 5/32 = 0 Magic Stone (since it is an integer division) in certain situation (I think that's when your character has 0 available Magic Stone but I'm not sure). For info, "X >> n" is the same as "X/(2^n)" mathematically.

So in term of CIL Code that you can see and edit in HW, the easy way is to change those "4" and "10" numbers:

Code: [Select]

`ldc.i4.4 -> Change it to ldc.i4.s 9 for instance`

ldc.i4.s 10 -> Change it to ldc.i4.s 2 for instance

With these figures, you would get +4.5 Magic Stone every level (so +4 Magic Stone on odd levels and +5 on even levels).