Giter Club home page Giter Club logo

Comments (4)

phivk avatar phivk commented on September 28, 2024

I don't have access to my computer atm, but from the top of my head I don't think this functionality is available.

I'm also not sure about the desired effect this would enable. I understand the regular use case in Harlowe or Sugarcube, but in a chat interface such as Trialogue, how would one passage appear inside another? What would trigger this?

from trialogue.

derekchiang avatar derekchiang commented on September 28, 2024

@phivk perhaps I'm missing a simple solution, but here's my problem. I have passage A which branches out in to B and C. However, I want both B and C to come back to D. With link text, the reader would have to click a link from B/C in order to arrive at D. What I want though is for D to be directly appended to B and C, thus why I thought of the display macro.

from trialogue.

phivk avatar phivk commented on September 28, 2024

Ah! I misunderstood that you want to display one passage's content inside another passage.

If you want to trigger one passage from another passage without requiring user input you can use:

story.showDelayed(idOrName);

This is documented here: https://github.com/phivk/trialogue/blob/master/README.md#%EF%B8%8F-changes-from-paloma

Does that help?

from trialogue.

derekchiang avatar derekchiang commented on September 28, 2024

@phivk, yes that helps, thanks. I've also found that there is <%= story.render("passage name") %> that simply displays another passage.

from trialogue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.