I want to have something like:
Before you is a can. Do you want to take it?
<<linkreplace "Yes">>You take the can.<</linkreplace>>
<<linkreplace "No">>You leave it be.<</linkreplace>>
Except instead of having two clickable links that expand to reveal more text, I want one of them to disappear after the other one is clicked (effectively having multiple options on the same page.) Is there a macro I could use for this? Thanks!
You can use the separate <<link>>
and <<replace>>
macros, with an enclosing element, to accomplish what you want.
For example:
Before you is a can. Do you want to take it?
@@#can;
<<link "Yes">><<replace "#can">>You take the can.<</replace>><</link>>
<<link "No">><<replace "#can">>You leave it be.<</replace>><</link>>
@@
The above uses the custom style markup to enclose all of the choices, which are then replaced by the associated text when the player activates one of the links.