How to implement choices in the same paragraph?

Twine Version: 2.4.0
Story Format: Sugarcube 2.36.1

I wish to implement choice system where dialogue plays slightly different with each choice.
Example of a passage-
[Choice 1]
Para 1 shows up
[Choice 2]
Para 2 shows up

I wish to make it so that when one choice is selected, the other one disappears until the paragraph is visited again.
I tried using linkreplace but it doesn’t work. I also do not want to make different paragraphs for just one line of text.
Please help…

For situations like this, you can use the <<replace>> macro, like this:

<div id="choice">
	<<link "Choice 1">>
		<<replace "#choice" t8n>>
			Paragraph 1

	<<link "Choice 2">>
		<<replace "#choice" t8n>>
			Paragraph 2

Thank you!

1 Like