
Playing D&D 4th Edition, my character has a few weapon powers that can use either melee or ranged weapons, I initially have separate power macros for either version, but recently I tried writing a single one that asks which weapon I'm using, but I found a few errors. This is the macro I wrote using the roll queries: &{template:dnd4epower} {{atwill=1}} {{name=Magic Weapon ( ?{Weapon used?|Morningstar|Repeating Crossbow} )}} {{level=1}} {{type=At-Will}} {{keywords=Arcane, Weapon}} {{action=Standard}} {{range= ?{Weapon used?|Morningstar, Melee 1|Repeating Crossbow, Ranged 10/20} }} {{target=One Creature}} {{attack=[[1d20+floor(@{level}/2)+@{intelligence-mod}+ ?{Weapon used?|Morningstar, @{weapon-1-prof}+@{weapon-1-attack-feat}+@{weapon-1-enh}|Repeating Crossbow, @{weapon-2-prof}+@{weapon-2-attack-feat}+@{weapon-2-enh}+ ?{Long Range?|No, 0|Yes, -2} } +1]] vs. @{power-3-def}}} {{damage=[[ ?{Weapon used?|Morningstar, (1*@{weapon-1-num-dice})d@{weapon-1-dice}|Repeating Crossbow, (1*@{weapon-2-num-dice})d@{weapon-2-dice}} +@{intelligence-mod}+ ?{Weapon used?|Morningstar, @{weapon-1-damage-feat}+@{weapon-1-enh}|Repeating Crossbow, @{weapon-2-damage-feat}+@{weapon-2-enh}} ]] damage}} {{critical=[[ ?{Weapon used?|Morningstar, (1*@{weapon-1-num-dice})*@{weapon-1-dice}|Repeating Crossbow, (1*@{weapon-2-num-dice})*@{weapon-2-dice}} +@{intelligence-mod}+ ?{Weapon used?|Morningstar, @{weapon-1-damage-feat}+@{weapon-1-enh}|Repeating Crossbow, @{weapon-2-damage-feat}+@{weapon-2-enh}} ]] damage}} {{hiteffect=each ally adjacent to Mora gains a +1 Power bonus to attack rolls and a +[[@{wisdom-mod}]] Power bonus to damage rolls until the End of Mora's Next Turn}} specific queries bolded to highlight The intent is to initially ask me whether my character is using the Morningstar or the Repeating Crossbow, and as I've noticed with Roll Queries it should only ask once and future calls to a similar "Name of Query" will simply refer to the initial one. As I run the macro, I get the query as it should, but I get no results in the chat. Also as I was experiencing these problems, I tested typing out similar repeated queries but noticed more evident problems. I anticipated that the initial query would be the basis for future similar queries that have different values (if any) such as the initial one simply referring to its label while the later ones return values for the weapons the query is meant to refer to such as saying either "Melee 1" or "Ranged 10/20" for the range parameters of the power, but as I tested outside of my macro, the later queries simply respond exactly as the first one does. For example: if I had entered the following straight into the chat: ?{choose|Option 1|Option 2} ?{choose|Option 1, not option 2|Option 2, not option 1} It would return the following if I chose the second option (only once as intended): Option 2 Option 2 It would not say "not option 1" in the second line instead of just repeating the first. I noticed similar results if I had given a proper value to the initial query resulting in repeated lines.