What i found out with some help and a lot of testing and info from other forums, I have figured out the pattern of how the inventory values work , and while i don't have it down to a formula or have all the item IDs (its really tedious and complicated
compared to Bravely Default) I can share my findings here and hopefully someone else can use what i gathered to make a proper item list. But here's how it works:
Firstly, it is SORT of similar to default, but not quite, so the system :
In
Bravely Default, inventory was stored as, for example, 40 E2 r4 qq (for Zweihanders).
- q = (Item Amount) / 4
- r = remainder of ((Item Amount) / 4)
A simple way of saying this would be to add 40 E2 04 01 to the last part of the values located where the inventory was stored in the .sav for
Bravely Default. (This would add four Zweihanders as well as allocating a new inventory slot for them in the inventory menu.)
That system only works ...like 25% of the time, with the codes even being similar to the default codes. But here's where things get complicated, firstly, instead of using the same formula for each inventory slot, it ROTATES through a series of formulas
of storing data per item slot. Basically like +xx x0 38 ?a 0b for the first item, +xx E2 c4 0d for the second item, +xx 88 e3 ff for the third, which loops back to +xx 38 ?a 0b for the fourth.
+xx is the offset applied to the previous set
?a is a sequence of numbers which determines the quantity of the item.
09 = 01, 11 = 02, 11 = 03, 19 = 04....etc etc
And 0b is 01 = 31, 02 = 62.........etc etc
c4 is a sequence of numbers where
24 = 1, 44 = 02, 64 = 3 ............
and 0d is 01 = 8, 02 = 16 ................
ff is a sequence of numbers
02 = 1, 04 = 2 , 08 = 3 ................ 1C = 14 ..................C6 = 99
So basically, for Strength buns for example, if Str buns are in the 1st sequence, it'l be
+C0 9A 93 01 for 3 STrength buns. (i have no idea how to use str buns for the other sequences, my head is already exploding as it is
)
the other sequences have their own formula for item IDs, and i cant figure them out, my brain is already tired so imma go take a break. Sorry if this looks complicated (my head is spinning) and hopefully someone can use this to do proper item IDs.
Here's my save file if anyone wants to glean anymore info, it has some buns added and random consumables added from the start of the game in there. (just get rid of the .txt)