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

Need some help with Query

1503703101
Mike W.
Pro
Sheet Author
Ok I have an entry in my macro with this line: {{Eff. Skill:= ?{Effective Skill|[[ @{repeating_skill_-Kr1wpC1yAgbevfRlcZb_statscore} + @{repeating_skill_-Kr1wpC1yAgbevfRlcZb_level}} ]]}} In this example: statscore has a value of 14 level has a value of 0 The problem is that when the query asks me the input, it displays  [[ 14 + 0 The output in chat is correct. What I want it to display. in the query, is the numeric total of 14. What am I doing wrong here? Thanks for any help.
{{Eff. Skill:=?{Effective Skill|[[@{repeating_skill_Kr1wpC1yAgbevfRlcZb_statscore}+@{repeating_skill_-Kr1wpC1yAgbevfRlcZb_level}]]}}} Try that. That should fix the syntax, but I don't know if it will run the inline roll inside the query before output.
1503705946

Edited 1503706567
Mike W.
Pro
Sheet Author
Thanks but I am afraid that made things worse. The entire macro is (using your change); &{template:default} {{name= **@{selected|character_name}** tries to **apply First Aid to** **@{target|token_name}**}} {{Eff. Skill:=?{Effective Skill|[[@{repeating_skill_Kr1wpC1yAgbevfRlcZb_statscore}+@{repeating_skill_-Kr1wpC1yAgbevfRlcZb_level}]]}}} The Input display for the query is now a dropdown - it displays [[Urak  (Urak is the name of the character) repeating_skill_Kr1wpC1yAgbevfRlcZb_statscore}+0]] Selecting either one results in nothing.
1503709183
Mike W.
Pro
Sheet Author
The best I coudl get is this: ?{Effective Skill|@{repeating_skill_-Kr1wpC1yAgbevfRlcZb_statscore}+@{repeating_skill_-Kr1wpC1yAgbevfRlcZb_level}} {{**Eff. Skill:=[[?{Effective Skill|}]]**}} This query displays 14+0 but I can live with that and it allows me to change the value here if I want.