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

Weapon Macro 5e OGL sheet

1571056673

Edited 1571059915
Hi,  I want to give my standard monsters more weapon options without having to add them all manually. So I thought a macro to be a good solution. I have the basic template but dont understand how certain aspects of the progamming language work. This is pretty much an awful mess but it does what I want: &{template:default} {{name=Weapon Attack}} {{STR= [[1d20+[[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{DEX= [[1d20+[[@{selected|dexterity_mod}]][DEX] + [[@{selected|pb}]][pb]]]}} @{selected|wtype}&{template:simple} @{selected|rtype}?{Stat |Battleaxe,*0 + 1d8 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d8 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Battleaxe (V),*0 + 1d10 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d10 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Club,*0 + 1d4 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d4 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Hand Crossbow,*0 + 1d6 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d6 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Heavy Crossbow,*0 + 1d10 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d10 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Light Crossbow,*0 + 1d8 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d8 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Dagger,*0 + 1d4 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d4 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Dart,*0 + 1d4 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d4 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Flail,*0 + 1d8 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d8 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Glaive,*0 + 1d10 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d10 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Greataxe,*0 + 1d12 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d12 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Greatsword,*0 + 2d6 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 2d6 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Halberd,*0 + 1d10 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d10 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Handaxe,*0 + 1d6 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d6 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Javelin,*0 + 1d6 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d6 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Lance,*0 + 1d12 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d12 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Light Hammer,*0 + 1d4 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d4 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Longbow,*0 + 1d8 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d8 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Longsword,*0 + 1d8 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d8 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Longsword (V),*0 + 1d10 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d10 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Mace,*0 + 1d6 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d6 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Maul,*0 + 2d6 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 2d6 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Morningstar,*0 + 1d8 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d8 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Pike,*0 + 1d10 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d10 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Quarterstaff,*0 + 1d6 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d6 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Quarterstaff (V),*0 + 1d8 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d8 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Rapier,*0 + 1d8 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d8 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Scimitar,*0 + 1d6 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d6 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Shortbow,*0 + 1d6 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d6 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Sickle,*0 + 1d4 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d4 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Sling,*0 + 1d4 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d4 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Spear,*0 + 1d6 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d6 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Spear (V),*0 + 1d8 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d8 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Trident,*0 + 1d6 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d6 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |War Pick,*0 + 1d8 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d8 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Warhammer,*0 + 1d8 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d8 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Warhammer (V),*0 + 1d10 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d10 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] |Whip,*0 + 1d4 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{rname=^{charisma-u}}} {{mod=[[ [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]]}} {{r1=[[@{selected|d20}*0 + 1d4 + [[@{selected|strength_mod}]][STR] + [[@{selected|pb}]][pb] ]] }}} @{selected|global_skill_mod} @{selected|charname_output} I have 3 Problems 1. The template always rolls a d20 so I solved it by multiplying by 0. Is there another template that would work better? 2. I don't know hoe to change rname without breaking the whole output. So for now it all says "charisma" in the roll? 3. Is there a way to queue this with an attack roll that would come first? -SOLVED AND ADDED If somebody has a macro that has the desired effect but does it in the right way, Id love to use that instead ^^ Thanks for your time
About rname if I want to change it to "Battleaxe" instead of the an attribute like CHARISMA, how do I do it? If I just change the word it will say "Battleaxe-u {{mod...". If I take all the additional nonsense away, it will say "Battleaxe {{mod+2" So clearly there has to be some kind of indicator that the naming of rname ends after Battleaxe, and the "mod" is supposed to be part of the next damage roll. How do I separate rname from the next part of the macro?