Twine Version: 2.11.1.0
I’m using Sugarcube 2, and while I have some basic HTML, CSS, and Javascript knowledge I’m mostly self-taught and don’t know much of the terms and words for what I’m looking for, so I apologise if I am unclear or if I don’t understand specific terms. Essentially; explain like I am five years old.
I have clickable text that reveals new text (using linkreplace and append). The way I have it written is to make the revealed text appear underneath the initial text, and I want to keep it that way.
What I am looking for is a way for the game to remember what has been clicked (and thus revealed) and what has not when moving between passages. This is to minimise the amount of times a player has to reclick the same things when exploring rooms or scenes ie. moving between passages. I have nested appends in passages, and I figure that can grow tiresome if you have to retrace these nested lines of text multiple times. At the same time, I do not want all information to be on screen immediately, both due to spoilers, but also as to not overwhelm players with walls of text. I have seen the Line-by-line text reveal by JoshuaGrams(was not allowed to link this, maybe since I’m new?), but since my story isn’t linear, and my Javascript knowledge isn’t that great, I haven’t been able to use it; though I like the function of being able to switch between passages and still only have what has yet been revealed fully visible.
I figure there is a way to do this using StoryInit and setting $variables, but I have never used these functions before, and it’s tripping me up. What are the pros and cons using these functions to remember revealed text, and how could I implement it? Does it scale well? Is it possible at all, or have I misunderstood use of variables?
Here is how I have some of the passages written. I don’t mind having to change things around for this to work, but preferably this will keep it’s base functionality:
<<nobr>>
Initial Text Start,
<<linkreplace 'OBJECT_A'>>
OBJECT_A
<<append '#more' t8n>>
<br>
DESCRIPTION OF OBJECT_A. FOLLOW-UP TEXT WITH
<<linkreplace 'ACTION_A'>>
ACTION_A
<<append '#more' t8n>>
<br>
RESULT OF ACTION_A.
<</append>>
<</linkreplace>>
.
<</append>>
<</linkreplace>>
, CONTINUES
<<linkreplace 'OBJECT_B'>>
OBJECT_B
<<append '#more' t8n>>
<br>
DESCRIPTION OF OBJECT_B.
<</append>>
<</linkreplace>>
FINALLY
<<linkreplace 'OBJECT_C'>>
OBJECT_C
<<append '#more' t8n>>
<br>
DESCRIPTION OF OBJECT_C.
<</append>>
<</linkreplace>>.
<</nobr>>
@@#more;@@
Thank you so much for any help!