Author Topic: Editing Accessory Stats  (Read 1637 times)

Agent 12

  • Zurvan Surfer (+2500)
  • *
  • Posts: 2572
    • View Profile
Editing Accessory Stats
« on: September 01, 2008, 07:39:19 pm »
Do we have a way to edit the actual "values" increased by accessories?  For example make hit ring give a few more %, or make the power glove increase strength by a couple more points?

It seems like all the editors have you select from predetermined stats so I'm not sure if the values are some how predetermined...or atleast not stored in an easy to edit way.

--JP

JLukas

  • Fan Project Leader
  • Squaretable Knight (+400)
  • *
  • Posts: 426
    • View Profile
Re: Editing Accessory Stats
« Reply #1 on: September 01, 2008, 11:52:05 pm »
Some accessories jump to special code (mostly in bank $01 from what I've seen) during battle processing, and may be loading hardcoded stat values/percentages from there.

Agent 12

  • Zurvan Surfer (+2500)
  • *
  • Posts: 2572
    • View Profile
Re: Editing Accessory Stats
« Reply #2 on: September 02, 2008, 12:30:26 am »
I expected that for some accessories particularly those that don't require stats..for example counter attack increase, the roks, green dream etc.  But is it true for those that edit "core stats" i.e. the ones that  can see it change in the menu itself.

I'm thinking of doing an editor if there's some sort of pattern but i doubt there'd be an easy to decipher pattern for accessories that go to jump to special code.

--JP

JLukas

  • Fan Project Leader
  • Squaretable Knight (+400)
  • *
  • Posts: 426
    • View Profile
Re: Editing Accessory Stats
« Reply #3 on: September 03, 2008, 07:52:53 am »
I looked into the core stats.

0C29D7   0C2A02   DATA  Stat increase amounts for equipment, 2 bytes each, 22 total

The first byte is bit flags for the stat type:

01 ???, possibly reserved for special effects
02 Magic Defense
04 Magic
08 Evade
10 Hit/Strike
20 Stamina/Vigor
40 Speed
80 Power

The second byte is the value to add.

Here are the 22 sets and the equipment that use them:

00 - nothing
01 - Speed +1 ($89 Gloom Helm, $95 Bandana)
02 - Hit/Strike +2 ($96 Ribbon)
03 - Power +2 ($97 PowerGlove)
04 - Stamina/Vigor +2 ($98 Defender)
05 - Magic +2 ($05 Red Katana, $99 MagicScarf)
06 - Magic Defense +5 ($66 Lumin Robe)
07 - Speed +3 ($9B Dash Ring, $7A Taban Suit)
08 - Hit/Strike +10 ($9C Hit Ring)
09 - Power +6 ($9D Power Ring)
0A - Magic +6 ($9E Magic Ring)
0B - Magic Defense +10 ($6A ZodiacCape, $6D Moon Armor, $8B Taban Helm, $9F Wall Ring)
0C - Power +4 ($AC PowerScarf)
0D - Speed +2 ($10 Slasher, $79 Taban Vest, $AD Speed Belt)
0E - Magic Defense +15 (UNUSED)
0F - Stamina/Vigor +6 ($B4 MuscleRing)
10 - Magic +4 ($40 Rune Blade)
11 - Magic Defense +12 ($B5 Flea Vest)
12 - Magic +5, Magic Defense +5 ($B6 Magic Seal)
13 - Power +10, Stamina/Vigor +10 ($B7 Power Seal)
14 - Magic Defense +5 ($63 Dark Mail)
15 - Magic Defense +9 ($86 Prism Helm)

Examples:

PowerGlove uses index $03, located at 0C29DD-0C29DE.  The first byte is $80 (Power) and the second byte is $02 (+2 Power)

Hit Ring uses index $08, located at 0C29E7-0C29E8.  The first byte is $10 (Hit/Strike) and the second byte is $0A (+10 Hit/Strike)

Notes:

You can set multiple stat bits to add the second byte value to several stats (see Magic Seal/Power Seal above)

The changes you make to these sets will affect all items that use that index.  PowerGlove and Hit Ring are only one each, but watch out when working with an index like $0D - setting the add value from 2 to 5, for example, will give +5 for all 3 items.

Agent 12

  • Zurvan Surfer (+2500)
  • *
  • Posts: 2572
    • View Profile
Re: Editing Accessory Stats
« Reply #4 on: September 04, 2008, 12:06:41 am »
Nice, this is exactly what I was looking for.  Plus it's an incredibly easy pattern making an editor will be a snap :).  It seems like the current editors simply allow you to edit the index into this section of data.  Definitely a missing link in item editing that I can fill.


--JP

JLukas

  • Fan Project Leader
  • Squaretable Knight (+400)
  • *
  • Posts: 426
    • View Profile
Re: Editing Accessory Stats
« Reply #5 on: September 05, 2008, 12:46:20 pm »
Accessory $A8 Third Eye (Evade x2) is a great example of an item that has special code to handle it.  The checks are located at the following addresses:

02913D-029146
02A5ED-02A5F6
02E190-02E199

Three checks exist because there is one for the inventory Main Menu, Equip Menu, and Shop Menu.  All three would have to be updated to correctly give the Accessory different properties.