Code: Select all
[h: Strength = 10]
[h: statName = "Strength"]
Obviously, doing [statName = 20] will just change the statName variable. [eval(statName) = 20] gets a little closer, as it actually returns the value of the variable named in statName, but it doesn't assign anything - it just returns 10, seemingly ignoring the equals sign and so forth. I feel like there's got to be a way to do this, and it's something simple enough. (I'm a little surprised that eval(statName) returns 10 and not "Strength".) Any thoughts on what I'm missing here, please?