In the latest version of ChoiceScript, available on Github, the *create command has changed; this could break your existing game.
IF YOU HAVE A WORKING MYGAME.JS FILE: You should be able to just delete all of your *create lines (they’re redundant with mygame.js) and be fully compatible with the latest version of ChoiceScript.
OTHERWISE: You’ll need to make sure your first scene file is called “startup.txt” and that all of your *create commands appear at the very beginning of that file.
Furthermore, whereas before you’d just use the command “*create leadership” to define a leadership variable, now *create requires you to specify a starting value for each variable you create, e.g. “*create leadership 50”.
In addition to changing *create, the new version of ChoiceScript introduces two new commands: *title and *scene_list. The *title command changes the on-screen title of the game, like this:
*title Choice of the Dragon
The *scene_list command allows you to declare the list of scenes in order, which you used to have to change in mygame.js
That certainly makes things more non-coder friendly. I imagine the idea is that people shouldn’t have to edit anything (index.html, mygame.js etc) but the text/choicescript files?
One suggestion I’d make in regards to that is a command to change the the text on the stats button, just the front side - so people can write “Stats” or “Inventory” or “Quest Log” or whatever suits their fancy (“Return to Game” can stay the same).
I’d also enquire as to whether it’s worth *temp requiring (or at least allowing) an initial value setting.
Other than that, good job - I think these will be very beneficial changes, and I look forward to more in the future (*goto_sceneref – pretty please?!).
EDIT: Thanks for the IE *input_number fix! Whenever that was done
Yes, *temp has also been updated to allow (but not require) a value. You don’t have to change anything, but if you’d like, you can now write “*temp winner true”.
One major gotcha with using references like this is that quicktest can’t guarantee the correctness of your code, but perhaps that’s worth it. A related idea is to be able to hint to quicktest that a variable can only take certain enumerated values (“alice” “bob” “carol”), and that a percentile stat must be numeric.
Is *title supposed to change the title of the game on the starting screen? Because it changes it on the browser border but the starting screen is still My First ChoiceScript Game.