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

Pop up attacks menu Macros

Hello! I'm hoping someone can help me with the Macros I want to create. My base sample Macros is this: &{template:default} {{name=Healing Potion}} {{  ?{Type| Normal (4-10 HP) , **Normal:**  [[2d4+2]] |  Greater (8-20 HP), **Greater:**  [[4d4+4]]|  Superior (16-40 HP), **Superior:**  [[8d4+8]]|  Supreme (30-60 HP), **Supreme:**  [[10d4+20]]  }}}  This lets me pick a potion type and roll its benefits based on what I chose. I want to do something similar for NPC attacks by selecting its token. Replacing        Normal (4-10 HP)          with         @{selected|repeating_npcaction_$0_name}             I add the name of the first attack belonging to the token to the pop-up menu dropdown to chose from but I don't know what to replace    **Normal:**  [[2d4+2]]     with, so that the result of choosing the attack in the drop down is having it roll it in chat. I attempted     (~selected|repeating_npcaction_$0_npc_action)     but it gets messed up. Any idea if coding something like this is even possible?
You want something like a universal NPC chat menu , but in query form?
I want a macros to pop up a query to ask me which attack   i want   from the selected token   and when i click the attack from the drop down, for it to roll it with the token's stats
1667968543

Edited 1667968680
Gauss
Forum Champion
Iñaki said: I want a macros to pop up a query to ask me which attack   i want   from the selected token   and when i click the attack from the drop down, for it to roll it with the token's stats The problem with that is that you get into some difficult levels of HTML entities when you nest attacks into queries.  I suggest using a Chat Menu instead, it bypasses all the HTML problems and it is not really any different in actual function. You push a button, then select your attack by pushing the attack you want. 
I hear you. I do have a macros to pull up a token's attacks to the chat for you to click from there. i wanted this instead because i didn't like how it clutters the dialog. Gauss said: Iñaki said: I want a macros to pop up a query to ask me which attack   i want   from the selected token   and when i click the attack from the drop down, for it to roll it with the token's stats The problem with that is that you get into some difficult levels of HTML entities when you nest attacks into queries.  I suggest using a Chat Menu instead, it bypasses all the HTML problems and it is not really any different in actual function. You push a button, then select your attack by pushing the attack you want. 
1668056894

Edited 1668056919
Gauss
Forum Champion
Iñaki said: I hear you. I do have a macros to pull up a token's attacks to the chat for you to click from there. i wanted this instead because i didn't like how it clutters the dialog. Easily solved, whisper the chat menu to yourself. :)
Gauss said: Iñaki said: I hear you. I do have a macros to pull up a token's attacks to the chat for you to click from there. i wanted this instead because i didn't like how it clutters the dialog. Easily solved, whisper the chat menu to yourself. :) lol i know i can whisper it to myself, no way i would just clog all of that for all players to see, but in doing so it clutters the chat for me. 
1668099634
Gauss
Forum Champion
Ahhhh, well you could compact it a bunch to make it take up less space.