Comments (4)
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.
@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.
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.
@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)
- First speaker passage is followed by ellipsis animation HOT 1
- Story fails when passage misses speaker-tag HOT 1
- add step by step tutorial to README HOT 1
- document how to style passages per speakers HOT 1
- Having the chatbot wait for some seconds before sending the next message HOT 2
- Won't load next branch HOT 4
- Too much text loads very slowly. HOT 7
- How i can save dialog progess? HOT 3
- An easy way to customize CSS stylesheet for Trialogue ? HOT 2
- upgrade build process
- add text input functionality
- undo link position is misaligned HOT 2
- Compiling with newly built story format throws TypeError on marked dependency
- story title in nav bar is misaligned
- Refactor to follow updated Snowman architecture
- First message scrolls out of sight on mobile if URL bar is open
- Placement of user avatar off in Safari/Webkit HOT 1
- Error using Trialogue Story Format
- Messages in chat deploying too fast
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trialogue.