Please specify version and format if asking for help, or apply optional tags above:
Twine Version: 2.3.5
Story Format: Harlowe 3.1.0
These macros are working more or less fine for me (the actual name in the confirm prompt is showing up as " " instead of the value collected in (prompt:) but it’s showing up correctly outside of (confirm:) so I’ll mess with it later), but what I would like to do is loop the two popups ((prompt:) and (confirm:)) until $confirmName returns true.
I tried using the (for:) macro (and swapped out (for:) for (loop:) since they appear to be interchangeable), but by the looks of it, (for:) was designed more with cycling through array values and datasets and less for what I’m intending. If it helps, the script I was attempting to execute with this macro looked something like this:
(set: $name to (prompt: "What is your name?" "name")) (set: $confirmName to (confirm: $name. Is that correct?)) (for: _confirmCount where $confirmName is false)[ (set: $name to (prompt: "What is your name?" "name")) (set: $confirmName to (confirm: $name. Is that correct?)) ] Your name is $name.