I tried to var. but it is error message output like this
"battle line 9: Invalid expression at char 1, expected NUMBER, STRING, VAR or PARENTHETICAL, was: OPERATOR []"
this is my code
//-------------
제 {count} 합 "{name} vs ${EnumyName}"
*stat_chart
text name ::
percent *healthPer 체력
*stat_chart
text EnumyName ::
percent *EnumyhealthPer 체력
//-------------
healthPer is (healthCur/healthMax)*100
I’m not also familiar with English ^^;; very Thank you for help
@Khkim, off-topic but it’s great to see a Korean writer here!
For your problem, what is the default input for the variable?
If you want it to change from a Boolean to a number, instead of starting with the Boolean, start with 0 or 1 (for false true).
If you want it to change from text to a number, it’s probably easier to add an extra variable rather than try to change it.
If you just wish to change the value of the variable, try doing so before the stat_chart. Again, either use a new variable or remember to reverse the variable after the stat_chart.
I try to upload the .txt file. but this place is not support txt file (only jpg, png …)
so I remaind the var information.
in startup.txt
*create healthMax 100
*create healthCur 100
*create healthPer 0
in battle.txt
*set healthCur healthMax
*set healthPer (healthCur/healthMax)*100
and finally i displayed healthPer
*stat_chart
text name ::
percent healthPer 체력
text EnumyName ::
percent EnumyhealthPer 체력
This code displayed health percentage in web
and i tried one thing
make the one var *create healthDummy 0 and before *stat_chart i input the healthPer in healthDummy
i think it is changed type of var. but nothing changed.