conditional stat in stat menu

In the stats menu i want a part that reads

werewolf: yes/no

depending on whether the player chooses to contract lycanthrope or not
how do i do this

Use an *if statement.

*if (lycanthrope = "yes")
  *stat_chart
    text werewolf Werewolf Yes
*else
  *stat_chart
    text werewolf Werewolf No
2 Likes

Or

*create werewolf “no”
*set werewolf “yes”

*stat_chart 
    text Werewolf

Would do the same. With less code :slight_smile:️

It depends on whether they want the werewolf stat to appear on menu before they can contract it or not. Which if they do then.

*create lycanthropy false
*set lycanthropy true

*if (lycanthropy) 
    You have contracted lycanthropy. 

Which would only appear if they have.

4 Likes