Author Topic: Change Materia stat bonus amounts  (Read 4728 times)

Tenko Kuugen

  • Public Enemy
  • *
  • Posts: 1416
    • View Profile
    • Twitter
Change Materia stat bonus amounts
« on: 2012-09-17 00:45:39 »
for example, we have
Byte    STR    VIT    MAG    MDEF*    DEX    LUCK    MAXHP    MAXMP
0x01    -02    -01    +02    +01                                  -05%    +05%
0x02    -04    -02    +04    +02                                -10%    +10%

I'd like to change these to different values, like
-01 -04 +01 +04 +01 -01 -04% +02%

I know these have to be hardcoded somewhere, but that shouldn't be something that requires me / us to rewrite the entire function or anything. Someone know where these are stored?

Jenova's Witness

  • Right Wing Safety Squads
  • *
  • Posts: 471
  • I ♥ SCIENCE
    • View Profile
.
« Reply #1 on: 2012-09-17 23:14:01 »
.
« Last Edit: 2015-11-16 09:54:02 by Jenova's Witness »

Tenko Kuugen

  • Public Enemy
  • *
  • Posts: 1416
    • View Profile
    • Twitter
Re: Change Materia stat bonus amounts
« Reply #2 on: 2012-09-18 01:09:47 »
Unless that table is found, that info sadly doesn't help me any
and I'm not good enough at hex to search the .exe for this stuff

nfitc1

  • *
  • Posts: 3011
  • I just don't know what went wrong.
    • View Profile
    • WM/PrC Blog
Re: Change Materia stat bonus amounts
« Reply #3 on: 2012-09-18 02:31:03 »
Jenova's Witness is wrong. I do know exactly where that table is, but I won't have it in front of me until tomorrow morning.

Tenko Kuugen

  • Public Enemy
  • *
  • Posts: 1416
    • View Profile
    • Twitter
Re: Change Materia stat bonus amounts
« Reply #4 on: 2012-09-18 02:44:23 »
I think I need to start listing NFITC as special help somewhere in my thread
most of the 'special features' that aren't field code are based on his info

nfitc1

  • *
  • Posts: 3011
  • I just don't know what went wrong.
    • View Profile
    • WM/PrC Blog
Re: Change Materia stat bonus amounts
« Reply #5 on: 2012-09-18 13:52:14 »
Materia Bonuses are stored as signed words (not sure why) and start at 0x8FEEC8 (0x4FD8C8 in the exe) and follow this pattern:

StrBonus, VitBonus, MagBonus, SprBonus (though labeled as MDef Bonus), DexBonus, LukBonus, MHPBonus (as percent), MMPBonus (as percent)

There are 17 used rows of this and four unused as listed here. Don't modify past 0x8FF017 though. Then you'll start screwing with elements.
« Last Edit: 2012-09-18 17:26:55 by NFITC1 »

Tenko Kuugen

  • Public Enemy
  • *
  • Posts: 1416
    • View Profile
    • Twitter
Re: Change Materia stat bonus amounts
« Reply #6 on: 2012-09-18 17:16:45 »
those are memory addresses, I kinda need the .exe addresses ( as usual )

nfitc1

  • *
  • Posts: 3011
  • I just don't know what went wrong.
    • View Profile
    • WM/PrC Blog
Re: Change Materia stat bonus amounts
« Reply #7 on: 2012-09-18 17:27:36 »
What? It's right there.

<.<

>.>

^_^

Tenko Kuugen

  • Public Enemy
  • *
  • Posts: 1416
    • View Profile
    • Twitter
Re: Change Materia stat bonus amounts
« Reply #8 on: 2012-09-18 17:41:55 »
>Last edit by NFITC

I am on to you good sir!