# Create Session
The create-session script is a [[JavaScript]]-script used in conjunction with [[Obsidian-QuickAdd]] macro `Add Session` to pick a campaign from available campaigns in the TTRPG folder of the vault and create a campaign-specific session log from the [[t5a1 session]]-template.
## Core functionality
1. Fetches the list of active campaigns and displays a picker
2. Determines if a session exists
3. Determines if other session-logs exist
4. Creates a session log from a template based on the result of 2 and 3
---
## Related
- **previous** none
- **see** [[JavaScript]] for the language used
- **see** [[Obsidian-QuickAdd]] for the plugin used to create session notes
- **see** [[t5a1 session]] for the session template (German)
## Sources
- **references** [codeberg.org](https://codeberg.org/lassebischoff/obsidian-starter/src/branch/main/assets/scripts/session-picker.js) for the source-code
## Usage
- **used in** none