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
This post has been closed. You can still view previous posts, but you can't post any new replies.

Magic Missile macro help!

I'm currently trying to make a macro for Magic Missile by combing @{target|1|token_name} for [[1d4+1]] force damage, @{target|2|token_name} for [[1d4+1]] force damage, and @{target|3|token_name} for [[1d4+1]] force damage! and something like ? {Spell| Cure Light Wounds,&nbsp; Cure Light Wounds &nbsp;Target Regains [[1d8+5]] HP. | Cure Moderate Wounds,&nbsp; Cure Moderate Wounds &nbsp;Target Regains [[2d8+8]] HP. | Cure Serious Wounds,&nbsp; Cure Serious Wounds &nbsp;Target Regains [[3d8+8]] HP. } In order to create a prompt asking what level so the first macro can include the correct amount of missiles...I have had trouble and I think my "best" attempt looks something like ?{Level| 1,&nbsp; Magic Missile 1 (@{target|1|token_name} for [[1d4+1]] force damage,@{target|2|token_name} for [[1d4+1]] force damage, and @{target|3|token_name} for [[1d4+1]] force damage!) | 2,&nbsp; Magic Missile 2 &nbsp;(@{target|1|token_name} for [[1d4+1]] force damage,@{target|2|token_name} for [[1d4+1]] force damage, and @{target|3|token_name} for [[1d4+1]] force damage!) } which posts&nbsp; <a href="https://gyazo.com/002afdef9a8243ee84d93a2775fdf7e6" rel="nofollow">https://gyazo.com/002afdef9a8243ee84d93a2775fdf7e6</a> &nbsp;Any advice on fixing this setup or another good way to do it is appreciated. I am able to make one without the targeting aspect of it however I would very more like to include that in the macro.
1547851767

Edited 1547851910
vÍnce
Pro
Sheet Author
You should remove the extra commas that are embedded within your query since they can break the query.&nbsp; I assume you want to keep increasing your magic missiles by one as you choose a higher slot?&nbsp; Like(this only goes to level 3, but you can add on as many levels as you like...); ?{Level| 1, Magic Missile 1(@{target|1|token_name} for [[1d4+1]] force damage and @{target|2|token_name} for [[1d4+1]] force damage and @{target|3|token_name} for [[1d4+1]] force damage!) | 2, Magic Missile 2 (@{target|1|token_name} for [[1d4+1]] force damage and @{target|2|token_name} for [[1d4+1]] force damage and @{target|3|token_name} for [[1d4+1]] force damage! and @{target|4|token_name} for [[1d4+1]] force damage!)| 3, Magic Missile 3 (@{target|1|token_name} for [[1d4+1]] force damage and @{target|2|token_name} for [[1d4+1]] force damage and @{target|3|token_name} for [[1d4+1]] force damage! and @{target|4|token_name} for [[1d4+1]] force damage! and @{target|5|token_name} for [[1d4+1]] force damage!) } The only issue I see is that you'll be prompted for as many targets as you have embedded in your query even if you are casting at a lower level.&nbsp; Damage will only be displayed for the appropriate level though.&nbsp;&nbsp;
Thank you I ended up with this ,and it works just the way I wanted aside from the targeting issue! &amp;{template:default} {{name=Magic Missile}} {{ ?{Level| 1, Magic Missile 1(@{target|1|token_name} for [[1d4+1]] and @{target|2|token_name} for [[1d4+1]] and @{target|3|token_name} for [[1d4+1]] force damage!) | 2, Magic Missile 2 (@{target|1|token_name} for [[1d4+1]] and @{target|2|token_name} for [[1d4+1]] and @{target|3|token_name} for [[1d4+1]] and @{target|4|token_name} for [[1d4+1]] force damage!)| 3, Magic Missile 3 (@{target|1|token_name} for [[1d4+1]] and @{target|2|token_name} for [[1d4+1]] and @{target|3|token_name} for [[1d4+1]] and @{target|4|token_name} for [[1d4+1]] and @{target|5|token_name} for [[1d4+1]] force damage!)| 4, Magic Missile 4 (@{target|1|token_name} for [[1d4+1]] and @{target|2|token_name} for [[1d4+1]] and @{target|3|token_name} for [[1d4+1]] and @{target|4|token_name} for [[1d4+1]] And @{target|5|token_name} for [[1d4+1]] and @{target|6|token_name} for [[1d4+1]] force damage!)| 5, Magic Missile 5 (@{target|1|token_name} for [[1d4+1]] and @{target|2|token_name} for [[1d4+1]] and @{target|3|token_name} for [[1d4+1]] and @{target|4|token_name} for [[1d4+1]] And @{target|5|token_name} for [[1d4+1]] and @{target|6|token_name} for [[1d4+1]] and @{target|7|token_name} for [[1d4+1]] force damage!)| 6, Magic Missile 6 (@{target|1|token_name} for [[1d4+1]] and @{target|2|token_name} for [[1d4+1]] and @{target|3|token_name} for [[1d4+1]] and @{target|4|token_name} for [[1d4+1]] And @{target|5|token_name} for [[1d4+1]] and @{target|6|token_name} for [[1d4+1]] and @{target|7|token_name} for [[1d4+1]] and @{target|8|token_name} for [[1d4+1]] force damage!)| 7, Magic Missile 7 (@{target|1|token_name} for [[1d4+1]] and @{target|2|token_name} for [[1d4+1]] and @{target|3|token_name} for [[1d4+1]] and @{target|4|token_name} for [[1d4+1]] And @{target|5|token_name} for [[1d4+1]] and @{target|6|token_name} for [[1d4+1]] and @{target|7|token_name} for [[1d4+1]] and @{target|8|token_name} for [[1d4+1]] and @{target|9|token_name} for [[1d4+1]] force damage!)| 8, Magic Missile 8 (@{target|1|token_name} for [[1d4+1]] and @{target|2|token_name} for [[1d4+1]] and @{target|3|token_name} for [[1d4+1]] and @{target|4|token_name} for [[1d4+1]] And @{target|5|token_name} for [[1d4+1]] and @{target|6|token_name} for [[1d4+1]] and @{target|7|token_name} for [[1d4+1]] and @{target|8|token_name} for [[1d4+1]] and @{target|9|token_name} for [[1d4+1]] and @{target|10|token_name} for [[1d4+1]] force damage! )| 9, Magic Missile 9 (@{target|1|token_name} for [[1d4+1]] and @{target|2|token_name} for [[1d4+1]] and @{target|3|token_name} for [[1d4+1]] and @{target|4|token_name} for [[1d4+1]] And @{target|5|token_name} for [[1d4+1]] and @{target|6|token_name} for [[1d4+1]] and @{target|7|token_name} for [[1d4+1]] and @{target|8|token_name} for [[1d4+1]] and @{target|9|token_name} for [[1d4+1]] and @{target|10|token_name} for [[1d4+1]] and @{target|11|token_name} for [[1d4+1]] force damage!) } }}