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

Weapons macros

1517435675

Edited 1517436869
sorry for my english but&nbsp; hello, I would like some help for macros I play on the basis of D & D 5th edition (OGL by Roll20) I would like to create a macro that activates the weapon of a player. for example when we click on shortsword in the card of the character it appears this <a href="http://image.noelshack.com/fichiers/2018/05/3/1517435559-coups-shortsword.png" rel="nofollow">http://image.noelshack.com/fichiers/2018/05/3/1517435559-coups-shortsword.png</a> I would like that to face the same thing by creating a macro that will avoid going into the character file
1517454243
GiGs
Pro
Sheet Author
API Scripter
use the character sheet to trigger an attack, so you get the output in chat. Then put your mouse curse in chat, and click the up arrow - this will show you the last chat entry, so you'll see the macro roll20 used for that attack Copy the macro and paste it in a new ability on the character sheet (Attributes and Abilities tab) tick the box that says Token Action, and the macro will appear next to that characters token whenever the token is selected.
thank you for your help unfortunately it does not appear as I would like. do you have any idea how to make? this appear like this and not like this
What GG said works like a charm i use it all the time and it does exactly what you want.
yet when I type the varriable in the macros of my character it appears the second image
do you use the api script?
1517514005
GiGs
Pro
Sheet Author
API Scripter
Thats pretty weird. Are you being careful to copy the entire code? I just remembered there's another way.&nbsp; Go to the Macro tab (above the chat bar, second-to-last button across the top) Find the Show Macro Bar checkbox, and click it. You'll now have a grey shaded area at the bottom of the screen underneath your camera window. Open your character sheet, click on the attack, but dont release the mouse button, then drag down to the grey bar and release. You'll now have a button on your macro bar. You can rightclick it to rename it.
Will Greenfall said: yet when I type the varriable in the macros of my character it appears the second image What do you mean variable? Are you simply taking the attributes from the command and pasting those attributes into your macro, or are you taking everything returned by the command including the &{template:atkdmg} {{}} stuff? If not the latter, this is why you are getting weird results. The &{template:atkdmg} {{}} stuff is the roll template that formats the displayed information into those boxes.
I do not see the command that you indicate to me sorry I am a little beginner and when I put the cursor on the figure it details me the jets of and not the command uses I don't see the&nbsp;&{template:atkdmg} {{}}
G G said: use the character sheet to trigger an attack, so you get the output in chat. Then put your mouse cursor in chat, and click the up arrow - this will show you the last chat entry, so you'll see the macro roll20 used for that attack You should get something like what I have highlighted
aaaaa ok i dont understand at the first time&nbsp;
Can you use a menu macro to execute other macros. I have a drop down menu and depending on what is picked, I have 6 other macros. is this possible?
Rick said: Does anybody know if you can use a macro to execute another macro. I have a drop down menu macro, depending on what a player picks it would execute one of 6 other macros. Please let me know Yes - here is a document explaining how. Simplest version: ?{Which macro?|Attack,#use-sword |Defend,#use-shield }
Here is the Roll20 documentation for the same.&nbsp; <a href="https://wiki.roll20.net/Macros#Nesting_Macros" rel="nofollow">https://wiki.roll20.net/Macros#Nesting_Macros</a>