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

Dice Macro Help

1387087165

Edited 1387095783
Why is this not working? Even if I remove the ()'s, use []'s or use a combination of ()'s and []'s it does not work. /r (1d10!+?{Attribute|0}+?{Skill Level|0}+?{Special Ability|0})>(?{Difficulty|0}+?{Difficulty Modifier|0}) What I want it to do is have the player put in his roll 1d10 exploding then add that to his Attribute score and skill level. If that sum is greater than the sum of the Difficulty plus Difficulty Modifier then a success has occurred. Optimally if it would post if it feel outside the range (below) then it was a failure. Formula: [(1d10 exploding + Attribute + Skill Level + Special Ability) > (Difficulty + Difficulty Modifier)] = success
1387104472
GiGs
Pro
Sheet Author
API Scripter
You need to put the but after the > in an Inline Roll - something like: >[[?{Difficulty|0}+?{Difficulty Modifier|0}]] I dont know if the prompts are messing things up there too - that's a lot of prompts. Why ask for difficulty and a difficulty modifier? Why not just ask for a Final Difficulty? Also, why ask for separate ability, skill level, special ability? If you were referring to stats on the character sheet it would make sense. But if players are tracking those numbers, they can add them themselves, and enter a single number. Believe me, being asked for 5 consecutive prompts every time you try to make a roll will get tireseome very fast. Reduce it to the minimum you can get away with: 1 for total bonus, 1 for total difficulty /r 1d10!+?{Enter Total Bonus|0} > ?{Enter Total Difficulty|0} (The second part might still need to be closed in square brackets, I don't know. Or even, just /r 1d10!+?{Enter Total Bonus|0} You will probably be telling them the difficulty they need in voice or chat already (and sometimes may keep it secret). this allows roll20 to report the total, and you can deal with that however you like.
1387105213

Edited 1387105250
I am doing it the way I am because of new players. Also, a base difficulty is not the same as difficulty modifiers and helps the newbies know what they are and how much of a mod certain things are. As for asking for a special ability, not all special abilities are used at all time with all skill rolls. Again trying to teach the newbies in incremental steps. In order to do that, they need to see them. The prompts? So easy to use and quick, hell all you use is the number pad and the enter key on the number pad and you don't even need to touch the mouse except of course to use the macros, or you could just use the up arrow to load the last macro and again not have to touch the keyboard. So again, why? Because its how I want to do it =) I also do not wish to do an inline calculation. I am trying to teach the game, they players need to see the numbers and what they mean.
Btw, the formula: /r 1d10!+?{Enter Total Bonus|0} > ?{Enter Total Difficulty|0} <--- does not work /r 1d10!+[?{Enter Total Bonus|0}] > [?{Enter Total Difficulty|0}] <--- does not work /r 1d10!+?{Enter Total Bonus|0} <--- I already knew how to do this and its not what I had asked about =) [[?{Difficulty|0}+?{Difficulty Modifier|0}]] <--- works but again this is only half the formula, though I will play with this some more. Appreciate the suggestions, thank you!
1387106031
GiGs
Pro
Sheet Author
API Scripter
Sadly, it is impossible to the do the bit after the > without using inline rolls. I guess that's a valid approach. While you're playing, you will be talking to your players right? You will say things like, "Roll your Strength plus Fighting, and add your Special Ability if it applies. Click the macro and enter the total." You could include that text in the prompt as a reminder: /roll 1d10 + ?{Add your Ability and Skill, and any Special Abilities|0} Then when the result appears, you might say, "Your difficulty was 7, and there's a modifier of +3, so with your total of 17 you've easily succeeded." In my opinion, that will teach the game better than forcing people to deal with the interface (it's a simple interface, but it's another thing to be thinking about while you're learning the game). The real part of teaching the game comes while you're talking with them. I would recommend grabbing one of your players, before playing with several players, and test out your many-prompt macro while playing a dummy scene or two. Afterwards, ask them if they felt the prompts were too much. But anyway, back to your question: As I mentioned above, you cant do that last part without inline rolls. It's just not possible in roll20. (Unless you're a Mentor and using the API to script your own dice rolls.)
I have come to that conclusion that it will not work. I have no idea why not, but it will not work, no matter what I do. Must be yet another one of those mysteries of the Roll20 gremlins messing up stuff that should be simple =)
1387106656
GiGs
Pro
Sheet Author
API Scripter
I didn't see your second reply while I was typing. The first two have incorrect syntax: /r 1d10!+?{Enter Total Bonus|0} > ?{Enter Total Difficulty|0} <--- does not work /r 1d10!+[?{Enter Total Bonus|0}] > [?{Enter Total Difficulty|0}] <--- does not work Replace with: /r 1d10!+?{Enter Total Bonus|0} > [[?{Enter Total Difficulty|0}]] <-- just tested, does work. You need double square brackets to make the second part an inline roll. For the full set, this works, kind of: /r 1d10!+?{Stat|0} + ?{Skill|0} + ?{Talent|0} > [[?{Difficulty|0}+?{Difficulty Modifier|0}]] It calculates the roll properly but doesn't report it as success or failure. I'm not sure what is missing. We may have to wait for resident guru Gauss to see the thread.
1387107947

Edited 1387108114
GiGs
Pro
Sheet Author
API Scripter
Aha, I figured it out. Here's the macro you need. /r {1d10!+?{Stat|0}+?{Skill|0}+?{Talent|0}}>[[?{Difficulty|0}+?{DifficultyMod|0}]] However, because of the way roll20 deals with exploding dice, and multiple successes, if your d10 explodes, it may report 2 successes (it treats each die as a separate attempt to beat the success). I dont think there's a solution to this.
So seriously annoying. No matter what I do, as soon as I add the second prompt stuff comes off the rails. Thinking of just doing: /r 1d10!+?{Stat|0} + ?{Skill|0} + ?{Talent|0} -?{Difficulty|0} - ?{Difficulty Modifier|0} And telling them if the sum is positive it works, if its negative you didn't make it. I tried several formula that if the amount was >< etc, but none of them worked either.
1387108252
GiGs
Pro
Sheet Author
API Scripter
That might be easier! (Easiest of all would be avoiding multiple prompts of course :) ) It should avoid the problem of exploding dice counting as multiple successes that I mentioned in the edit to my last post.
1387131397

Edited 1387131692
Gauss
Forum Champion
rpgman2013 , after a > or < sign you cannot have multiple terms unless you group them in an inline. However, you can rearrange the terms to have only one term after the > or < sign. Note: you must put the entire left side in { } brackets to get this to work. So the basic format must be: /r { xDy + "any terms you desire" } > "one term only" OR /r { xDy + "any terms you desire" } > [[ "any terms you desire" ]] By subtracting ?{Difficulty Modifier|0} from both sides of the inequality you move it to the left side of the term (eliminating it from the right side of the term). Example: /r { 1d10!+?{Attribute|0}+?{Skill Level|0}+?{Special Ability|0} - ?{Difficulty Modifier|0} }>?{Difficulty|0} Here is how it looks with the inline: /r { 1d10!+?{Attribute|0}+?{Skill Level|0}+?{Special Ability|0} }>[[ ?{Difficulty|0} +?{Difficulty Modifier|0} ]] As a reminder, you can hover over the inline to show what went into it. If you want to include information there you can simply do the following (bolded is the additions): /r { 1d10!+?{Attribute|0}+?{Skill Level|0}+?{Special Ability|0} }>[[ ?{Difficulty|0} Difficulty +?{Difficulty Modifier|0} Difficulty Modifier ]] Note: If there is a die roll in an inline you need to put information in [] brackets but since there is not any dice rolling in the above inline they were not necessary.
Thanks Gauss, it at least works now.