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

Token Actions and Dropdowns

Hello All, I apologize if the solution for this is obvious, please don't crucify me for stupidity. :) I am attempting to use&nbsp;%{selected|repeating_npcaction_$0_npc_action} as a token action.&nbsp; If the string is added into the action by itself it behaves as expected, however when attempting to combine several of these actions into a single drop-down as described in&nbsp; <a href="https://wiki.roll20.net/Macros#Drop-Down_Prompts_f" rel="nofollow">https://wiki.roll20.net/Macros#Drop-Down_Prompts_f</a>... it outputs the literal text to the chatlog instead of parsing it. I have tested that the output is correct by copying the output from the chat log and re-entering it, which results in the correct ability card being shown. Here is the string I am using the the Token Ability: ?{Select Attack|Disarming Strike,%&#123;selected&#124;repeating_npcaction_$2_npc_action&#125;|Dagger,%&#123;selected&#124;repeating_npcaction_$5_npc_action&#125;} Any help would be greatly appreciated!
Please note that I am correctly using the HTML codes for {, |, and }.&nbsp; This forum is automatically translating them when I enter them.
1529530109
The Aaron
Pro
API Scripter
You might find the answer in this section:&nbsp; <a href="https://wiki.roll20.net/Macros#Advanced_Usage_for_" rel="nofollow">https://wiki.roll20.net/Macros#Advanced_Usage_for_</a>... It seem to indicate that you don't need to HTML escape the calls to abilities.&nbsp; I've not tried to call abilities from Roll Queries, so I'm not well versed.
Unfortunately not using the HTML codes breaks the dropdown portion of the action: I am expecting to see:
1529530913
The Aaron
Pro
API Scripter
Bummer.&nbsp; Maybe Silvyre can help. He's a wiz at these things...
1529535653

Edited 1529535786
Silvyre
Forum Champion
Hi Mister Nibbles , This post explains why you're having trouble with nesting Ability calls (e.g. %{selected|repeating_npcaction_$0_npc_action}) within a Roll Query. That post does not provide a solution to your specific issue, but this post&nbsp;by Scott C. discusses your specific issue in detail and provides two workarounds. I hope this helps, and let me know if you have any further questions!