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

draw result directly from a Conditional Statement (--?)

If this has been covered,.. I can't find it... I'm trying to draw a result, as text, directly from a Conditional Statement for a text comment in the text box of a script result for a Hex spell.  e.g. Here's the lines of script and looking for how to fill the blank with the chosen ability.   --?{Ability|Strength|Dexterity|Constitution|Intelligence|Wisdom|Charisma}   --+|The foe's [________] is cursed and all rolls will be at disadvantage.
1718845149
Gauss
Forum Champion
Have you tried putting the q uery in both places? 
Thanx for the reply Gauss!! I'm extreeeemly novice to this,.. in fact only been doing it for about a week,.. though I'm retired, and this has pretty much occupied most of what would have been a work week... ANYwayz... I'm not sure what You mean by " putting the q uery in both places? " btw.. not sure if it's possible, would be excellent if there were a way to apply the "curse" to the target to effect the rolls directly,.. then a way to turn it off when it ends...  but that might just be wishful thinking...
Dink, keep in mind all roll queries ?{}, like all Roll20 features like attribute references @{} and ability calls %{}, will process first before ScriptCards runs. So if you use a roll query in a ScriptCard like that it will always fire. If that's what you want, then you can set a string variable with: --&Ability|?{Ability|Strength|Dexterity|Constitution|Intelligence|Wisdom|Charisma} --+|The foe's [&Ability] is cursed and all rolls will be at disadvantage. This works similar to setting something with @{selected|token_id} or the like cause Roll20 will process that first and then hand off the filled in value to ScriptCards so by the time SC runs it would see something like: --&Ability|Strength There are other ways to get input as well that honor ScriptCards conditionals if you need them. `--i` and re-entry buttons can grab input from users and the resume the ScriptCard run.