I've made a macro for Chaos Bolt. It uses powercards so you'll need that installed/enabled to use it. It will only work if your character has Chaos Bolt as one of the spells in their spell section (or it might just be a bit iffy without it there). It features: Casting above default spell level Crit (only on a 20, you'll need to adjust if you crit on anything else) Charisma as spellcasting ability (you'll need to adjust if you use another ability) Damage rolls & applicable damage type options Notifies you if it is possible to jump to another target when damage dice are a pair. I hope it helps someone. !power {{
--replacespell|@{selected|character_id}|Chaos Bolt
--titlefontshadow|none
--tokenid|@{selected|token_id}
--format|atwill
--corners|10
--name|@{selected|character_name}
--leftsub|Magic Attack
--rightsub|~SP-NAME$
--Range:|~SP-RANGE$
--Casting Time:|~SP-CASTINGTIME$
--Duration:|~SP-DURATION$
--Components:|V, S
--inlinereplace|SlotsAboveSpellLevel|?{Slots above spell level|0}
--inlinereplace|SaplExtraDmgDice|~SlotsAboveSpellLevel$~SP-HLDIETYPE$;SaplExtraDmgDiceCrit|~SlotsAboveSpellLevel$~SP-HLDIETYPE$ + ~SlotsAboveSpellLevel$~SP-HLDIETYPE$ [Critical]
--?? 1 == 0 ??Hidden Damage Calculation *1|[#[ [$dmgtotcrit] 0d0 + [#[ [$dmgtot] 0d0 + [#[ [$dmg1] 1d8 ]#] + [#[ [$dmg2] 1d8 ]#] + [#[ [$dmg3] 1d6 ]#] ]#] + [#[ [$dmgc1] 1d8 ]#] + [#[ [$dmgc2] 1d8 ]#] + [#[ [$dmgc3] 1d6 ]#] ]#] ]#]
--Casting Level:|**[#[ [$CastLevel|TXT] 0d0 + ~SP-LEVEL$ + ~SlotsAboveSpellLevel$ ]#]** (Base level: ~SP-LEVEL$)
--vfx_opt|@{selected|token_id} @{target|token_id} beam-magic
--soundfx|_audio,play,nomenu|Eldritchblast
--?? @{target|npc} == 0 ?? Target: *0|@{target|character_name} $$#C00|**Potential Friendly Fire!**$$
--?+ @{target|npc} == 1 +? Target: *1|@{target|character_name}
--Attack Roll|[[ [$atk] 1d20 + @{selected|charisma_mod} [Charisma] + @{selected|pb} [Prof] ]] vs AC
--?? $atk.base == 1 ?? skipto*1|Fumble
--?+ @{target|npc} <> 0 AND $atk < @{target|npc_ac} +? skipto*2|Miss
--?+ @{target|npc} == 0 AND $atk < @{target|ac} +? skipto*3|Miss
--?+ $atk.base == 20 +? skipto*4|Critical
--?+ @{target|npc} <> 0 AND $atk >= @{target|npc_ac} +? skipto*6|Hit
--?+ @{target|npc} == 0 AND $atk >= @{target|ac} +? skipto*7|Hit
--:InvalidTarget|
--Invalid Target!|What should chaotic energy do to this 'thing'?
--skipto*8|EndOfCard
--:Fumble|
--Fumble!|The chaos bolt fizzles out of existance as soon as you cast it
--skipto*9|EndOfCard
--:Miss| Since we didn't skip to anywhere else, assume a miss
--Miss|The chaos bolt misses the target
--skipto*10|EndOfCard
--:Hit|
--Hit|The chaos bolt hits the target; inflicting [! [^dmgtot] !] damage. //([^dmg1] + [^dmg2] + [^dmg3])//
--?? ~SlotsAboveSpellLevel$ > 0 ??Extra Damage *0|Due to being cast **~SlotsAboveSpellLevel$** level(s) higher; [#[ [$ssldmg|NH] ~SaplExtraDmgDice$ ]#] extra damage is inflicted
--?? $dmg1 == $dmg2 ?? skipto*11|Leap
--skipto*12|DamageType
--:Critical|
--Critical Hit!|The chaotic energy intensifies and critically strikes the target; inflicting [! [^dmgtotcrit] !] damage. //([^dmg1] + [^dmg2] + [^dmg3] + [^dmgc1] + [^dmgc2] + [^dmgc3])//
--?? ~SlotsAboveSpellLevel$ > 0 ?? Extra Damage *1|Due to being cast **~SlotsAboveSpellLevel$** level(s) higher; [#[ [$ssldmg|NH] ~SaplExtraDmgDiceCrit$ ]#] extra damage is inflicted
--?? $dmg1 == $dmg2 ?? skipto*13|Leap
--skipto*14|DamageType
--:DamageType|
--?? $dmg1 == 1 ?? Damage Type Options: *1|~R$$#090|**Acid**$$ //or//~R
--?? $dmg1 == 2 ?? Damage Type Options: *2|~R$$#49C|**Cold**$$ //or//~R
--?? $dmg1 == 3 ?? Damage Type Options: *3|~R$$#C00|**Fire**$$ //or//~R
--?? $dmg1 == 4 ?? Damage Type Options: *4|~R$$#55C|**Force**$$ //or//~R
--?? $dmg1 == 5 ?? Damage Type Options: *5|~R$$#FF0|**Lightning**$$ //or//~R
--?? $dmg1 == 6 ?? Damage Type Options: *6|~R$$#3F6|**Poison**$$ //or//~R
--?? $dmg1 == 7 ?? Damage Type Options: *7|~R$$#90C|**Psychic**$$ //or//~R
--?? $dmg1 == 8 ?? Damage Type Options: *8|~R$$#666|**Thunder**$$ //or//~R
--?? $dmg2 == 1 ?? !Damage Type: *9|~R$$#090|**Acid**$$~R
--?? $dmg2 == 2 ?? !Damage Type: *10|~R$$#49C|**Cold**$$~R
--?? $dmg2 == 3 ?? !Damage Type: *11|~R$$#C00|**Fire**$$~R
--?? $dmg2 == 4 ?? !Damage Type: *12|~R$$#55C|**Force**$$~R
--?? $dmg2 == 5 ?? !Damage Type: *13|~R$$#FF0|**Lightning**$$~R
--?? $dmg2 == 6 ?? !Damage Type: *14|~R$$#3F6|**Poison**$$~R
--?? $dmg2 == 7 ?? !Damage Type: *15|~R$$#90C|**Psychic**$$~R
--?? $dmg2 == 8 ?? !Damage Type: *16|~R$$#666|**Thunder**$$~R
--skipto*15|EndOfCard
--:Leap|
--?? $dmg1 == 1 ?? Damage Type: *41|~R$$#090|**Acid**$$~R
--?? $dmg1 == 2 ?? Damage Type: *42|~R$$#49C|**Cold**$$~R
--?? $dmg1 == 3 ?? Damage Type: *43|~R$$#C00|**Fire**$$~R
--?? $dmg1 == 4 ?? Damage Type: *44|~R$$#55C|**Force**$$~R
--?? $dmg1 == 5 ?? Damage Type: *45|~R$$#FF0|**Lightning**$$~R
--?? $dmg1 == 6 ?? Damage Type: *46|~R$$#3F6|**Poison**$$~R
--?? $dmg1 == 7 ?? Damage Type: *47|~R$$#90C|**Psychic**$$~R
--?? $dmg1 == 8 ?? Damage Type: *48|~R$$#666|**Thunder**$$~R
-- Chaos!| The chaotic energy leaps from the target to a different creature of your choice within 30 feet!
--skipto*16|EndOfCard
--:EndOfCard|
}}