By the way, if you want to get the name from the value, you can do this:
var value = MyEnum.DEXTERITYprint("Name of ", value, ": ", MyEnum.keys()[value])
That should print:
Name of 1: DEXTERITY
What you are getting is just a regular dictionary preset with the contents of the enum. So, we can ask it about all the values:
for boost in MyEnum:print(boost)
Which will print:
STRENGTHDEXTERITYCONSTITUTIONINTELLIGENCEWISDOMCHARISMA
And we can also ask it if it has a particular one, for example print(MyEnum.has("ENDURANCE"))
prints False
.
And yes you could edit the dictionary. It is just a dictionary you get initialized with the values of the enum.