Advertisement Create a free account

[Script] SpinTokens -- Allows the GM to set a token to spinning, persisted across restarts, minimally active.

1417209098

Edited 1463758817
The Aaron
Forum Champion
API Scripter
This script grew out of discussion here: <a href="https://app.roll20.net/forum/post/1366890/rotation" rel="nofollow">https://app.roll20.net/forum/post/1366890/rotation</a>... Commands: !spin-start &lt;Seconds&gt; -- starts all selected tokens spinning at a rate that will cause them to complete a rotation after the specified number of seconds. Slow Rotations look better as the rotation is only updated every .2 seconds. A negative value for seconds will cause will cause the token to spin counter clockwise. Token spin information is persisted across restarts, so once you have the token spinning, it will keep spinning until you tell it not to. Tokens that are on pages that do not have players will not be updated (GMs, drag yourselves to a page to preview). !spin-stop -- stops the selected tokens from spinning. GIT:&nbsp; <a href="https://github.com/shdwjk/Roll20API/blob/master/Sp" rel="nofollow">https://github.com/shdwjk/Roll20API/blob/master/Sp</a>...
1417209345
The Aaron
Forum Champion
API Scripter
Interesting side note: Since the rotation is based on time (I find this smoother than doing it based on current rotation, as any latency falls out and you get a nearly constant rate of spin), you can make a clock: Seconds: !spin-start 60 Minutes: !spin-start 3600 Hours: !spin-start 43200 The clock will be in UTC unless you manually adjust your clock's hour graphic hand based on your offset from GMT. Maybe I'll add a setting to bias a rotation...