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

CHATSETATTR Issues

Hello. Two things. I am trying to have a !powercard macro that applies !chatsetattr to multiple targets at once. In simplest terms, the character has an ability to increase a number of allies abilities in combat and I would like to be able to target those allies and add those benefits all at once. But when I try to use said !powercard macro it won't let me do a select all style selection. I don't want to have 50 targets in the macro and I don't want to have to activate the macro multiple times.  !power {{ --name|Knightly Inspiration --leftsub|Knight Ability --rightsub|Duration: @{selected|Level} Rounds --emote| **"For Crown, For Sword, For Honor!"** --Effect:| The presence of **@{selected|token_name}** on the field of battle alters the mood of the combat. The companions of **@{selected|token_name}** are inspired and gain a to hit bonus equal to **@{selected|token_name}'s** Charisma Modifier of **+@{selected|CharismaMod}**. [Select Allies](~Condition_Knightly_Inspiration) --?? @{selected|Level} <= 2  ?? Number Inspired: | 12 --?? @{selected|Level} >= 3 AND @{selected|Level} <= 4  ?? Number Inspired: | 25 --?? @{selected|Level} >= 5 AND @{selected|Level} <= 6  ?? Number Inspired: | 50 --?? @{selected|Level} >= 7 AND @{selected|Level} <= 8  ?? Number Inspired: | 250 --?? @{selected|Level} >= 9 AND @{selected|Level} <= 11 ?? Number Inspired: | 1000 --?? @{selected|Level} >= 12 AND @{selected|Level} <= 15  ?? Number Inspired: | 5000 --?? @{selected|Level} >= 16 ?? Number Inspired: | 20000 --api_act|-1 @{selected|Level} _Knightly Inspiration @{selected|token_name} }} The second macro I am trying to do is Lay on Hands/Healing. I have it largely working except I can't figure out how ot prevent it from healing the target character above their max H.P. !power {{ --name|Lay on Hands --leftsub|Special Ability --rightsub|Range: Touch --Effect:| **@{selected|token_name}’s** experience and knowledge of medicine, healing herbs, and soothing touch and words can comfort the wounded and reinvigorate their health. --api_setattr|_name @{target|token_name} _mod _H.P.|@{selected|Level}*2|@{target|H.P.|max} }}
If you find the answer to your questions, please post it as it is an issue for me as well.  Thanks.