Code: Select all
{"Hide In Shadows":{"baseChance":10,"armorMod":0,"racialMod":0,"dexMod":5,"otherMod":0},"Detect Noise":{"baseChance":15,"armorMod":-5,"racialMod":0,"dexMod":0,"otherMod":0},"Climb Walls":{"baseChance":45,"armorMod":-5,"racialMod":0,"dexMod":10,"otherMod":0}}
I've tried
Code: Select all
[h: mySkills = getProperty("Skills")]
[h: mySkills = json.sort(mySkills)]
But it bitches about the sort. Is there a method to sort the way I'm storing those properties? To be clear I want to sort the "Hide in Shadows", "Detect Noise", "Climb Walls"/etc so when I do a foreach on mySkills they are in order alphabetically.