Ok so I am fairly far along in my story using Harlowe. So I don't really want to start using another format if I can avoid it.
I want to create a random event. But do I have to have the random number generator in each passage or can I get away with keeping it in, say, startup passage and it is kept running?
If possible I don't want to clog my passages up with too much crud.
Comments
a. The event is randomly chosen from a pool of possible events but it occurs at a fixed point in the story.
b. The event is fixed but it can occur at a random point in the story.
c. Some combination of points A and B.
If A then all you need to do is assign a random value to a variable in your startup tagged passage and then later use (if:) / (elseif:) macros to show what happened:
If B then you can use a header tagged passage to determine if it is time to show the event:
note: You can replace the "The text for event" parts in the above examples with whatever code you like.
So the protagonist will have random thoughts, voices and images pop into his head as he travels around. But then so far through I want it to abruptly stop.
I didn't know these header and footer tags existed. Is there somewhere I can check this out as it seems some of the wiki stuff is outdated.