Howdy, Stranger!

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

[Twine 2.1.3] [Sugarcube 2.18] Returning to previous passages without using Return

I'm building a simple dialog system where characters can be encountered in multiple locations.
I have a single passage (charactername topics) that gets called from wherever the player talks to the NPC.
That's all great, and actually working. My issue is essentially cosmetic.

I need to be able to return from the conversation passage to the room description... but I want the actions to say something like "Say goodbye", or "leave the conversation", or "run screaming for the sake of Alice's dwindling sanity"... rather than just a rather perfunctory "Return".

Is there a way to do this that doesn't involve sacrificing a virgin and three goats atop the barren hill under a full moon?

Comments

  • You don't actually state which method you are using to 'return' to the previous passage, there are a few to chose from. I will assume you are using the <<return>> macro.

    As it's documentation states it is functionally similar to the <<back>> macro who's documentation includes an example on how to supply an alternate Link Text to the macro.

    If you want to alter ALL <<return>> macro links to display the same alternate Link Text then you can Localization Guide to achieve this, you would place code like the following within your story's Story Javascript area to change the <<return>> macro's default text.
    l10nStrings.macroReturnText = 'Back down the rabbit hole';
    
  • I am using <<return>> at the moment, because I need the player to return to whichever room the NPC is in (and it could be one of several). I am, however, using <<return>> in other places where just having a link saying "return" works rather well (inventory, the achievements pages, etc.).
    I understand the difference between Return and Back. My issue is finding a way to get the function of return, but have the link display something different that "return" on screen.
  • Niekitty wrote: »
    My issue is finding a way to get the function of return, but have the link display something different that "return" on screen.
    I explained where to find an example showing how to do exactly what you want, look at the second line in the <<back>> macro's examples and replace the macro-name back with the macro-name return.
  • Thank you Greyelf.

    Sorry to be a pain. The last couple weeks have kind of fried my brain.
Sign In or Register to comment.