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

Attack Macro with choices... what I am doing wrong?

I'm trying to make a macro for my fighter, because he have so many different attacks for me to choose, so i'm trying something to help me to choose, but... the choise doens't work and I don't know why... when I make a simple ?{Soco Gentil: | Soco Gentil,SocoGentil1 | Ataque Poderoso,SocoGentil2 | Impactos Precisos,SocoGentil3 | Ataque Poderoso e Impactos Precisos,SocoGentil4 } it works perfectly, but when I put the # to call the other macros, it stops working for some reason, anyone know what I am doing wrong? the other macros: SocoGentil1 &amp;{template:t20-attack}{{character=@{Gunter|character_name}}}{{attackname=Soco Gentil}}{{attackroll=[[1d20cs&gt;20+[[@{Gunter|lutatotal}]]+0]]}}{{damageroll=[[1d6+@{Gunter|for_mod}+1d6]]}}{{criticaldamageroll=[[1d6 + 1d6+@{Gunter|for_mod}+1d6]]}}{{typeofdamage=Impacto}}{{description=[imagem](<a href="https://c.tenor.com/XS-iOPsoRyoAAAAM/anime-fight.gif" rel="nofollow">https://c.tenor.com/XS-iOPsoRyoAAAAM/anime-fight.gif</a>)}} SocoGentil2 &amp;{template:t20-attack}{{character=@{Gunter|character_name}}}{{attackname=Ataque Poderoso}}{{attackroll=[[1d20cs&gt;20+[[@{Gunter|lutatotal}]]+-2]]}} {{damageroll=[[1d6+@{Gunter|for_mod}+1d6+5]]}} {{criticaldamageroll=[[1d6 + 1d6+@{Gunter|for_mod}+1d6+5]]}}{{typeofdamage=Impacto}}{{description=[imagem](<a href="https://c.tenor.com/XS-iOPsoRyoAAAAM/anime-fight.gif" rel="nofollow">https://c.tenor.com/XS-iOPsoRyoAAAAM/anime-fight.gif</a>)}} SocoGentil3 &amp;{template:t20-attack}{{character=@{Gunter|character_name}}}{{attackname=Impactos Precisos}}{{attackroll=[[1d20cs&gt;20+[[@{Gunter|lutatotal}]]+@{Gunter|int_mod}]]}} {{damageroll=[[1d6+@{Gunter|for_mod}+1d6+3]]}} {{criticaldamageroll=[[1d6 + 1d6+@{Gunter|for_mod}+1d6+@{Gunter|int_mod}]]}}{{typeofdamage=Impacto}}{{description=[imagem](<a href="https://c.tenor.com/YGKPpkNN6g0AAAAC/anime-jujutsu-kaisen-anime-punch.gif" rel="nofollow">https://c.tenor.com/YGKPpkNN6g0AAAAC/anime-jujutsu-kaisen-anime-punch.gif</a>)}} SocoGentil4 &amp;{template:t20-attack}{{character=@{Gunter|character_name}}}{{attackname=Ataque Poderoso e Impactos Precisos}}{{attackroll=[[1d20cs&gt;20+[[@{Gunter|lutatotal}]]+-2+@{Gunter|int_mod}]]}} {{damageroll=[[1d6+@{Gunter|for_mod}+1d6+5+@{Gunter|int_mod}]]}} {{criticaldamageroll=[[1d6 + 1d6+@{Gunter|for_mod}+1d6+5+@{Gunter|int_mod}]]}}{{typeofdamage=Impacto}}{{description=[imagem](<a href="https://c.tenor.com/YGKPpkNN6g0AAAAC/anime-jujutsu-kaisen-anime-punch.gif" rel="nofollow">https://c.tenor.com/YGKPpkNN6g0AAAAC/anime-jujutsu-kaisen-anime-punch.gif</a>)}} (yeah, Brasilian,&nbsp;don't be surprised by the different names please :v)
1661707275

Edited 1661707533
Nested macro are a Pro/P2W perk. Most of my characters (D&amp;D5E) have more than 4 attacks. What I do is drag my different attacks into an action bar at the bottom of the screen. Give me a few minutes and I'll share an URL with you which might help. EDIT Here's the URL: <a href="https://www.youtube.com/watch?v=YTGMa5LiMPY" rel="nofollow">https://www.youtube.com/watch?v=YTGMa5LiMPY</a>
In the description of an attack I usually input the name of the weapon used, and I can use []() to link an URL that will be clickable once in chat.
Aah, God,&nbsp;I didn't know it was just for Pros, good to know that info. I'll take a look at the video, thanks o/
Zera said: Aah, God,&nbsp;I didn't know it was just for Pros, good to know that info. I'll take a look at the video, thanks o/ No worries ;oP
1661734522

Edited 1661734543
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Just clarifying, nested macros are not a pro feature. They do get complicated pretty quickly, but they are available to anyone that wants to tackle them. The problem you are running into Zera is with the order of operations . If you are trying something like: #?{Soco Gentil: | Soco Gentil,SocoGentil1 | Ataque Poderoso,SocoGentil2 | Impactos Precisos,SocoGentil3 | Ataque Poderoso e Impactos Precisos,SocoGentil4 } By the time the roll query is parsed, the macros have already been expanded (or expansion has been attempted), and&nbsp; the chat parser attempted to find a macro named &nbsp; ?{Soco , which of course didn't exist. There are a few ways to tackle this issue. You could nest the macro calls inside the roll query, but this isn't a great solution. ?{Soco Gentil: | Soco Gentil,#SocoGentil1 | Ataque Poderoso,#SocoGentil2 | Impactos Precisos,#SocoGentil3 | Ataque Poderoso e Impactos Precisos,#SocoGentil4 } The reason this isn't a great solution is because of that order of operations, and how roll queries are parsed. You'd need to replace certain problem characters in your individual macros with their html entities (e.g. &amp;rbrace; &nbsp;for the ending curly brace } ). This would make these macros only callable from within a roll query. This obviously isn't an ideal solution. The best solution for what you are looking at is a chat menu or to use the quick bar like Neo suggests. My personal favorite is the chat menu option because it prevents my quick bar from becoming bloated. If you are going to use the chat menu option, I'd recommend changing your macros to be abilities on a character (a macro mule character if these are generic macros for use by multiple players/characters).
uh, right, I think i'm understanding now I will try both solutions and see which one fits me best, thanks for the help guys &lt;3