Difference between revisions of "Script:Flight"
From Roll20 Wiki
m (235259 moved page User:235259/Flight to Script:Flight) |
|||
Line 1: | Line 1: | ||
− | + | {{script overview | |
+ | |name=Flight | ||
+ | |author={{user profile|235259|Brian}} | ||
+ | |version=2.0 | ||
+ | |lastmodified=2014-01-08}} | ||
− | + | This scripts creates the API command <code>!fly</code>, which sets statusmarkers on the selected tokens to represent how high they are flying. | |
− | < | + | <br clear="all"> |
− | {| | + | === Syntax === |
− | | | + | {{syntaxbox top|formal=true}} |
− | + | {{API command|fly}} {{API parameter|name=height|optional=true}} | |
− | + | {{Formal API command| | |
− | |- | + | {{token|S}} {{rarr}} {{API command|fly}} {{token|height|-}} |
− | | | + | {{token|height}} {{rarr}} {{epsilon}} |
− | | | + | {{token|height}} {{rarr}} {{integer}} |
− | + | }} | |
+ | {{syntaxbox end}} | ||
− | + | {{param description top}} | |
− | + | {{param description|name=height|value=Optional. Set the height of the selected token(s). If this parameter is 0, negative, or omitted, the flight value will be removed from the token(s).}} | |
− | + | {{param description bottom}} | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | } | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | } | + | |
− | + | ||
=== Notes === | === Notes === | ||
− | + | Numbers with multiple digits will create multiple wing statusmarkers, one for each digit. Zero digits (for example, the tens digit of "205") will show up as a wing statusmarker with no number. | |
[[File:Flight_Example.jpg]] | [[File:Flight_Example.jpg]] | ||
− | |||
− | |||
− |
Revision as of 22:04, 8 January 2015
API ScriptAuthor: Brian
Version: 2.0
Last Modified: 2014-01-08
Code: Flight
Dependencies: None
Conflicts: None
Version: 2.0
Last Modified: 2014-01-08
Code: Flight
Dependencies: None
Conflicts: None
This scripts creates the API command !fly
, which sets statusmarkers on the selected tokens to represent how high they are flying.
Syntax
!fly [height]Formally:
S
→ !flyheight
height
→ ε
height
→ integer
Parameter | Values |
---|---|
height | Optional. Set the height of the selected token(s). If this parameter is 0, negative, or omitted, the flight value will be removed from the token(s). |
Notes
Numbers with multiple digits will create multiple wing statusmarkers, one for each digit. Zero digits (for example, the tens digit of "205") will show up as a wing statusmarker with no number.