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

Use targeted token with macro to get toek id

1387654279

Edited 1387654345
Edit: That should be "Use targeted token with macro to get token id" Is there a way to use @{target ... keyword in a macro get the token id? I want to be able to use select target and then pass its id onto an API call. !action attack @{target|_id} Thanks.
1387654633
Gauss
Forum Champion
Moved to the API forum
You can grab it with @{target|token_id} Pass that along in your script.
I added a note about this to the "Chat Events" API documentation page on the Wiki.
Thanks Brandon. Good idea Riley.