Hello,
I need help do make an random selctor, which deletes an Option after i visit the Passage in "Twine Sugarcube 2.31.1
That is what I got now.
<<set _psg to either(
‘passage 1’,
‘passage 2’,
‘passage 3’
)>>
<<button ‘link text’ _psg>><>
How can I delete oder deactivate an Option after I visited it.
Like I get random “Passage 2” and I use the Random Button again so there are only “Passage 1” and “Passage 3” available to get.
That does basically the same thing, but it doesn’t need to use a story variable or the StoryInit passage, because it uses the hasVisited() function to determine if the player has visited the passage already or not, and builds an array of only the unvisited passages.
Hope that helps!
P.S. Any code you post here should be put inside of a “Preformatted text” marker (using the </> button), otherwise this forum tends to eat macros and the like.