URM's codeview already kind of detects variable changes. Things likeThis would be seriously interesting metaprogramming, but also may not be possible, depending on how renpy compiles down$
. It might be as simple as hooking into the store and wrapping some of its built in functions, but I am not a python expert, so this is probably me oversimplifying.
$ somevar += 1
are doable, but there are many edge cases. Like variables that are modified through a function or screen.URM's variable monitoring was already very hard to get reliable.