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

How to roll 1d6 and each possible value show a different message?

1590350479

Edited 1590350709
I am trying to implement a simple locational damage roll macro. Basically PCs have to roll a 1d6 and each possible value represents a part of the body, eg: 6 hits head, 5 hits chest, 4 hits belly, and so on. I would like to know if there's a way to compare the roll result to all of the possible values, and show a message saying that it hits the body part in question. I am aware that roll20 macros does not suport if/then logic (wich would make this task very easy btw), so is there a work around to this, perhaps with the target number comparison? but in this case there are several... Any help would be most apreciated, sorry for the bad english, cudos from Brazil Note: I am not very familiar with the macro syntax, but any help is very apreciated
1590351506
GiGs
Pro
Sheet Author
API Scripter
The only way to do this would be to use a rollable table with 6 entries, and have a location for eacj emtry. Then you can just roll on the table. If it was called hit-location , you can do /roll 1t[hit-location] or [[1t[hit-location] ]]
I literally just made hit location tables for my Harmaster game using roll tables . set each body location and give them weights the higher the number the more likely that part gets hit. If you want 6 equal odds locations just use those six and set the weights all to 1,
Thank you very much guys
Seb_Romu said: I literally just made hit location tables for my Harmaster game using roll tables . set each body location and give them weights the higher the number the more likely that part gets hit. If you want 6 equal odds locations just use those six and set the weights all to 1, That's even better than what i have imagined