When I was in the choicescript_stat menu, I wrote:
*stat_chart
text Name
text Gender
text Hair
text Nationality
text Personality
text Family
text Type
text Specialization
text Quirk
text Realm
text Weapon
opposed_pair Sanity
Insanity
opposed_pair Morality
Immorality
percent Psyche
percent Health
*if (health <=100) and (health > 95)
Fine
*if (health <=95) and (health > 70)
Good
*if (health <=70) and (health > 50)
Okay
*if (health <=50) and (health > 30)
Danger
*if (health <=30) and (health > 10)
Grave Danger
*if health <=10
Critical
Yet it still says variable 21 “health” is non-existent when I open the choicescrip_stat page only when I open the page in Google Chrome. How do I fix this error?
Note that Google Chrome is considered a poor choice for most ChoiceScript authors as this browser does not
support local scripting and does not give out error messages. Although a
technical workaround is known to exist to allow it to work offline,
most ChoiceScript authors using Chrome can only test their game by
uploading it online. This is inefficient in comparison, and is not
recommended.
If it works in Firefox, call it good and keep going.
I’m not sure but you might need a space between the </=/> and the number. Also I found I had to use double brackets to get things to work often.
ie: *if (( ) and ( ))
Also you only need one variable for opposed stats (ie immorality or morality, not both).
Not sure if this will fix the problem but worth a go.