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

Help with Roll20 Macro

I'm not sure if it is possible, but I could use some help from someone with more advanced knowledge of Macro building. I have a 5e homebrew class where I can summon something and it's power level changes depending on what spell slot I use to summon it. I want to create a macro that when I click it, it asks for the level of the summon, then automatically attacks based on that level's statistics that have already been created for the homebrew. I don't know how to make a macro where "If this then skip to this other part of the macro". So for example... Level 1: Attack = +7, Damage = 1d8+3 Level 2: Attack = +7, Damage = 1d10+3 Level 3: Attack = +8, Damage = 2d6+4 etc. I think If I get a starting point I can opy and paste for the other levels. Any help would be much appreciated.
1476551168
Tetsuo
Forum Champion
You could create a macro for each level utilizing HTML escape entities, then create a drop down macro that calls on the other macro depending on what level you choose. 
I'd recommend a simple dropdown Roll Query for this : ?{Level| 1, Level 1: Attack = +7 / Damage = [[1d8+3]] | 2, etc. | 3, etc. } I replaced the comma before 'Damage' with a slash so that we can avoid the HTML escaping that Franky H. mentioned.
Silvyre said: I'd recommend a simple dropdown Roll Query for this : ?{Level| 1, Level 1: Attack = +7 / Damage = [[1d8+3]] | 2, etc. | 3, etc. } I replaced the comma before 'Damage' with a slash so that we can avoid the HTML escaping that Franky H. mentioned. This worked well for that I was looking for. But just to pretty it up, I was hoping to use an attack template like: Is it possible to use a dropdown list like this while also utilizing Templates? The template uses braces which seem to prematurely end the code of the dropdown. 
DekuSenpai said: Is it possible to use a dropdown list like this while also utilizing Templates? The template uses braces which seem to prematurely end the code of the dropdown.  You'd need to escape some of the braces (plus some other characters) : &{template:default} {{name=Colossal Level ?{Level| 1, 1 }} {{Attack= [[ 1d20 + 7 ]] | [[ 1d20 + 7 ]] }} etc. | etc. }