Complex stat chart help

You can’t use conditionals in stat charts, but you can stack a bunch of one-row stat charts right up next to each other and it looks much the same.

Let’s suppose you want to show relationship variables for any number of people ranging from one to seven. Let’s say their names are: Alice, Bob, Carol, Dave, Eve, Frank, and Gina, and you have seven relationship stats: RelAlice, RelBob, etc. and they’re all FairMath percentages. Suppose that you only want to show them in a stat chart if you’ve met them, so you have seven boolean stats: MetAlice, MetBob, etc.

Then you could write the code like this:

*temp MetAlice true
*temp MetBob true
*temp MetCarol true
*temp MetDave true
*temp MetEve true
*temp MetFrank true
*temp MetGina true

*temp RelAlice 10
*temp RelBob 20
*temp RelCarol 30
*temp RelDave 40
*temp RelEve 50
*temp RelFrank 60
*temp RelGina 70

*if MetAlice
  *stat_chart
    percent RelAlice Alice
*if MetBob
  *stat_chart
    percent RelBob Bob
*if MetCarol
  *stat_chart
    percent RelCarol Carol
*if MetDave
  *stat_chart
    percent RelDave Dave
*if MetEve
  *stat_chart
    percent RelEve Eve
*if MetFrank
  *stat_chart
    percent RelFrank Frank
*if MetGina
  *stat_chart
    percent RelGina Gina

And that would look like this:

Is that what you’re looking for?

4 Likes