Not really necessary because the Highlighted Item Code can be used to do the same thing every time you view an item, but I like being able to have things go to perfect quality without having to go over them first.
Spoiler
local al = getAddressList()
local base = al.createMemoryRecord()
base.Description = "Basket Quality Codes"
base.IsGroupHeader = true
base.options = "[moActivateChildrenAsWell, moDeactivateChildrenAsWell, moRecursiveSetValue, moAllowManualCollapseAndExpand]"
local addr = "Atelier_Ryza.exe+0139AAC8"
local offsetQuality = 0x4
local slotnum = 1
for i = 1, 125 do
local recQuality = al.createMemoryRecord()
local headertxt = string.format("Basket Quality Slot %d", slotnum)
recQuality.Description = headertxt
recQuality.Address = addr
recQuality.OffsetCount = 1
recQuality.Offset[0] = offsetQuality
recQuality.appendToEntry(base)
recQuality.type = vtWord
offsetQuality = offsetQuality + 0x42
slotnum = slotnum + 1
end
local base = al.createMemoryRecord()
base.Description = "Basket Quality Codes"
base.IsGroupHeader = true
base.options = "[moActivateChildrenAsWell, moDeactivateChildrenAsWell, moRecursiveSetValue, moAllowManualCollapseAndExpand]"
local addr = "Atelier_Ryza.exe+0139AAC8"
local offsetQuality = 0x4
local slotnum = 1
for i = 1, 125 do
local recQuality = al.createMemoryRecord()
local headertxt = string.format("Basket Quality Slot %d", slotnum)
recQuality.Description = headertxt
recQuality.Address = addr
recQuality.OffsetCount = 1
recQuality.Offset[0] = offsetQuality
recQuality.appendToEntry(base)
recQuality.type = vtWord
offsetQuality = offsetQuality + 0x42
slotnum = slotnum + 1
end
I also recommend *not* putting this in any cheat tables you're uploading pre-run. It doesn't do anything that can't be more elegantly done with a single script entry, and having a ton of codes makes the file size needlessly large (Originally I made myself full basket modifiers for each basket slot, but the cheat table size got pretty ridiculous). This is just how I do it because I don't know how to do assembly but I know how to do LUA, so... when all you've got is a hammer and all that.
How to use this cheat table?
- Install Cheat Engine
- Double-click the .CT file in order to open it.
- Click the PC icon in Cheat Engine in order to select the game process.
- Keep the list.
- Activate the trainer options by checking boxes or setting values from 0 to 1