Please use the Insert Code Snippet button when including code examples with your questions or comments, it makes them easier to see and read.
You can use a named hook combined with a (replace:) macro to achieve the effect you want.
First long sentence with choices at the end.
|firstchoices>[\
[[Choice 1->Next Passage]]
(link: "Choice 2")[\
(replace: ?firstchoices)[\
Second long sentence with choices at the end.
[[Choice 3->Next Passage]]
[[Choice 4->Next Passage]]
]
]
]
note: If you are planing to chain multiple of choice replacement effects together on the same page, or if the content the choices are being replaced with is long or complex, then I suggest placing that replacement content within child passages and using a (display:) macro within the (replace:) macro call.
1. The (parent) passage that all the choices will appear in.
First long sentence with choices at the end.
|firstchoices>[\
[[Choice 1->Next Passage]]
(link: "Choice 2")[\
(replace: ?firstchoices)[(display: "Second Choices")]
]
]
2. Possible content of the Second Choices child passage.
Second very long content that includes \
(if: $variable is "value")[some] \
(else:)[dynamic] \
parts
|secondchoices>[\
[[Choice 3->Next Passage]]
(link: "Choice 4")[\
(replace: ?secondchoices)[(display: "Third Choices")]
]
]