Improved Automatic Templates for ChoiceScript

After I posted Debugging ChoiceScript, Dani Church sent me a better version of Automatic Character Templates. Here’s her solution.

Copy the following line into debug_generate_template.txt:

*script for (var stat in stats) {if (stat == “scene” || stat == “sceneName”) continue; println(“*set “+stat+” “+((typeof stats[stat] == “boolean”) ? stats[stat] : (‘”‘+stats[stat]+'”‘)),;}

Then, as described before, add this scene into startup.txt.


This eliminates the need to set up every variable by hand.

Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *