I’d like to create a stat chart where certain skills only show up if you have points in them. So far the only way I can think of to accomplish this is to create a separate stat chart for each skill, like so:
*if (skill_1 != 0)
*stat_chart
percent skill_1 First Skill
*if (skill_2 != 0)
*stat_chart
percent skill_2 Second Skill
Is there a more efficient way to do this?
Second question – I tried writing:
*stat_chart
percent Skill
${skill_text}
And the description showed up as ${skill_text} instead of as the value of the variable. Again, I could work around this with a different stat chart for every possible value of skill_text, but that’s a rather ridiculous amount of script.
We can’t use arrays, so the only way I can think of is using a text variable which is the concatenation of many variables like what they did in Choice of Vampires. Something like:
and at the end
Skills:
*line_break
${skill_display}
I haven’t tested the above, since I am at work but the above looks laborious and also you may not be able to concatenate multiple variables which requires use of subroutines.
…and so on. What I’m trying to do is display the red and blue stat bar for each skill. As far as I know, there is no way to do this outside of a *stat_chart command, and there is no way to use any conditionals or such within that *stat_chart command.