I'm trying to limit the numbers being set in the inspector to positive integers, and i've used a set function to enforce the absolute value, however, i've chosen to export a dictionary containing the variables rather than the variables themselves in order to organize the conglomerate of settings i'm creating in the inspector. as shown:
var XP: int = 0 setget set_XP
var level: int = 1 setget set_level
export(Dictionary) var Leveling = {
"XP" : XP
"Level": level
}
set_XP (new_value):
XP = abs(new_value)
set_level(new_value):
level = abs(new_value)
so.. why isn't this working.. and is there a way to make it work?