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

"Attack" not showing up in NPC attack/damage macro

Input is: &amp;{template:npcatk} {{attack=1}} {{name=Bounty Hunter}} {{rname=GREAT Greatsword}} {{rnamec=rnamec}} {{r1=r1}}{{r1=[[1d20cs&gt;19+5]]}} {{always=1}} {{r2=[[1d20cs&gt;19+5]]}} {{description=}} &amp;{template:npcdmg} {{damage=1}} {{dmg1flag=1}} {{dmg2flag=1}} {{dmg1=[[3d6!]]}} {{dmg1type=slashing}} {{dmg2=}} {{dmg2type=necrotic}} {{crit=1}} {{crit1=[[18]]}} {{crit2=[[1d4]]}} Output is: GREAT Greatsword Bounty Hunter : &nbsp; <span class="inlinerollresult showtip tipsy-n-right" title=" Rolling 1d20cs>19+5 = ( 14 )+5" style="box-sizing: content-box; border: none; padding: 0px 3px; font-weight: bold; cursor: help; font-size: 1.1em;">19 &nbsp;|&nbsp; <span class="inlinerollresult showtip tipsy-n-right" title=" Rolling 1d20cs>19+5 = ( 15 )+5" style="box-sizing: content-box; border: none; padding: 0px 3px; font-weight: bold; cursor: help; font-size: 1.1em;">20 Damage: &nbsp; <span class="inlinerollresult showtip tipsy-n-right fullcrit" original-title=" Rolling 3d6! = ( 2 + 6 + 3 + 3 )" style="box-sizing: content-box; border: 0px; padding: 0px 3px; font-weight: bold; cursor: help; font-size: 1.1em; color: black;">14 &nbsp;+&nbsp; 18 slashing + +&nbsp;<span class="inlinerollresult showtip tipsy-n-right fullfail" title=" Rolling 1d4 = ( 1 )" style="box-sizing: content-box; border: 0px; padding: 0px 3px; font-weight: bold; cursor: help; font-size: 1.1em; color: black;">1 necrotic Desired Outcome: Have the word "Attack" appear before the colon before the attack rolls ( Attack: 19 | 20)&nbsp; GREAT Greatsword Bounty Hunter Attack: &nbsp; <span class="inlinerollresult showtip tipsy-n-right" original-title=" Rolling 1d20cs>19+5 = ( 14 )+5" style="box-sizing: content-box; border: none; padding: 0px 3px; font-weight: bold; cursor: help; font-size: 1.1em;">19 &nbsp;|&nbsp; <span class="inlinerollresult showtip tipsy-n-right" title=" Rolling 1d20cs>19+5 = ( 15 )+5" style="box-sizing: content-box; border: none; padding: 0px 3px; font-weight: bold; cursor: help; font-size: 1.1em;">20 damage: &nbsp; <span class="inlinerollresult showtip tipsy-n-right fullcrit" original-title=" Rolling 3d6! = ( 2 + 6 + 3 + 3 )" style="box-sizing: content-box; border: 0px; padding: 0px 3px; font-weight: bold; cursor: help; font-size: 1.1em; color: black;">14 &nbsp;+&nbsp; 18 slashing + +&nbsp;<span class="inlinerollresult showtip tipsy-n-right fullfail" title=" Rolling 1d4 = ( 1 )" style="box-sizing: content-box; border: 0px; padding: 0px 3px; font-weight: bold; cursor: help; font-size: 1.1em; color: black;">1 necrotic
1678828988

Edited 1678829283
Gauss
Forum Champion
Is this a creature from the compendium? If so, which one?&nbsp; Additionally, could you please screenshot the attack section while it is being edited? Edit: I just realized this was a macro. My suggestion is to make an attack on the NPC, then copy the attack text, then use that for the macro and adjust it as desired.&nbsp; Here is an example:&nbsp; @{Orc|wtype}&amp;{template:npcfullatk} {{attack=1}} {{damage=1}} {{dmg1flag=1}}&nbsp; @{Orc|npc_name_flag} {{rname=Greataxe}} {{r1=[[@{Orc|d20}+(5+0)]]}} @{Orc|rtype}+(5+0)]]}} {{dmg1=[[1d12 + 3+0]]}} {{dmg1type=slashing}} {{dmg2=[[+0]]}} {{dmg2type=}} {{crit1=[[1d12+0]]}} {{crit2=[[+0]]}} {{description=}} @{Orc|charname_output} Here is yours:&nbsp; &amp;{template:npcatk} {{attack=1}} {{name=Bounty Hunter}} {{rname=GREAT Greatsword}} {{rnamec=rnamec}} {{r1=r1}}&nbsp; {{r1=[[1d20cs&gt;19+5]]}} {{always=1}} {{r2=[[1d20cs&gt;19+5]]}} {{description=}} Note that you have r1 twice, I bolded them both and italicized one, underlined the other. That is probably causing a bug.&nbsp;
Thank you.&nbsp; starting with the existing attack macro is a big help.&nbsp; How do I get the crit range to be 19 and 20? I have used 1d20cs&gt;19 before but I get errors when I replace the d20 below&nbsp; @{Bounty Hunter|wtype}&amp;{template:npcfullatk} {{attack=1}} {{damage=1}} {{dmg1flag=1}}&nbsp; @{Bounty Hunter|npc_name_flag} {{rname=Greatsword }} {{r1=[[@{Bounty Hunter| d20 }+(6+0)]]}} @{Bounty Hunter|rtype}+(6+0)]]}}
1678830394

Edited 1678830590
@{ Bounty Hunter| d20 } is an attribute call to the ‘Core Die Roll’ on the character sheet settings tab (when you click on the “gear”). It is set to 1d20 by default. You can’t change just the 1d20 to something else because it’ll break the attribute call.&nbsp; To change the crit range go to the character sheet and open up the gear settings and change the crit range there.&nbsp; (Image&nbsp; here &nbsp;- mobile is being weird and not letting me post it)
Thank you Jarren.&nbsp; I am able to follow the link.&nbsp; Is that an option for an NPC sheet?&nbsp;
I figured it out.&nbsp; Had to replace all the parts&nbsp; - [[between]]&nbsp; @{Bounty Hunter|wtype}&amp;{template:npcfullatk} {{attack=1}} {{damage=1}} {{dmg1flag=1}}&nbsp; @{Bounty Hunter|npc_name_flag} {{rname=Greatsword }} {{r1= [[@{Bounty Hunter| d20 }+(6+0)]] }} @{Bounty Hunter|rtype}+(6+0)]]}} @{Bounty Hunter|wtype}&amp;{template:npcfullatk} {{attack=1}} {{damage=1}} {{dmg1flag=1}}&nbsp; @{Bounty Hunter|npc_name_flag} {{rname=Greatsword }} {{r1= [[1d20cs&gt;19+5]] }} @{Bounty Hunter|rtype}+(6+0)]]}} Thank you both for your help
1678831037

Edited 1678833506
Gauss
Forum Champion
Here you go: @{Bounty Hunter|wtype}&amp;{template:npcfullatk} {{attack=1}} {{damage=1}} {{dmg1flag=1}}&nbsp; @{Bounty Hunter|npc_name_flag} {{rname=Greatsword }} {{r1=[[@{Bounty Hunter| d20 } cs&gt;19 +(6+0)]]}} @{Bounty Hunter|rtype} cs&gt;19 +(6+0)]]}} Bolded are the additions.&nbsp; I have tested it and this works.&nbsp; Note: Kofi, your solution will not completely work. "rtype" hasn't been adjusted so it won't roll 19-20 crits on the second d20.&nbsp; Jarren, I don't think that applies to NPCs. (But I haven't tested it)&nbsp; Nope, I am wrong, it absolutely works. Yay! Learn something new every day. :) However, it applies to ALL of an NPC's attacks, the solution I outlined above will only apply to that attack.&nbsp;
oh, good to know.&nbsp; I changed it to your solution already because it was cleaner and I assumed it was better than my "hack".&nbsp;&nbsp;