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

[Help] Newbie issues with !torch

For the life of me I can't figure out why I am unable to get the api/macro to work. !torch is installed and here is what I have as my macro: !torch [25] [15] [yes] [@{target|token_id}] [360]  When I highlight a token/character and click the macro it brings up a info box asking me to click a token. This does nothing. I can however get !snuff to work. What I ideally want is to just turn on character "torches" when they light up without having to open up the settings of each token manually. And as characters run out of torch resources (Forbidden Lands), snuff out their light.  I don't fully understand how the whole @{target|token_id}] stuff works. Do I need to write out the token id's of all of my PCs? And if so, how do I figure out what they are and what is the syntax of this part of the macro?  If anyone could point me to the appropriate resource, I'm happy to continue to learn. 
1585604893
The Aaron
Roll20 Production Team
API Scripter
Sorry that script is quite old and the docs aren't the best.  In command line tool documentation, [ ] wrap optional arguments.  What you want are: !torch 25 15 yes --360 @{target|token_id}
Aaron you are awesome! That totally worked. No way would I have gotten that from the API's documentation page. Thank you again!
1585607340
The Aaron
Roll20 Production Team
API Scripter
No problem. =D