Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there the equivalent of "display" macro in trialogue/paloma? #6

Closed
derekchiang opened this issue Jul 15, 2019 · 4 comments
Closed

Comments

@derekchiang
Copy link

derekchiang commented Jul 15, 2019

In Harlowe / Sugarcube it’s possible to display a passage directly within another passage through the display macro. Can the same thing be done in trialogue/paloma?

@phivk
Copy link
Owner

phivk commented Jul 15, 2019

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?

@derekchiang
Copy link
Author

@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.

@phivk
Copy link
Owner

phivk commented Jul 15, 2019

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?

@derekchiang
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants