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.

[Question] Does even/odd sucess checks exist ?

Hey I'm currently playing a game that uses this, I tried to look it up in the doc but I've had no luck. Is it even possible ? Thanks
There are a few ways to have rolls indicate whether they are even or odd. One way is using Critical Success and Fumble Points , e.g. Roll: [[ 1d6cf1cf3cf5cs2cs4cs6 ]] Another way is using the modulus operator, e.g. The following roll will output '0' if even and '1' if odd: /r 1d6 % 2
1469749415

Edited 1469749532
Wow thanks, I can't believe I missed this ! It really helps out. Ok, let's suppose I'm a bit capricious and I'd want to display the number of even rolls for instance, how would I proceed ? I thought maybe use the modulus operator to "add" the result you want on multiple rolls but I'm not clear yet on how I would keep this simple. Edit : Is there a way to count the number cs/cf you get on a roll, because if that's the case then I think it would be possible
Kadravor A. said: Ok, let's suppose I'm a bit capricious and I'd want to display the number of even rolls for instance, how would I proceed ? Maybe using something like this: Number of even rolls out of 3d6: /r 3 - (d6%2 + d6%2 + d6%2) Kadravor A. said: Edit : Is there a way to count the number cs/cf you get on a roll Not that I'm aware of.
Yup I was fiddling with something like this, but the remaining obstacle is that I'd like to determine exactly the number of dice I want to roll using a value. Choosing a stat value in the character sheet to determine the number of dice rolled /r ?{Stat|Force,@Force|Endurance,@Endurance}#e Where #e would be a macro allowing me to sort even rolls while choosing the number of rolls.
1469817501

Edited 1469817641
Here's how I might handle this: Number of even rolls out of [[ ?{Stat|Force, @{Force} [Force]|Endurance, @{Endurance} [Endurance]} ]]**d6**: /r ?{Stat} - (1d6%2 + [[ {?{Stat} + d0}>2 ]]d6%2 + [[ {?{Stat} + d0}>3 ]]d6%2 + [[ {?{Stat} + d0}>4 ]]d6%2) (If a stat can go above 4, you'll want to adjust the macro accordingly, i.e. by adding + [[ {?{Stat} + d0}>5 ]]d6%2, etc.) [[ {?{Stat} + d0}>2 ]] equals 1 if ?{Stat} ≥ 2. Otherwise, it equals 0. The above's a bit advanced, so, of course, feel free to ask questions.
Ah yes, very smart. For my system though I don't think it would work. I need to check with stats that are (currently) pretty low though they can up to an infinite number. I could buff up your code to support stats up to 10 but I noticed that it would generate a lot of noise in the chat. I don't know much about formatting. Do you think there's a way to ease up on what's displayed ? I used The CS and FP just today and it helped a lot !(Thanks you very much by the way) This method is perfectly fine, but I'd like to optimize a bit for the game we're playing. Just for the record we play Knight (a french Sci-Fi RPG) which uses 15 stats and depending on the situation we need to test 2 or more of our choosing.
Kadravor A. said: I don't know much about formatting. Do you think there's a way to ease up on what's displayed ? For the CS/FP macro, possibly changing the /roll to an [[inline roll]]. For the other macro, you could try replacing the parentheses (, ) with inline roll brackets [[, ]].
Alright thanks. I see it covers a lot of info (most importantly the rolls themselves). It might bother some because you'd need to hover the inline to see the deets maybe I'll use this when we're a more familiar with the whole system. Again, thanks a lot you really helped me out.
You're very welcome! Happy rolling!