Here is an updated version:
Code:var cheatgirlname = "zahira" var cheatgirl for (const [key, value] of Object.entries(SugarCube.State.active.variables.npc)) { if (value.hasOwnProperty("girlname")) { if (value.girlname.toLowerCase() == cheatgirlname.toLowerCase()) { cheatgirl = eval("SugarCube.State.active.variables.npc."+key) console.log(value.girlname+' identified as SugarCube.State.active.variables.npc.'+key) console.log('Modify like this: SugarCube.State.active.variables.npc.'+key+'.age = 40') console.log('Or like this: cheatgirl.age = 40') } } }
You don't have permission to view the spoiler content. Log in or register now.
Is there by chance an updated version as all I get is "Undefined" when I try this in Chrome, or am I missing something obvious ?