0 votes
by (120 points)

Hello to all,

I'm new to Twine. I work with Harlowe.

I guess my question is pretty simple: how do you make an option disappear after the player has clicked on the other one?

If I click on Tired, I want the "Stressed." option to disappear and vice versa. It has to stay on the same page.

I've tried with named mark-ups and hooks but it never works.

Should I put a (set:) somewhere? Or an (if:)?

Hints and guidance are much appreciated.

Thank you very much.

(link: "Tired.")
[First: "I'm not sleeping well lately."
Abby: "You're still dreaming of June, aren't you?"]
(link: "Stressed.")
[First: "It's just that... I've a lot going on."
Abby: "I can tell. It's about June, isn't it?"]

 

1 Answer

0 votes
by (159k points)

You need to combine a Named Hook with the usage of the (replace:) macro like so,

|links>[\
	(link: "Tired.")[
		(replace: ?links)[\
First: "I'm not sleeping well lately."
Abby: "You're still dreaming of June, aren't you?"\
		]\
	]
	(link: "Stressed.")[\
		(replace: ?links)[\
First: "It's just that... I've a lot going on."
Abby: "I can tell. It's about June, isn't it?"\
		]\
	]\
]

 

...