0 votes
by (690 points)
I'm creating an interactive novel, and there are events where the player can die if their health gets too low. Only problem is, I hate having to repeatedly paste the lines of code onto each passage. It's messy, inefficient, and very distracting, so is there like a CSS or something I can use to apply it to every passage?

1 Answer

+1 vote
by (61.6k points)
selected by
Best answer

Place the code in a passage by itself and add either the tag 'header' or 'footer' to have said code run before or after each passage respectively. 

Relevant docs

by (690 points)
So, the header/footer tag applies it to each passage, on it's own?

I'm asking cuz I don't have a clue as to how tags work...
by (61.6k points)
Functionally, yes.
Welcome to Twine Q&A, where you can ask questions and receive answers from other members of the community.

You can also find hints and information on Twine on the official wiki and the old forums archive.

See a spam question? Flag it instead of downvoting. A question flagged enough times will automatically be hidden while moderators review it.