Difference between revisions of "Script:Marking Conditions"
From Roll20 Wiki
(→Changelog) |
m |
||
Line 3: | Line 3: | ||
|author={{user profile|235259|Brian}} | |author={{user profile|235259|Brian}} | ||
|dependencies={{api repository link|splitArgs}} | |dependencies={{api repository link|splitArgs}} | ||
− | |version=3. | + | |version=3.1 |
|lastmodified=2015-01-09}} | |lastmodified=2015-01-09}} | ||
Revision as of 17:36, 22 January 2015
Version: 3.1
Last Modified: 2015-01-09
Code: Marking Conditions
Dependencies: splitArgs
Conflicts: None
Marking Conditions creates the API commands !mark
, !unmark
, and !clearmark
Syntax
!mark <tokenid> [status [type]]
!unmark <tokenid> [status [type]]
!clearmark <tokenid>Formally:
S
→ !marktokenid
status
S
→ !unmarktokenid
status
S
→ !clearmarktokenid
tokenid
→ string
status
→ ε
status
→ stringdamage
damage
→ ε
damage
→ acid
damage
→ cold
damage
→ fire
damage
→ force
damage
→ lightning
damage
→ necrotic
damage
→ poison
damage
→ psychic
damage
→ radiant
damage
→ thunder
Parameter | Values |
---|---|
tokenid | ID of a token object. This can be obtained with @{target|token_id} or @{selected|token_id} .
|
status | Optional. Either the name of a statusmarker icon, or else one of many aliases to D&D 4e conditions.
|
type | Optional. A D&D 4e damage type. Only used if status is "ongoing", "damage", or "dam". If supplied, should be one of:
If type is not specified, a statusmarker to represent untyped damage will be used. |
The !mark
command will set a marker, while the !unmark
command will clear it. !clearmark
will clear all markers from the token.
Conditions and Aliases
The available status aliases and the D&D 4e conditions they map to are listed below.
Condition | Aliases | Condition | Aliases |
---|---|---|---|
Blinded | blinded blind |
Prone | prone |
Dazed | dazed daze |
Restrained | restrained |
Deafened | deafened deaf |
Slowed | slowed slow |
Dominated | dominated dominate |
Stunned | stunned stun |
Immobilized | immobilized immobile immob |
Weakened | weakened weak |
Marked | marked mark |
Ongoing Damage | ongoing damage dam |
Petrified | petrified petrify stone |
Dying Helpless Unconscious Insubstantial Surprised |
Marking Conditions explicitly does not handle these statuses, and will generate an error message if you try to use one. |
Changelog
v3.1 (2015-01-22)
- Fixed transcription error
v3.0 (2015-01-09)
- Release