I am not sure why you are trying to make a macro out of Sleep. Sleep already does all this. If you are just trying to modify the spellcard to display the results instead of attack form, this is how you do that: The key is to copy the Query that the upcast spell is already using, then use that. So using Sleep as the example: 1) I drag Sleep from the Compendium to the character sheet. 2) I switch Sleep from Attack to Spellcard 3) I click Sleep and cast it. The game asks me for the spell level. 4) I click on the Chat box (where you type), and then hit the up arrow on my keyboard. 5) Copy that it will look like this (I bolded one section): @{Kreb Whoabro|wtype}&{template:spell} {{level=enchantment ?{Cast at what level? 1|Level 1,1|Level 2,2|Level 3,3|Level 4,4|Level 5,5|Level 6,6|Level 7,7|Level 8,8|Level 9,9} }} {{name=Sleep}} {{castingtime=1 action}} {{range=90 feet}} {{target=Creatures within 20 feet of a point you choose within range (in ascending order of their current hit points, ignoring unconscious creatures)}} {{v=1}} {{s=1}} {{m=1}} {{material=A pinch of fine sand, rose petals, or a cricket}} {{duration=1 minute}} {{description=This spell sends creatures into a magical slumber. Roll 5d8; the total is how many hit points of creatures this spell can affect. Creatures within 20 feet of a point you choose within range are affected in ascending order of their current hit points (ignoring unconscious creatures). Starting with the creature that has the lowest current hit points, each creature affected by this spell falls unconscious until the spell ends, the sleeper takes damage, or someone uses an action to shake or slap the sleeper awake. Subtract each creature’s hit points from the total before moving on to the creature with the next lowest hit points. A creature’s hit points must be equal to or less than the remaining total for that creature to be affected. Undead and creatures immune to being charmed aren’t affected by this spell.}} {{athigherlevels=When you cast this spell using a spell slot of 2nd level or higher, roll an additional 2d8 for each slot level above 1st.}} 0 {{innate=}} {{savedc=@{Kreb Whoabro|spell_save_dc}}} 0 @{Kreb Whoabro|charname_output} 6) I take the bolded section and I use that to tweak the description. "Roll 5d8; the total is how many hit points of creatures this spell can affect." becomes: Roll [[(?{Cast at what level? 1|Level 1,1|Level 2,2|Level 3,3|Level 4,4|Level 5,5|Level 6,6|Level 7,7|Level 8,8|Level 9,9}+5)d8]] (5d8); the total is how many hit points of creatures this spell can affect. So now my new description in the spell goes from this: This spell sends creatures into a magical slumber. Roll 5d8; the total is how many hit points of creatures this spell can affect. Creatures within 20 feet of a point you choose within range are affected in ascending order of their current hit points (ignoring unconscious creatures). Starting with the creature that has the lowest current hit points, each creature affected by this spell falls unconscious until the spell ends, the sleeper takes damage, or someone uses an action to shake or slap the sleeper awake. Subtract each creature’s hit points from the total before moving on to the creature with the next lowest hit points. A creature’s hit points must be equal to or less than the remaining total for that creature to be affected. Undead and creatures immune to being charmed aren’t affected by this spell. To this: This spell sends creatures into a magical slumber. Roll [[(?{Cast at what level? 1|Level 1,1|Level 2,2|Level 3,3|Level 4,4|Level 5,5|Level 6,6|Level 7,7|Level 8,8|Level 9,9}+5)d8]] (5d8) ; the total is how many hit points of creatures this spell can affect. Creatures within 20 feet of a point you choose within range are affected in ascending order of their current hit points (ignoring unconscious creatures). Starting with the creature that has the lowest current hit points, each creature affected by this spell falls unconscious until the spell ends, the sleeper takes damage, or someone uses an action to shake or slap the sleeper awake. Subtract each creature’s hit points from the total before moving on to the creature with the next lowest hit points. A creature’s hit points must be equal to or less than the remaining total for that creature to be affected. Undead and creatures immune to being charmed aren’t affected by this spell.