Inline Commands - League-of-Fabulous-Developers/FoundryVTT-Fabula-Ultima GitHub Wiki
We provide support for clickable commands in the descriptions of items, which are often then posted as chat messages.
Inputs
amount
andmodifier
(used inDMG
,GAIN
,LOSS
): Accept either a number or an expressionresource
: Supported value:hp
,mp
,ip
,zenit
,fp
category
: Supported value:all
,attack
,skill
,spell
type
: Supported value:fire
,ice
,earth
,bolt
,air
,dark
,light
,poison
,untyped
first
andsecond
: Supported value:mig
,dex
,ins
,wlp
dl
: Refers to the difficulty levelaffType
: Supported value:resistance
,vulnerability
,immunity
,absorption
progType
: Supported value:update
: increment/decrement progress/clock by amountreset
: resets progress/clock to 0
Commands
@DMG[amount type]
: Applies damage to an actor@GAIN[amount resource]
: Applies a resource gain to an actor@LOSS[amount resource]
: Applies a resource loss to an actor@CHECK[first second (modifier) dl]
: Rolls an attribute check on an actor, with an optional modifier inside parenthesis, and optional difficulty level@TYPE[damage category type priority|normal]
: Applies an effect on an actor that adds a damage type override to one of the given categories. (The last argument is optional)@TYPE[affinity type affType]
: Applies an effect that modifies an affinity of an actor@EFFECT[uuid|status|base64]
: Applies an effect to an actor@WEAPON[type]
: Applies an effect to an equipped weapon that changes its damage type@PROGRESS[uuid progType amount]
: Manipulates an existing resource point@CLOCK[uuid progType amount]
: Manipulates an existing clock
Note that the usage of |
in the above is just to illustrate the options for an argument, and is not to be confused with the labeling syntax below.
Optional
- Label: A custom label defined like so:
@INLINE[...]{Free Hug}
- Traits: A list of traits, defined like so:
@INLINE[...|cool,non-lethal|]
Examples
@DMG[15 fire]
@GAIN[30 hp]
@LOSS[10 mp]
@CHECK[mig dex]
,@CHECK[ins wlp 13]
,@CHECK[ins wlp (2) 10]
@TYPE[damage all fire]{Alter All Damage Type (Fire)}
@TYPE[affinity ice immunity]{Air Immunity}
@EFFECT[weak]
@EFFECT[Compendium.projectfu.skills.Cc1391vhlS1yIMrI]{Effect: Breach}
@WEAPON[fire]{Alter Weapon Damage Type (Fire)}
@CLOCK[brainwave-clock update 1]{Advance Brainwave Clock}
@CLOCK[brainwave-clock reset]{Reset Brainwave Clock}