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]+'”‘)), this.target);}
Then, as described before, add this scene into startup.txt.
*scene_list
startup
chapter1
chapter2
debug_generate_template
This eliminates the need to set up every variable by hand.