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

Difference between revisions of "Script:Flip Tokens"

From Roll20 Wiki

Jump to: navigation, search
m
 
(8 intermediate revisions by one user not shown)
Line 2: Line 2:
 
|name=Flip Tokens
 
|name=Flip Tokens
 
|author={{user profile|235259|Brian}}
 
|author={{user profile|235259|Brian}}
|version=2.0
+
|version=2.3
|lastmodified=2015-01-08}}
+
|dependencies={{api repository link|splitArgs}}
 +
|lastmodified=2016-03-09}}
  
The following script creates the API command <code>!flip</code>, which flips the selected graphics horizontally or vertically (or both).
+
'''Flip Tokens''' creates the API command <code>!flip</code>, which flips the selected graphics horizontally or vertically (or both).
 
<br clear="all">
 
<br clear="all">
  
 
=== Syntax ===
 
=== Syntax ===
{{syntaxbox top|formal=true}}
+
{{syntaxbox top|formal=true|Flip Tokens}}
 
{{API command|flip}} {{API parameter|name=direction|optional=true}}
 
{{API command|flip}} {{API parameter|name=direction|optional=true}}
 
{{Formal API command|
 
{{Formal API command|
Line 22: Line 23:
 
{{param description|name=direction|value=The flip direction can be either <code>horizontal</code> or <code>vertical</code>. You can use any number of directions, which will be executed in order.}}
 
{{param description|name=direction|value=The flip direction can be either <code>horizontal</code> or <code>vertical</code>. You can use any number of directions, which will be executed in order.}}
 
{{param description bottom}}
 
{{param description bottom}}
 +
 +
=== Changelog ===
 +
{{changelog version|2.3|2016-03-09|* Update for one-click install}}
 +
{{changelog version|2.2|2015-01-24|* [bugfix] no-arg crash}}
 +
{{changelog version|2.1|2015-01-22|* Fixed transcription error}}
 +
{{changelog version|2.0|2015-01-08|* Release}}

Latest revision as of 04:49, 13 April 2016

API ScriptAuthor: Brian
Version: 2.3
Last Modified: 2016-03-09
Code: Flip Tokens
Dependencies: splitArgs
Conflicts: None

Flip Tokens creates the API command !flip, which flips the selected graphics horizontally or vertically (or both).

[edit] Syntax

!flip [direction]
Formally:

S

→ !flip directionList


directionList

→ ε

directionList

→ horizontal directionList


directionList

→ vertical directionList


Parameter Values
direction The flip direction can be either horizontal or vertical. You can use any number of directions, which will be executed in order.

[edit] Changelog

v2.3 (2016-03-09)

  • Update for one-click install


v2.2 (2015-01-24)

  • [bugfix] no-arg crash


v2.1 (2015-01-22)

  • Fixed transcription error


v2.0 (2015-01-08)

  • Release