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 .
×

ChatSetAttr not triggering sheet workers for D&D 2014 sheet in Jumpgate

Hey all,  I have a D&D 5e 2014 game running in Jumpgate using the 5e OGL sheet with ChatSetAttr included. No one is using the 2024 sheets.  While the script does modify the attributes it's supposed to modify directly, attributes that get modified indirectly through sheet worker calculations are not being updated, despite the useWorkers global config being turned on.  In this specific instance, I am toggling a global AC mod of 5 in the $0 position on and off successfully with a [[1-repeating_inventory...]] formula, but the displayed AC remains at the default 12 for the character.  I've tried searching for this issue in the forums and elsewhere on the internet but couldn't find it, so apologies if this a known issue that has already been answered.  Thanks in advance for any help you can provide. 
1781759404

Edited 1781759476
Gauss
Forum Champion
Hi Rocklobster,   It should be cycling the AC change. Please supply the exact command you are using.
1781907849

Edited 1781908059
Gauss said: Hi Rocklobster,   It should be cycling the AC change. Please supply the exact command you are using. Here's the exact command I'm using.  !setattr --silent --name Rai --repeating_acmod_$0_global_ac_active_flag|[[1-@{repeating_acmod_$0_global_ac_active_flag}]]  When I just opened the game after the sandbox being closed for a day, it correctly ran the sheet workers once, and updated the AC with the correct value, in this case changing 12 to 17, but hasn't on any subsequent uses of the command line.  And on subsequent refreshes of the VTT webpage (not restarting the API sandbox), it runs the sheet workers once, and then stops doing so. 
Try adding the character name to the attribute call: !setattr --silent --name Rai --repeating_acmod_$0_global_ac_active_flag|[[1-@{Rai|repeating_acmod_$0_global_ac_active_flag}]] If that isn't included, then the command has to be called from an Ability macro on the character. 
1781910390

Edited 1781910633
Jarren said: Try adding the character name to the attribute call: !setattr --silent --name Rai --repeating_acmod_$0_global_ac_active_flag|[[1-@{Rai|repeating_acmod_$0_global_ac_active_flag}]] If that isn't included, then the command has to be called from an Ability macro on the character.  Good call, but the command already is being called through an ability macro on the character's sheet, via my macro bar, and including the name in the attribute call within the formula made no difference. The formula works with or without it for toggling the active flag for g-AC $0. It's the sheet workers that still aren't consistently updating the displayed AC value at the top of the sheet.  I've got the same issue happening with Innate Sorcery (2024 Sorcerer) as an equippable inventory item to change the spell save DC also not working. But I figure if we solve the sheet worker consistency issue, it will fix it for any similar issue. 
1781928346
Gauss
Forum Champion
Rocklobster said: Gauss said: Hi Rocklobster,   It should be cycling the AC change. Please supply the exact command you are using. Here's the exact command I'm using.  !setattr --silent --name Rai --repeating_acmod_$0_global_ac_active_flag|[[1-@{repeating_acmod_$0_global_ac_active_flag}]]  When I just opened the game after the sandbox being closed for a day, it correctly ran the sheet workers once, and updated the AC with the correct value, in this case changing 12 to 17, but hasn't on any subsequent uses of the command line.  And on subsequent refreshes of the VTT webpage (not restarting the API sandbox), it runs the sheet workers once, and then stops doing so.  My guess is that it is something else causing the problem. Mind PMing me an invite to your game?