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.

Can someone make a video guide.

Ok I am trying to get some of the more advance roll macro down. Sadly I can not get the degrees of success macro for Warhammer rpg working. I seen people putting some of the macro code on the forums but I am not understanding it. I would be greatful if someone could make a small video on the steps of making it. What it should look like at the end and how it should work. You can even use my character stats as an example <a href="https://www.dropbox.com/s/56jo5vf7siv20a0/Cat%20Black%20Crusade.pdf" rel="nofollow">https://www.dropbox.com/s/56jo5vf7siv20a0/Cat%20Black%20Crusade.pdf</a>
A good place to start understanding how macros are constructed might be the Dice Reference Wiki Page if you haven't already seen it: <a href="https://wiki.roll20.net/Dice_Reference" rel="nofollow">https://wiki.roll20.net/Dice_Reference</a>
I have been to that page. It did not have what I was looking for. I was also looking at other pages where they say stuff like this. /roll [[floor((@{selected|BS} + ?{Modifier|0} - d100)/10)]]d1&gt;0. Yet I am not understanding it. The do not go into much detail.
1400209872
Lithl
Pro
Sheet Author
API Scripter
Cat said: I have been to that page. It did not have what I was looking for. I was also looking at other pages where they say stuff like this. /roll [[floor((@{selected|BS} + ?{Modifier|0} - d100)/10)]]d1&gt;0. Yet I am not understanding it. The do not go into much detail. /roll is the roll command. Everything after it will be sent to the dice roller, and the output will be sent to chat, including all of the dice rolled. [[...]] designates an inline roll. Everything between the double brackets will be sent to the dice roller, and the final result will be sent to chat (you can see the individual dice by hovering your mouse over the result). If you use an inline roll inside of a roll command, it will be processed first, so you can get some randomization on another roll. floor(...) is the floor function, which rounds numbers down (towards negative infinity). @{selected|BS} will be replaced with the attribute named "BS" from the character sheet linked to the selected token. ?{Modifier|0} will create a popup window with the text "Modifier" and an initial value of 0. The value entered into the input box will be used in the roll calculation. d100 will roll a 100-sided die. d1 will roll some number of 1-sided dice (the number to be rolled being the result of the inline roll). &gt;0 will report successes for results over 0. Say, for example, your Ballistics Skill is 55, there's no modifier to the roll, and the d100 rolls a 23. The inline roll will be floor((55 + 0 - 23) / 10) which is equal to floor(3.2) , or simply 3. Then you'd roll 3d1 and compare it to 0 for your successes. As a d1 will always result in a 1, the 3d1 will be 3, which is your degrees of success.
So you are saying this is a two step thing. Not a single /roll code that gives me the success. Am I understanding you correct?
1400253958

Edited 1400254021
Lithl
Pro
Sheet Author
API Scripter
Truthfully, the only reason for the d1&gt;0 in the roll is so that the result comes up as "X Successes" instead of "X". If just the number is good enough for you, you could simply use [[floor((@{selected|BS} + ?{Modifier|0} - d100)/10)]] or /roll floor((@{selected|BS} + ?{Modifier|0} - d100)/10)
Yes but if you can not do this in one big step. Then there is no point to the macro. Then again I asked for a video guide because I have problems with reading word problems. I have server dyslexia and brain damage. Learning by reading is my weakest part. I am better with watching and learning or trail by error. Sadly I keep getting an error when I try to use this code.
1400306347
Lithl
Pro
Sheet Author
API Scripter
Yes but if you can not do this in one big step. Then there is no point to the macro. I'm not sure what you mean? Sadly I keep getting an error when I try to use this code. What's the error you're getting?