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 .
×

need help for specific command to substract

Hi there, This request from France. This is why I'm not fluent in english. I manage a game (Wulin) that take place in China (12th century)and because the nuber 4 is pronunced like death in the game the 4=0 so when i roll the pool of dices d8 I need a specific commande to make the 4 (on the dice) = 0 exemple with pool of 5d8: /roll 5d8...vs {target}  that roll 5; 6; 1; 4; 2 = 14 because 4=0 Thank you very much for reading and giving help. calamity
1608730385
The Aaron
Roll20 Production Team
API Scripter
The only way I think you can do that is to set up a Rollable Table with the values 1,2,3,0,5,6,7,8 and roll that instead: /r 5t[d8with0] [[ 5t[d8with0] ]]
Hi Aaron, I'm sorry but that doesn't works and tell me "no table found with that name"
calamity said: Hi Aaron, I'm sorry but that doesn't works and tell me "no table found with that name" You need to set up a rollable table, and set eight entries named 1, 2, 3, 0, 5, 6, 7, 8. Then name that table "d8with0".  Once you have that set up you'll be able to use Aaron's commands to roll from the table.
@ Aaron; @Jarren thank you very much, in deed! I hadn't anderstand at first time but something just append in my mind and I did It. Due to both of you now my table run with specific D8 with 4=0 amazing I wish you an happy new year with happiness and succes maybe another question to complete this macro: do think it could be possible to make the 8 is variable from 1 to 8 in order to get the closer to the target? exemple: /r 5t[d8with0]  vs {target=16}   =   3; 0; 1, 6, 8  = 16 (target -3 -1 -6 = 6 so 8 becomes 6) Thank you very much for helping calamity