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

Sneak Attack

1650820275

Edited 1650823624
Hello, I use powercard for making macro and i had an hard time for finding help with sneak attack ^^ so i decided to share what i came up with. It work pretty well, the only thing i struggle with is the fact that the macro ask twice the target, can't get rid of that ... any suggestion is welcome =) !power {{ --tokenid|@{selected|token_id} --emote|**@{selected|token_name}** Surine @{target|character_name} --target_list|@{target|token_id} --name|Dague --leftsub|Action --rightsub|Càc 1.5m --hroll|[[ [$Sneak] ?{Attaque Sournoise?|Non, 0|oui, 1} + 0d0 ]] --Attaque|[[ [$Atq] ?{Avantage?|Avantage, 2d20kh1+@{selected|dexterity_mod} [DEXT] +@{selected|pb} [MAITRISE] |Normal, 1d20+@{selected|dexterity_mod} [DEXT] +@{selected|pb} [MAITRISE] |Désavantage, 2d20kl1+@{selected|dexterity_mod} [DEXT] +@{selected|pb} [MAITRISE] } ]] vs **CA** [[@{target||npc_ac}]] --?? $Atq < @{target||npc_ac} ?? !Missed|**You missed!** --?? $Atq.base == 1 ?? !Cmiss:|**Echec Critique** --?? $Atq.base <> 1 AND $Atq.total >= [[@{target|AC}]] AND $Atq.base <> 20 AND $Sneak == 0 ?? Dégâts :|[[ [$Dmg] 1d4 + @{selected|Dexterity_mod} [DEXT] ]] **Dommage Perforants** --?? $Atq.base <> 1 AND $Atq.total >= [[@{target|AC}]] AND $Atq.base <> 20 AND $Sneak == 1 ?? Dégâts :|[[ [$Dmg1] 1d4 + 3d6 [AS] + @{selected|dexterity_mod} [DEXT] ]]**Dommage Perforants** --?? $Atq >= @{target|AC} AND $Atq.base <> 20 AND $Sneak == 0 ?? alterbar1|_target|@{target||token_id} _bar|3 _amount|-[^Dmg] _show|all --?? $Atq >= @{target|AC} AND $Atq.base <> 20 AND $Sneak == 1 ?? alterbar1|_target|@{target||token_id} _bar|3 _amount|-[^Dmg1] _show|all --?? $Atq.base == 20 AND $Sneak == 0 ?? Coup critiques :| [[ [$CritDmg1] 2d4 + @{selected|dexterity_mod}]] **Dommage Perforants** --?? $Atq.base == 20 AND $Sneak == 1 ?? Coup critiques :| [[ [$CritDmg] 2d4 + 6d6 [AS] + @{selected|dexterity_mod}]] **Dommage Perforants** --?? $Atq.base == 20 AND $Sneak == 0 ?? alterbar3|_target|@{target||token_id} _bar|3 _amount|-[^CritDmg1] _show|all --?? $Atq.base == 20 AND $Sneak == 1 ?? alterbar3|_target|@{target||token_id} _bar|3 _amount|-[^CritDmg2] _show|all }}
1650898583
Ziechael
Forum Champion
Sheet Author
API Scripter
You should be able to solve your double target issue by removing one of the pipes in your @{target||token_id} calls... it is assigning a blank label to that target that the AC call doesn't, you have the same issue with your npc_ac call too do you might want to decide on your approach and be consistent with it :) Either way is fine though!