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 Community] Eldritch blast macro

So I've been trying to get a macro that uses the base dnd 5e template, pulls the needed stats from my character sheet and has up to 4 attacks based on level (if it's even possible to have a clause that only shows an extra attack if a certain warlock level is met). So far the best I came up with is this: &{template:5eDefault} {{spell=1}} {{title=Eldritch Blast}} {{subheader=@{Xanyl Vikarsson|character_name}}} {{subheaderright=Evocation Cantrip}} {{subheader2= }} 0 0 0 {{spellshowattack=1}} {{spellattack=[[1d20 + @{Xanyl Vikarsson|charisma_mod} + @{Xanyl Vikarsson|PB} + (@{Xanyl Vikarsson|global_spell_attack_bonus})]]}} {{spellshowattackadv=1}} {{spellattackadv=[[1d20 + @{Xanyl Vikarsson|charisma_mod} + @{Xanyl Vikarsson|PB} + (@{Xanyl Vikarsson|global_spell_attack_bonus})]]}} 0 0 {{spellshowdamage=1}} {{spelldamage=[[1d10 + @{Xanyl Vikarsson|charisma_mod} + 0 + (@{Xanyl Vikarsson|global_spell_damage_bonus}) + 0d0]] Force}} {{spellcancrit=1}} {{spellcritdamage=Additional [[1d10]] damage}}{{attack=1}} {{attack=[[1d20 + @{Xanyl Vikarsson|charisma_mod} + @{Xanyl Vikarsson|PB} + (@{Xanyl Vikarsson|global_spell_attack_bonus})]]}} {{attackadv=1}} {{attackadv=[[1d20 + @{Xanyl Vikarsson|charisma_mod} + @{Xanyl Vikarsson|PB} + (@{Xanyl Vikarsson|global_spell_attack_bonus})]]}} 0 0 {{damage=1}} {{damage=[[1d10 + @{Xanyl Vikarsson|charisma_mod} + 0 + (@{Xanyl Vikarsson|global_spell_damage_bonus}) + 0d0]] Force}}{{Hex =[[1d6]]}} {{Hex 2=[[1d6]]}} 0 {{spellcasttime=1 action}} {{spellduration=instant}} {{spelltarget=1 creature}} {{spellrange=120ft}} {{spellgainedfrom=Warlock}} {{spellcomponents=V,S}}@{Xanyl Vikarsson|classactionspellcast} Which does show a second attack, but if I want to add the spell description that comes in between the two attack rolls and I can't for the life of me figure out how to add more attacks into it. I did find some older posts about a multiattack macro, with {{mattack1=...}} and {{mattack1adv=...}} but that doesn't seem to work anymore? Can anyone help me out with this?
1479048787

Edited 1479048900
The format for mukti-attack would be  &{template:5eDefault} {{title=}} {{subheader=}}} {{subheaderright=}} {{subheader2=}} {{subheaderright2=}} {{multiattack=1}} {{mattack1=[[1d20+7]]}} {{mattack1adv=[[1d20+7]] }} {{mdamage1=[[2d6+4]] Slashing}} {{mcritdamage1=[[2d6]]}} {{mattack2=[[1d20+7]]}} {{mattack2adv=[[1d20+7]] }} {{mdamage2=[[2d6+4]] Slashing}} {{mcritdamage2=[[2d6]]}} {{mattack3=[[1d20+7]]}} {{mattack3adv=[[1d20+7]] }} {{mdamage3=[[1d6+4]] Piercing}} {{mcritdamage3=[[1d6]]}} I think the max is 5 attacks. I don't think you can add extra fields to this so it would miss your hex damage and other info.  What I ultimately ended up doing for my eldritch blast was make a single attack and turn the header into a button to cast it again.  &{template:5eDefault} {{spell=1}} {{title=[Eldritch Blast](~Xanyl Vikarsson|Eldritch-Blast)}} {{subheader=@{Selected|character_name}}} {{subheaderright=Evocation Cantrip}} {{subheader2=Range 120'}} {{emote=@{selected|token_name} launches a crackling beam of energy at @{target|token_name} }} {{spellshowattack=1}} {{spellattack=[[ 1d20 + [[ @{Selected|charisma_mod} + @{Selected|PB} ]] + (@{Selected|global_spell_attack_bonus}) ]] }} {{spellshowattackadv=1}} {{spellattackadv=[[ 1d20 + [[ @{Selected|charisma_mod} + @{Selected|PB} ]] + (@{Selected|global_spell_attack_bonus}) ]] to hit [[ @{target|bar2}d1 ]] }} {{spellshowdamage=1}} {{spelldamage=[[ 1d10 + (@{Selected|global_spell_damage_bonus}) ]] force}} {{spellcancrit=1}} {{spellcritdamage=Additional [[ 1d10 ]] force damage}} {{spellshoweffects=1}} {{spelleffect=Cast [[ [[ ((@{selected|warlock_level} + 1) / 6 + 0.5)d1]] ]] beams}} @{Selected|classactionspellcast} Name the ability Eldritch-Blast on your character and you can easily cast it a second time by just clicking the title in chat. 
Thanks! A little follow up question: the second attack line (the blue 16 vs AC in your example) keeps turning up as a 1 in my example. is that (@{target|bar2}d1) something the GM needs to set as a value for the tokens he is using?
1479051176
Tetsuo
Forum Champion
Most GMs, and the prebuilt modules and tokens use bar 2 as AC. If the DM isn't doing that, you can simply remove the  to hit [[ @{target|bar2}d1 ]] portion of the macro. All that does is prompt the player for a target, and pull the target's AC from the 2nd bar.
Cool, thanks for the help!