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

Shadowdark ChatSetAttr repeating_attack

Is there a way that I can set atkattr_base to a real stat instead of setting it to nil or defaulting to strength? The potential values are "@{strength_mod}" "@{dexterity_mod}" "@{constitution_mod}" "@{intelligence_mod}" "@{wisdom_mod}" "@{charisma_mod}" and "0" I cannot think of a way to get it to work.  Here is an example of what I have been doing in lieu of setting atkattr_base to anything meaningful.  !setattr {{ --sel --mute --repeating_attack_-CREATE_atkname|FIREBALL (INT) --repeating_attack_-CREATE_atkattr_base|0 --repeating_attack_-CREATE_atkmod|@{selected|intelligence_mod}+0 --repeating_attack_-CREATE_duration|Instant --repeating_attack_-CREATE_castdc|13 --repeating_attack_-CREATE_atkrange|Far --repeating_attack_-CREATE_atkcritrange|20 --repeating_attack_-CREATE_dmg1flag|checked --repeating_attack_-CREATE_dmgbase|4d6 --repeating_attack_-CREATE_atk_desc|You hurl a small flame that erupts into a fiery blast. All creatures in a near-sized cube around where the flame lands take 4d6 damage. --repeating_attack_-CREATE_options-flag|0 --repeating_attack_-CREATE_equipped|1 --repeating_attack_-CREATE_fixed|1 }} Any help is much appreciated. 
When you send the message, Roll20 processes any attribute calls before  sending the message on to the Mod script server, so @{selected|intelligence_mod} is being parsed into whatever value it is. Instead, you want to make sure that the attribute call is entered into the spell exactly as '@{selected|intelligence_mod}'. The way to do that is by using the ChatSetAttr '--replace' function (adding --replace and changing the @ symbol to \at), which would look like this (untested): !setattr {{ --sel --mute --replace --repeating_attack_-CREATE_atkname|FIREBALL (INT) --repeating_attack_-CREATE_atkattr_base|0 --repeating_attack_-CREATE_atkmod|\at{selected|intelligence_mod}+0 --repeating_attack_-CREATE_duration|Instant --repeating_attack_-CREATE_castdc|13 --repeating_attack_-CREATE_atkrange|Far --repeating_attack_-CREATE_atkcritrange|20 --repeating_attack_-CREATE_dmg1flag|checked --repeating_attack_-CREATE_dmgbase|4d6 --repeating_attack_-CREATE_atk_desc|You hurl a small flame that erupts into a fiery blast. All creatures in a near-sized cube around where the flame lands take 4d6 damage. --repeating_attack_-CREATE_options-flag|0 --repeating_attack_-CREATE_equipped|1 --repeating_attack_-CREATE_fixed|1 }} It's also possible that the actual value that needs to be entered through ChatSetAttr is not the attribute call, but something similar but different. Which character sheet are you using? 
There is only the one Shadowdark sheet that I know of.  That resulted with "@{selected" in the atkmod field.