[MZ] Dynamic Traits

Right, that's one possibility dealt with.
All I can suggest is that perhaps there should be something about refreshing the cache so that the status window updates. The only reason I'm suggesting this is that that was the bug in a VS plugin where stats were modified by an armour and the status window did not refresh.
Yeah, I've been looking at the rrmz_[x].js scripts to see what I could do for that, as well as looking for answers online. So far, the closest I've come is this post's suggestion, though that's not the most elegant solution nor does it seem to quite work.
I've tried using some of the core script functions that refresh the status window, but those just result in a crash (I suspect because those functions assume the player has the menu window open, and in this case the function is being called from the map rather than the menu window).
Cool plugin!
I'm afraid that, as a non coder, I am unable to think of any other suggestion. It's all way beyond my level of competence.
I have yet to fix the refreshing/cache issue, but I've decided to release this update:
Spoiler: Screenshots
1687462135632.png
1687462160225.png
Overwrite is the functionality that existed before, where it would simply overwrite the value of the given trait. Add takes the value you input and adds it to the existing value, and Subtract takes the value you input and subtracts it from the existing value.

And Kes, I completely understand. Even with this plugin's release, I still consider myself a non-coder.
What I'll probably do is ask some coders for their insight/advice. The wonderful thing about the RPG Maker community - having so many people willing to help each other!
Thank you for the update. It's very helpful to be able to add and subtract, not just overwrite.
There's a refresh() function for anything that inherits from the Window class which may cause it to fix itself and reflect the new values properly. I ended up having to call that in my NameEdit plugin to force the name entry screen to show my changes properly. A lot easier than needing to reload the whole scene!
Would that work for refreshing the status window when the player is on the map, though? I would've thought that refreshing a window/scene really only works when it's actively being displayed.
ah right, you're correct. maybe set a variable in your plugin if things change that means the status window needs refreshing. Then next time the player is in the right scene and the variable is set, refresh the window etc and clear the variable. I'll have a more detailed look when I'm at my desk next ^^;;

Original thread: https://forums.rpgmakerweb.com/threads/mz-dynamic-traits.158540/