u/MistressofLightBulbs

How would I remove the UI Bar, but only in certain passages?

How would I remove the UI Bar, but only in certain passages?

So sorry for the terrible wording of this, but I am fairly new to Twine and code stuff in general. I'm just testing things out for now before I attempt to make an actual game and I've been trying to follow a guide that I found online.

I think some parts of it might be missing and I'm not the best at Javascript so I did some research on google and figured out how to use the StoryMenu passage for links on the UI Bar and I have even discovered the magical line of <<return "Back">> which I thought was really cool until I got locked into a cycle between 'Stats' and 'Just Yeah' and couldn't return to the 'main passage'.

https://preview.redd.it/8p5vje4p9yih1.png?width=926&format=png&auto=webp&s=0c7a18db09ea58fe44a208954c1e26bf01902498

I wasn't totally sure how to fix this so I'm trying to make it so that when you enter the 'Stats' or 'Just yeah' passage, the Ui Bar is taken off the screen or as I have recently learned the correct term for it is 'stow the UI Bar'. In the 'stats' passage I have been using the code:

&lt;&lt;script&gt;&gt;
UIBar.stow();
&lt;&lt;/script&gt;&gt;

But I'm realising that if I do, it will stay that way for the whole thing and I have to put code to unstow it in every other passage.

I was wondering if there might be a way to make the UI Bar unstowed by default, as in it only stows when in either the 'stats' or 'just yeah' passage without me having to put a line of code in every single passage as it is quite inefficient. Once again I'm very sorry if the wording is bad as I'm not totally sure on all the terminology yet. Any advice is much appreciated!

reddit.com
u/MistressofLightBulbs — 9 days ago