-
Notifications
You must be signed in to change notification settings - Fork 329
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
Add Adventure Flowchart Snippet #936
Comments
Does anyone have a screenshot of what these look like in the 5e source books that they could share? I'm wondering if it's more like a linear timeline (easy), or a branching flowchart (hard to impossible without something like Mermaid). |
"Flowchart"....psh. |
Yeah, less a flowchart and more just a line. It did get me thinking of an article I read many, many, MANY years ago now, about the design philosophy of the puzzles of The Secret of Monkey Island. The philosophy went that there should be some obstacle (a building guarded by angry dogs, for example) which requires multiple elements to be solved (meat to feed the dogs, found in the town; and herbs to drug the meat, found in the forest). So the kind of flowchart that I use - because, on reflection, this is often how I design my adventures - would need to have two or three of these boxes detailing the puzzles ("meat" and "herbs"), which lead to a single obstacle block ("guard dogs"), which then repeats. ...I'm going to have to think about how I could formalize that in a brew, now. |
I made this with divs and flex A basic timeline like in the source book is easy, but I wouldn't recommend doing anything with complex flowcharts. Something like mermaid would be needed. |
Came here to share about Mermaid and now see that I already did...but I am still going to drop this link I came across about Mermaid use in Github: https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-diagrams |
Integrating Mermaid would be very nice, and (at first glance) should be pretty easy. |
Even though Mermaid will solve real flowcharts, i got a snippet for this, you can see it in this brew preview: |
Updating on my last comment, the new syntax for this would be pretty simple:
with the following css:
Pros and Cons of this method
|
I made this timeline about nine or ten months ago, to sum up the background of a character for a one shot. This brew is a simplified version that has only a single content box, that is visually closer to the original timelines. Syntax:
I don't think it's excessively complicated syntax, especially given how simple almost all of the source flow charts/time lines are. |
In my opinion, if you add anything like a flowchart, you’d better be ready for the question “how do I split the flow”. reframing this as a Timeline snippet is a good first step, since there isn’t an expectation of alternate flows. |
When I was preparing some NPCs for my current campaign, I set some of them up with timelines, something like:
What I realized was that some NPCs - like Alyss here - would have different paths, depending on the party's help (or hindrance). With help, she works in Upper City, a respectable cleaner and sometime cook at the Three Old Kegs. So an actual forkable flowchart would have been nice. |
I was just looking around about what kind of control you can get with mermaid.js, considering there is likely going to be a lot of styling questions about it if we include it. I was concerned particularly about the styling of the lines between boxes-- much of the documentation has curved lines. I'm just going to paste this open Issue here for further reading for whoever starts working on this: mermaid-js/mermaid#3260 |
Haven't really looked at it yet, what kind of style control does it give? does it allow for dashed and dotted lines? does it give control over the spacing between dashes/dots? can you put symbols in the lines? can you split a line halfway? |
The styling appears to be determined by CSS, so ... yes. |
So. Simple question. Do we want to solve this with CSS or mermaid? |
A flowchart like this needs to be able to handle non-linear structure, so it seems like a better fit for Mermaid. |
Okay. I'll beat on the mermaid plugin more. |
See reddit post: Adventure Flowchart Suggestion
The text was updated successfully, but these errors were encountered: