Howdy, Stranger!

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

Question about Footers

Hey everyone. I'm really starting to dig into my first Twine Game. I use Harlowe and I'm stuck on something I was hoping someone out there could help me with. I set up a simple footer that takes the user to a page that display's attributes. The code is straight forward...

(link: "See Attributes")[(set: $previousPassage to (passage:)'s name)(goto: "Attributes")]

Now, when a user goes to the Attributes passage they see attributes. They also see the footer. That's okay, but if they click on something in the footer, they can't go back because the previousPassage is now set to the Attributes page.

So, is there a way to display the footers on every page except a few? Like a no-footer macro?

Thanks in advance for your help with this.
-FIF

Comments

  • Use an (if:) macro to only show the footer link when (passage:)'s name is not equal Attributes.

    The code in your footer tagged passage would look something like:
    (if: (passage:)'s name is not "Attributes")[
    	(link: "See Attributes")[
    		(set: $previousPassage to (passage:)'s name)
    		(goto: "Attributes")
    	]
    ]
    
    ... I added indents and extra line-breaks to make the above more readable, they can be safely removed.
Sign In or Register to comment.