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

macro for d6 variables

I am looking to make a macro that will specify an word. I want to assign 6 elements to a number. Ice, Water fire Lightning, Earth, Wind. I want to roll a d6 and it tell me which element it chooses. What would be the macro to run that.
You need to create a Rollable Table and then call it by that tables name: [[ 1t[TableName] ]] <a href="https://wiki.roll20.net/Collections#Rollable_Tables" rel="nofollow">https://wiki.roll20.net/Collections#Rollable_Tables</a>
The problem is, I am a character, not the gm, and it seems tables are only allowed to be made by the gm? or are we missing something
Yes. The GM would need to make that table for you. It's the only way to get random text. Your other option would be: &{template:default} {{name=Random Element}} {{Roll=[[1d6]]}} {{1=Earth}} {{2=Fire}} {{3=Ice}} {{4=Lightning}} {{5=Water}} {{6=Wind}}
thats actually not bad, if only it didn't show the big square everytime...okay ill have him make a table then.. ty
1491229968
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
The biq square is for formatting, to keep your post as a unit and make it easy to read. You could just as easily make a macro that said: Roll=[[1d6]] 1=Earth 2=Fire 3=Ice 4=Lightning 5=Water 6=Wind or even one line: Roll=[[1d6]] |&nbsp;1=Earth,&nbsp;2=Fire,&nbsp;3=Ice,&nbsp;4=Lightning,&nbsp;5=Water,&nbsp;6=Wind But the template is far more elegant.