Register

Simple Worldbuilding Plus

An Add-on Module for Foundry Virtual Tabletop

Author: Asacolips Project Source: Project URL Versions 11 - 12 (Verified 11.315) Last Updated 1 month, 3 weeks ago

Simple Worldbuilding Plus

Foundry v11.315 Foundry v12

This is a small module that adds a few quality of life enhancements to make it easier to build custom character sheets in the Simple Worldbuilding system.

Installation

Install via Foundry's package manager or the following manifest URL: https://gitlab.com/asacolips-projects/foundry-mods/simple-worldbuilding-plus/raw/master/module.json

Inline stat syntax

There's currently an issue in Simple Worldbuilding that prevents inline rolls such as [[@str]] from outputting correctly if they're included in a character sheet due to the actor not being passed to the sheet. This resolves that by overriding the sheet and passing that data in. Additionally, if a roll is just for display and isnt' a button, the d20 icon on the result will be hidden in the sheet.

Legacy Inline Rolls

In older versions of this module, inline rolls were added to the sheet with curly braces, such as {{@str}}. The module now uses the normal [[@str]] syntax, but there is a compatibility layer in place to convert to the new syntax on the fly. You should use [[@attrName]] going forward, but if/when the module eventually removes support for the previous format, a migration will be included to convert rolls for you.

Derived Values

Note: In the 1.1.0 version of this module, this is now tracked in a module setting under the settings configuration dialog rather than a journal entry. The syntax is still the same however.

This module checks for a special journal entry called SWP_DERIVED. If this template exists, it will be parsed for derived attribute formulas, and those will be made available to your actors for both the {{@attr}} syntax and for both regular and inline rolls.

Each derived attribute must be on a new line and uses the following format:

||key|formula||

Derived attributes will be placed in a special d attribute on your actor. For example, this journal entry example would derive d20 modifiers for the 6 ability scores:

||str.mod|floor((@str - 10) / 2)||
||dex.mod|floor((@dex - 10) / 2)||
||con.mod|floor((@con - 10) / 2)||
||int.mod|floor((@int - 10) / 2)||
||wis.mod|floor((@wis - 10) / 2)||
||cha.mod|floor((@cha - 10) / 2)||

Those would all be placed in actor.data.data.d, so that you could reference them in rolls using text such as {{@d.str.mod}} or {{@d.dex.mod}}. The d prefix is necessary because if you're using the short syntax, the attributes are string/number/bool values and not objects, so it's impossible to have both @str and @str.mod in that scenario.

Supported Game Systems

  1. Simple Worldbuilding System

    Latest Version: Version 0.8.2 Last Updated 10 months, 1 week ago

Categories

Available Versions

  1. Version 1.2.0

    1 month, 3 weeks ago
    Foundry Version 11 - 12 (Verified 11.315) Manifest URL Read Notes
  2. Version 1.1.0

    1 year, 6 months ago
    Foundry Version 10+ (Verified 11.315) Manifest URL Read Notes
  3. Version 1.0.3

    Foundry Version 0.8.6+ (Verified 9) Manifest URL Read Notes
  4. Version 1.0.2

    Foundry Version 0.8.6+ (Verified 9) Manifest URL Read Notes
  5. Version 1.0.1

    Foundry Version 0.8.6+ (Verified 9) Manifest URL Read Notes
  6. Version 1.0.0

    Foundry Version 0.7.0+ (Verified 0.8.8) Manifest URL Read Notes
  7. Version 0.4.2

    Foundry Version 0.7.0+ (Verified 0.7.10) Manifest URL Read Notes
  8. Version 0.4.1

    Foundry Version 0.7.0+ (Verified 0.7.9) Manifest URL Read Notes