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

Question about chat set attribute script

I've at times tried to use the script to perform two different functions at the same time: for instance, adding 2 to one character's strength attribute while setting another's health to 100. Most of the time it successfully performs both but every once in a while it'll succeed on the first command and fail on the second. Is there any way to build this more robustly so that it works every time?
What is the command you are using?
!setattr --charid @{Selected|character_id} --modb --Strength|1 !setattr --charid @{Doug|character_id} --Health|100