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

Whisper Query Causing Token Action Error

Hello all, I'm looking for some help on a token action I have written.  Normally it works fine, but when I have Whisper Query turned on I get the following error: "Unable to find a player or character with name: gm{{query=1}}" The full text of the macro is: @{selected|wtype}&{template:simple}@{selected|rtype}?{Choose Roll|-----Ability Checks-----|Strength,+@{selected|strength_mod}]]}}{{rname=Strength}} {{mod=@{selected|strength_mod}}}{{r1=[[@{selected|d20}+@{selected|strength_mod}]]|Strength Save,+@{npc_str_save}]]}}{{rname=Strength Save}} {{mod=@{npc_str_save}}}{{r1=[[@{selected|d20}+@{npc_str_save}]]|Dexterity,+@{selected|dexterity_mod}]]}}{{rname=Dexterity}} {{mod=@{selected|dexterity_mod}}}{{r1=[[@{selected|d20}+@{selected|dexterity_mod}]]|Dexterity Save,+@{selected|npc_dex_save}[DEX]]]}}{{rname=Dexterity Save}} {{mod=@{selected|npc_dex_save}}}{{r1=[[@{selected|d20}+@{selected|npc_dex_save}[DEX]]]|Constitution,+@{selected|constitution_mod}]]}}{{rname=Constitution}} {{mod=@{selected|constitution_mod}}}{{r1=[[@{selected|d20}+@{selected|constitution_mod}]]|Constitution Save,+@{selected|npc_con_save}[CON]]]}}{{rname=Constitution Save}} {{mod=@{selected|npc_con_save}}}{{r1=[[@{selected|d20}+@{selected|npc_con_save}[CON]]]|Intelligence,+@{selected|intelligence_mod}]]}}{{rname=Intelligence}} {{mod=@{selected|intelligence_mod}}}{{r1=[[@{selected|d20}+@{selected|intelligence_mod}]]|Intelligence Save,+@{selected|npc_int_save}[INT]]]}}{{rname=Intelligence Save}} {{mod=@{selected|npc_int_save}}}{{r1=[[@{selected|d20}+@{selected|npc_int_save}[INT]]]|Wisdom,+@{selected|wisdom_mod}]]}}{{rname=Wisdom}} {{mod=@{selected|wisdom_mod}}}{{r1=[[@{selected|d20}+@{selected|wisdom_mod}]]|Wisdom Save,+@{selected|npc_wis_save}[WIS]]]}}{{rname=Wisdom Save}} {{mod=@{selected|npc_wis_save}}}{{r1=[[@{selected|d20}+@{selected|npc_wis_save}[WIS]]]|Charisma,+@{selected|charisma_mod}]]}}{{rname=Charisma}} {{mod=@{selected|charisma_mod}}}{{r1=[[@{selected|d20}+@{selected|charisma_mod}]]|Charisma Save,+@{selected|npc_cha_save}[CHA]]]}}{{rname=Charisma Save}} {{mod=@{selected|npc_cha_save}}}{{r1=[[@{selected|d20}+@{selected|npc_cha_save}[CHA]]]|----Skill Checks----|Acrobatics,+@{npc_acrobatics}]]}}{{rname=Acrobatics}} {{mod=@{npc_acrobatics}}}{{r1=[[@{selected|d20}+@{npc_acrobatics}]]|Animal Handling,+@{npc_animal_handling}]]}}{{rname=Animal Handling}} {{mod=@{npc_animal_handling}}}{{r1=[[@{selected|d20}+@{npc_animal_handling}]]|Arcana,+@{npc_arcana}]]}}{{rname=Arcana}} {{mod=@{npc_arcana}}}{{r1=[[@{selected|d20}+@{npc_arcana}]]|Athletics,+@{npc_athletics}]]}}{{rname=Athletics}} {{mod=@{npc_athletics}}}{{r1=[[@{selected|d20}+@{npc_athletics}]]|Deception,+@{npc_deception}]]}}{{rname=Deception}} {{mod=@{npc_deception}}}{{r1=[[@{selected|d20}+@{npc_deception}]]|History,+@{npc_history}]]}}{{rname=History}} {{mod=@{npc_history}}}{{r1=[[@{selected|d20}+@{npc_history}]]|Insight,+@{npc_insight}]]}}{{rname=Insight}} {{mod=@{npc_insight}}}{{r1=[[@{selected|d20}+@{npc_insight}]]|Intimidation,+@{npc_intimidation}]]}}{{rname=Intimidation}} {{mod=@{npc_intimidation}}}{{r1=[[@{selected|d20}+@{npc_intimidation}]]|Investigation,+@{npc_investigation}]]}}{{rname=Investigation}} {{mod=@{npc_investigation}}}{{r1=[[@{selected|d20}+@{npc_investigation}]]|Medicine,+@{npc_medicine}]]}}{{rname=Medicine}} {{mod=@{npc_medicine}}}{{r1=[[@{selected|d20}+@{npc_medicine}]]|Nature,+@{npc_nature}]]}}{{rname=Nature}} {{mod=@{npc_nature}}}{{r1=[[@{selected|d20}+@{npc_nature}]]|Perception,+@{npc_perception}]]}}{{rname=Perception}} {{mod=@{npc_perception}}}{{r1=[[@{selected|d20}+@{npc_perception}]]|Performance,+@{npc_performance}]]}}{{rname=Performance}} {{mod=@{npc_performance}}}{{r1=[[@{selected|d20}+@{npc_performance}]]|Persuasion,+@{npc_persuasion}]]}}{{rname=Persuasion}} {{mod=@{npc_persuasion}}}{{r1=[[@{selected|d20}+@{npc_persuasion}]]|Religion,+@{npc_religion}]]}}{{rname=Religion}} {{mod=@{npc_religion}}}{{r1=[[@{selected|d20}+@{npc_religion}]]|Sleight of Hand,+@{npc_sleight_of_hand}]]}}{{rname=Sleight of Hand}} {{mod=@{npc_sleight_of_hand}}}{{r1=[[@{selected|d20}+@{npc_sleight_of_hand}]]|Stealth,+@{npc_stealth}]]}}{{rname=Stealth}} {{mod=@{npc_stealth}}}{{r1=[[@{selected|d20}+@{npc_stealth}]]|Survival,+@{npc_survival}]]}}{{rname=Survival}} {{mod=@{npc_survival}}}{{r1=[[@{selected|d20}+@{npc_survival}]]}}} I did try removing "@{selected|wtype}" from the beginning of the macro, but then it just posts directly to chat without querying whisper or public. Any suggestions?
1596212819
Oosh
Sheet Author
API Scripter
Try adding a couple of spaces - it looks like the "/w gm" is getting pushed up against the start of @{rtype}, "{{query=1}}". So: @{selected|wtype} &{template:simple} @{selected|rtype}.... Probably only one of them is needed.
Ah, that fixed right up.  Thank you!