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

[5e OGL] Macros with the new sheet.

February 02 (9 years ago)
So, I'm used to using this template format to make generic macros with the old 5e character sheet. With this new one, I have no idea what I'm doing. Is there a new list of field names out there? Or, if they're the same names, how do I call the template? It's no longer &{template:5eDefault}.
Thanks, and sorry if this topic is a duplicate. I didn't see any.
February 02 (9 years ago)
It seems that there are several templates attached to this sheet. Both PC and NPC. It's all really new so not all the fields and tags are known, well to the general public yet. 

PCs:
@{CHARACTERNAME|wtype}&{template:simple} {{rname=}} {{mod=}} {{r1=}} @{CHARACTERNAME|rtype}+[[@{CHARACTERNAME|ROLLBONUS}]][LABEL]]]}}

 Basic rolls

@{CHARACTERNAME|wtype}&{template:atk} {{mod=}} {{rname=)}} {{rnamec=CRIT}} {{r1=}} @{CHARACTERNAME|rtype}cs>20 + BONUSES]]]}} {{range=}} {{desc=}}

This lets you click for damage

@{CHARACTERNAME|wtype}&{template:atkdmg} {{mod=}} {{rname=}} {{r1=}} @{CHARACTERNAME|rtype}cs>20 + BONUSES]]]}} {{attack=1}} {{range=}} {{damage=1}} {{dmg1flag=1}} {{dmg1=}} {{dmg1type=}}  {{dmg2=}}} {{dmg2type=}} {{crit1=}} {{crit2=}} 0 {{desc=}}

 Rolls damage with attack

@{CHARACTERNAME|wtype}&{template:dmg} {{rname=}} {{range=}} {{damage=1}} {{dmg1flag=1}} {{dmg1=}} {{dmg1type=Lightning }} {{dmg2=}}} {{dmg2type=}} {{save=1}} {{saveattr=}} {{savedesc=}} {{savedc=]]}} {{desc=}} {{hldmg=[[(1*?{Cast at Higher Level? Use Zero for a normal cast. How many levels?|0})d6]]}}

 For spells including higher level casting


NPCs:
&{template:npc} {{normal=1}} {{name=}} {{rname=}} {{mod=}} {{r1=}}

 Simple output, not following whisper settings

@{CHARACTERNAME|wtype}&{template:npc} {{normal=1}} {{name=}} {{rname=}} {{mod=}} {{r1=}} @{CHARACTERNAME|rtype}+[[BONUSES][LABEL]]]}} 

Follows whisper and roll settings

@{CHARACTERNAME|wtype}&{template:npcatk} {{attack=1}} {{damage=1}} {{dmg1flag=1}} {{name=}} {{rname=}} {{rnamec=CRIT}} {{r1=}} @{CHARACTERNAME|rtype}+(BONUSES)]]}} {{description=}}

Click for damage

@{CHARACTERNAME|wtype}&{template:npcatk} {{name=}} {{rname=}} {{rnamec=}} {{r1=}} @{CHARACTERNAME|rtype}+(+0)]]}} {{description=}}

 No autoroll for damage (Attack rolls show =BUG)

@{CHARACTERNAME|wtype}&{template:npcaction} {{name=}} {{rname=} {{r1=}} @{CHARACTERNAME|rtype}+(BONUSES)]]}} {{dmg1=}} {{dmg1type=}} {{dmg2=}} {{dmg2type=}} {{crit1=}} {{crit2=}} {{description=}}

 Autorolls for damage

That's the basics that I have found.

I came up with this to output the NPC traits

/w gm &{template:npcaction} {{name=@{selected|npc_name}}} {{rname=@{selected|repeating_npctrait_$0_name}}} {{description=@{selected|repeating_npctrait_$0_desc} }}



Happy gaming and post any more you figure out yourself.
February 02 (9 years ago)
Thanks!
February 19 (9 years ago)

Edited February 19 (9 years ago)
So this macro kinda works for an "All Save" button, however it is using the characters stat mod not the save mod which would be different if the character was proficient with the save, not sure of the name of the trait for a save vs just the stat modifier. Obviously my character's name is Rolen. 

&{template:simple} {{mod=?{Save|STR, [[@{Rolen|strength_mod}]] (STR) |DEX, [[@{Rolen|dexterity_mod}]] (DEX) |CON, [[@{Rolen|constitution_mod}]] (CON) |INT, [[@{Rolen|intelligence_mod}]] (INT) |WIS, [[@{Rolen|wisdom_mod}]] (WIS) |CHA, [[@{Rolen|charisma_mod}]] (CHA) } Saving Throw }} {{rname=Save}} {{r1=[[1d20+ ?{Save}]]}} @{Rolen|rtype}+[[?{Save}]][Dexterity]]]}}

One option would be specifically add the proficiency bonus to the saves that the character is proficient. 
February 19 (9 years ago)
You are looking for @{selected|constitution_save_bonus} or strength_save_bonus, ect

also your roll should look more like this

{{r1=[[1d20@{selected|halflingluck}+?{Save} @{selected|globalsavingthrowbonus}]] @{selected|rtype}@{selected|halflingluck}+?{Save}@{selected|globalsavingthrowbonus}]]}}

That should include all the functions of the sheet.
February 19 (9 years ago)
Yep, that is working perfectly. Modified Macro (I don't like the selected feature, it is just another click that I need to do). 

&{template:simple} {{mod=?{Save|STR, [[@{Rolen|strength_save_bonus}]] (STR) |DEX, [[@{Rolen|dexterity_save_bonus}]] (DEX) |CON, [[@{Rolen|constitution_save_bonus}]] (CON) |INT, [[@{Rolen|intelligence_save_bonus}]] (INT) |WIS, [[@{Rolen|wisdom_save_bonus}]] (WIS) |CHA, [[@{Rolen|charisma_save_bonus}]] (CHA) } Saving Throw }} {{rname=Save}} {{r1=[[1d20@{Rolen|halflingluck}+?{Save}+@{Rolen|globalsavingthrowbonus}]]}} @{Rolen|rtype} @{Rolen|halflingluck}+?{Save} + @{Rolen|globalsavingthrowbonus}]]}}
February 19 (9 years ago)
Here is the All Skill Macro I came up with in case anyone needs

&{template:simple} {{mod=?{Skill|Acrobatics, [[@{Rolen|acrobatics_bonus}]] (Acrobatics) |Animal Handling, [[@{Rolen|animal_handling_bonus}]] (Animal Handling) |Arcana, [[@{Rolen|arcana_bonus}]] (Arcana) |Deception, [[@{Rolen|deception_bonus}]] (Deception) |History, [[@{Rolen|history_bonus}]] (History) |Insight, [[@{Rolen|insight_bonus}]] (Insight) |Intimidation, [[@{Rolen|intimidation_bonus}]] (Intimidation) |Investigation, [[@{Rolen|investigation_bonus}]] (Investigation) |Medicine, [[@{Rolen|medicine_bonus}]] (Medicine) |Nature, [[@{Rolen|nature_bonus}]] (Nature) |Perception, [[@{Rolen|perception_bonus}]] (Perception) |Performance, [[@{Rolen|performance_bonus}]] (Performance) |Persuasion, [[@{Rolen|persuasion_bonus}]] (Persuasion) |Religion, [[@{Rolen|religion_bonus}]] (Religion) |Sleight of Hand, [[@{Rolen|sleight_of_hand_bonus}]] (Sleight of Hand) |Stealth, [[@{Rolen|stealth_bonus}]] (Stealth) |Survival, [[@{Rolen|survival_bonus}]] (Survival) } }} {{rname=Skill Check}} {{r1=[[1d20@{Rolen|halflingluck}+?{Skill}]]}} @{Rolen|rtype} @{Rolen|halflingluck}+?{Skill}]]}}

Again I am not a fan of the Selected feature, but if you want it just copy this to Notepad and change Rolen to Selected or your characters name. 

Peace.
February 19 (9 years ago)

Edited February 22 (9 years ago)
I like to have universal macros for everyone, so I choose to use selected.
The syntax is really tricky with these, but I managed to work it so it will display with Advantage or Disadvantage also it will display the character name if that option is selected on the character sheet.

@{Selected|wtype}&{template:simple} {{rname=SAVE}} {{mod=?{Save|STR, [[@{Selected|strength_save_bonus}]] (STR) |DEX, [[@{Selected|dexterity_save_bonus}]] (DEX) |CON, [[@{Selected|constitution_save_bonus}]] (CON) |INT, [[@{Selected|intelligence_save_bonus}]] (INT) |WIS, [[@{Selected|wisdom_save_bonus}]] (WIS) |CHA, [[@{Selected|charisma_save_bonus}]] (CHA) } }} {{r1=[[1d20@{Selected|halflingluck}+[[?{Save}]] @{Selected|globalsavingthrowbonus} ]]}} @{Selected|rtype}@{Selected|halflingluck}+[[?{Save}]] @{Selected|globalsavingthrowbonus} ]]}} @{Selected|charname_output}

February 19 (9 years ago)
I also found this template but it seems kinda useless. It doesn't have any options to add a spell attack or spell damage. It just prints out the spell information. 

@{wtype}&{template:spell} {{level=@{spellschool} @{spelllevel}}} {{name=@{spellname_base}}} {{castingtime=@{spellcastingtime}}} {{range=@{spellrange}}} {{target=@{spelltarget}}} @{spellcomp_v} @{spellcomp_s} @{spellcomp_m} {{material=@{spellcomp_materials}}} {{duration=@{spellduration}}} {{description=@{spelldescription}}} {{athigherlevels=@{spellathigherlevels}}} @{spellritual} @{spellconcentration}

February 19 (9 years ago)
Just curious, what does this do at the beginning of the macro: @{Selected|wtype}

I usually drop it from the macro. Is it important?
February 19 (9 years ago)
One last template that I came across (from another forum post actually). It just prints out each item, there are no set attributes. 

This is an example of one that I built for Booming Blade:
&{template:default} {{Spell=Booming Blade}} {{School=Evocation Cantrip}} {{Attack=[[1d20+@{Rolen|strength_mod}+@{Rolen|PB}]] | [[1d20+@{Rolen|strength_mod}+@{Rolen|PB}]]}} {{Damage=[[1d8+@{Rolen|strength_mod} ]] and additional [[1d8]] Thunder damage}} {{Critical Damage=Additional [[1d8]] damage and [[1d8]] Thunder damage}} {{Effect=If the creature moves before the start of my next turn, it takes [[2d8]] Thunder damage}}
February 20 (9 years ago)

Rodney M. said:

Just curious, what does this do at the beginning of the macro: @{Selected|wtype}

I usually drop it from the macro. Is it important?

That follows the whisper setting on the character sheet. If in the options it is set to always whisper rolls to the DM it will use that. 
February 21 (9 years ago)

Edited February 21 (9 years ago)

Hey Ed S, was curious as to how you got that macro to work, when I use it all it shows is
February 21 (9 years ago)

xDialtone said:


Hey Ed S, was curious as to how you got that macro to work, when I use it all it shows is

The code section added line breaks for some reason. I have edited the post so that copying it directly should work now. 
February 22 (9 years ago)

Rodney M. said:

Here is the All Skill Macro I came up with in case anyone needs

[...]

Peace.

You forgot athletics :P
March 13 (9 years ago)

Edited March 13 (9 years ago)
So anyone has a good idea of how a 'Second Wind' macro would look like?

I'm not a big fan of the default template, but it seems the only option with this sheet, which is kinda sad imo...
March 13 (9 years ago)

Moose said:

So anyone has a good idea of how a 'Second Wind' macro would look like?

It could be as simple as this:
/em uses Second Wind to regain [[ 1d10 + 2 [Fighter Level] ]] hit points as a Bonus Action.
You could otherwise use one of the appropriate "class level" Attributes (e.g. @{base_level} or @{multiclass1_lvl}) such that you would not have to edit this macro every time you gain a level in the fighter class.
Simple Initiative macro


@{selected|wtype}&{template:simple} {{rname=@{selected|token_name}}} {{mod=}} {{r1=Initiative}} @{selected|rtype}+[[@{selected|initiative_bonus}]]&{tracker}[Initiative Bonus]]]}}

I can't get {{mod=@{selected_initiative_bonus}}} to work, it keeps outputting:
(((floor((16-10)/2))+0+0)) instead of the value
March 15 (9 years ago)

Edited March 15 (9 years ago)

Matthew H. said:

I can't get {{mod=@{selected_initiative_bonus}}} to work, it keeps outputting:
(((floor((16-10)/2))+0+0)) instead of the value

Try {{mod=[[@{selected|initiative_bonus}]]}}
Works a treat, thanks!
March 15 (9 years ago)

Edited March 15 (9 years ago)
Wes
Sheet Author
So I just Posted this in another thread and thought I would put it here as well.

MACRO for a Token Action rolling from the Attacks and Spell Casting Repeating Attacks on the Core page of the Sheet.
@{selected|wtype}&{template:atk} {{mod=@{selected|repeating_attack_$0_atkbonus} }} {{rname=[@{selected|repeating_attack_$0_atkname}](~selected|repeating_attack_$0_attack_dmg)}} {{rnamec=[@{selected|repeating_attack_$0_atkname}](~selected|repeating_attack_$0_attack_crit)}} {{r1=[[@{selected|repeating_attack_$0_hidden_r1base}@{selected|halflingluck}cs>@{selected|repeating_attack_$0_atkcritrange}@{selected|repeating_attack_$0_hidden_atkbonus} ]] }} @{selected|repeating_attack_$0_hidden_r2base}@{selected|halflingluck}cs>@{selected|repeating_attack_$0_atkcritrange}@{selected|repeating_attack_$0_hidden_atkbonus} ]] }} {{range=@{selected|repeating_attack_$0_atkrange} }}  {{desc=@{selected|repeating_attack_$0_atk_desc} }} @{selected|repeating_attack_$0_spelllevel} ammo=@{selected|repeating_attack_$0_ammo} @{selected|charname_output}
*Its all based on what position the ability you want to use is on the list of repeating items, all repeating lists start counting from 0. So if you wanted a roll for your "Insert Weapon Name Here" and it is the first weapon on the list use the above macro. Or count down the list, starting with zero and replace the $0 with $x, where x is the number on the list of the roll you want to make.

*I used the selected in place of character name so you can use this for other characters and so other people can easily grab the macro code and have a macro without having to change the character name before using it.

*If you dont have/want an attack description or it isnt a spell or you arn't worried about the range you can remove any of those attributes that are bolded to remove the Double lines in the template where the description would appear.

I just noticed that for the NPC part of the sheet it calculates attack rolls but not the damage like for a PC. What i would like is a damage macro like for the pc and if it dislplays two die rolls like the attack for damage can you make the second one display the crit damage?
May 05 (9 years ago)
Dan
Pro
Marketplace Creator
Hey guys I need help please. 

I am looking for an NPC ACTIVE perception check.

Here is what I am using.
%{Selected|npc_perception}

This only seems to work partially, for creatures from the SRD. Even then, it does not calculate correctly (no mods, just straight d20's). However, any monsters I enter in manually, it doesn't work at all and I get syntax errors.

This is driving me nuts!

Thanks.