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

Add "description" to Macro?

Is it possible to add the description field to a macro? For example, I have created the monster Giant Spider, and added a macro for the 'Web' Action with: /w gm %{selected|repeating_npcaction_$1_npc_action} But all I get is "(To GM):".  Is it possible to add the description of the Action (To GM), in this case: Web (Recharge 5-6): Ranged Weapon Attack: +5 to hit, range 30/60 ft., one creature. Hit: The target is Restrained by webbing. As an action, the Restrained target can make a DC 12 Strength check, bursting the webbing on a success. The webbing can also be attacked and destroyed (AC 10; hp 5; vulnerability to fire damage; immunity to bludgeoning, poison, and psychic damage). Just to save some time in opening up the sheet to check +5 to hit, DC 12 STR, AC 10, 5 hp.   
1521441092
Andrew R.
Pro
Sheet Author
I’d recommend using the Default Roll Template and including all the dice rolling too. This can speed up your play of the monster attacks. I do this for all the monsters in my 13th Age games and it works well.
1521456686

Edited 1521457223
First of all I do not play DnD so I am kind of ignorant regarding system mechanics. But I do use roll templates extensively and roll templates are amazing! you will get clean looking results, you can set a title, and add a description and many other fields. You can also roll like before, with attribute fetching and queries. There is one template that always works, the default template. try using this code for the above macro: /w gm &{template:default} {{name=Web (Recharge 5-6)}} {{Ranged Weapon Attack=+5 to hit, range 30/60 ft., one creature}} {{On hit= Hit: The target is Restrained by webbing.}} {{Attack = [[1d20]]}} {{ Target's STR = @{ target | strength} }} just an example. You can add as many fields as you want. You can also include more complex rolls like [[1d6+?{bonus|0,0|+1,1|+2,2} + @{selected|wisdom}]]. I would personally recommend you use the OGL template, looks cleaner and has a superior space saving design. It does require the 5E OGL sheet to be in use though (I think). my example of code is: /w gm &{template:npcaction} {{name=Web}} {{rname=Recharge 5-6}} {{description= @{selected|token_name} throws a web attack towards @{target|token_name}! Ranged Weapon Attack: +5 to hit, range 30/60 ft., one creature. Hit: The target is Restrained by webbing. Defending: As an action, the Restrained target can make a DC 12 Strength check, bursting the webbing on a success. The target has a strength of @{target|strength}. The webbing can also be attacked and destroyed (AC 10; hp 5; vulnerability to fire damage; immunity to bludgeoning, poison, and psychic damage). }}
Thank you so much for taking the time to help me, it is sincerely appreciated! Your Example code worked like a charm, I was just wondering if you could explain 2 points so I can adapt this code to some other actions.  What would I have to remove/change to stop the prompt to select a token when doing the action, and how could I add an advantage/disadvantage d20 roll into the macro.  Sorry for this, I have really not got to grips with macros!   
1521471393

Edited 1521472873
using a selected token is one of the simplest ways to get values from a character. but it is optional. that message is caused because the code references a selected token, via @{selected|token_name}. If you remove that it will not require a selected token anymore. This is an example of the group of fetch commands roll20 macros have. their basic formatting is: @{selected|attribute}, @{target|attribute} And then there are also the query commands, with the folowing basic formatting:  ?{question to ask|option 1, code_1 |option2 , code_2| ... | option 99, code_99} OR ?{question to ask|} The second type of query requires typing in the answer, instead of giving a drop-down menu. The code I sent you, without any fetch or query needs would be, /w gm &{template:npcaction} {{name=Web}} {{rname=Recharge 5-6}} {{description= A spider throws a web attack! Ranged Weapon Attack: +5 to hit, range 30/60 ft., one creature. Hit: The target is Restrained by webbing. Defending: As an action, the Restrained target can make a DC 12 Strength check, bursting the webbing on a success. The webbing can also be attacked and destroyed (AC 10; hp 5; vulnerability to fire damage; immunity to bludgeoning, poison, and psychic damage). }}
1521471765

Edited 1521472662
a macro that rolls with advantage/disadvantage rolls the result twice and requires you to manually choose the result that matters. The simplest macro, with template formatting, would be: /w gm &{template:npcaction} {{name=Rolling!}} {{description= Rolling twice... results are: [[1d20]] ; [[1d20]] }} if you want to have a costumisable roll (requires inputting the formula once): /w gm &{template:npcaction} {{name=Rolling!}} {{description= Rolling twice... results are: [[?{formula to be used|}]] ; [[?{formula to be used|}]] }} Last but not least you can have a multiple query system, great for formulas that only vary slightly for each use. something like: /w gm &{template:npcaction} {{name=Rolling!}} {{description= Rolling twice... results are: [[1d?{1dx|2|3|4|5|6|8|10|12|20}+?{equipment bonus|0,0|+1,1|+2,2}+?{status bonus|0,0|+1,1|+2,2}]] ; [[1d?{1dx|2|3|4|5|6|8|10|12|20}+?{equipment bonus|0,0|+1,1|+2,2}+?{status bonus|0,0|+1,1|+2,2}]] }} Note: queries that are the same are only asked once. so, ?{equipment bonus|0,0|+1,1|+2,2} might be in the code twice, but it will only be asked once. With API, which requires Pro subscription, you can create a costumizable adv/dis roll that compares the results and outputs the useful result only. It is very simple code, but macros cannot do that.
Thank you so much gui8312! 
:)
I have TONS of Macros, and actually have 3 dedicated Macros Specifically for that EXACT Spider! Message Me if you're interested
I just realized that this was a misrepresentation as far as the Advantage/Disadvantage goes, try: /w gm Normal: 1d20 /w gm Advantage: 2d20 Keep Highest 1 /w gm Disadvantage: 2d20 Keep Lowest 1 /w gm ?{Roll|Normal,1d20|Advantage,2d20kh1|Disadvantage,2d20kl1} /w gm [[?{Roll}]] go ahead an pop that into chat, that should be able to handle your Advantage/Disadvantage needs via Macro, without need for anything beyond Free Membership. note, if you want a variable Dice Roll, such as !?{Roll|1|2|3|4|5|6|7|8|9|10} !?{Side|2|4|6|8|10|12|20|100} /w gm [[?{Roll}d?{Side}]] you want to tweak it so it inline rolls the Query before it inline rolls the roll, identical to math rules; Brackets First! !?{Roll|1|2|3|4|5|6|7|8|9|10} !?{Side|2|4|6|8|10|12|20|100} /w gm [[[[?{Roll}]]d[[?{Side}]]]] /w gm [[[[?{Roll}]]d[[?{Side}]]kh1]] /w gm [[[[?{Roll}]]d[[?{Side}]]kl1]] /w gm [[[[?{Roll}]]d[[?{Side}]]kh3]] /w gm [[[[?{Roll}]]d[[?{Side}]]kl3]] This allows you to have variable dice Rolls, I have provided multiple examples to demonstrate, you can mouseover the Rolls for a good view of what all happens, or replace the outermost double square brackets with a /roll at the start of the line in place of /w gm /roll [[?{Roll}]]d[[?{Side}]]kh3
1525672588

Edited 1525672686
{{[[ ?{Number of Dice|1}d?{Type of Die|20}cf>0} ]]}} Found this somewhere a while ago.  Set it inside a template, add a title
1525687737

Edited 1525687847
Muckbuckle said: {{[[ ?{Number of Dice|1}d?{Type of Die|20}cf>0} ]]}} Found this somewhere a while ago.  Set it inside a template, add a title Critical Fail anything equal or greater than 0? Also, you will notice that I am not referencing the Queries at length, this is because you only need to reference the part between the { and the first |  in order to get it to remember what you put as the answer {{[[[[?{Number of Dice|1}]]d[[?{Type of Die|20}]]cf<1cs>[[?{Type of Die}]]]]}}