Last updated: 17 Jul 19 16:48:44 (UTC)

Various Useful Hacks & Tutorials

GENERAL RESOURCES https://twinery.org/cookbook/ https://www.motoslave.net/sugarcube/2/docs/ http://www.adamhammond.com/twineguide/

MAKING A USER-INPUT PASSAGE REQUIRED BEFORE PROGRESSING http://twinery.org/questions/26657/user-input-and-other-things

http://twinery.org/questions/4408/how-can-use-radio-buttons-and-allow-for-only-single-selection

https://www.reddit.com/r/twinegames/comments/8evet2/is_there_a_way_for_text_input_to_be_required/

MARKUP STYLES FOR SUGARCUBE http://www.motoslave.net/sugarcube/2/docs/#markup-style

MULTIPLE BACKGROUND IMAGES

https://www.reddit.com/r/twinegames/comments/8b9fq2/twine_sugercube_multiple_background_images/

PRELOADING IMAGES

https://twinery.org/forum/discussion/8195/preloading-background-images-sugarcube-2-0-twine-2

RADIO BUTTONS

http://twinery.org/questions/1084/help-using-radiobutton-assign-multiple-variables-sugarcube

http://twinery.org/questions/2831/sugarcube-radiobutton-variables

TIMER MACRO http://twinery.org/questions/1807/timed-forced-change-passage-sugarcube-2

ROLLING TEXTS IN THE “COMSPROTESTS” POPUP

Started from here, using timers and replace macros to create a rolling animation effect: https://twinery.org/cookbook/playerstatistics/sugarcube/sugarcube_player_statistics.html

BUTTON MACRO http://www.motoslave.net/sugarcube/2/docs/#macros-macro-button

TEXT INPUT FIELDS

https://twinery.org/forum/discussion/5948/how-do-i-allow-the-player-to-choose-their-name

https://videlais.com/2015/04/21/twinetuesday-twine-2-0-user-input-in-sugarcube/

https://twinery.org/forum/discussion/8722/new-to-twine-how-do-i-make-a-text-box-or-input-text

TEXT INPUT FIELDS - VARIABLES

http://twinery.org/questions/8605/harlowe-how-do-i-save-a-text-input-field-as-a-variable

ASSIGNING PRONOUNS

http://twinery.org/questions/8930/assigning-pronouns-through-statement-dropdown-sugarcube

TEXT TRANSPARENCY

https://stackoverflow.com/questions/10835500/how-to-change-text-transparency-in-html-css

USING GOOGLE FONTS

https://stackoverflow.com/questions/14676613/how-to-import-google-web-font-in-css-file

CSS IMAGE CLASS

https://twinery.org/forum/discussion/2595/adding-image-class-in-twine-2-x-sugarcube

CYCLING LINKS, including CSS styling (SugarCube Macro via Javascript) https://www.glorioustrainwrecks.com/node/5020

CYCLING LINKS TO LEAD TO DIFFERENT PASSAGES BASED ON SELECTION https://twinery.org/forum/discussion/4937/cycling-link

RECORDING GAMEPLAY DATA

(I now have a clearer, more complete how-to in Evernote, based on these tutorials and my game.)

http://ivyfae.com/twine/macros/gdoc/#4

https://web.archive.org/web/20161114193246/http://blog.ivybaumgarten.com/twine-macros-for-google-drive-spreadsheets/

https://www.johnastewart.org/coding/twine-game-data-to-google-sheets-via-javascript-version-2/

https://videlais.com/2018/05/16/working-with-google-sheets-in-twine/

USER ID LOGIN PAGE

FINAL SOLUTION: http://twinery.org/questions/46348/sugarcube-2-21-solved-pull-in-array-to-game-from-google-sheet?show=46511#a46511 (ALSO NOTED IN EVERNOTE)

Used this tutorial: https://twinery.org/forum/discussion/6486/sugarcube-2-7-0-if-conditionals-with-two-textboxes-and-multiple-variables

Basically, created array with login ids, checked whether what was entered in the box was in the array.

https://twinery.org/forum/discussion/8869/twine-1-4-2-sugarcube-2-password-system-and-age-restriction

POPUPS

See my note in Evernote.

https://twinery.org/forum/discussion/7276/sugarcube-how-to-have-pop-up-menus-use-ui-alert

http://twinery.org/forum/discussion/comment/10126/#Comment_10126

KEEPING THE BACKGROUND IMAGE FROM SCROLLING WITH THE TEXT

https://twinery.org/forum/discussion/5034/questions-about-manipulating-orienting-background-images (SOLUTION ALL THE WAY DOWN AT THE BOTTOM)

STYLING BUTTONS http://twinery.org/questions/8851/styling-buttons-in-sugarcube

http://twinery.org/questions/45886/twine2-sugarcube2-change-link-button-color-for-button-link?show=45887#a45887

USING GOOGLE SHEETS TO COLLECT FILES https://www.labnol.org/internet/file-upload-google-forms/29170/