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 .
×
May your rolls be merry + bright! 🎄
Create a free account

Macro Request to replace a 1 for an 8

I had given my rogue player a weapon that when they roll a 1 on their sneak attack, it would be replaced with an 8. What is a good macro I can use to do this? I have done macros for smite in the past in the Global damage modifier but I have no idea how to replace a number with another number. Thanks ahead of time.
1621152330
Ziechael
Forum Champion
Sheet Author
API Scripter
The best way to reflect a custom die is usually to use a rollable table... for a d6 with the 1 being an 8 for example you'd have 6 entries all weighted 1: 2 3 4 5 6 8 And call it via x t[customd6] (or whatever you name the table).
Its not really a custom die though, I just want to replace a value rolled (1) into another value (8) when it happens in sneak attack (which is in global damage modifier)... I genuinely don't know how a table would do this but I also don't know exactly how to make a table.
Nevermind, I figured it out - Doesnt exactly replace the 1s with 8s but it just gets rid of 1 in place of 8, which works as well. Thanks!
1621238771
Ziechael
Forum Champion
Sheet Author
API Scripter
Think of it as a standard d6 with an 8 on one side instead of the 1... not only is it a custom die but it is also replacing 1s with 8s ;) Glad you got the hang of it though, happy sneak attacking!