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

Wild Magic 5e Macro, No API

So I have a rollable table called SM-Wild-Magic-Surge-Table. I play a Wild Magic Sorc in 5e. I can add this [[ [[1d20=1]]t[SM-Wild-Magic-Surge-Table] ]] to the end of any spell description and it will roll a 1d20. If the result is 1, then it will roll on the SM-Wild-Magic-Surge-Table. Good to go. BUT>> I made an ability called SM-Wild-Magic-Surge for my character where I can roll the table when I choose to take advantage, and are required to roll on the Wild Magic Table. It emotes, then posts a gif, and then rolls on the table. Much cooler. SOOOO... Why does this [[ [[1d20=1]]t[SM-Wild-Magic-Surge-Table] ]] only roll the wild magic table when 1d20=1 but this [[ [[1d20=1]]t[%{Te'Rror|SM-Wild-Magic-Surge}] ]] ALWAYS rolls the wild magic table? What am I doing wrong here?
1682861603
Gauss
Forum Champion
Tim D. said: So I have a rollable table called SM-Wild-Magic-Surge-Table. I play a Wild Magic Sorc in 5e. I can add this [[ [[1d20=1]]t[SM-Wild-Magic-Surge-Table] ]] to the end of any spell description and it will roll a 1d20. If the result is 1, then it will roll on the SM-Wild-Magic-Surge-Table. Good to go. BUT>> I made an ability called SM-Wild-Magic-Surge for my character where I can roll the table when I choose to take advantage, and are required to roll on the Wild Magic Table. It emotes, then posts a gif, and then rolls on the table. Much cooler. SOOOO... Why does this [[ [[1d20=1]]t[SM-Wild-Magic-Surge-Table] ]] only roll the wild magic table when 1d20=1 but this [[ [[1d20=1]]t[%{Te'Rror|SM-Wild-Magic-Surge}] ]] ALWAYS rolls the wild magic table? What am I doing wrong here? Please provide the contents of: "%{Te'Rror|SM-Wild-Magic-Surge}" (Edit the macro, copy, paste it here please)
Ok, the contents of&nbsp; "%{Te'Rror|SM-Wild-Magic-Surge}" is: "[x](<a href="https://media.giphy.com/media/ePMlNIZS8r2PahWOsS/giphy.gif" rel="nofollow">https://media.giphy.com/media/ePMlNIZS8r2PahWOsS/giphy.gif</a>) /me surges with Wild Magic! &amp;{template:npcaction} {{rname= Wild Magic Surge }} {{name= Supplemental Materials }} {{description= [[1t[SM-Wild-Magic-Surge-Table]]] For more information, see ***[W⁠ild Magic Surge](<a href="http://journal.roll20.net/handout/-LsaW-zom2nRdlxoKXY0)***" rel="nofollow">http://journal.roll20.net/handout/-LsaW-zom2nRdlxoKXY0)***</a>. }}"
1682951275

Edited 1682953157
Gauss
Forum Champion
Tim D. said: Ok, the contents of&nbsp; "%{Te'Rror|SM-Wild-Magic-Surge}" is: "[x]( <a href="https://media.giphy.com/media/ePMlNIZS8r2PahWOsS/giphy.gif" rel="nofollow">https://media.giphy.com/media/ePMlNIZS8r2PahWOsS/giphy.gif</a> ) /me surges with Wild Magic! &amp;{template:npcaction} {{rname= Wild Magic Surge }} {{name= Supplemental Materials }} {{description= [[1t[SM-Wild-Magic-Surge-Table]]] For more information, see ***[W⁠ild Magic Surge]( <a href="http://journal.roll20.net/handout/-LsaW-zom2nRdlxoKXY0)***" rel="nofollow">http://journal.roll20.net/handout/-LsaW-zom2nRdlxoKXY0)***</a> . }}" Tim D. said: So I have a rollable table called SM-Wild-Magic-Surge-Table. I play a Wild Magic Sorc in 5e. I can add this&nbsp;[[ [[1d20=1]]t[SM-Wild-Magic-Surge-Table] ]] to the end of any spell description and it will roll a 1d20. If the result is 1, then it will roll on the SM-Wild-Magic-Surge-Table. Good to go. BUT&gt;&gt; I made an ability called SM-Wild-Magic-Surge for my character where I can roll the table when I choose to take advantage, and are required to roll on the Wild Magic Table. It emotes, then posts a gif, and then rolls on the table. Much cooler. SOOOO... Why does this&nbsp;[[ [[1d20=1]]t[SM-Wild-Magic-Surge-Table] ]] only roll the wild magic table when 1d20=1 but this&nbsp;[[ [[1d20=1]]t[%{Te'Rror|SM-Wild-Magic-Surge}] ]] ALWAYS rolls the wild magic table? What am I doing wrong here? Ok, so what I think is going on here is that [[ [[1d20=1]]t[%{Te'Rror|SM-Wild-Magic-Surge}] ]] is not asking Roll20 to roll on a table. The system is being asked to fire a macro labeled %{Te`Rror|SM-Wild-Magic-Surge} with a [[1d20=1]]t in front of it. Here is how Roll20 probably sees this:&nbsp; [[[[1d20=1]]t[ [x]( <a href="https://media.giphy.com/media/ePMlNIZS8r2PahWOsS/giphy.gif" rel="nofollow">https://media.giphy.com/media/ePMlNIZS8r2PahWOsS/giphy.gif</a> ) /me surges with Wild Magic! &amp;{template:npcaction} {{rname= Wild Magic Surge }} {{name= Supplemental Materials }} {{description= [[1t[SM-Wild-Magic-Surge-Table]]] For more information, see ***[W⁠ild Magic Surge]( <a href="http://journal.roll20.net/handout/-LsaW-zom2nRdlxoKXY0)***" rel="nofollow">http://journal.roll20.net/handout/-LsaW-zom2nRdlxoKXY0)***</a> . }}]]] Note the [[1d20=1]]t[ at the start of the macro. I am a bit surprised it isn't interfering with the macro, but with a 5% chance perhaps it is only showing a 0t[ most of the time.&nbsp; Next, in the description in that macro it is &nbsp;currently set to 1t[SM-Wild-Magic-Surge-Table] which will always roll the table , there is no [[1d20=1]] section to switch it on/off.&nbsp; If the goal is the macro does not fire unless the 1d20 is a 1 I don't think that can be done because macros fire before the dice roller in the order of operations. You'd have to do the check then have a button to press to fire the macro.
Well, that's confusing for me. I dont have much experience in this type of thing. I don't understand how the first thing I posted works but the 2nd doesnt. When I use a skill, it shows a 0 below the skill most of the time, but then that 5% of the time it rolls the table in chat and does not display a 1. I figured I could add a gif and emote to it by having it call on the macro instead of the table. So basically what youre telling me is that order of operations determines that dice rolls happen before rollable tables, but macros happen before dice rolls? I apologize for stupid questions. Thanks for help btw!
1682968757
Gauss
Forum Champion
In your first post you are calling the table.&nbsp; In your second post you are calling a macro, with a little bit in front of it. You are not calling the table.&nbsp; However, inside the macro you are calling the table (in the description), but you are not doing it the way you did it in the first post.&nbsp; The order of operations are that all attributes, abilities (macros), and macros (collection tab macros) get expanded before anything gets resolved.&nbsp; Your macro can work, it just needs to be fixed a bit.&nbsp; Ability name:&nbsp; SM-Wild-Magic-Surge How to call Ability:&nbsp; %{Te'Rror|SM-Wild-Magic-Surge} Do NOT put [[1d20=1]]t[ in front of it.&nbsp; I fixed the description portion below so that it rolls the wild surge table.&nbsp; [x]( <a href="https://media.giphy.com/media/ePMlNIZS8r2PahWOsS/giphy.gif" rel="nofollow">https://media.giphy.com/media/ePMlNIZS8r2PahWOsS/giphy.gif</a> ) /me surges with Wild Magic! &amp;{template:npcaction} {{rname= Wild Magic Surge }} {{name= Supplemental Materials }} {{description= [[ [[1d20=1]] t[SM-Wild-Magic-Surge-Table]]] For more information, see ***[W⁠ild Magic Surge]( <a href="http://journal.roll20.net/handout/-LsaW-zom2nRdlxoKXY0)***" rel="nofollow">http://journal.roll20.net/handout/-LsaW-zom2nRdlxoKXY0)***</a> . }}
Ok, Cool. I see now what you're doing. Thanks a lot man :) If I take out the gif and the emote, and put them in after the roll, within the [[&nbsp; ]], will they get activated after the roll? Right now, it emotes and plays the gif, even if the 1d20 does not =1.
The functionality is total there. You nailed it, and frankly, it does everything I need it to.... I'm just trying to be cool with emotes and gifs now. If it's impossible, I'll be ok :)
1682985788
Gauss
Forum Champion
Without an API script there is no way to auto-fire the emotes and gif that I am aware of.&nbsp; My suggestion is to put in a chat button, push that and it fires a macro with the emotes and gif.&nbsp;
oh ok thats a good idea
Most of the time I just copy and paste the gif in the description and it works but with this conditional 1d20, it doesn't seem to work.
1682992454

Edited 1682992465
Gauss
Forum Champion
You can still add it to the description, just not part of a conditional. Add it as a button perhaps.