Skip to content

Mattadlard/Obsidian-Wargaming-Rules-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Obsidian Wargaming Rules Plugin

Overview

The Obsidian Wargaming Rules Plugin is a personaltool for wargame developers, hobbyists, and enthusiasts to manage, organise, and share tabletop wargaming rules directly from their Obsidian workspace. With built-in support for markdown formatting, custom icons, and export options, the plugin bridges the gap between creative design and functional documentation.

Designed with flexibility and usability in mind, this plugin enhances the workflow for creating and distributing high-quality rulesets for wargaming systems.


Features

Core Features

  • Insert Rules with Custom Icons
    Quickly insert formatted rules with relevant icons, such as attack, defence, movement, or special abilities, using commands or hotkeys.

  • Export Rules to PDF/Text
    Effortlessly convert markdown-based rules into professionally styled PDFs or plain text files for distribution.

  • Custom Icon Integration
    Utilise an extensive library of Font Awesome icons to enrich your rule documents, making them visually appealing and easy to understand.

  • Dynamic Icon Loading
    Load additional custom icons from a user-defined folder, providing unlimited personalisation options.

  • Ribbon Integration
    Access key plugin commands from a convenient ribbon interface, designed for ease of use and seamless navigation.

  • Plugin Settings Panel
    Customise plugin behaviour, icon sets, and export preferences through an intuitive settings tab.


Installation

Manual Installation

  1. Clone the repository or download it as a ZIP file.
  2. Extract the contents to your local machine.
  3. Copy the dist/ folder to your Obsidian vault’s .obsidian/plugins/obsidian-wargaming-rules-plugin/ directory.
  4. Enable the plugin via Settings > Community Plugins in Obsidian.

Community Plugin Browser (Coming Soon)

Once available in the Obsidian plugin repository:

  1. Open Settings > Community Plugins in Obsidian.
  2. Search for "Wargaming Rules Plugin".
  3. Click Install and then enable the plugin.

Usage

1. Inserting Rules with Icons

  • Open the command palette (Ctrl+P or Cmd+P) and search for Insert Wargaming Rule.
  • Select the type of rule to insert (e.g., Attack, Defence, Movement).
  • The rule, along with its associated icon, will be added to your document.

2. Exporting Rules

  • Open the command palette and search for Export Rules.
  • Choose between Export as PDF or Export as Text.
  • Specify a file name and export path (if required). The plugin will generate a file with proper formatting and icons.

3. Customising Icons

  • Navigate to Settings > Wargaming Rules Plugin.
  • Add, edit, or remove icons using the customisation interface.
  • Changes are immediately reflected across all plugin functionalities.

Example Markdown Output

Here’s a sample of how a rulebook might appear when using this plugin:

# Wargame Rulebook

## Combat Rules
- **Attack** ![fa-sword](https://fontawesome.com/icons/sword)
  Roll a D20 to determine your attack success.
  
- **Defence** ![fa-shield-alt](https://fontawesome.com/icons/shield-alt)
  Add your armour value to reduce incoming damage.

## Movement Rules
- **Walking** ![fa-walking](https://fontawesome.com/icons/walking)
  Units can move up to 6 tiles per turn, except when encumbered.

## Special Abilities
- **Critical Strike** ![fa-crosshairs](https://fontawesome.com/icons/crosshairs)
  Rolls of 18-20 deal double damage.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published