I handle my players spells by creating a nested query driven dialogue then then outputs a button to chat that they click to cast. This allows me to have all the spells set up as macros and using the button saves me having to ensure that they are suitably escaped for being as part of a nested query (see below for the Sorcerer's setup, I have spreadsheets set up to help me generate this nonsense ;) ): /w "@{selected|character_name}" ?{What Level|
0,?{Spell|
Acid Splash,[Acid Splash](!
#acidsplash)|
Dancing Lights,[Dancing Lights](!
#dancinglights)|
Daze,[Daze](!
#daze)|
Detect Magic,[Detect Magic](!
#detectmagic)|
Disrupt Undead,[Disrupt Undead](!
#disruptundead)|
Light,[Light](!
#light)|
Mage Hand,[Mage Hand](!
#magehand)|
Read Magic,[Read Magic](!
#readmagic)|
Resistance,[Resistance](!
#resistance)}|
1,?{Spell|
Backbiter,[Backbiter](!
#backbiter)|
Benign Transposition,[Benign Transposition](!
#benigntransposition)|
Identify,[Identify](!
#identify)|
Mage Armour,[Mage Armour](!
#magearmour)|
Magic Missile,[Magic Missile](!
#magicmissile)|
Orb of Fire, Lesser,[Orb of Fire, Lesser](!
#orboffirelesser)|
Targetting Ray,[Targetting Ray](!
#targettingray)}|
2,?{Spell|
Belker Claws,[Belker Claws](!
#belkerclaws)|
Fireburst,[Fireburst](!
#fireburst)|
Mirror Image,[Mirror Image](!
#mirrorimage)|
Rainbow Beam,[Rainbow Beam](!
#rainbowbeam)|
Snowball Swarm,[Snowball Swarm](!
#snowballswarm)|
Spectral Hand,[Spectral Hand](!
#spectralhand)|
Spider Climb,[Spider Climb](!
#spiderclimb)|
Wings of Cover,[Wings of Cover](!
#wingsofcover)}|
3,?{Spell|
Fireball,[Fireball](!
#fireball)|
Fly,[Fly](!
#fly)|
Haste,[Haste](!
#haste)|
Magic Circle Against Evil,[Magic Circle Against Evil](!
#magiccircleagainstevil)}|
4,?{Spell|
Evard's Black Tentacles,[Evard's Black Tentacles](!
#evardsblacktentacles)|
Explosive Cascade,[Explosive Cascade](!
#explosivecascade)|
Force Missiles,[Force Missiles](!
#forcemissiles)|
Greater Invisibility,[Greater Invisibility](!
#greaterinvisibility)|
Orb of Cold,[Orb of Cold](!
#orbofcold)|
Wings of Flurry,[Wings of Flurry](!
#wingsofflurry)}|
5,?{Spell|
Earth Reaver,[Earth Reaver](!
#earthreaver)|
Hold Monster,[Hold Monster](!
#holdmonster)|
Reciprocal Gyre,[Reciprocal Gyre](!
#reciprocalgyre)|
Wall of Limbs,[Wall of Limbs](!
#walloflimbs)}|
6,?{Spell|
Chain Lightning,[Chain Lightning](!
#chainlightning)|
Globe of Invulnerability,[Globe of Invulnerability](!
#globeofinvulnerability)}
}