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 (63.1k 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 (63.1k points)
Functionally, yes.
This site has been placed in read-only mode. Please use the Interactive Fiction Community Forum instead.