Removing the save/load sidebar item... and putting it back

Twine Version: Sugarcube 2.3.14

Hi, I’m experimenting with a “hard” mode of my game that removes the save/load feature from the sidebar.

I found this javascript code to use:

$("#menu-item-saves").hide();

Now I’m guessing I need to write this as a function that gets called in my story passage when the player chooses hard mode? Can someone help me with that?

Many thanks in advance!

There’s probably a better way to do this in JavaScript but if you have a variable tracking the difficulty, you could have something like this in :: PassageDone

<<if $difficulty is "hard">><<script>>$("#menu-item-saves").hide();<</script>><</if>>
1 Like

Aha, another special passage!

Sorted, thanks :slight_smile: