Arthur B. said: Ok guys, here's another problem I just ran into. I'm using a spell attack (Eldritch Blast D&D 5e) which attacks multiple targets. What I've noticed is that when you select more than 1 target and get a critical hit or a miss it respinds as if it was for only 1 target. Here's the code I'm using: !power {{
--charid|@{character_id}
--emote|**@{selected|token_name}** sends [4] beams of crackling light towards target(s)!
--name|Eldritch Blast
--leftsub|1 Action
--rightsub|300’ ¤ Instant ¤ Evocation ~C**Components**~C ~CV, S~C
--target_list|@{target|1st Target|token_id} | @{target|2nd Target|token_id} | @{target|3rd Target|token_id} | @{target|4th Target|token_id}
--Target#?{Number of targets?|4} | ~R[[ [$SpAtk] @{AtkRoll} + @{To Hit Spell}]] vs. [[0+ %%AC%% ]] (AC) (%%token_name%%)~R
--?? $SpAtk.total >= @{target| |bar3} AND $SpAtk.base <= 20 ?? Hit| ~R[[ [nh] 1d10 +@{CHA}]] Force damage~R
--?? $SpAtk.total < @{target| |bar3} AND $SpAtk.base < 20 ?? !Miss| ~C$$#ff0000|**You Missed!**$$~C
--?? $SpAtk.base == 20 ?? Critical Hit| ~R[[ [NH] 1d10]]~R
--?? $SpAtk.total >= @{target| |bar3} AND $SpAtk.base <= 20 ?? !Special|~C$$#ff0000|**You are pushed back 10'**$$~C
--?? $SpAtk.base == 1 ?? !Miss:|You missed horribly: ^^^^ $$#ff0000|**[[1t[Critical-Miss-Spell] [txt] ]]**$$
}}
Here's a picture of the output: Any help with this will be appreciated. As HB said, conditionals won't work with charm targeting output. The only way to do this, with conditionals, is to make each an individual attack. Here is an example of how it can work (granted, this is one I wrote for my dad's monk to turn every attack he can have, into a single macro with different options): !power {{
@{format}
--charid|@{character_id}
--emote|@{character_name}'s hands blur as he suddenly strikes!
--name|@{character_name}'s Attack!
--leftsub|Attack Action
--rightsub|Melee
--hroll|[[ [$Wpn] ?{Weapon?|@{selected|meleeweaponname1},1|@{selected|meleeweaponname2},2} + 0d0 ]] [[ [$Attack] ?{Attack?|Regular,1|Bonus,2|Flurry,3|Opportunity,0} + 0d0 ]] [[ [$Open] ?{Open Hand Technique|Prone,0|Push,1|Reaction,2} +0d0]]
--Target *1:|$$#ff0000|@{target|Target 1|token_name}$$
--?? $Wpn == 1 ?? ^1Attack *1:|~R [[ [$Atk1] ?{Advantage Target 1?|No, 1d20|Advantage, 2d20KH1|Disadavantage, 2d20KL1} + [[@{selected|meleetohit1} [Melee Bonus] ]] ]] ~R
--?? $Wpn == 2 ?? ^1Attack *1:|~R [[ [$Atk5] ?{Advantage Target 1?|No, 1d20|Advantage, 2d20KH1|Disadavantage, 2d20KL1} + [[@{selected|meleetohit2} [Melee Bonus] ]] ]] ~R
--?? $Wpn == 1 AND $Atk1.total < @{target|Target 1|bar3} AND $Atk1.base == 1 ?? !Miss *1:|And... you missed: ^^^^ $$#ff0000|**[[ 1t[Critical-Miss] [txt] ]]**$$
--?? $Wpn == 2 AND $Atk5.total < @{target|Target 1|bar3} AND $Atk5.base == 1 ?? !Miss *1:|And... you missed: ^^^^ $$#ff0000|**[[ 1t[Critical-Miss] [txt] ]]**$$
--?? $Wpn == 1 AND $Atk1.total < @{target|Target 1|bar3} AND $Atk1.base <> 1 ?? !Miss *1:|~C $$#ff0000|**Whiffed.**$$ ~C
--?? $Wpn == 2 AND $Atk5.total < @{target|Target 1|bar3} AND $Atk5.base <> 1 ?? !Miss *1:|~C $$#ff0000|**Whiffed.**$$ ~C
--?? $Wpn == 1 AND $Atk1.total >= @{target|Target 1|bar3} OR $Atk1.base == 20 ?? ^1Damage *1:|~R[[@{selected|meleedmg1}+ [[@{meleedmgbonus1}]] ]]~R
--?? $Wpn == 2 AND $Atk5.total >= @{target|Target 1|bar3} OR $Atk5.base == 20 ?? ^1Damage *1:|~R[[@{selected|meleedmg2}+ [[@{meleedmgbonus2}]] ]]~R
--?? $Wpn == 1 AND $Atk1.total >= @{target|Target 1|bar3} OR $Atk1.base == 20 ?? ^1Damage Type *1:|@{selected|meleedmgtype1}
--?? $Wpn == 2 AND $Atk5.total >= @{target|Target 1|bar3} OR $Atk5.base == 20 ?? ^1Damage Type *1:|@{selected|meleedmgtype2}
--?? $Wpn == 1 AND $Atk1.base == 20 ?? ^2Crit *1:|~R[[@{selected|meleedmg1}]]~R
--?? $Wpn == 2 AND $Atk5.base == 20 ?? ^2Crit *1:|~R[[@{selected|meleedmg2}]]~R
--?? $Attack <> 0 ?? Target *2:|$$#ff0000|@{target|Target 2|token_name}$$
--?? $Attack <> 0 AND $Wpn == 1 ?? ^1Attack *2:|~R [[ [$Atk2] ?{Advantage Target 2?|No, 1d20|Advantage, 2d20KH1|Disadavantage, 2d20KL1} + [[@{selected|meleetohit1} [Melee Bonus] ]] ]] ~R
--?? $Attack <> 0 AND $Wpn == 2 ?? ^1Attack *2:|~R [[ [$Atk6] ?{Advantage Target 2?|No, 1d20|Advantage, 2d20KH1|Disadavantage, 2d20KL1} + [[@{selected|meleetohit2} [Melee Bonus] ]] ]] ~R
--?? $Attack <> 0 AND $Wpn == 1 AND $Atk2.total < @{target|Target 2|bar3} AND $Atk2.base == 1 ?? !Miss *2:|And... you missed: ^^^^ $$#ff0000|**[[ 1t[Critical-Miss] [txt] ]]**$$
--?? $Attack <> 0 AND $Wpn == 2 AND $Atk6.total < @{target|Target 2|bar3} AND $Atk6.base == 1 ?? !Miss *2:|And... you missed: ^^^^ $$#ff0000|**[[ 1t[Critical-Miss] [txt] ]]**$$
--?? $Attack <> 0 AND $Wpn == 1 AND $Atk2.total < @{target|Target 2|bar3} AND $Atk2.base <> 1 ?? !Miss *2:|~C $$#ff0000|**Whiffed.**$$ ~C
--?? $Attack <> 0 AND $Wpn == 2 AND $Atk6.total < @{target|Target 2|bar3} AND $Atk6.base <> 1 ?? !Miss *2:|~C $$#ff0000|**Whiffed.**$$ ~C
--?? $Attack <> 0 AND $Wpn == 1 AND $Atk2.total >= @{target|Target 2|bar3} OR $Atk2.base == 20 ?? ^1Damage *2:|~R[[@{selected|meleedmg1}+ [[@{meleedmgbonus1}]] ]]~R
--?? $Attack <> 0 AND $Wpn == 2 AND $Atk6.total >= @{target|Target 2|bar3} OR $Atk6.base == 20 ?? ^1Damage *2:|~R[[@{selected|meleedmg2}+ [[@{meleedmgbonus2}]] ]]~R
--?? $Attack <> 0 AND $Wpn == 1 AND $Atk2.total >= @{target|Target 2|bar3} OR $Atk2.base == 20 ?? ^1Damage Type *2:|@{selected|meleedmgtype1}
--?? $Attack <> 0 AND $Wpn == 2 AND $Atk6.total >= @{target|Target 2|bar3} OR $Atk6.base == 20 ?? ^1Damage Type *2:|@{selected|meleedmgtype2}
--?? $Attack <> 0 AND $Wpn == 1 AND $Atk2.base == 20 ?? ^2Crit *2:|~R[[@{selected|meleedmg1}]]~R
--?? $Attack <> 0 AND $Wpn == 2 AND $Atk6.base == 20 ?? ^2Crit *2:|~R[[@{selected|meleedmg2}]]~R
--?? $Attack == 2 ?? !Bonus|~C **$$#fff|Bonus Action Attack$$** ~~~ ~C
--?? $Attack == 2 ?? Target *5:|$$#ff0000|@{target|Target 3|token_name}$$
--?? $Attack == 2 ?? ^1Attack *5:|~R [[ [$Atk7] ?{Advantage Target 3?|No, 1d20|Advantage, 2d20KH1|Disadavantage, 2d20KL1} + [[@{selected|meleetohit1} [Melee Bonus] ]] ]] ~R
--?? $Attack == 2 AND $Atk7.total < @{target|Target 3|bar3} AND $Atk7.base == 1 ?? !Miss *5:|And... you missed: ^^^^ $$#ff0000|**[[ 1t[Critical-Miss] [txt] ]]**$$
--?? $Attack == 2 AND $Atk7.total < @{target|Target 3|bar3} AND $Atk7.base <> 1 ?? !Miss *5:|~C $$#ff0000|**Whiffed.**$$ ~C
--?? $Attack == 2 AND $Atk7.total >= @{target|Target 3|bar3} OR $Atk7.base == 20 ?? ^1Damage *5:|~R[[@{selected|meleedmg1}+ [[@{meleedmgbonus1}]] ]]~R
--?? $Attack == 2 AND $Atk7.total >= @{target|Target 3|bar3} OR $Atk7.base == 20 ?? ^1Damage Type *5:|@{selected|meleedmgtype1}
--?? $Attack == 2 AND $Atk7.base == 20 ?? ^2Crit *5:|~R[[@{selected|meleedmg1}]]~R
--?? $Attack == 3 ?? !Flurry|~C **$$#fff|Flurry of Blows$$** ~~~ $$#fff|Cost of 1 **Ki**$$ ~C
--?? $Attack == 3 ?? Target *3:|$$#ff0000|@{target|Target 3|token_name}$$
--?? $Attack == 3 ?? ^1Attack *3:|~R [[ [$Atk3] ?{Advantage Target 3?|No, 1d20|Advantage, 2d20KH1|Disadavantage, 2d20KL1} + [[@{selected|meleetohit1} [Melee Bonus] ]] ]] ~R
--?? $Attack == 3 AND $Atk3.total < @{target|Target 3|bar3} AND $Atk3.base == 1 ?? !Miss *3:|And... you missed: ^^^^ $$#ff0000|**[[ 1t[Critical-Miss] [txt] ]]**$$
--?? $Attack == 3 AND $Atk3.total < @{target|Target 3|bar3} AND $Atk3.base <> 1 ?? !Miss *3:|~C $$#ff0000|**Whiffed.**$$ ~C
--?? $Attack == 3 AND $Atk3.total >= @{target|Target 3|bar3} OR $Atk3.base == 20 ?? ^1Damage *3:|~R[[@{selected|meleedmg1}+ [[@{meleedmgbonus1}]] ]]~R
--?? $Attack == 3 AND $Atk3.total >= @{target|Target 3|bar3} OR $Atk3.base == 20 ?? ^1Damage Type *3:|@{selected|meleedmgtype1}
--?? $Attack == 3 AND $Open == 0 AND $Atk3.total >= @{target|Target 3|bar3} ?? ^1Open Hand Technique *3:|@{target|Target 3|token_name} must succeed on a $~#7A00A3|Dexterity$~ saving throw or be knocked prone.
--?? $Attack == 3 AND $Open == 0 AND $Atk3.total >= @{target|Target 3|bar3} ?? ^2Open Hand DC *3:|~R †$ [[ [txt] 8 + @{PB} + @{wisdom_mod} +0d0 ]] †$ ~R
--?? $Attack == 3 AND $Open == 1 AND $Atk3.total >= @{target|Target 3|bar3} ?? ^1Open Hand Technique *3:|@{target|Target 3|token_name} must make a $~#A30000|Strength$~ saving throw. If it fails, it is pushed up to 15 feet away from @{character_name}.
--?? $Attack == 3 AND $Open == 1 AND $Atk3.total >= @{target|Target 3|bar3} ?? ^2Open Hand DC *3:|~R †$ [[ [txt] 8 + @{PB} + @{wisdom_mod} +0d0 ]] †$ ~R
--?? $Attack == 3 AND $Open == 2 AND $Atk3.total >= @{target|Target 3|bar3} ?? ^1Open Hand Technique *3:|@{target|Target 3|token_name} can't take reactions until the end of @{character_name}'s next turn.
--?? $Attack == 3 AND $Atk3.base == 20 ?? ^2Crit *3:|~R[[@{selected|meleedmg1}]]~R
--?? $Attack == 3 ?? Target *4:|$$#ff0000|@{target|Target 4|token_name}$$
--?? $Attack == 3 ?? ^1Attack *4:|~R [[ [$Atk4] ?{Advantage Target 4?|No, 1d20|Advantage, 2d20KH1|Disadavantage, 2d20KL1} + [[@{selected|meleetohit1} [Melee Bonus] ]] ]] ~R
--?? $Attack == 3 AND $Atk4.total < @{target|Target 4|bar3} AND $Atk4.base == 1 ?? !Miss *4:|And... you missed: ^^^^ $$#ff0000|**[[ 1t[Critical-Miss] [txt] ]]**$$
--?? $Attack == 3 AND $Atk4.total < @{target|Target 4|bar3} AND $Atk4.base <> 1 ?? !Miss *4:|~C $$#ff0000|**Whiffed.**$$ ~C
--?? $Attack == 3 AND $Atk4.total >= @{target|Target 4|bar3} OR $Atk4.base == 20 ?? ^1Damage *4:|~R[[@{selected|meleedmg1}+ [[@{meleedmgbonus1}]] ]]~R
--?? $Attack == 3 AND $Atk4.total >= @{target|Target 4|bar3} OR $Atk4.base == 20 ?? ^1Damage Type *4:|@{selected|meleedmgtype1}
--?? $Attack == 3 AND $Open == 0 AND $Atk4.total >= @{target|Target 4|bar3} ?? ^1Open Hand Technique *4:|@{target|Target 4|token_name} must succeed on a $~#7A00A3|Dexterity$~ saving throw or be knocked prone.
--?? $Attack == 3 AND $Open == 0 AND $Atk4.total >= @{target|Target 4|bar3} ?? ^2Open Hand DC *4:|~R †$ [[ [txt] 8 + @{PB} + @{wisdom_mod} +0d0 ]] †$ ~R
--?? $Attack == 3 AND $Open == 1 AND $Atk4.total >= @{target|Target 4|bar3} ?? ^1Open Hand Technique *4:|@{target|Target 4|token_name} must make a $~#A30000|Strength$~ saving throw. If it fails, it is pushed up to 15 feet away from @{character_name}.
--?? $Attack == 3 AND $Open == 1 AND $Atk4.total >= @{target|Target 4|bar3} ?? ^2Open Hand DC *4:|~R †$ [[ [txt] 8 + @{PB} + @{wisdom_mod} +0d0 ]] †$ ~R
--?? $Attack == 3 AND $Open == 2 AND $Atk4.total >= @{target|Target 4|bar3} ?? ^1Open Hand Technique *4:|@{target|Target 4|token_name} can't take reactions until the end of @{character_name}'s next turn.
--?? $Attack == 3 AND $Atk4.base == 20 ?? ^2Crit *4:|~R[[@{selected|meleedmg1}]]~R
}} It's a little longer for only 4 maximum attacks when compared to charm targeting, but the principle is the same. This is just an example of how far you can go with it. It will roll crits for only a single target, as well as misses, critical misses, etc: