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

Multiple choice and hashtag

I speak french, so if my english is pretty bad, excuse me. Hello everyone, i try to make a macro to choose my attack with my warrior. This one don't work ?{Attaque|    Hache, #Hache  |    Bouclier, #Bouclier  |    Deux Armes, #Deux-armes  |    Deux Armes Mythique, #Deux-armes-mythique  |    Griffes, #Griffes } #Hache do /me donne un coup avec la Hache des Seigneurs Nains offerte par le dieu Milyterre44 ! #Toucher-Hache #Dégats-Hache #Toucher-Hache do /r 1d20 + 14 + ?{Modificateur Toucher|0} #Dégats-Hache do /r 1d10 + 10 + ?{Modificateur Degats|0} every other macro look like this ______________________________________ This one work ?{Attaque|    Hache, **donne un coup avec la Hache des Seigneurs Nains offerte par le dieu Milyterre44 !** ([[1d20 + 14]] pour toucher et la cible perd [[1d10 + 10]] PV.) |    Bouclier, **donne un coup de Bouclier du Soleil offert par le dieu Milyterre44 !** ([[1d20 + 9]] pour toucher et la cible perd [[1d6 + 5]] PV.) |    Deux Armes, **donne un coup avec la Hache des Seigneurs Nains...** ([[1d20 + 12]] pour toucher et la cible perd [[1d10 + 10]] PV.) **...et enchaine avec un coup de Bouclier du Soleil offerts par le dieu Milyterre44 !** ([[1d20 + 7]] pour toucher et la cible perd [[1d6 + 5]] PV.) |    Deux Armes Mythique, **donne un coup MYTHIQUE avec la Hache des Seigneurs Nains...** ([[1d20 + 14]] pour toucher et la cible perd [[1d10 + 10]] PV.) **...et enchaine avec un coup MYTHIQUE de Bouclier du Soleil offerts par le dieu Milyterre44 !** ([[1d20 + 9]] pour toucher et la cible perd [[1d6 + 5]] PV.) |    Griffes, **donne un coups de griffes maudites et chaotiques à l'aide de son Armure Démoniaque.** ([[1d20 + 11]] pour toucher et la cible perd [[2d10 + 7]] PV.) **et un deuxième!** ([[1d20 + 11]] pour toucher et la cible perd [[2d10 + 7]] PV.) } Il faut ajouter ?{Modificateur Toucher|0} au toucher et ?{Modificateur Dégâts|0} au dégâts __________________________________________________________________________________ I wish understand why, can you help me? Thank you for the help
What you are trying to do is nest a roll query and it's breaking when it gets to the second query . Take a look at the wiki on nesting here .
1558012648
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
This sort of macro is also much easier to write using  Chat Menus .
1558028269

Edited 1558028291
vÍnce
Pro
Sheet Author
keithcurtis said: This sort of macro is also much easier to write using  Chat Menus . This should be the universal answer for nearly every nested query macro issue that comes up on the forums.  Someone needs to write a script(in or out of roll20) that can convert nested macros to Chat Menus. ;-)
1558030224

Edited 1558030277
GiGs
Pro
Sheet Author
API Scripter
The problem with that is not everyone trying to make nested macros has Pro access. They can make chat menus, they just cant use a script to convert them. Keith's old excel spreadsheet approach for making complex macros might be a good starting point for a way to convert macros to chat menus. Then again, maybe not. The chat menu and the various macros it calls are separate entities, so there isn't necessarily a good way to do it as a single action.
1558031843
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
It's a tough call. Drop down queries are great for speed sometimes. Some folks don't like cluttering up chat, either, and the default buttons in chat can be cumbersome. I think that any time you are putting commands into a nested drop down, you should deeply consider a chat menu for your own peace of mind. :)
I thought I answered, I must have been distracted and forgot to send my answer Ed S. said: What you are trying to do is nest a roll query and it's breaking when it gets to the second query . Take a look at the wiki on nesting here . Thanks for the idea, I tried but I do not understand how to use nested macros. Every time I tried, I failed keithcurtis said: This sort of macro is also much easier to write using&nbsp; Chat Menus . I tried and it works well thank you ^^. I suppose that to make the invoked macro use other macros, I come back to nested macros? Below is an example of what I have: /w Ronhin &amp;{template:pf_generic} {{color=darkred}}{{name=Attaques}} {{header_image=[Attaques](<a href="http://i.imgur.com/AGq5VBG.png" rel="nofollow">http://i.imgur.com/AGq5VBG.png</a>)}} {{ **Attaques simples** [Hache](!&amp;#13;#Hache ) [Bouclier]( !&amp;#13;#Bouclier ) [Griffe]( !&amp;#13;#Griffe-unique ) **Deux armes** [Hache/Bouclier]( !&amp;#13;#Deux-Armes ) [Griffes]( !&amp;#13;#Griffes ) **Mythique** [Hache/Bouclier]( !&amp;#13;#Deux-Armes-Mythiques ) [Griffes]( !&amp;#13;#Griffes-Mythiques ) }} &amp;{template:pf_generic} {{color=darkred}}{{name=Attaque à deux armes}} {{header_image=[Attaques](<a href="http://i.imgur.com/AGq5VBG.png" rel="nofollow">http://i.imgur.com/AGq5VBG.png</a>)}} {{Jet d'attaque à la hache=[[1d20 + 14 - 2 + ?{Modificateur Toucher|0} ]]}} {{Dégâts à la hache=[[1d10 + 10 + ?{Modificateur Dégâts|0} ]]}} {{Jet d'attaque au bouclier=[[1d20 + 14 - 2 + ?{Modificateur Toucher|0} ]]}} {{Dégâts au bouclier=[[1d8 + 10 + ?{Modificateur Dégâts|0} ]]}} {{Description=Ronhin Varoth'en attaque avec la **Hache des Seigneurs Nains** et enchaine avec un coup de **Bouclier du Soleil** tous deux offerts par le dieu **Milyterre** !}} and what I am trying to do: &amp;{template:pf_generic} {{color=darkred}}{{name=Attaque à deux armes}} {{header_image=[Attaques](<a href="http://i.imgur.com/AGq5VBG.png" rel="nofollow">http://i.imgur.com/AGq5VBG.png</a>)}} {{Jet d'attaque à la hache=#Toucher-Hache ]]}} {{Dégâts à la hache=Degats-hache }} {{Jet d'attaque au bouclier=#Toucher-bouclier }} {{Dégâts au bouclier=#Degats-bouclier }} {{Description=Ronhin Varoth'en attaque avec la **Hache des Seigneurs Nains** et enchaine avec un coup de **Bouclier du Soleil** tous deux offerts par le dieu **Milyterre** !}}