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

Incorporating Sharpshooter into a PowerCard

Hi, I'm trying to see if I can work some magic with these powercards for a player that has Sharpshooter (-5 to attack roll, +10 to Damage) As a proof of concept, to get it to work, I tried this: !power {{ --name|@{selected|character_name} - Hand Crossbow Attack --leftsub|Main Hand --hroll|[[ [$Sharp] ?{Sharpshooter?|No, 0|Yes, 1}]] --Attack Roll:|[[ [$Atk] 2d20kh1 + @{selected|dexterity_mod} [DEX] + @{selected|pb} [PROF] + 2 ]] vs @{target|character_name}'s @{target|AC} AC --?? $Atk.total < @{target|AC} ?? Damage:|Missed! --?? $Atk.total >= @{target|AC} AND $Atk.base <> 20 ?? Damage:|[[ [$Dmg] 1d6 + @{selected|dexterity_mod} [DEX] + 2 ]] Piercing --?? $Atk.base == 20 ?? Crit!:|[[ [$Crit] 2d6 + @{selected|dexterity_mod} [DEX] + 2 ]] Piercing --?? $Sharp.total == 1 ?? Sharpshooter|Yes }} And this was just meant to add a little text at the bottom of the attack if I chose "Yes" on the dropdown prompt. This didn't work, however, as the macro just seemed to hang as it waited for something. Does anyone know a good way to handle this little toggle ability?
1597091649

Edited 1597096045
Ziechael
Forum Champion
Sheet Author
API Scripter
It'll likely be expecting a roll in the hroll rather than a static value: !power {{ --name|@{selected|character_name} - Hand Crossbow Attack --leftsub|Main Hand --hroll|[[ [$Sharp] ?{Sharpshooter?|No, 0|Yes, 1} + 0d0 ]] --Attack Roll:|[[ [$Atk] 2d20kh1 + @{selected|dexterity_mod} [DEX] + @{selected|pb} [PROF] + 2 ]] vs @{target|character_name}'s @{target|AC} AC --?? $Atk.total < @{target|AC} ?? Damage:|Missed! --?? $Atk.total >= @{target|AC} AND $Atk.base <> 20 ?? Damage:|[[ [$Dmg] 1d6 + @{selected|dexterity_mod} [DEX] + 2 ]] Piercing --?? $Atk.base == 20 ?? Crit!:|[[ [$Crit] 2d6 + @{selected|dexterity_mod} [DEX] + 2 ]] Piercing --?? $Sharp.total == 1 ?? Sharpshooter|Yes }} Try the above... also, for automation you could do: !power {{ --name|@{selected|character_name} - Hand Crossbow Attack --leftsub|Main Hand --hroll|[[ [$Sharp] ?{Sharpshooter?|No, 0|Yes, 5} + 0d0 ]] --Attack Roll:|[[ [$Atk] 2d20kh1 + @{selected|dexterity_mod} [DEX] + @{selected|pb} [PROF] + 2 - ?{Sharpshooter?} ]] vs @{target|character_name}'s @{target|AC} AC --?? $Atk.total < @{target|AC} ?? Damage:|Missed! --?? $Atk.total >= @{target|AC} AND $Atk.base <> 20 ?? Damage:|[[ [$Dmg] 1d6 + @{selected|dexterity_mod} [DEX] + 2 + (?{Sharpshooter?}*2) ]] Piercing --?? $Atk.base == 20 ?? Crit!:|[[ [$Crit] 2d6 + @{selected|dexterity_mod} [DEX] + 2 ]] Piercing --?? $Sharp.total == 5 ?? Sharpshooter|Yes }}
That worked so great! Thank you!
1597096070
Ziechael
Forum Champion
Sheet Author
API Scripter
You're most welcome :) Happy rolling!
Could you also potentially help me on this other powercard issue im having? Not related to this one <a href="https://app.roll20.net/forum/post/9057708/powercards-template-problems" rel="nofollow">https://app.roll20.net/forum/post/9057708/powercards-template-problems</a>
1597151967
Ziechael
Forum Champion
Sheet Author
API Scripter
Sorry, I've never used the modern powercards... I'm a dinosaur who clings to the last release of the original author so templates are beyond me. If your thread generates no traction try posting it in the main powercards thread instead?