One more thing.
I'm trying to get both a name and the numbers of my attributes to display in the inventory.
Using the above method I can get the numbers to list, but not the actual sub-variable name.
As an example my variable is like this:
<<set $pcStats to {
str: 71,
agi: 60,
int: 59,
}>>
and my StoryCaption code is like this:
<<set _txt = "Attributes:">><<for _skillValue range $pcStats>>\
<<set _txt += "\n# " + _skillValue>>
<</for>>_txt
And it displayed:
1. 71
2. 60.
3. 59.
So I tried this:
<<set $pcStats to {
str: "Strength" 71,
agi: "Agility" 60,
int: "Intelligence" 59,
}>>
But got variable errors. :(