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 .
×

Macros help

In one game of mine, I use Eldritch blast a lot as a warlock. I'd like to make a macro but I don't understand coding. I tried using a template I found in the forums but I kept getting  No attribute was found for @{Errian Armgo|global_spell_attack_bonus} The Macros im using is  &{template:5eDefault}{{multiattack=1}} {{spell=1}} {{title=Eldritch Blast}}{{subheader=@{Errian Armgo|character_name}}} {{subheaderright=Evocation Cantrip}} {{subheader2= }}{{mattack1=[[1d20 + @{Errian Armgo|charisma_mod} + @{Errian Armgo|PB} + (@{Errian Armgo|global_spell_attack_bonus})]]}}{{mdamage1=[[1d10 + @{Errian Armgo|charisma_mod} + 0 + (@{Errian Armgo|global_spell_damage_bonus}) + 0d0]] Force}} {{ mattackcancrit1=1}} {{ mcritdamage1==[[1d10 + @{Errian Armgo|charisma_mod} + 0 + (@{Errian Armgo|global_spell_damage_bonus}) + 0d0]] Force}}{[{spellshowdesc=1}} {{spelldescription=A beam of crackling energy streaks toward a creature within range. Make a ranged spell attack against the target. On a hit, the target takes 1d10 force damage. }} I will note at current level I can't use multi-attack. I do have Agonizing Blast however.  I am a player setting up my own macro on the game which has the warlock but id like to learn how to macros from the games I DM
The error is because the character sheet you're using doesn't call the attack bonus the same thing as the template you tried to use.  The easiest way to create a macro for something on your character sheet is to cast the spell from your character sheet (whatever one you're using) then click in the chat pane and press the up arrow; this will show you the actual command that was issued; from there you can copy that info and use it to create your ability / macro.