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

macro with a different result in the text box

Hi! I'm trying to make a macro that will respond differently depending on the result of a die roll. Il would like, when I roll 1d4, that the text there is:  If 1 : "Something written" If 2 : "Something else" etc... Is this possible? thanks! 
Yes, you’ll want to look at using a Rollable Table. That’s exactly the kind of thing they are used for. 
Roll tables have some drawbacks in presentation, though - another way to do this is via some template tricks: &{template:default} {{name=Example[ ](" hidden null=)}} {{[0](" hidden)=[ ](" hidden null=)}} {{[1](#" hidden)= something first[ ](#" hidden null=)}} {{[[[{0d0,1d2}=2]]](#" hidden)= something second[ ](#" hidden null=)}} {{[[[{0d0,1d3}=3]]](#" hidden)= something third[ ](#" hidden null=)}} {{[[[{0d0,1d4}=4]]](#" hidden)= something fourth[ ](#" hidden null=)}} {{[0](#" hidden)=[ ](#" hidden null=)}} (phone-written, but tested)