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

How to pull weapon from character sheet to use for maco

New and figuring things out. I'm trying to set a macro to pull the weapon from the player characters 1st slot to use as a combat action for their token. I wanted one macro I could use to copy/paste from character to character thats just specific for the 1st weapon slot so I can avoid making new macros for each character (Yes i know i can click the char sheet but I like templates) I was mostly hoping for something similar to the npc macro for using thier repeating action %{selected|repeating_npcaction_$0_npc_action} I do have roll20 pro and will download a custom character sheet to make things easier if I have to. please provide links if you reference a new char sheet. searching for roll20 on googles gives results years old.
For PCs use %{selected|repeating_attack_$0_attack}
Thank you, is it possible to apply templates to the repeating actions, or do I have to create the template and pull the individual stats from the sheet and plug them into the template macro?
I'm not sure I understand what you mean. By calling the attack in this way, it will use the roll template of the character sheet. If you do not want to use this template, then yes you would need to call the attributes individually using @{selected|repeating_attack_$0_ATTR} where ATTR is the attribute from the repeating section.
How can I find the names of each attribute from the characrer sheet?
I right-click and inspect the html for the attack. However here are the attribute specific to repeating_attack _options-flag (no impact, just determines whether the options are open or not) _atkname (name of the attack) _atkflag (determines if the attack should roll 'to hit') _atkattr_base (the base attribute modifier used in the 'to hit', for example Strength) _atkmod (extra modifier for 'to hit', for example this would be 1 for a +1 weapon) _atkprofflag (determines if proficiency should be added to the 'to hit' roll) _atkrange (the range of the attack) _atkmagic (any flat magic damage the attack does, for example this would be 1 for a +1 weapon) _atkcritrange (the crit range for the weapon, by default this is 20) _dmgflag (determines if the attack rolls damage) _dmgbase (the amount of damage to be rolled without base attribute modifier) _dmgattr (the base attribute modifier used in the damage) _dmgmod (additional damage dealt, this can only be a number not a calculation) _dmgtype (the type of damage being dealt) _dmgcuscrit (additional damage dealt on crit) _dmg2flag (determines if the attack rolls a second damage) _dmg2base (the amount of damage to be rolled without base attribute modifier for the second damage) _dmg2attr (the base attribute modifier used in the second damage) _dmg2mod (additional damage dealt in the second damage, this can only be a number not a calculation) _dmgt2ype (the type of damage being dealt in the second damage) _dmg2cuscrit (additional second damage dealt on crit) _saveflag (determines if the attack requires a saving throw _saveattr (the type of saving throw to be made) _savedc (the dc for the saving throw) _saveflat (the dc for the saving throw if FLAT was selected above) _saveeffect (the effect for the saving throw, usually just displays 'half damage') _ammo (the ammunition used by the attack) _atk_desc (the description for the attack)
Thank you very much for the information. I'm attempting to put an attack macro together that pulls the attributes from the page. but I'm having troubles getting it to roll damage. so far i have the attack rolled out, was going to work out crits later. &{template:default} {{name=@{selected|repeating_attack_$0_atkname}}} {{subtags=test}} {{attack= [[1d20 + @{selected|repeating_attack_$0_atkprofflag} [Proficiency Bonus] + @{selected|strength_mod} [Strength Modifier]]] | [[1d20 + @{selected|repeating_attack_$0_atkprofflag} [Proficiency Bonus] + @{selected|strength_mod} [Strength Modifier]]]}} {{damage= @{selected|repeating_attack_$0_damage}} I get I'm trying to get figure out how to make the attack roll two attacks to account for adv/disadv and to roll damage aswell, with crit dmg on a 20. default is the only template I've messed around with so far. wanted to get the 5eAttack template i saw on the wiki but it didn't seem to work.
Make sure that you are looking at the right roll templates. Here is the wiki for the  5e OGL character sheet roll templates . Also _damage is not an attribute for the attack
1510104513
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
What about calling the attack with syntax that Kyle first suggested doesn't work for you? This will already be setup with attacks, advantage, damage,and crits.