Difference between revisions of "Script:Marking Conditions"
From Roll20 Wiki
m |
|||
Line 4: | Line 4: | ||
|dependencies={{api repository link|splitArgs}} | |dependencies={{api repository link|splitArgs}} | ||
|version=3.2 | |version=3.2 | ||
− | |lastmodified=2015-01- | + | |lastmodified=2015-01-24}} |
'''Marking Conditions''' creates the API commands <code>!mark</code>, <code>!unmark</code>, and <code>!clearmark</code> | '''Marking Conditions''' creates the API commands <code>!mark</code>, <code>!unmark</code>, and <code>!clearmark</code> |
Revision as of 05:53, 25 January 2015
Version: 3.2
Last Modified: 2015-01-24
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.2 (2015-01-24)
- [bugfix] no-arg crash
v3.1 (2015-01-22)
- Fixed transcription error
v3.0 (2015-01-09)
- Release