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

Need help with Shadowrun macro

Hi guys. Sorry for my bad english i am from germany.  I create a macro that roll a number of d6 that i want and then it count the dices that roll a 5 or a 6. Here is a simple version of the macro but it shows the problem that i have: &{template:default} {{name=Spielleiter}} {{Erfolge=[[12d6>5]]}} I want to let this macro also count all dices that roll a 1 and show it in the next row. Can you Help me? 
1494939189
The Aaron
Pro
API Scripter
I don't believe there is a way to do that without the API (Pro Subscriber Perk).  You can't use the same roll in more than one place.
okay tanks for that information. I try this the last 2 days XD I was tihinking that roll 20 save this Roll in the background and i can get to this information to calculat with it. And thank you for this really quick answer
Oh i had another idea can i but a "if else function" in it? something like [if more than 6 dices roll a 1 then tell me "fail"]?
1494943081
The Aaron
Pro
API Scripter
I'm afraid that's also the purview of the API.  
thanks. i have anoter method to fix my problem. its kind of cheating but it works in 99% here is my new macro &{template:default} {{name=Gamemaster}} {{Positiv=[[{(?{Würfel|0})d6}>5]]}} {{negativ=[[{(?{Würfel|0})d6}<1]]}} i just roll my dices to times. At first i count the dices who shows 5 and 6 then i roll again and count the 1. the macro makes all in the background so my players can think it is just one dice-throw. In case of i roll 10 dices and he tells me that i roll 6 times a 5and6 and then he tells me i roll 5 times the 1 i ignor so many 1 till its mathematic correct. Thank you a lot for try to helping me with my problem. 
1494945204

Edited 1494945525
The Aaron
Pro
API Scripter
Well.. I guess as long as you're satisfied... =D You could also sort the results and make it easy to know if you need to look at it by turning off the critical success: &{template:default} {{name=Spielleiter}} {{Erfolge=[[12d6sacs0>5]]}} Adding sa causes the results to be sorted in ascending order.   Adding cs0 causes the green critical success border to never be applied. The end result is, the number shows the count of 5s and 6s, the red border tells you if there were any 1s, and the 1s being grouped together makes them easy to count.
Sebastian N. said: something like [if more than 6 dices roll a 1 then tell me "fail"]? If you decide to become a Pro subscriber in the future, the Shadowrun Advanced Character Sheet has an companion API Script which automatically detects glitches and critical glitches. Sebastian N. said: I want to let this macro also count all dices that roll a 1 and show it in the next row. Likewise, if you decide to become a Pro subscriber in the future, the API Script PowerCards can do this.
Thanks a lot Aaaron. My english is very bad so i dont understand every thing exactly. The grenn border appears if i throw more 6 then 1. an if i throw mor 1 then 6 the red border appears. with the "cs0" part the grenn border appears if there more 5 and 6 then 1? If this is right it is the perfect solution for my problem? &{template:default} {{name=Spielleiter}} {{Erfolge=[[{(?{Würfel|0})d6}>5]]}}  i try a little bit but i can't fix my macro. Can you help me where i have to but this "cs0" prgramm code in.  Sorry for my never ending questions and my bad englisch but you help me a lot and im very thankful.
I GOT IT!!!! Thanks a lot my friend!  &{template:default} {{name=Spielleiter}} {{Erfolge=[[{(?{Würfel|0})d6sacs5cs6}>5]]}}
1495030491
The Aaron
Pro
API Scripter
Great! cs5cs6 could be expressed as cs>5 That will highlight with green if the rolls contain at least one 5 or 6 It will highlight red if the rolls contain at least one 1 It will highlight blue if there is at least one 1 and at least one 5 or 6 You'll still need to look at the rolls to see how many 1s there are. 
Yes that is right. i was to early so happy XD but i can't get it work like i want without paying.