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

[Macro] Some help?

1416592015

Edited 1416592491
Hey guys, I'm having a little trouble doing something with a macro can you give me a few tips? Is what I'm trying to do even possible? I'm playing GURPS, and I want to automate a few dice rolls I'm making a lot of since I take forever calculating things every time. The macro I've come up with so far is this: [[0-3d6 GURPS dice + (( 19 + 4+(?{range modifier|1}-1)+?{size modifier|0}+?{prediction shot|0}+?{all out attack|0}+?{any other modifiers|0} )) dice modifiers ]] degrees (bolded brackets and stuff included for highlighting only) this only gives the dice result and I think might be a bit opaque to the rest of the group, so what I *want* to do is something like this: Rolling vs [[19 base skill + (( 4+(?{range modifier|1}-1)+?{size modifier|0}+?{prediction shot|0}+?{all out attack|0}+?{any other modifiers|0} )) dice modifiers ]], [[0-3d6+ *RESULT OF THE FIRST MACRO* ]] degrees of success I thought about maybe writing the result of the first macro to an entry in the turn order and seeing about ways of reading that with the second, but I'm not sure if that is possible. E: I'm realizing that this might not be the correct forum to be posting in, if you want to direct me to somewhere more appropriate I'll move over there.
1416594938
The Aaron
Roll20 Production Team
API Scripter
Probably this should go in Specific Questions. The API forum is all about the Javascript API. I'm great at API questions, but not as good as others with macro questions. Probably we can get a Mod to move this to the other forum, allowing it to get the attention it deserves. =D
1416595153
Gauss
Forum Champion
Moved. :)
Thank you! sorry about that, I don't use the forums much.
Given that there are no rolls in the modifier part, you can just copy it directly. The ?{}s with the same name will only prompt once, so you won't get any extra prompts and the second copy will have the same value as the first copy.