>[!danger] SESSION PREP IN PROGRESS
>As of March 14th, this note is out of date! I've already made it better but I haven't updated this page yet, sorry! It's newest version is already in the [[Downloads|VVunderlore Vault]].
>[!tldr]- Changelog and Roadmap
>
> # Changelog
> ### Adventure Hub v1.0
> - Full code and modular blocks for that sweet sweet build-a-bear vibe
> - no manual entry required for the template to run (as long as the session notes are where I say they should be)
> - Active PC tracker
> # Roadmap
>### Current Encounters:
>- "Story position" blurb to know where the players are vs the writing (because all stories go off book but it's nice to know how close they are)
>### Future Encounters:
>- ??
# Adventure Hub
The Adventure Hub (you can definitely change that name) is meant to serve as a home page for an adventure so that you can quickly get to the adventure materials, see who is playing and what their stats are, set some reminders for yourself, and refer back to your own DM/GM notes.
>[!example]+ rendered Adventure Hub
> ![[adventure hub render example.png]]
## Installing the Adventure Hub
Put the Adventure Hub where all the other stuff is for that adventure. It's just easier, I promise. Don't go looking for files. That's how I did it in the [[Introduction to the Vault|VVunderlore Vault]] to keep things tidy. You can put the Adventure Hub wherever you want though.
> [!example]- where the note *should* go
> ![[adventure hub note location.png]]
### Plugins:
Thankfully the only plugin you need for this page is Dataview ([[Plugins#Dataview|with javascript queries enabled]]). It runs all of the different blocks on this page. However, that means you need to make sure the file paths within the code point to the correct place.
Almost all the code blocks have a piece of code like **"const folderPath = "** that is followed by the folder that contains the files it's referencing. The way I built things, all of those are in the same adventure folder this note will go in.
> [!example]- examples of the "folderPath" line in this code
> ![[const code example 1.png]]
> -
> ![[const code example 2.png]]
> -
> ![[const code example 3.png]]
## Templates
>[!warning] Template Makeup
>This template is *mostly* Dataview code. The only text actually written in this note is the headers so if you want to put in a place to write anything you'll have to do that yourself.
>
Also, this note template is meant to be used in tandem with the [[Session Notes]] template which is where you would do prep for sessions instead of on this note.
### Modular Code Blocks
You can use the full page template or you can use whatever pieces you want to and make the adventure homepage you will find most useful for your GM style. If you want, though, you can use the full code and just hit the ground running.
### Full Page Template
>[!code]- adventure hub template
>![[adventure hub full template|no-title]]
## Individual Blocks
### Chapter Links
This code will draw directly from the "Adventure" folder that lives in the same folder as this note (in the VVunderlore Vault) and places each note in there in a list at the top of the page. This way, you can write your adventure and have easy access to it while doing prep or gameplay.
>[!code]- chapter links code block
>![[adventure hub - chapter titles|no-title]]
### Current Session Link
This code finds the most recently created file in the Session Notes folder that lives in the same folder as the Adventure Hub note. Omit the first line if you don't want to use the callout.
>[!code]- current session code block
>![[adventure hub - current session link|no-title]]
### Player Character Summary
This Dataview table references the names you put in the `players` [[Obsidian Basics and Glossary#Frontmatter|frontmatter]] field. The [[Obsidian Basics and Glossary#Backlinks|backlinks]] you put into that field need to be referencing the templated [[Player Character Template|Player Character]] sheets or else the table might be mostly blank.
![[player summary adventure hub.gif]]
For more explanation, see the Dataview section of the plugins page.
>[!code]- player character summary code block
> ![[adventure hub - current players|no-title]]
### Takeaways
The takeaways section (what I assume to be the least copy/pasted) is a post-session reflection tracker so you can write some notes for yourself as the GM/DM that don't necessarily have to do with the game. Things about player strengths, notes about your adventure running, whatever.
It references the `##### Takeaways` section of the most recent session notes, making a record of all the takeaways form all the session notes so you can get a quick glimpse of how you feel about your adventure running.
>[!code]- takeaways code block
>![[adventure hub - takeaways|no-title]]