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

Hexblade's Curse Macro Help Needed for Player to Also Change Statusmarker on a Targeted Token

Thx in advance for help with the following 5e OGL character sheet Abilities macro (Shows as Token Action) that I'm trying to modify in order to give my player the ability to select the target that they're placing the curse onto so that it also places the 'death-zone' statusmarker on the targeted token: Here is the workiactivation macro that toggles this on: [Hexblade's Curse On]( <a href="http://www.pagone.com/gif/hexcurse.gif" rel="nofollow">http://www.pagone.com/gif/hexcurse.gif</a> ) !setattr --sel --silent --Hexblade|4 --HexCrit|19 --hex_text| plus Hexblade’s Curse !token-mod --set statusmarkers|death-zone ***@{character_name} uses a bonus action to place a baleful Hexblade’s Curse on a target!*** !setattr --modb --sel&nbsp;--silent --repeating_resource_$5_resource_left|-1 !act -1 10 -- Hexblade’s Curse Countdown /w "@{character_name}" Number of Hexblade’s Curses left: [[@{repeating_resource_$5_resource_left}-1]] !roll20AM --audio,play,nomenu|Magical Swish ! Here is the working deactivation macro that toggles this off: [Hexblade's Curse Off]( <a href="http://www.pagone.com/gif/hexcurse.gif" rel="nofollow">http://www.pagone.com/gif/hexcurse.gif</a> ) !setattr --sel&nbsp;--silent --Hexblade|0 --HexCrit|20 --hex_text| !token-mod --set statusmarkers|-death-zone ***@{character_name} releases the Hexblade’s Curse.*** !roll20AM --audio,play,nomenu|Magical Swish ! Side Note: Even though the above macros work, I am getting the following error in API Sandbox, not sure why or if this makes a difference?: "Error: No attribute or sheet field found for character_id -LW4b6TByASUYI4heMBP named character_sheet" What I can't figure out is how to add the below tokenmod command to the activation macro above so that it also places the 'death-zone' statusmarker on a token that the player is prompted to select. I'd also do the same to the deactivation macro so that the player can remove the 'death-zone' statusmarker on a token that the player is prompted to select. Adding these lines gives me a ChatSetAttr error. !token-mod --ids @{target|token_id} --set statusmarkers|death-zone&nbsp; (( trying to add this to the activation macro )) !token-mod --ids @{target|token_id} --set statusmarkers|-death-zone &nbsp;(( trying to add this to the deactivation macro )) Error Message: No target characters. You need to supply one of --all, --allgm, --sel, --allplayers, --charid, or --name.
Snapshot of chat output from working macros:
BTW this macro utilizes a few APIs and other macros, in particular Keith Curtis's awesome macro at: <a href="https://app.roll20.net/forum/post/7738894/workaround-for-global-damage-bonus-not-working-with-chatsetattr-and-sheetworkers-on-roll20-sheet/?pageforid=7738894#post-7738894" rel="nofollow">https://app.roll20.net/forum/post/7738894/workaround-for-global-damage-bonus-not-working-with-chatsetattr-and-sheetworkers-on-roll20-sheet/?pageforid=7738894#post-7738894</a> &nbsp; <a href="https://app.roll20.net/forum/post/8717439/new-chatsetattr-glogal-damage-bonus-work-around" rel="nofollow">https://app.roll20.net/forum/post/8717439/new-chatsetattr-glogal-damage-bonus-work-around</a> &nbsp;