Character Vault
Any Concept / Any System
Compendium
Your System Come To Life
Roll20 for Android
Streamlined for your Tablet
Roll20 for iPad
Streamlined for your Tablet

Personal tools

From Roll20 Wiki

Jump to: navigation, search
(new)
 
m
Line 1: Line 1:
=Alex  Himmelman=
+
The following script creates the API commands <code>!mark</code>, <code>!unmark</code>, and <code>!clearmark</code>
===PL10===
+
 
===Abilities===
+
==== Syntax ====
Strength 4, Stamina 5, Agility  7, Dexterity 4, Fighting 4, Intellect 0, Awareness -1, Presence 0
+
<blockquote style="border:1px #0088ee solid;background:#eee;padding:0.5em">!mark ''tokenid'' [''status'' [''type'']]<br>
===Powers===
+
!unmark ''tokenid'' [''status'' [''type'']]<br>
* Energy  Blast [A shimmering blue mote of energy extends from Alex's hand, knocking  the target away. Alex can also make this a wave, or have the mote explode  once it reaches its detination.]:
+
!clearmark ''tokenid''</blockquote>
** Energy Blast (Single): Blast 6  [Mutant, Psionic; Accurate x2, Alternate Effect x2, Homing x6]
+
 
** Alt: Energy Blast (Cone): Blast  5 [Mutant, Psionic; Area (Cone), Selective; Accurate x2]
+
===== Regular Grammar Syntax =====
** Alt: Energy Blast (Burst): Blast  5 [Mutant, Psionic; Area (Burst), Selective; Accurate x2]
+
<blockquote style="border:1px #0088ee solid;background:#eee;padding:0.5em"><code>S</code> &rarr; !mark <code>parameters</code><br>
** Knockback: Move Object 5  [Mutant, Psionic; Limited Direction (Away from self)] (29 points)
+
<code>S</code> &rarr; !unmark <code>parameters</code><br>
* Energy Punch [Alex's hands glow with a blue aura as he punches a target,  knocking it away.]:
+
<code>S</code> &rarr; !clearmark <code>tokenid</code><br>
** Energy Punch: Damage 6 [Mutant,  Psionic; Accurate x2]
+
<code>parameters</code> &rarr; <code>tokenid</code><br>
** Knockback: Move Object 5 [Mutant, Psionic; Limited  Direction (Away from self)] (13 points)
+
<code>parameters</code> &rarr; <code>tokenid</code> <code>status</code> <code>type</code><br>
* Super Speed [Alex speeds off, friction with the air creating whisps of  blue flame in his wake, which dissipate quickly.]:
+
<code>tokenid</code> &rarr; ''string''<br>
** Super Speed: Super-Speed 10  [Mutant, Psionic] (30 points)
+
<code>status</code> &rarr; <code>condition</code><br>
===Advantages===
+
<code>status</code> &rarr; <code>marker</code><br>
Luck 5, Move-by Action,  Uncanny Dodge
+
<code>condition</code> &rarr; ''string''<br>
===Skills===
+
<code>marker</code> &rarr; ''string''<br>
Acrobatics 3 (+10), Athletics  2 (+6), Close Combat: Unarmed 6 (+10), Deception 0 (+0), Expertise: Foundry 8  (+8), Insight 0 (+-1), Intimidation 2 (+2), Investigation 0 (+0), Perception  0 (+-1), Persuasion 0 (+0), Ranged Combat: Kinetic Energy Blast 6 (+10), Sleight of Hand 6 (+10), Stealth 0 (+7), Technology 0 (+0), Treatment 0 (+0),  Vehicles 1 (+5)
+
<code>type</code> &rarr; ''string''<br>
===Offense===
+
<code>type</code> &rarr; &epsilon;</blockquote>
Initiative +47
+
 
* Energy  Blast (Single) +14, Damage 6
+
{| class="wikitable"
* Energy Blast (Cone) +14, Damage 5
+
|-
* Energy Blast (Burst) +14, Damage 5
+
! Parameter
* Energy Punch +14, Damage 6
+
! Values
===Defense===
+
|-
Dodge 10, Parry 7    Toughness 5 (Def Roll 0),  Fortitude 7, Will -1
+
| ''tokenid''
===Power Points===
+
| The ID of the token to mark. Use <code><nowiki>@{target|token_id}</nowiki></code> or <code><nowiki>@{selected|token_id}</nowiki></code> to get this value.
===Abilities 46 + Powers 72 +  Advantages 7 + Skills 17 + Defenses 8 = Total 150===
+
|-
===Complications===
+
| ''status''
* Thrills -- Alex tends to rush  into things without thinking. Combined with his personality and tendency to  get a bit distracted, this can cause problems for his allies and neighbors.
+
| (Optional) A D&D 4e status (except for dying, helpless, unconscious, insubstantial, or surprised) or the name of a [[API:Objects#Graphic (Token/Map/Card/Etc.)|statusmarker icon]]. The script has several aliases for the statuses. For example, immobilized, immobile, and immob all correspond to the same marker.
* Reputation -- Alex has a reputation for shortening his travel distance...  Such as going through walls, rather than doorways. The problems with  this approach have been explained to him many times, but often it just doesn't  seem to sink in.
+
 
* Phobia -- The landlady of the Apartment of Justice is SCARY, at least in  Alex's opinion. He takes her threats seriously and tries to avoid dealing  with her as much as possible. She's the only reason Alex doesn't burst through  the apartment walls on a regular basis when leaving.
+
If ''status'' is not specified, the purple statusmarker will be used.
 +
|-
 +
| ''type''
 +
| (Optional) A D&D 4e damage type. Only used if ''status'' is ''ongoing'', ''damage'', or ''dam''. One of:
 +
* acid
 +
* cold
 +
* fire
 +
* force
 +
* lightning
 +
* necrotic
 +
* poison
 +
* psychic
 +
* radiant
 +
* thunder
 +
If ''type'' is not specified, a statusmarker to represent untyped damage will be used.
 +
|}
 +
 
 +
The <code>!mark</code> command will set a marker, while the <code>!unmark</code> command will clear it. <code>!clearmark</code> will clear all markers from the token.
 +
 
 +
==== Code ====
 +
<pre data-language="javascript">
 +
on('chat:message', function(msg) {
 +
    // Code is here~!
 +
});
 +
</pre>
 +
 
 +
==== Examples ====
 +
'''!mark @{target|token_id} brown'''
 +
<blockquote>This will set the brown marker on the target token.</blockquote>
 +
 
 +
'''!mark @{target|token_id} immob'''
 +
<blockquote>This will set the 'immobilize' icon to the target token.</blockquote>
 +
 
 +
'''!mark @{selected|token_id} ongoing fire'''
 +
<blockquote>This will mark the selected token with ongoing fire damage.</blockquote>
 +
 
 +
'''!unmark @{selected|token_id}'''
 +
<blockquote>This will remove the purple (default) statusmarker from the selected token.</blockquote>
 +
 
 +
'''!clearmark @{selected|token_id}'''
 +
<blockquote>This will remove all markers from the selected token.</blockquote>

Revision as of 22:37, 18 July 2014

The following script creates the API commands !mark, !unmark, and !clearmark

Contents

Syntax

!mark tokenid [status [type]]
!unmark tokenid [status [type]]
!clearmark tokenid
Regular Grammar Syntax
S → !mark parameters
S → !unmark parameters
S → !clearmark tokenid
parameterstokenid
parameterstokenid status type
tokenidstring
statuscondition
statusmarker
conditionstring
markerstring
typestring
type → ε
Parameter Values
tokenid The ID of the token to mark. Use @{target|token_id} or @{selected|token_id} to get this value.
status (Optional) A D&D 4e status (except for dying, helpless, unconscious, insubstantial, or surprised) or the name of a statusmarker icon. The script has several aliases for the statuses. For example, immobilized, immobile, and immob all correspond to the same marker.

If status is not specified, the purple statusmarker will be used.

type (Optional) A D&D 4e damage type. Only used if status is ongoing, damage, or dam. One of:
  • acid
  • cold
  • fire
  • force
  • lightning
  • necrotic
  • poison
  • psychic
  • radiant
  • thunder

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.

Code

on('chat:message', function(msg) {
    // Code is here~!
});

Examples

!mark @{target|token_id} brown

This will set the brown marker on the target token.

!mark @{target|token_id} immob

This will set the 'immobilize' icon to the target token.

!mark @{selected|token_id} ongoing fire

This will mark the selected token with ongoing fire damage.

!unmark @{selected|token_id}

This will remove the purple (default) statusmarker from the selected token.

!clearmark @{selected|token_id}

This will remove all markers from the selected token.