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

Scintillating Robes Script

I am having an issue with the dynamic lighting and removing a charge of the robe from a character sheet. Here is the script: !power {{ --name | Scintillating Robes --leftsub|Aftermath uses a charge of his Robes! --rightsub|@{selected|token_name} --The Robe displays shifting patterns of dazzling hues until the end of your next turn. During this time, the robe sheds bright light in a 30-foot radius and dim light for an additional 30 feet. Creatures that can see you have disadvantage on Attack rolls against you. In addition, any creature in the bright light that can see you when the robe’s power is activated must succeed on a DC 15 Wisdom saving throw or become Stunned until the Effect ends. --api_token-mod| _on emits_bright_light emits_low_light  _set bright_light_distance|30 low_light_distance|30 --api_modattr _sel _repeating_resource_$1_resource_right|-1!!! }} When I execute the script as a character it does not remove the charge for using the robe and it doesnt set the dynamic lighting. When I execute the script on the DM account as the character I see the following error: From ChatSetAttr: No target characters. You need to supply one of  --all, --allgm, --sel, --allplayers, --charid, or --name. No attribute supplied. Thanks for any assistance in advance.
What I want to happen is modify the dynamic lighting around the character and remove 1 charge of the use of the robe from the character sheet.
Figure this one out. :)
1670401303
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Is that Powercards or ScriptCards? You might have better luck getting a good answer on the feedback thread for those scripts (I think Powercards has been supplanted by ScriptCards, though).