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

Wand of Magic Missile

Hi everyone, I need help to best configure the commands for a Wand of Magic Missile; I merged the macro found at this link (<a href="https://app.roll20.net/forum/post/6333139/slug%7D" rel="nofollow">https://app.roll20.net/forum/post/6333139/slug%7D</a>) with the "ammo" API and by doing so I can get three separate dice roll results and the charges are correctly scaled; the "problem" is that I have to enter twice the number of charges spent, is there a possibility to link the two values? Here is what I wrote: &amp;{template:default} {{name=Missile Magico}} !ammo @{selected|token_id} other_resource ?{Number of Charges |-1|-2|-3|-4|-5|-6|-7} cariche ?{Number of Charges |1,[[1d4+1]] [[1d4+1]] [[1d4+1]] |2,[[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] |3,[[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] |4,[[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] |5,[[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] |6,[[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] |7,[[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] } Normal 0 14 false false false IT X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Tabella normale"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm; mso-para-margin-right:0cm; mso-para-margin-bottom:8.0pt; mso-para-margin-left:0cm; line-height:107%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-fareast-language:EN-US;}
1607694654
Jordan C.
Pro
API Scripter
You should not need the first part unless you intend to use the ammo api - try this: ?{Number of Charges |1,[[1d4+1]] [[1d4+1]] [[1d4+1]] |2,[[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] |3,[[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] |4,[[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] |5,[[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] |6,[[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] |7,[[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] }
I absolutely intend to use the ammo API. Separately the two functions work perfectly; when I join them together they work the same but I have to enter the number of charges twice. I would like to understand if there is the possibility of making them work together but without the double request
1607702271

Edited 1607993186
Jordan C.
Pro
API Scripter
Ah, apologies I just assumed since there wasn't pro tag. I believe this works: ?{Charges |1,[[1d4+1]] [[1d4+1]] [[1d4+1]] !ammo @{selected|token_id} class_resource -1 cariche |2,[[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] !ammo @{selected|token_id} class_resource -2 cariche |3,[[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] !ammo @{selected|token_id} class_resource -3 cariche |4,[[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] !ammo @{selected|token_id} class_resource -4 cariche |5,[[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] !ammo @{selected|token_id} class_resource -5 cariche |6,[[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] !ammo @{selected|token_id} class_resource -6 cariche |7,[[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] !ammo @{selected|token_id} class_resource -7 cariche } Alternatively you could condense it with: ?{Charges |1,[[3d4+3]] !ammo @{selected|token_id} class_resource -1 cariche |2,[[4d4+4]] !ammo @{selected|token_id} class_resource -2 cariche |3,[[5d4+5]] !ammo @{selected|token_id} class_resource -3 cariche |4,[[6d4+6]] !ammo @{selected|token_id} class_resource -4 cariche |5,[[7d4+7]] !ammo @{selected|token_id} class_resource -5 cariche |6,[[8d4+8]] !ammo @{selected|token_id} class_resource -6 cariche |7,[[9d4+9]] !ammo @{selected|token_id} class_resource -7 cariche }
Thanks a lot! The first option is perfect! I just replaced "class_resource" with "other_resource" and it works perfectly. You don't see the pro tag because the subscription was made by the GM and I deal with macros and APIs. Thanks again! I put the "final version" below for anyone who wants to use it. ?{Charges |1,[[1d4+1]] [[1d4+1]] [[1d4+1]] !ammo @{selected|token_id} other_resource -1 charge |2,[[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] !ammo @{selected|token_id} other_resource -2 charges |3,[[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] !ammo @{selected|token_id} other_resource -3 charges |4,[[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] !ammo @{selected|token_id} other_resource -4 charges |5,[[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] !ammo @{selected|token_id} other_resource -5 charges |6,[[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] !ammo @{selected|token_id} other_resource -6 charges |7,[[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] [[1d4+1]] !ammo @{selected|token_id} other_resource -7 charges }
1607720776
Brian C.
Pro
Marketplace Creator
Compendium Curator
If this is the 5e magic missile and you want to speed up your play and simplify the macro, you can just roll1 damage die and apply it to all darts. <a href="https://www.sageadvice.eu/2016/10/17/magic-missile-do-you-roll-the-same-d4-for-all-darts/" rel="nofollow">https://www.sageadvice.eu/2016/10/17/magic-missile-do-you-roll-the-same-d4-for-all-darts/</a> Please don't consider this a criticism, just a heads up that only 1 damage die is a valid way to do it.
Brian C. said: If this is the 5e magic missile and you want to speed up your play and simplify the macro, you can just roll1 damage die and apply it to all darts. <a href="https://www.sageadvice.eu/2016/10/17/magic-missile-do-you-roll-the-same-d4-for-all-darts/" rel="nofollow">https://www.sageadvice.eu/2016/10/17/magic-missile-do-you-roll-the-same-d4-for-all-darts/</a> Please don't consider this a criticism, just a heads up that only 1 damage die is a valid way to do it. I know and I am aware of that Sage Advice, but both our wizard and our sorcerer want to play that way, so I wanted to please them.
1607735150
Oosh
Sheet Author
API Scripter
There's one here from a while back that totals the damage for you - it's for 5e shaped but you can just yank the rolls out of the middle if you'd like to skip the bit where you add the missiles together.
Oosh said: There's one here from a while back that totals the damage for you - it's for 5e shaped but you can just yank the rolls out of the middle if you'd like to skip the bit where you add the missiles together. I could probably use some of it to make mine more fancy.