Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Triggering events with tags?

Hello,
I'm using Sugarcube 2 in Twine 1.4.2. and I'm very much a newbie, so I'm sorry if this is a stupid question.

Is there some way of having a specific set of macros run whenever the play arrives at a passage with a particular tag? Or would I have to manually copy the macros into each passage?

Comments

  • You could do something like the following in the PassageDone special passage:
    <<if tags().includes("sometag")>>...do something...<</if>>
    
  • I realized that in the meantime! Good to see I was thinking on the right lines :)
Sign In or Register to comment.