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 .
×
The Roll20 Black Friday sale is live now! Up to 30% Off Your Favorite Content!

Call of Cthulhu (Constitution Check Macro)

Hey everyone. I'm trying to make a macro for Call of Cthulhu 6ED where my players can just click the macro to check against their consitution. The constitution check is a 1d100 and has to be equal or less to 5xCON (we're using the character sheets). So far I've got this: /r 1d100<@{Selected|Con} I'm asuming this is the right place to start for this macro, but no matter where I put a multplier for the CON, it just doesn't work. I've been searching for a couple hours and had no luck, so hopefully somebody could shed some light for me? Cheers in advance!
I've had problems with this before as well. You can't have more than one item on the right side of an inequality. You have to do all your calculations on the left side. You could reverse the equation: /r @{selected|CON}*5 > 1d100 Don't know if that would work, I'd have to test it. EDIT: Nope, that doesn't work. You'll have to wait for someone with better macro skills than me. Sorry.
How about this? This divides the 1d00 by 5, and then compares to CON. It seems to work for me. You may need to put in a floor or round function before the d100 roll, don't know. /roll {1d100/5}<@{selected|CON}
1419335274
Gen Kitty
Forum Champion
Silly question, why not roll a d20 vs Con? :>
1419350413
Lithl
Pro
Sheet Author
API Scripter
If the Con attribute is a calculation, one option is to combine the /roll command with an inline roll: /r 1d100<[[@{selected|Con}]]
Is the 5xCON a pretty static value? I don't know the game system or whether or not that x5 always applies for this check or not. If it is, you can simply store the calculated value in its own attribute. Attribute CONX5 = 16*5 You should then be able to roll your comparion d100>@{Selected|CONX5}
1419356031

Edited 1419356521
Thanks for your feedback. I'll try a couple suggestions. The CON check is static and is used to see if a character passes out or if they have a mental disorder they have to overcome to make a move.
1419395331

Edited 1419395356
Ok I just got home from work and tried the second option from Gozer. Works like a dream. Cthulhu is a little different because STAT checks have to be rolled on a 1d100 and then equal to 2x that STAT anywhere up to 5x. So it varies. I ran one scenario where players were navigating rough terrain and they had to roll a 1d100 against their DEX*4 and then there was another at DEX*3. Sometimes going into the character sheet or manually type it out is a pain, especially for the common rolls, so just want to get all the macros in place. Thanks again for your help! If anyone has some good macro tips for CoC, I would appreciate it. Merry Christmas everyone!
If it's like that, you could make a stat check macro, and allow the multiplier (which in this case would be a divisor) to be a query, allowing the player to put in the number, something like this: /roll {1d100/?{Multiplier|2}<@{selected|CON} This would put 2 as a default multiplier, but could be whatever number the player inputs. It would be nice if you could query the stat as well, but I don't think you can nest them like that. If you wanted to get fancy, you could use an inline roll and some text, like so: @{selected|token_name}'s CON check successes = [[{1d100/?{Multiplier|2}<@{selected|CON}]] The "token_name" could also be "character_name", and the rest of the text could be anything you want. The result to the right of the = sign will be either a 0 or a 1, so you want the text to make sense with that. Good luck!
Thanks Gozer! I'm pretty new to the macros and avoided it for a while, but now that we've moved away from Google Spreadsheets for our character sheets, it seems to make more sense. I'm also debating actually getting the base subscription, although in general Cthulhu isn't super map heavy, though I like my players to have something to move around and have a general idea of their surroundings. Thanks for your help though :)
I did just try that and it bought up the box to type in the multiplier but said there was an error.
NVM, fixed it. Looks like a '}' was missing lol. Thats pretty cool.