Howdy, Stranger!

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

How do I print text based on what the last passage visited was?

I've been googling around for this for a bit now, and can't seem to find the answer. I have a feeling it must be pretty simple, and has probably been asked and answered somewhere (link me please!), but I'm a complete noob when it comes to even simple coding.

What I have are multiple passages which lead to a single passage, but I want the single passage's text to change dependent upon which passage you came from.

I realize that I could have a bunch of different passages that are unique, but the differences are so minor that I know it would be a lot easier in the future if I didn't have to make five copies of a single passage and then edit minor details after-the-fact. If I know the code I need, I can do all the variations in one


  • You should always state the story format you're using and its full version, because advice will tend to vary based on that information.
Sign In or Register to comment.