So, when I save these f olders like this, and then try to open the index file and test the results, I receive a “line 4: Non-existent variable ‘adaptability’” error.
How can I solve this?
Thanks to all =)
You are very right.
I could have spelt it wrong but, i copied and pasted it here.
Wrong spelling means wrong coding i guess.
And i think there is no wrong spelling; and thats the point i gone mad =)
You should label all variables with lower case letters - try ‘adaptability’ instead of ‘Adaptability’, and so on. That should solve it.
*Note - you don’t need to use lower case for the variables in you stat chart. Using capital letters here simply capitalises the text that is displayed. This is the only time you should use upper case instead of lower case for a variable.
@andymwhy: thanks a lot. you solved my problem =)))
Let me ask another question: How can I create a “hidden stat”.
What I want to do is, create a hidden stat that operates but operates hidden.
Now I learned how to create a default stat, but I still don’t know how to hide it.
Thanks to all again.
Declare the variable in the mygame.js, like every other stat, then simply do not place the stat in the choicescript_stats.txt page. It will still function like every other stat, but the player will not be able to see it.
So, " *set uyum +1" works perfect. (Uyum means adaptation)
But below the Choice 2, " *set acımasızlık +1" isnt working (acımasızlık means ferocity)
Here is the error: Invalid expression, couldn’t extract another token: ık +1
Aww, my problem solved.
It seems, mygame.js isn’t working with “ı, ö, ü” words.
So I changed the names of stats.
Thanks again, ScarletGeisha =)))
If I encounter with another problem, I will ask it to you =))
You should be able to use various commands to still get it to display the characters in the right spots, even if the coding itself is limited to the standard English alphabet.
I get the same error: Non-existent variable “online”.
Now when I define the variable within my scene, I get that error when I hit the “Show Stats” button. And yes, the same variable is in the “choicescripts_stats.txt” file.
I am currently running all this locally through Firefox 13. The sample files work just fine when I run them locally, so why don’t mine? Is it the name of the variable? What else do I need to look at?