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 .
×
May your rolls be merry + bright! 🎄
Create a free account

[5e OGL] Two-weapon fighting, Sneak attack, and other macro troubles.

Hello, I am new to Roll20 and am just starting to set up token macros for my players. i am struggling with how to do things like two weapon fighting, sneak attacks, spells and other basic things. I am playing in 5e and using the 5e character sheets. Any help would be appreciated! Thanks!
1488423997

Edited 1488424242
Tetsuo
Forum Champion
Hi Ryan, welcome to Roll20. It sounds like you're looking for help with macros! As a new player, I recommend reading  New to Roll20 .  To learn more about macros in general, I recommend reading through some of the pages listed on the Roll20 Wiki's Main Page , including: Macros & Text Chat Sheet Roll Buttons & Command Buttons Dice Reference & Rollable Tables Journal Attributes Abilities Roll Templates Tokens & Token Actions Finally, if you're using the 5E OGL sheet, you may find  this wiki page helpful.  If, on the other hand, you're using the 5E Shaped character sheet, you may find  this documentation helpful. Let me know if you have any questions!
I have looked over all of the basic macro stuff, and have been able to create macros for attacks, initiative, and other things with some help, but I'm struggling how to do things like a sneak attack with just a token action, and two-handed fighting. I've come up with some solutions but they dont work as well as I would like. Anyone have any better ideas? So far for two handed fighting I'm using this mess: @{Yakha|wtype}&{template:atk} {{mod=+5}} {{rname=[Shortsword](~-KbmYHdUDEm9fhllNlQE|repeating_attack_-KdMTFEuNnQzfXeUxNwl_attack_dmg)}} {{rnamec=[Shortsword](~-KbmYHdUDEm9fhllNlQE|repeating_attack_-KdMTFEuNnQzfXeUxNwl_attack_crit)}} {{r1=[[1d20@{Yakha|halflingluck}cs>20 + 3[STR] + 2[PROF]]]}} @{Yakha|rtype}@{Yakha|halflingluck}cs>20 + 3[STR] + 2[PROF]]]}} {{range=5 feet}} {{desc=}} ammo= @{Yakha|charname_output} @{Yakha|wtype}&{template:atk} {{mod=0}} {{rname=[Shortsword](~-KbmYHdUDEm9fhllNlQE|repeating_attack_-KdMTFEuNnQzfXeUxNwl_attack_dmg)}} {{rnamec=[Shortsword](~-KbmYHdUDEm9fhllNlQE|repeating_attack_-KdMTFEuNnQzfXeUxNwl_attack_crit)}} {{r1=[[1d20@{Yakha|halflingluck}cs>20 + 3[STR] + 2[PROF]]]}} @{Yakha|rtype}@{Yakha|halflingluck}cs>20 + 3[STR] + 2[PROF]]]}} {{range=5 feet}} {{desc=}} ammo= @{Yakha|charname_output} But it doesnt look apealing or work all that well. Would it be better to make it a multiattack?
For sneak attack I just include [[(@{base_level}/2)d6]] in the weapon's damage 2 field and ignore it if it doesn't apply.  For two weapon fighting I have both weapons set up in the sheet's combat section as normal (secondary one without the damage bonus) and create an ability macro like this so that both attacks are rolled together:  %{Loquilla Blackheart|repeating_attack_-KWQ5wbBkhVhmUbdIeEd_attack} %{Loquilla Blackheart|repeating_attack_-KWQ6-6K4c7NSJlmnHRQ_attack}
1488465112

Edited 1488465131
Tetsuo
Forum Champion
Perry has the right of it, though for the sneak attack, I'd recommend using the  floor function to round the dice down so that you don't end up rolling 1.5d6. Something like this: [[[[(floor(@{selected|base_level}/2))]]d6]]
1488468375
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Franky H. said: Perry has the right of it, though for the sneak attack, I'd recommend using the  floor function to round the dice down so that you don't end up rolling 1.5d6. Something like this: [[[[(floor(@{selected|base_level}/2))]]d6]] dice have automatic rounding (although it rounds up), so another option would be to simply do [[(@{selected|base_level}/2-.5)d6]].
Thanks so much for all the help!
Franky H. said: Perry has the right of it, though for the sneak attack, I'd recommend using the  floor function to round the dice down so that you don't end up rolling 1.5d6. Something like this: [[[[(floor(@{selected|base_level}/2))]]d6]] Oop you're right; I used to remember those kind of things :)