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

Having a macro know your character is using it?

My apologies, not sure how to explain this. I understand how to get a macro to attack a token, I can even get the macro to prompt me to select my target first. But I can't seem to get that same macro to understand that my assigned character sheet is the one making the attack. Example:  !power {{  --name|Ranged Attack vs @{target|token_name}  --bgcolor|#274E13  --Attack|[[ ?{Boosted Att?|N,2d6|Y,3d6} + ?{RAT|0} ]] vs @{target|bar1} DEF  --Damage|[[ ?{Boosted Dmg?|N,2d6|Y,3d6} + ?{POW|0} ]] vs @{target|bar3} ARM  --Location|[[ d6 ]] }} This allows my character to attack a monster, works perfect.  But I'd also like it to then deduct the ammo spent on this attack.  This is my separate macro. !ammo @{selected|character_id} other_resource -1 ammo The only way I can get this to work is by using two separate macros and selecting my character token.  Is there some command I am missing which says, "don't select a token" just use my character sheet? In the end, I want to combine my two macros so I attack, and use ammo.
1561726968
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Assuming that you have the above macro as a character's ability, just remove the selected keyword from the attribute call (e.g @{character_id})