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 .
×
The Roll20 Black Friday sale is live now! Up to 30% Off Your Favorite Content!

Is there a way to use a specific token/character in a macro?

Is there a way to create a macro that always uses a specific token? For example, let's say I have a character named "Steven" and an associated token also named "Steven" in my campaign. I'd like to create a character-specific Burning Hands macro that makes use of the breath fx, and always emanates from the "Steven" token. This is the example /fx command I found in the wiki: /fx breath-fire @{target|Caster|token_id} @{target|Foe|token_id} Is there a way to change this so that the Source ID always refers to the "Steven" token, and the character only has to select the Target ID? Thanks for any help! Sorry if this a repeat topic. I've searched all over Google and somehow not managed come across an answer anywhere.
Try using @{selected|token_id} in place of @{target|Caster|token_id}
Ed S. said: Try using @{selected|token_id} in place of @{target|Caster|token_id} Thanks for the reply! That works if the player has his/her own character token selected, but is there a way to make it work even if the player has no token selected?
1470611336
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Jori B. said: This is the example /fx command I found in the wiki: /fx breath-fire @{target|Caster|token_id} @{target|Foe|token_id} In most cases, you would simply replace target  or selected  with the character's name (WARNING: If you have characters besides alphanumerics in your character's name, this may break). This will not work in your example above since it is specifically referencing token's for start/end points of an sfx. But for attack macros and what not that you want to be able to access without clicking on your token all the time it works beautifully.
Scott C. said: In most cases, you would simply replace target  or selected  with the character's name (WARNING: If you have characters besides alphanumerics in your character's name, this may break). This will not work in your example above since it is specifically referencing token's for start/end points of an sfx. But for attack macros and what not that you want to be able to access without clicking on your token all the time it works beautifully. Thanks, Scott! I appreciate the help. I think I get it now.