+1 vote
by (190 points)

Hi,

 

I am very new to twine and really want to make an interactive story in which players can choose one item per room. I basically want to ensure that if they make a choice, the other choices will disappear. I've put an example below, please help me because it's more a university project, due in 2 weeks! 

 

Thanks!


The room is layered with peeling ocean blue wallpaper with stained light green carpet and decorated with photographs of wildlife. The smells from the brown couch, damp from the wallpapers and rotten cat food in the corner which is sorrounded by flies follow you as you walk cautiously around the room. 
A beautiful stone ornament stands on top of a stained glass coffee table, on the left wall is a bright childs painting and on the mantlepiece is a decorated small wooden box. 

[[stone ornament]]
[[child's painting]]
[[small wooden box]]

 

1 Answer

+1 vote
by (159k points)

In your example you are using markup based links that when selected result in the Reader being shown another Passage, based on your question it is unclear if:

1. You want the Reader to keep viewing the same Passage after selecting one of the links, and for the non selected links to disappear.

2. You want the Reader to only see the markup link they selected each time they revisit this Passage.

3. Something else entirety. 

...I will assume you meant use-case 1.

This answer to the When a link is pressed another one disappears. question explains one method that uses a named hook combined with (replace:) macros to achieved use-case 1, and an example (using that method) based on your own would looking like the following:

The room is layered with peeling ocean blue wallpaper with stained light green carpet and decorated with photographs of wildlife. The smells from the brown couch, damp from the wallpapers and rotten cat food in the corner which is sorrounded by flies follow you as you walk cautiously around the room. 
A beautiful stone ornament stands on top of a stained glass coffee table, on the left wall is a bright childs painting and on the mantlepiece is a decorated small wooden box. 

|links>[\
(link: "stone ornament")[(replace: ?links)[stone ornament]]
(link: "child's painting")[(replace: ?links)[child's painting]]
(link: "small wooden box")[(replace: ?links)[small wooden box]]\
]

 

by (190 points)
thank you for your help!
...