Skip to main content

Realms & Reaches Documentation

Complete documentation for the Realms & Reaches Foundry VTT module

Welcome to the comprehensive documentation for Realms & Reaches! This module provides a queryable biome and terrain layer for narrative-driven gameplay, exploration mechanics, and system integration.

📚 Documentation Overview​

For New Users​

🚀 Getting Started Guide

  • Complete walkthrough for first-time users
  • Step-by-step tutorial creating your first realm
  • Basic concepts and common patterns
  • Troubleshooting for beginners

Perfect for: First-time users, quick onboarding, learning the basics

For Regular Users​

📖 User Guide

  • Comprehensive feature reference
  • Advanced techniques and workflows
  • Campaign integration strategies
  • Best practices and optimization tips

Perfect for: GMs using the module regularly, advanced features, campaign integration

For Developers​

🔧 API Reference

  • Complete programming interface documentation
  • Integration examples and patterns
  • Event system and data formats
  • Performance considerations

Perfect for: Module developers, custom integrations, programmatic usage

🎯 Quick Navigation​

By Task​

I want to...Read this
Install and set up the moduleGetting Started → Installation
Draw my first realmGetting Started → Your First Realm
Understand the tag systemUser Guide → Tag Management
Integrate with other modulesAPI Reference → Module Integration
Share realm dataUser Guide → Data Management
Optimize performanceUser Guide → Best Practices
Report a bugUser Guide → Troubleshooting

By Experience Level​

Beginner (New to the module)​

  1. Getting Started Guide - Complete walkthrough
  2. User Guide Examples - Quick reference
  3. User Guide → Interface Overview - UI familiarization

Intermediate (Using regularly)​

  1. User Guide → Advanced Techniques - Complex workflows
  2. User Guide → Campaign Integration - Module synergy
  3. User Guide → Best Practices - Optimization

Advanced (Power user/Developer)​

  1. API Reference - Complete programming guide
  2. User Guide → Performance Optimization - Large datasets
  3. GitHub Issues - Feature requests

🎮 Feature Overview​

Core Features​

✅ Visual Realm Drawing

✅ Tag-Based Data System

  • Flexible key:value tag format
  • 8 core namespaces (biome, terrain, climate, etc.)
  • Real-time validation and autocomplete
  • Documented in: User Guide → Tag Management

✅ Spatial Query System

  • Fast point-in-polygon detection (< 1ms)
  • API for other modules to query realm data
  • Efficient spatial indexing for large datasets
  • Documented in: API Reference → Spatial Queries

✅ Data Import/Export

✅ Module Integration

  • Public API for developers
  • Event system for real-time updates
  • Soft dependency patterns for graceful degradation
  • Documented in: API Reference

🏷️ Tag System Reference​

Quick Reference​

NamespacePurposeExample Values
biome:Ecosystem typeforest, desert, mountain, swamp
terrain:Movement conditionsdense, sparse, rocky, marshy
climate:Weather patternstemperate, arctic, tropical, arid
travel_speed:Speed modifier0.5 (slow), 1.0 (normal), 1.5 (fast)
resources:Available materialstimber, game, minerals, water
elevation:Altitude categorylowland, highland, mountain
custom:Unique propertieshaunted, sacred, dangerous
module:Module-specificmodule:jj:encounter_chance:0.3

Full documentation: User Guide → Tag Management

🔗 Integration Examples​

Journeys & Jamborees​

// Automatic travel speed modification
const realm = realmsAPI.getRealmAt(party.x, party.y);
const speedMod = parseFloat(realm?.getTag('travel_speed')) || 1.0;
adjustedSpeed *= speedMod;

Weather Systems​

// Climate-based weather effects
const climate = realm?.getTag('climate');
const weatherTable = getWeatherTable(climate);

Encounter Generation​

// Biome-specific encounters
const biome = realm?.getTag('biome');
const encounterTable = `encounters-${biome}`;

Full examples: API Reference → Examples

🛠️ Development Resources​

For Module Developers​

Community​

📋 Common Workflows​

Session Preparation​

  1. Draw key areas for upcoming locations
  2. Add appropriate tags for travel and encounters
  3. Test integrations with other modules
  4. Export data for backup

During Play​

  1. Select realms to check properties
  2. Reference tags for mechanical effects
  3. Add new areas discovered in play
  4. Update properties based on events

Post-Session​

  1. Review and update realm data
  2. Add story elements as custom tags
  3. Export changes for backup
  4. Plan future areas to detail

🎯 Version Information​

Current Status: Alpha Release​

  • Version: 0.1.0
  • Status: ✅ Feature complete for MVP
  • Compatibility: Foundry VTT v13+
  • Stability: Ready for testing and feedback

What's Included​

  • ✅ Complete drawing and editing tools
  • ✅ Comprehensive tag system
  • ✅ Real-time properties editor
  • ✅ Data import/export
  • ✅ Developer API
  • ✅ Full documentation

What's Next​

  • 🔄 J&J integration (FOU-71)
  • 📋 Community features
  • 📋 Performance optimizations
  • 📋 Additional drawing tools

See GitHub Repository for development roadmap details

💡 Tips for Success​

Getting Started​

  • Start simple: Begin with basic biome and terrain tags
  • Use examples: Follow the patterns in the Getting Started guide
  • Practice first: Try the tools on a test scene before your main campaign

Scaling Up​

  • Plan your system: Decide on tag conventions early
  • Document choices: Keep notes on your tagging decisions
  • Regular backups: Export data frequently

Performance​

  • Keep it simple: Complex polygons slow down rendering
  • Focus on gameplay: Only tag what affects mechanics
  • Test regularly: Check performance with your typical usage

Community​

  • Share your work: Export and share interesting realm datasets
  • Learn from others: Import community-created content
  • Contribute back: Report bugs and suggest improvements

📞 Getting Help​

Self-Help Resources​

  1. Troubleshooting sections in each guide
  2. FAQ patterns in Getting Started
  3. GitHub Issues for known problems

Community Support​

  1. Foundry Discord - #modules channel
  2. GitHub Discussions - Q&A
  3. Reddit r/FoundryVTT - General community

Bug Reports​

Create an issue with:

  • Steps to reproduce the problem
  • Your Foundry VTT version and browser
  • Console error messages (if any)
  • Screenshots (for visual issues)

Welcome to Realms & Reaches! 🗺️

This documentation represents the complete feature set available in version 0.1.0. The module is ready for alpha testing and feedback. Start with the Getting Started guide and work your way through the features at your own pace.

Happy realm building!