Editing Items

This page is meant to be a resource for those looking to edit the Save File.

Item ID & Quantity

"itemSave" and "stashSave" are basically the same thing, just for your inventory (itemSave) versus your stash (stashSave). This portion of the code determines what the item actually is. All valid items and their IDs can be found at the Items Page.

"stackSave" and "stashStackSave" are again the same thing, but this time for quantity. If you already have the item and simply want to add more - this is the value to edit! Valid values for this can also be found on the Items Page. Note: I haven't tested to see what happens if you put too high a value - I think it would be fine as long as you don't try to move it!

Save Structure

Deep down, the structure of "itemSave", "stashSave", "stackSave" and "stashStackSave" are the same. They are arrays of 38 values.

The structure can be very confusing until you understand the reasoning behind it. Basically, the game was designed with 12 buttons at the top of the screen, numbered 1-12 (see diagram below). Now, when you are interacting with your inventory, the bolded buttons are the inventory slots and 4, 8, and 12 are navigation (page change, return, etc.).

Button 1 Button 2 Button 3 Button 4
Button 5 Button 6 Button 7 Button 8
Button 9 Button 10 Button 11 Button 12

I guess to make things easy, any references to inventory for the game are made based on an array using the button numbers and page numbers. The cutoffs for the pages are 0, 13, and 26 - leaving the actual data to fall in 1-12 (pg1), 14-25 (pg2), and 27-38 (pg3).


Summary

So what all this really means is that when you are editing the data, you can use the chart below to figure out what field to edit in…

  • Inventory:
    • itemSave: ITEM ID
    • stackSave: Quantity
  • Stash
    • stashSave: ITEM ID
    • stashStackSave: Quantity
Page 1
1 2 3
5 6 7
9 10 11
Page 2
14 15 16
18 19 20
22 23 24
Page 3
27 28 29
31 32 33
35 36 37