If you are requesting technical assistance with Twine, please specify:
Twine Version: 2.3.16
Story Format: SugarCube 2.36.1
Hi there. I’m trying to set up a link that toggles and reveals a players stats on the side ui bar.
My current code looks like this…
<<link "stats">>
<<toggleclass "#stats" "hide">>
<</link>>
<span id="stats" class="hide">
Strength: -6 lol
Intelligence: You get the idea.....
.</span>
And then in my Stylesheet…
.hide {
display: none;
}
Now this works great. However, when I then change to a new passage it hides the stats again.
I’d like it to be a permanent toggle.
In short I would like a text that says “stats” on my left ui bar and when clicked instantly and permanently displays stats until clicked again
Any help would be greatly appreciated.