For Twine 2.3.8, SugarCube 2.33.2 (cslikesugarcubetemplate1-1.html), SugarCube 2.33.4 (cslikesctemplate1-1t.html)

(UPDATE: I messed up version 1.0, so remade a 1.1 version demo using the codebase of a working game; 1.1t version is based on 1.1 but compiled using Tweego.)

This file may be updated periodically as I learn and build upon the existing code. You need at least some familiarity with the Twine editor and HTML/CSS to understand how to customize the existing template. It is intended for intermediate-level coder who is interested in trying to emulate the look-and-feel of ChoiceScript using Twine.

It attempts to emulate ChoiceScript for:
* Fairmath
* Stats screen
* opposed pair
* Achievement notification

It has more features than default ChoiceScript:
* SugarCube's built-in save game system (here is one of the reasons why ChoiceScript doesn't have save system by default)
* SugarCube's built-in undo (game state's minimum of 1 to a default of 100, set to 2 for a one-level undo) system
* ChapelR's file system, to support export/import of State.variables to transfer between games

Other misc. features:
* character generation can fit in a dialog box window (as opposed to one-question-at-a-time interview style)
* ChapelR's pronoun configuration and template
* HiEV's dynamic event flag system attempts to keep the State.variables array as small as possible (aka you don't need to define every potential flag value at the beginning of the story); for short-term remembering of flags you could also just rely on hasVisited("passage") check instead of a flag value.

Note: I'm currently not considering adding any multimedia element to my Twine game, thus I'm probably not likely to add any related code to this template

Relevant links:
* http://twinery.org
* http://www.motoslave.net/sugarcube/2/docs/
* https://www.motoslave.net/tweego/
* https://intfiction.org/c/authoring/twine
* https://twinelab.net/custom-macros-for-sugarcube-2/demo/
* https://github.com/ChapelR/custom-macros-for-sugarcube-2/
* https://qjzhvmqlzvoo5lqnrvuhmg-on.drv.tw/UInv/Sample_Code.html#Main%20Menu
* https://www.choiceofgames.com

--- other people's Twine templates ----

* Simple Visual Novel Template (using Harlowe story format) for Twine by Sun Labrynth

Download

Download
cslikesugarcubetemplate1-1.html 598 kB
Download
cslikesctemplate1-1t.html 603 kB

Leave a comment

Log in with itch.io to leave a comment.