Here is the trick... People in this game have 2 ids attached.Right - let's make Astrid Av107 a starlet... in the "Your House" view - hit F12 for the console on Chrome
enter
"SugarCube.State.variables.npc.av107.traitstarlet = 100"
I get
"100"
I leave the house for the "Redhaven" view - i.e. clicked something / pulled another page - return, click on Av107 traits... and no starlet... works with the scripted ones, though.
Any obvious mistakes here?
First one is so called avid. You use it to access their data like in the line above where you tried to change trait value. The second id is so called girlid (name of the var it's saved as). Both ids are the same if they are less than 100. So all "scripted" npcs have avid and girlid equal. Regarding random people (avid >= 100). Some of them are actually scripted as well but whatever.
In case of Astrid she has girlid 107, not avid. Her images are in the directory AvRan/Av107 which is confusing. But these two "av107" are not the same. She is not stored in your game as av107, most likely not. So you are trying to set starlet trait for someone else. You need to find proper storage key for her in order to change her stats since it can be different in two playthroughs.