Register

FU Inline Automations

An Add-on Module for Foundry Virtual Tabletop

Author: goobyx Project Source Foundry Versions 13+ (Verified 13) Last Updated 5 days, 6 hours ago

This package contains art, text, or software code produced using generative AI.

Generative AI was used for defining security measures while parsing item descriptions. It also was used to refactor duplicated code and suggest options for coding best practices.

This module parses and applies inline commands in item descriptions, saving time players can spend elsewhere. Made specifically for project fabula ultima.

Among others, it can do the following when using an item:

Requirements

Installation

  1. Open FoundryVTT and go to the "Add-on Modules" tab
  2. Click "Install Module"
  3. Paste this manifest URL: https://github.com/goobyx/fu-inline-automations/releases/latest/download/module.json
  4. Click "Install"

 

Usage

This module parses the same description inline effects Fabula Ultima already supports (e.g. @GAIN[], @LOSS[], @EFFECT[]) and applies them automatically when the item is used. The owner, and the targets are considered.

If the description mentions "you", ":" and other texts in-between: the effects in that line will be applied to the owner

You suffer: @LOSS[10 mp]
you receive: @EFFECT[shaken]
you: @TYPE[damage all light e:sot i:1 t:source]
 

Targets follow the same rules, but with the word "target" instead of "you".

targets heal: @GAIN[60 hp]
targets: @EFFECT[slow]@EFFECT[weak] 
Effect choices
 

Some items allow users to choose from multiple effects. In those cases, wrap the options in parentheses.
Any readability text outside the inline tags is ignored, as long as the choices are inside the parentheses.

In this case, both items will be parsed identically

Target Suffers: (@EFFECT[dazed], @EFFECT[weak], or @LOSS[$sl*10 mp]{SL × 10 MP})
targets: (@EFFECT[dazed]@EFFECT[weak]@LOSS[$sl*10 mp])

Note

 

This module does not handle spell MP consuption.
You could achieve a similar effect, but multi-target spell consumption is not calculated:

Item name: Shaker spell

Description:
Flavor text
---
you pay: @LOSS[10 mp] 
targets suffer: @EFFECT[shaken]

Categories

Available Versions

  1. Version 1.0.7

    5 days, 6 hours ago
    Foundry Version 13+ (Verified 13) Manifest URL Read Notes