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

Just wanted to share some targeted attack macros created for my tokens in game.

This macro will roll the attack, display the ac of the target, display the damage, and the crit damage if reasonable, all along with a description of the attack, complete with fx. &{template:default} {{name=@{selected|token_name} brandishes his greatsword and swings at @{target|token_name}}} {{@{selected|token_name} Attack=[[1d20+5}]]}} {{vs @{target|token_name} AC=@{target|AC} }} {{Damage= [[2d6+3}]] Slashing}} {{If Crit= [[2d6+2d6+3}]] Slashing}} /fx splatter-blood @{target|token_id} @{selected|token_id} I also have versions that work well with spells, like this: &{template:default} {{name=@{selected|token_name} points at @{target|token_name} and the sound of a dolorous bell fills the air around it for a moment.}} {{The target must succeed on a Wisdom saving throw of 13 or take:=[[1d8]] necrotic}} {{vs @{target|token_name}'s wisdom save of:=[[1d20 + @{target|npc_wis_save}]] }} {{If the target is missing any of its hit points, it instead takes:= [[1d12]] Necrotic}} /fx splatter-blood @{target|token_id} @{selected|token_id} And last, the same thing, but with 3 targets, which can be easily modified to have more targets: &{template:default} {{name=@{selected|token_name} utters a divine word, and burning radiance erupts from her.}} {{The target must succeed on a Constitution saving throw of 13 or take:=[[1d6]] radiant}} {{vs @{target|target1|token_name}'s constitution save of:=[[1d20 + @{target|target1|npc_con_save}]] }} {{vs @{target|target2|token_name}'s constitution save of:=[[1d20 + @{target|target2|npc_con_save}]] }} {{vs @{target|target3|token_name}'s constitution save of:=[[1d20 + @{target|target3|npc_con_save}]] }} /fx bomb-frost @{target|target1|token_id} @{selected|token_id} /fx bomb-frost @{target|target2|token_id} @{selected|token_id} /fx bomb-frost @{target|target3|token_id} @{selected|token_id} Each of these macros is designed specifically for each character, however the overlap makes it simple enough to edit the macro to fit any character.
1642974214
vÍnce
Pro
Sheet Author
Nice work Sean.  Are the attribute names used tied to a particular sheet?
vÍnce said: Nice work Sean.  Are the attribute names used tied to a particular sheet? Hi Vince, Im not sure I know what you mean exactly. But essentially the token that is using the macro must be selected and then target tokens are selected after the macro is pressed. This inputs the names into the boxes as the examples show.
1643199310
David M.
Pro
API Scripter
It looks like the 5e OGL sheet
1643238862
vÍnce
Pro
Sheet Author
@Sean There's a few sheet attributes, ie ["AC", "npc_wis_save", "npc_con_save", etc.] that are being called in your macro.  Attribute names are commonly sheet-specific, meaning a macro would probably fail if it was used "out-of-the-box" with another sheet. For example, if this is a macro for D&D "5e" by roll20, it would need to be modified to function properly with another sheet/system. I was just inquiring which sheet you were using for clarity.  Cheers
vÍnce said: @Sean There's a few sheet attributes, ie ["AC", "npc_wis_save", "npc_con_save", etc.] that are being called in your macro.  Attribute names are commonly sheet-specific, meaning a macro would probably fail if it was used "out-of-the-box" with another sheet. For example, if this is a macro for D&D "5e" by roll20, it would need to be modified to function properly with another sheet/system. I was just inquiring which sheet you were using for clarity.  Cheers Oh yeah, that makes sense, thanks for clarifying! This is the 5e OGL sheet like David said. Cheers