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 .
×
Due to an outage with an external service provider, we’re experiencing intermittent loading issues on Roll20. Please refresh if needed.
Create a free account

Magic Missile Marco question - removing spell slot used

I am trying to figure out how to automatically remove the spell slot from my character sheet when casting this macro. Right now it only removes level 1 spell slots but I would like it to remove the correct spell slot if I up cast the spell but not sure how to pull the selected spell level into {{spelllevel = X}} Thanks in advance for any input. @{Durin Balthin|wtype}&{template:dmg} {{rname=Magic Missile}}{{range=120 feet}} {{damage=1}} {{dmg1flag=1}}{{dmg1=[[?{Spell level|1|2|3|4|5|6|7|8|9}+2]] darts dealing [[1d4+1]]}} {{dmg1type=Force}} {{spelllevel=1}} {{innate=}} {{globaldamage=[[0]]}} {{globaldamagetype=@{Durin Balthin|global_damage_mod_type}}} ammo= @{Durin Balthin|charname_output}
Try setting spell level with the same prompt you are using to determine the number of missiles without the +2: {{spelllevel=[[?{Spell level|1|2|3|4|5|6|7|8|9}]]}}
That didnt work it still is subtracting a level 1 spell slot insted of a level 3 or 4 spell slot from my character sheet if I am upcasting.
See if this work @{Durin Balthin|wtype}&{template:dmg} {{rname=Magic Missile}}{{range=120 feet}} {{damage=1}} {{dmg1flag=1}}{{dmg1=[[?{Spell level|1|2|3|4|5|6|7|8|9}+2]] darts dealing [[1d4+1]]}} {{dmg1type=Force}} {{hldmg=[[(1*?{Cast at what level?|Level 1,0|Level 2,1|Level 3,2|Level 4,3|Level 5,4|Level 6,5|Level 7,6|Level 8,7|Level 9,8})d0]]}} {{spelllevel=1}} {{innate=}} {{globaldamage=[[0]]}} {{globaldamagetype=@{Durin Balthin|global_damage_mod_type}}} ammo= @{Durin Balthin|charname_output} Now one thing, I'm assuming you are using the Companion API, This mean that the API will only look for spells that have the upcast setting activated. the problem with magic missile is that the up casting only add a dart but no additional damage. The way I present the macro, it will be ask to add what level you are casting the companion API should work in the sense that it should substract the correct Spell lvl. Now since, the only way this work is to use the up cast setting this will create an additional template with a 0 in it. I hope this help!! 
Magic Missile Marco would be a nifty name for a Wizard