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

Ability Call in Query not working

1615813683

Edited 1615813752
So I'm trying to do this, but the ability "Spells" in the last roll query option isn't firing: ?{You have @{selected|class_resource} Ki points remaining, what would you like to do?|Patient Defense,!setattr --silent --name Onas "OG" Glynris --modb --class_resource#-1 !token-mod --set statusmarkers#!dodging|Flurry of Blows,!setattr --silent --name Onas "OG" Glynris --modb --class_resource#-1 /w Onas Make 2x Unarmed Strikes...|Step of the Wind,!setattr --silent --name Onas "OG" Glynris --modb --class_resource#-1 /w Onas You may take Disengage or Dash action as a bonus action, and your jump distance is doubled|Cast a Spell (2),%{Selected|Spells} !setattr --silent --name Onas "OG" Glynris --modb --class_resource#-2} The ability "Spells" fires correctly using %{Selected|Spells} elsewhere, and the class resource is being deducted correctly... so why is the ability call not firing within the roll query?
1615813895
Ziechael
Forum Champion
Sheet Author
API Scripter
What are the contents of the ability 'spells'? If it contains problematic characters for a query ( , | or } ) then it will cause a problem...
Yeah it absolutely does... /w @{character_name} @{wtype} &{template:default}{{name=@{character_name} }}{{• Spellbook Cantrips=[Minor Illusion](~selected|repeating_spell-cantrip_$0_spell)}}{{• Spellbook Level 2 (@{Selected|lvl2_slots_expended}/@{Selected|lvl2_slots_total})=[Darkness](~selected|repeating_spell-2_$0_spell)[Darkvision](~selected|repeating_spell-2_$1_spell)[Pass without Trace](~selected|repeating_spell-2_$2_spell)[Silence](~selected|repeating_spell-2_$3_spell)}}
HTML escapes on that aren't going to work for me... I'll have to find another solution. Thanks!
1615817138

Edited 1615817313
Ziechael
Forum Champion
Sheet Author
API Scripter
Try this instead then, will mean an extra click but better than duplicating or fundamentally changing the spells ability: ?{You have @{selected|class_resource} Ki points remaining, what would you like to do?|Patient Defense,!setattr --silent --name Onas "OG" Glynris --modb --class_resource#-1 !token-mod --set statusmarkers#!dodging|Flurry of Blows,!setattr --silent --name Onas "OG" Glynris --modb --class_resource#-1 /w Onas Make 2x Unarmed Strikes...|Step of the Wind,!setattr --silent --name Onas "OG" Glynris --modb --class_resource#-1 /w Onas You may take Disengage or Dash action as a bonus action, and your jump distance is doubled|Cast a Spell (2), [Cast a Spell](!
%{selected | Spells }) !setattr --silent --name Onas "OG" Glynris --modb --class_resource#-2}