▲ 5 r/twinegames
Trouble with nested span replacements
As the title says, I've been using <span id="name'> and <<replace "#name">> to give the players choices without advancing the passage and also making the unselected choices disappear. However, when I try to use one of these inside another <<replace>> macro, it hangs and doesn't display any of the passage text at all. Rough example below:
<span id="first"><<link 'Say something comforting'>><<replace "#first">>
Text text text
<</replace>><</link>>
<<link 'Say something callous'>><<replace "#first">>
Text text text
<span id="second"><<link 'Apologize'>><<replace "#second">>
Text text text
<</replace>><</link>>
<<link 'Double down'>><<replace "#second>>
Text text text
<</replace>><</link>>
</span>
</span>
Is there any way to make this work, or am I just being greedy and I should advance the passage with the nested choice?
u/TigerSauce2019 — 4 days ago