Difference between revisions of "Script:Flip Tokens"
From Roll20 Wiki
m (235259 moved page User:235259/Flip Tokens to Script:Flip Tokens) |
|||
Line 1: | Line 1: | ||
− | + | {{script overview | |
+ | |name=Flip Tokens | ||
+ | |author={{user profile|235259|Brian}} | ||
+ | |version=2.0 | ||
+ | |lastmodified=2015-01-08}} | ||
− | + | The following script creates the API command <code>!flip</code>, which flips the selected graphics horizontally or vertically (or both). | |
− | < | + | <br clear="all"> |
− | === | + | === Syntax === |
− | + | {{syntaxbox top|formal=true}} | |
− | + | {{API command|flip}} {{API parameter|name=direction|optional=true}} | |
− | + | {{Formal API command| | |
− | + | {{token|S}} {{rarr}} {{API command|flip}} {{token|directionList|-}} | |
− | + | {{token|directionList}} {{rarr}} {{epsilon}} | |
− | + | {{token|directionList}} {{rarr}} horizontal {{token|directionList|-}} | |
− | + | {{token|directionList}} {{rarr}} vertical {{token|directionList}} | |
− | + | }} | |
− | + | {{syntaxbox end}} | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | } | + | |
− | + | ||
− | + | {{param description top}} | |
− | + | {{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}} |
Revision as of 22:09, 8 January 2015
API ScriptAuthor: Brian
Version: 2.0
Last Modified: 2015-01-08
Code: Flip Tokens
Dependencies: None
Conflicts: None
Version: 2.0
Last Modified: 2015-01-08
Code: Flip Tokens
Dependencies: None
Conflicts: None
The following script creates the API command !flip
, which flips the selected graphics horizontally or vertically (or both).
Syntax
!flip [direction]Formally:
S
→ !flipdirectionList
directionList
→ ε
directionList
→ horizontaldirectionList
directionList
→ verticaldirectionList
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.
|