I'm writing a game with Sugarcube 2.18.0 and I need some help.
In my game, the player visits a house with many rooms. In each room, the player can 'remember' memories. I've designed it such that each memory is a passage, and every time the player clicks 'remember', a random passage is chosen (i.e. a random memory is displayed.)
For example, when the player choses to enter the garden:
<<set $Garden to either(
'Before my piano recital',
'December 9th 2012',
'May 23rd 2012'
Would you like to take a walk around the <<link 'garden' $Garden>><</link>>?
So when the player clicks the link 'garden', a random passage/memory of the garden will be displayed.
From there, I'd like to make it such that the player can choose to 'remember' another memory, or move on to the next room.
How can I make it such that the player does not revisit the same memory twice? Since the passages are picked randomly from the $Garden set. Is it possible to delete the current passage the player is on from $Garden set to prevent it from being picked again?
And once the player has finished running through all the passages in $Garden set, how do I then display a new passage (essentially telling them that there are no more memories in this room, and they have to advance to the next room.)
Hope I explained myself well enough. Any help will be appreciated :)