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 .
×

token mod and powercards to create torch macro

I've been using token mod for quite a while, had some decent working macro's to make players be able to turn torches on and off. however, I'm trying to create some sort of a personal style by using powercards and I can 't seem to get it to work. Does anyone have any advice? --api_token-mod _set emits_bright_light|yes bright_light_distance|20 emits_low_light|yes low_light_distance|20 doesn't work, yet !token-mod _set emits_bright_light|yes bright_light_distance|20 emits_low_light|yes low_light_distance|20 seems to do just fine. I'm probably missing something obvious.
1628946923
The Aaron
Roll20 Production Team
API Scripter
Make sure you have Players Can IDS turned on in the TokenMod settings. 
 I already did that. I got it working now, so all's good. Thanks for the aid. :)
1629123866
timmaugh
Roll20 Production Team
API Scripter
Unless you provide TokenMod ids to use (and you have the players-can-ids option turned on, if you want your players to be able to do it), it operates on the currently selected tokens. When you use TokenMod directly, it has a set of selected tokens. When a script calls another script (PowerCards calling TokenMod), you lose that set of selected tokens. Your options then are to provide to TokenMod the tokens you wish to operate on (using the available arguments to the TokenMod command line), or to install SelectManager (which acts as a middle-man to give the selected tokens back to the downstream script -- in this case, TokenMod). Just having SelectManager should make it so that your working TokenMod command line, when converted to PowerCards syntax, will start working normally, too.