SugarCube code collection to emulate the look of ChoiceScript
Unfortunately I cannot make this code collection friendly to absolute beginners. But hopefully the updated code is at least more useful to those with some familiarity with ChoiceScript, SugarCube, and maybe Javascript in general.
Since the latest upgrade of Twine desktop app and webapp, I have not been able to use them as easily as before, either running into issue of the app not changing default format to SugarCube or crashing. So I'm only preparing a version of code based on my workflow that relies on Tweego compiler to generate the final index.html. Please note that I purposely removed the IFID value in the storydata.tw file. The compiler will generate/suggest another value when you first try to compile this code collection.
I recommend VSCode if only for Cyrus Firheir's Twee 3 Language Tools extension for that editor. VSCode also has extensions available for ChoiceScript (by Stephen Grenade) and Ink. In addition, there is the option to "Open In Integrated Terminal" to have a built-in command line access to use windows batch file or other compiling scripts. But you are of course free to use other editors that have support for those languages and/or are easier for your workflow.
Recommended proofing formats (illume for word-counting, and dotgraph for flow-diagram) are included in the "storyformats_fortweego.zip" file.
I learned so much over two years of writing a project in SugarCube (as well as recently finishing converting a ChoiceScript project over to SC), and received a lot of active and passive support from SC veterans on the Twine discord server. Thank you.
Relevant links:
- Tweego compiler (documentation)
- SugarCube 2 Documentation
- SugarCube 2 embedded font-awesome icon code (there are a few errors; see comments in "vendor/tme/tme-fa-icons.css" for specifics)
- Relevant Tools and sample code:
- Visual Studio Code
- Pier 17's SugarCube customizer (for bundling custom macros at the start of a fresh new project template)
- Chapel's SugarCube macros
- Cyrus Firheir's SugarCube-related code collection
- Gwentastic's SugarCube macros
- Hituro's SugarCube macros (the tab system is great for partitioning your Stat page into sections, or make a glossary interface)
- HiEv's SugarCube-related code collection
See a (no commentary) visual guide of the basics of setting up Tweego
Updated | 1 day ago |
Status | In development |
Category | Other |
Platforms | HTML5 |
Rating | Rated 4.7 out of 5 stars (9 total ratings) |
Author | brushmen |
Made with | Twine |
Tags | sugarcube, Project template, Twine |
Code license | Mozilla Public License 2.0 (MPL) |
Average session | A few seconds |
Languages | English |
Inputs | Keyboard, Mouse, Touchscreen |
Accessibility | Color-blind friendly, High-contrast, Blind friendly |
Development log
- some quirks with wrapping strings inside quotation marksApr 24, 2023
- variable types and string TemplateApr 23, 2023
- storyinit.twApr 23, 2023
- storydata.twApr 23, 2023
- config.jsApr 23, 2023
- "compile.bat", task automation for compilingApr 23, 2023
- Preparation StepsApr 23, 2023
Comments
Log in with itch.io to leave a comment.
This is great! Thanks for sharing ^_^
Keeping an eye on this one. :)
thanks for sharing this!
Thanks! Let me know if there’s any issue in making it work for you.