Pop-ups/Dialog Macro

Twine Version: Harlowe

Sorry if this is a really basic question. I’m trying to get a pop-up to open when readers click on a particular piece of text - functioning similar to a link I guess, but rather than transitioning to a new passage, I want it to display as a pop-up. (The pop-up is meant to be a bit of commentary on the main text.)

I’ve been trying to use the dialog macro but it activates as soon as the passage is opened. Is there a way, for example, for it to open when readers click on ‘nervous’?

Here’s a snippet from the page:

Sam was a bit nervous(dialog:“The story was written in third person because…”,“return”).

Thanks in advance,

Alex

Try wrapping it in a (link-repeat:):

Sam was a bit (link-repeat: "nervous")[(dialog: "The story was written in third person because...", "return")]

Or if you only want it to be clickable once you can use (link-reveal:) instead.

Thanks @JoshGrams that does the trick. Really appreciate the guidance!