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

Powercards Macro Helper auto damage

Hello, I search to do auto damage with macro helper when a NPC attack a PC, but when I used the damage variable $Dmg the macro reroll the damage I don't know why.... I replace the last line of the NPC action attack : "--template|NPCAttack|~@{selected|rtype}$ " by this  --?? $Atk.base == 1 ?? !Cmiss:|**Echec Critique** [[1t[Echecs-critiques-mélée]]] --?? $Atk.base == 1 ?? soundfx|_play|Cmiss --?? $Atk.base >= 2 AND $Atk.total < @{target|Bar2} ?? !Miss:|Echec. --?? $Atk.base >= 2 AND $Atk.total < @{target|Bar2} ?? soundfx|_play|EpeeCourteMiss --?? $Atk.total >= @{target|Bar2} ?? soundfx|_play|EpeeCourteHit --?? $Atk.total >= @{target|Bar2} AND $Atk.base <> 1 AND $Atk.base <> 20 ?? Dégâts :|[[ [$Dmg] 0d6 + ~NPCA-DAMAGE$ ]] ~NPCA-DAMAGETYPE$ damage --?? $Atk.total >= @{target|Bar2} AND $Atk.base < 20 ?? alterbar1|_target|@{target|token_id} _bar|1 _amount|-[^Dmg] _show|all --?? $Atk.base >= 20 ?? Coup critique :|[[ [$CritDmg] 0d6 + ~NPCA-CRIT$ ]] ~NPCA-DAMAGETYPE$ damage --?? $Atk.base >= 20 ?? alterbar2|_target|@{target|token_id} _bar|1 _amount|-[^CritDmg] _show|all --?? $Atk >= @{target|Bar2} ?? vfx_opt|@{target|token_id} glow-blood }} That's works but only when the NPC have 1 damage type, for the second I can't do..... If someone has the solution it's cool :-) thanks....I think I go to modify directly the API to reduce the damage from the Bar1. Thanks !
1648225478

Edited 1648225529
ok I Found !!!!