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

Simple macro for FADING SUNS

Hi people ! I would like to know if someone can help me to create a macro for Fading Suns (I already watch the wiki and didn't understand a word of it !). The first macro is : 1d20 <= CARAC + COMPETENCE a success when it is true. So : /roll 1d20 <= (?{Carac}+?{Compétence})  -> it doesn't work ! The perfert macro will count, in case of a success, the difference between the d20 and "carac + compétence" but it is ok if it doesn't do that... The second macro is for damages, i have to count 1 damage for each dices under 5, i have : /roll (?{Dommages Bruts}+?{Dés de victoire})d6s < 5 -> doesn't work either ! I think i'm not too far from it, can anyone help me ?
1508943011

Edited 1508943072
GiGs
Pro
Sheet Author
API Scripter
For the first one, use this: /roll 1d20<[[?{Carac}+?{Compétence}]]  Note that in roll20, "<" means "less than or equal", there is no "<=" option. The double square brackets [[ ]] force roll20 to add the two numbers inside them together, and then the "<" can check against them. You also have to be careful with spaces - "1d20 < [[" wont work, you need "1d20<[["  If your characters have the stats Carac and Compétence set up, you can use /roll 1d20<[[@{Carac}+@{Compétence}]] and avoid the need for prompts. The same approach gets you there with the damage roll: /roll [[?{Dommages Bruts}+?{Dés de victoire}]]d6<4 Note that If you want to roll under  5, you need to use <4, because < is "less than or equal to". Again, when using "<" avoid spaces.
Yeeaaah, "tu gères mon pote" ! It's working, thanks a lot !