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

Can I use the token name to get the token id?

Hi, I just started using macros, and I was wondering if it was possible to use the token name to get the token id. Just in case I wasn't clear, I'll give you an example. Say I have a character named Bob, and every time I use the macro /fx beam-fire @{selected|token_id} @{target|Foe|token_id} while he is selected, he shoots a beam of fire at the target. Is it possible to make it so that I don't need to select Bob, and just select the target? I already know I can put in the token id separately, but that won't work if the token is moved to a different map, as it will have a different token id. Sorry if this is a dumb question.
1621646783
The Aaron
Roll20 Production Team
API Scripter
Not a dumb question, but sadly not possible without the API.