Help making *stat_chart


#1

I have problems creating the stat chart.
what I did is this

when I check it, It always says:

on my startup I did put
*create charm
*create intelligence

It only shows “This is the stats screen!”


#2

I’m assuming you want it displayed as percentages? If so, you need to use:
*stat_chart
percent charm
percent intelligence

text isn’t a valid Choicescript command as far as I’m aware.


#3

Furthermore they have to numbers right? or a set text? at the moment those variables are created but not defined.


#4

If you want to use text,

*create charm 0, you need the number

*stat_chart
–text charm


#5

Like lmon said, you need to define the stat when you create it:

*create charm 0
*create charm true
*create charm "gorgeous"

would all work, depending on whether you want the variable to be numeric, a Boolean, or a string.


#6

Ok basicly, if you want it to be displayed as a text then in the startup file would need to be:

*create charm ""

then in the stat_chart

*stat_chart
Text charm

But if you want it to be displayed as a varable or as a percent. then in the startup file would need to be:

*create charm 0 or as any other number…

Then in the stat_chart would need to be displayed as…

stat_chart
  percent charm

or

${charm} this is the amount of charm you have.

But you can not have a number for a text or vise versa.


#7

Correction: you can display numbers as text in a stat chart.

*set charm 1

in startup and

*stat_chart
  text Charm

in the stat chart will display

Charm 1

You can also, oddly enough, display a string with “percent”:

*create charm "gorgeous"

in startup and

*stat_chart
  percent Charm

in the stat chart will display

Charm: gorgeous%

The ChoiceScript IDE is handy for testing bits of code like this and seeing what can and can’t be done…