Okay I think I got to the right stuff where I can easily check what I want
but en route I ran across a weird output formatting? I'm gonna scrap this code, it was just to pin down the right details, but I am baffled as to how this produces the output. This isn't even a question really, just a "wtf??"
(NOTE: the line break in the one text line is for readability here and not in the actual code)
CODE: text += "Not naked! " var clothes = globals.state.unstackables.get(person.gear.costume) var accessory = globals.state.unstackables.get(person.gear.accessory) text += "clothes: " + clothes + ", type: " + typeof(clothes) + "; accessory: " + accessory + ", type: " + typeof(accessory) text += "\nClothes Code: " + clothes.code + "\n Accessory Code: " + accessory.code RESULTS: 1393, type: ; accessory:, type: 1393, type: ; accessory:, type: Accessory Code: acchandcuffs
So it did spit out the right details, so now I know how to get it. And I need some error-catching to make sure I'm handling actual variables and not making messy code when they're not wearing anything. And the actual variables there translate to numbers hence the need for a thing to look them up and all (and 1393 appears to be the null entry? I guess?).
but... why did "clothes: " disappear? why did "Clothes Code: " disappear? Do mishandled null entries actually erase part of existing strings???