I'm trying to get both a name and the numbers of my list of data 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
Yet it displayed:
1. 71
2. 60.
3. 59.
So I tried this:
<<set $pcStats to {
str: "Strength" 71,
agi: "Agility" 60,
int: "Intelligence" 59,
}>>
Hoping the inventory would display:
Strength 71
Agility 60
Intelligence 59
But got variable errors. :(