Stat screen coding question


#1

So when you click to view your stats i was want what stats it shows to change depending on your character’s age.

example the stat chart i want you to see if your characters under 14
*stat_chart
text name
text Leadership
text Honesty
text Strength
text Persuasion
text Intelligence

but once your fourteen the player should know that stats like spiritual and nature and magic exist so well i wanted then hidden at first but after that part of the story i want you to be able to see those stats so want the chart to look like
*stat_chart
text name
text Leadership
text Honesty
text Strength
text Persuasion
text Intelligence
text Nature
text Magic
text Spiritual

And once your 18 i want the chart to look like
*stat_chart
text name
text Leadership
text Honesty
text Strength
text Persuasion
text Intelligence
text Nature
text Magic
text Spiritual
text Gold Your money
text health

And once your 25 i want the player to be able to view even more information seeing has how you will be king.
*stat_chart
text name
text Leadership
text Honesty
text Strength
text Persuasion
text Intelligence
text Nature
text Magic
text Spiritual
text Gold Treasury
text health
percent Rebellion Chance your subjects will rebel against you
percent kingdomsize amount of the country your kingdom owns
text kingdompersonality Your kingdom is very
text spouse Your married to
text childname
text childgender
text childage
text subjectoppinion Your subjects think your

so how would i go about making the stat screen only display the proper chart for your characters age variable? although i might make the kid its own chart and kingdom stats in its own chart so how you i set those to display only if you were king and if only you have a kid?


#2

Use *if commands in the stats page.

Check out my stats and how they are raised topic it will give you an example of what to do.


#3

i tried using if commands it kept giving me errors can you show me an example of a if statement that would work on the stat screen?


#4

Never mind i found a way to do thanks for pointing me in the right direction Nocturnal.


#5

You’re welcome. Happy to help!