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

Some attributes of repeating abilities inaccessible from sendChat, causing issues with repeating abilities

Running repeating actions is still a problem for me in the 5E Shaped character sheet. Using the chat window to input: %{Nozzlefizz|repeating_spellbooklevel2_$1_SpellCast} gives me whereas in a script, using sendChat("Nozzlefizz", "%{Nozzlefizz|repeating_spellbooklevel2_$1_SpellCast}") yields with a whole host of errors: "Error: Unable to find attribute named repeating_spellbooklevel2_1_spellconcentration for character Nozzlefizz(-K8-O8mHzyqS3szpPr92) in chat command." "Error: Unable to find attribute named repeating_spellbooklevel2_1_spellritual for character Nozzlefizz(-K8-O8mHzyqS3szpPr92) in chat command." "Error: Unable to find attribute named repeating_spellbooklevel2_1_spell_toggle_description for character Nozzlefizz(-K8-O8mHzyqS3szpPr92) in chat command." "Error: Unable to find attribute named repeating_spellbooklevel2_1_spell_toggle_higher_lvl for character Nozzlefizz(-K8-O8mHzyqS3szpPr92) in chat command." "Error: Unable to find attribute named repeating_spellbooklevel2_1_spell_toggle_attack for character Nozzlefizz(-K8-O8mHzyqS3szpPr92) in chat command." "Error: Unable to find attribute named repeating_spellbooklevel2_1_spell_toggle_attack_damage for character Nozzlefizz(-K8-O8mHzyqS3szpPr92) in chat command." "Error: Unable to find attribute named repeating_spellbooklevel2_1_spell_toggle_attack_second_damage for character Nozzlefizz(-K8-O8mHzyqS3szpPr92) in chat command." "Error: Unable to find attribute named repeating_spellbooklevel2_1_spell_toggle_attack_crit for character Nozzlefizz(-K8-O8mHzyqS3szpPr92) in chat command." "Error: Unable to find attribute named repeating_spellbooklevel2_1_spell_toggle_save_second_damage for character Nozzlefizz(-K8-O8mHzyqS3szpPr92) in chat command." "Error: Unable to find attribute named repeating_spellbooklevel2_1_spell_toggle_bonuses for character Nozzlefizz(-K8-O8mHzyqS3szpPr92) in chat command." "Error: Unable to find attribute named repeating_spellbooklevel2_1_spell_toggle_healing for character Nozzlefizz(-K8-O8mHzyqS3szpPr92) in chat command." "Error: Unable to find attribute named repeating_spellbooklevel2_1_spell_toggle_source for character Nozzlefizz(-K8-O8mHzyqS3szpPr92) in chat command." "Error: Unable to find attribute named repeating_spellbooklevel2_1_spell_toggle_gained_from for character Nozzlefizz(-K8-O8mHzyqS3szpPr92) in chat command." "Error: Unable to find attribute named spellcomponents_material_var for character Nozzlefizz(-K8-O8mHzyqS3szpPr92) in chat command." "Error: Unable to find attribute named spell_var_emote for character Nozzlefizz(-K8-O8mHzyqS3szpPr92) in chat command." "Error: Unable to find attribute named spell_var_save for character Nozzlefizz(-K8-O8mHzyqS3szpPr92) in chat command." "Error: Unable to find attribute named spell_var_save_damage for character Nozzlefizz(-K8-O8mHzyqS3szpPr92) in chat command." "Error: Unable to find attribute named spell_var_effects for character Nozzlefizz(-K8-O8mHzyqS3szpPr92) in chat command." "Error: Unable to find attribute named spell_var_output_higher_lvl_query for character Nozzlefizz(-K8-O8mHzyqS3szpPr92) in chat command." Different than it used to be, but still non-functional. It seems like some attributes work, some don't. For example, both the chat window and `sendChat` evaluate `@{Nozzlefizz|repeating_spellbooklevel2_$1_spellname}` to "Shatter". By contrast, entering @{Nozzlefizz|repeating_spellbooklevel2_$1_spell_var_emote} in the chat window yields {{emote=evokes a sudden loud, painfully intense, ringing noise}} but in a script, using sendChat("Nozzlefizz", "@{Nozzlefizz|repeating_spellbooklevel2_$1_spell_var_emote}") sends Nozzlefizz|repeating_spellbooklevel2_$1_spell_var_emote to the chat window, and logs the following in the API output console "Error: Unable to find attribute named repeating_spellbooklevel2_1_spell_var_emote for character Nozzlefizz(-K8-O8mHzyqS3szpPr92) in chat command."
1459285889

Edited 1459285912
Phil B.
Forum Champion
Sheet Author
Okay, this looks like a bug. sendChat macros would work for me on simple cases, where I was just getting a value directly from an attribute. It started to break, like you showed, once that macro was referencing other attributes. For some reason it's not able to find the other attributes within the macro, like it should. This is why you get a whole bunch of errors, those are all the attr referenced within that SpellCast roll template. I have documented this bug and we will lot into fixing it as soon as we have a chance.
1460125986
Lucian
Pro
API Scripter
That would be great - this causes a load of issues for me with the Shaped Support script as well so I'd love for this to get fixed. When someone looks at this, could they be sure that it works with the asynchronous version of sendChat as well as the synchronous one - I think there have been differences between them in the past? Thanks!