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.

[Macro] Create X Number of Calculations

1406780678

Edited 1406780820
Samuel L.
Sheet Author
********The point is to do this without API.******* Problem There is no good system for calculating multiple dice that each have there own modifier. EX: -Roll 3d10 that each have a positive and a negative modifier. You cannot just go 3d10+(3*4)-(3*8). Since each dice needs to calculated seperatly. Solution Create a new macro command that creates a number of calculations and states each calculation total seperatly. EX:&{{Number of Calculations|0}{Calculation}} =&{{Number of Hits|3}{1d10+?{Positive modifier|4}-?{Negative modifier|8}} =(1d10 + 4 - 8), (1d10 + 4 - 8), (1d10 + 4 - 8) = 2 +4-8, 6 +4-8, 10 +4-8 =-2, 4, 6 This would allow for many systems such as any 40k rpg, to calculate damage much faster, there are also many other uses for this.
1406784726
Lithl
Pro
Sheet Author
API Scripter
Something I've done before (for a multi-target D&D 4e spell) was to split the macro into separate parts. As an example, Fireball-Emote: /me summons a great ball of fire and lobs it at the monsters! Fireball-Attack: [[d20+floor(@{level}/2)+@{int-mod}+4]] vs. Reflex Fireball-Hit: Hit: [[4d6+@{int-mod}+2]] fire damage Miss: Half damage So, I would hit Fireball-Emote once, followed by Fireball-Attack once for each enemy in the burst, and then Fireball-Hit once.
Ill be honest that completely misses the point of this. The purpose of this to to calculate multiple different rolls at once.
1406830611
Lithl
Pro
Sheet Author
API Scripter
I realize what you want to accomplish with a single macro, I'm simply offering you an alternative that you can use now . Without waiting for a suggestion to be taken up, if it ever is at all. Using my example for three targets, you'd get something along the lines of: Brian summons a great ball of fire and lobs it at the monsters! [20] vs. Reflex [27] vs. Reflex [11] vs. Reflex Hit: [20] fire damage Miss: Half damage This is very close to the kind of output you're asking for, albeit with three macros instead of one. Whether your suggestion is ever implemented or not, it's an option available to you without waiting.