Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Request: Return all selected tokens to upright position.

1418575731

Edited 1418577214
I would like to be able to select a wide group of tokens and return them to their original 0° orientation. Can somebody write this very easily? Edit: If it's not too much trouble, it would be great to have a secondary option to turn selected tokens to other positions, such as 90° For espionage games or war-games, this will be used as an about-face to quickly rotate an army. For card games, it would make a nice tap/untap feature.
1418581406

Edited 1418581439
The Aaron
Roll20 Production Team
API Scripter
!token-mod --set rotation|0 !token-mod --set rotation|90 !token-mod --set rotation|[[1d360]]
Sorry, but I don't understand what this means. I'm assuming I need some sort of API to run these commands but I wouldn't know how to put it together. Am I missing something?
1418582059
Stephen S.
Pro
Marketplace Creator
Sheet Author
API Scripter
Aaron is referencing this script. <a href="https://app.roll20.net/forum/post/1257490/script-t" rel="nofollow">https://app.roll20.net/forum/post/1257490/script-t</a>... And he is right, this is likely what you want.
Okay, this is a little embarrassing. I copied the whole script into my API and then typed the command: !token-mod --set rotation|90 But nothing happened. What am I doing wrong now?
1418582792

Edited 1418582850
Stephen S.
Pro
Marketplace Creator
Sheet Author
API Scripter
Did you select a token? And if so... was the token already at 90? Cuz that would be like egg on a yelllow bib.
It's a new campaign. I forgot to set myself as the GM on the other script... oops.
1418583080
Stephen S.
Pro
Marketplace Creator
Sheet Author
API Scripter
No worries. Its gets easier.
1418597769
The Aaron
Roll20 Production Team
API Scripter
:)