Hello, trying out the script myself, and currently working on a bit of an undertaking. I'm working on a script for an ability of a homebrew wizard subclass called "Flick of the Wrist." It's essentially an additional ranged attack that deals 1d6 (2d6 at 4th level, 3d6 at 8th level, 4d6 at 12th level, and 5d6 at 16th level) + Int Mod slashing damage, but the attack can be empowered by expending a spellslot to basically add a 1d10 + 1d4 of either psychic, cold, lighting, or fire damage that is multiplied baised on the level of spell slot expended. Feel free to take a look at the code as I'm hitting a bit of a brick wall with getting some bugs and issues with certain parts of the code. !power {{ --name|Flick of the Wrist --leftsub|Ranged Magic Attack --rightsub|30 ft Range --inlinereplace|Lvl1Slots|@{lvl1_slots_expended} --inlinereplace|Lvl2Slots|@{lvl2_slots_expended} --inlinereplace|Lvl3Slots|@{lvl3_slots_expended} --inlinereplace|Lvl4Slots|@{lvl4_slots_expended} --inlinereplace|Lvl5Slots|@{lvl5_slots_expended} --inlinereplace|Lvl6Slots|@{lvl6_slots_expended} --inlinereplace|Lvl7Slots|@{lvl7_slots_expended} --inlinereplace|Lvl8Slots|@{lvl8_slots_expended} --inlinereplace|Lvl9Slots|@{lvl9_slots_expended} --?? ?{Empowered Level?|Normal Flick,StandardCast|Level 1 Empowerd Flick,Lvl1Cast|Level 2 Empowerd Flick,Lvl2Cast|Level 3 Empowerd Flick,Lvl3Cast|Level 4 Empowerd Flick,Lvl4Cast|Level 5 Empowerd Flick,Lvl5Cast|Level 6 Empowerd Flick,Lvl6Cast|Level 7 Empowerd Flick,Lvl2Cast|Level 8 Empowerd Flick,Lvl8Cast|Level 9 Empowerd Flick,Lvl9Cast} == StandardCast ?? skipTo *1|StandardCast --?? ?{Empowered Level?|Normal Flick,StandardCast|Level 1 Empowerd Flick,Lvl1Cast|Level 2 Empowerd Flick,Lvl2Cast|Level 3 Empowerd Flick,Lvl3Cast|Level 4 Empowerd Flick,Lvl4Cast|Level 5 Empowerd Flick,Lvl5Cast|Level 6 Empowerd Flick,Lvl6Cast|Level 7 Empowerd Flick,Lvl2Cast|Level 8 Empowerd Flick,Lvl8Cast|Level 9 Empowerd Flick,Lvl9Cast} == Lvl1Cast ?? skipTo *2|Lvl1Cast --?? ?{Empowered Level?|Normal Flick,StandardCast|Level 1 Empowerd Flick,Lvl1Cast|Level 2 Empowerd Flick,Lvl2Cast|Level 3 Empowerd Flick,Lvl3Cast|Level 4 Empowerd Flick,Lvl4Cast|Level 5 Empowerd Flick,Lvl5Cast|Level 6 Empowerd Flick,Lvl6Cast|Level 7 Empowerd Flick,Lvl2Cast|Level 8 Empowerd Flick,Lvl8Cast|Level 9 Empowerd Flick,Lvl9Cast} == Lvl2Cast ?? skipTo *3|Lvl2Cast --?? ?{Empowered Level?|Normal Flick,StandardCast|Level 1 Empowerd Flick,Lvl1Cast|Level 2 Empowerd Flick,Lvl2Cast|Level 3 Empowerd Flick,Lvl3Cast|Level 4 Empowerd Flick,Lvl4Cast|Level 5 Empowerd Flick,Lvl5Cast|Level 6 Empowerd Flick,Lvl6Cast|Level 7 Empowerd Flick,Lvl2Cast|Level 8 Empowerd Flick,Lvl8Cast|Level 9 Empowerd Flick,Lvl9Cast} == Lvl3Cast ?? skipTo *4|Lvl3Cast --?? ?{Empowered Level?|Normal Flick,StandardCast|Level 1 Empowerd Flick,Lvl1Cast|Level 2 Empowerd Flick,Lvl2Cast|Level 3 Empowerd Flick,Lvl3Cast|Level 4 Empowerd Flick,Lvl4Cast|Level 5 Empowerd Flick,Lvl5Cast|Level 6 Empowerd Flick,Lvl6Cast|Level 7 Empowerd Flick,Lvl2Cast|Level 8 Empowerd Flick,Lvl8Cast|Level 9 Empowerd Flick,Lvl9Cast} == Lvl4Cast ?? skipTo *5|Lvl4Cast --?? ?{Empowered Level?|Normal Flick,StandardCast|Level 1 Empowerd Flick,Lvl1Cast|Level 2 Empowerd Flick,Lvl2Cast|Level 3 Empowerd Flick,Lvl3Cast|Level 4 Empowerd Flick,Lvl4Cast|Level 5 Empowerd Flick,Lvl5Cast|Level 6 Empowerd Flick,Lvl6Cast|Level 7 Empowerd Flick,Lvl2Cast|Level 8 Empowerd Flick,Lvl8Cast|Level 9 Empowerd Flick,Lvl9Cast} == Lvl5Cast ?? skipTo *6|Lvl5Cast --?? ?{Empowered Level?|Normal Flick,StandardCast|Level 1 Empowerd Flick,Lvl1Cast|Level 2 Empowerd Flick,Lvl2Cast|Level 3 Empowerd Flick,Lvl3Cast|Level 4 Empowerd Flick,Lvl4Cast|Level 5 Empowerd Flick,Lvl5Cast|Level 6 Empowerd Flick,Lvl6Cast|Level 7 Empowerd Flick,Lvl2Cast|Level 8 Empowerd Flick,Lvl8Cast|Level 9 Empowerd Flick,Lvl9Cast} == Lvl6Cast ?? skipTo *7|Lvl6Cast --?? ?{Empowered Level?|Normal Flick,StandardCast|Level 1 Empowerd Flick,Lvl1Cast|Level 2 Empowerd Flick,Lvl2Cast|Level 3 Empowerd Flick,Lvl3Cast|Level 4 Empowerd Flick,Lvl4Cast|Level 5 Empowerd Flick,Lvl5Cast|Level 6 Empowerd Flick,Lvl6Cast|Level 7 Empowerd Flick,Lvl2Cast|Level 8 Empowerd Flick,Lvl8Cast|Level 9 Empowerd Flick,Lvl9Cast} == Lvl7Cast ?? skipTo *8|Lvl7Cast --?? ?{Empowered Level?|Normal Flick,StandardCast|Level 1 Empowerd Flick,Lvl1Cast|Level 2 Empowerd Flick,Lvl2Cast|Level 3 Empowerd Flick,Lvl3Cast|Level 4 Empowerd Flick,Lvl4Cast|Level 5 Empowerd Flick,Lvl5Cast|Level 6 Empowerd Flick,Lvl6Cast|Level 7 Empowerd Flick,Lvl2Cast|Level 8 Empowerd Flick,Lvl8Cast|Level 9 Empowerd Flick,Lvl9Cast} == Lvl8Cast ?? skipTo *9|Lvl8Cast --?? ?{Empowered Level?|Normal Flick,StandardCast|Level 1 Empowerd Flick,Lvl1Cast|Level 2 Empowerd Flick,Lvl2Cast|Level 3 Empowerd Flick,Lvl3Cast|Level 4 Empowerd Flick,Lvl4Cast|Level 5 Empowerd Flick,Lvl5Cast|Level 6 Empowerd Flick,Lvl6Cast|Level 7 Empowerd Flick,Lvl2Cast|Level 8 Empowerd Flick,Lvl8Cast|Level 9 Empowerd Flick,Lvl9Cast} == Lvl9Cast ?? skipTo *10|Lvl9Cast --:StandardCast| --Empowered Throw *1|None --Attack *1|[[ [$Atk] ?{Attack is:|Standard,1d20|Advantage,2d20kh1|Disadvantage,2d20kl1} + @{spell_attack_bonus} ]] --?? $Atk >= @{target|AC} AND $Atk.base <> 20 ?? Initial Damage *1|[[ [$BaseDmg] [[round((@{level} + 1) / 4 + 0.5)]]d6 + @{intelligence_mod}]] --?? $Atk.base == 20 ?? Critical Initial Damage *1|[[ [$CritBaseDmg] [[round((@{level} + 1) / 4 + 0.5) * 2]]d6 + @{intelligence_mod}]] --?? $Atk < @{target|AC} ?? skipTo *1|Missed --skipTo *11|EndOfCard --:Lvl1Cast| --?? ~Lvl1Slots$ < 1 ?? skipTo *12|NotEnoughSlots --Empowered Throw *2|1st Level --Attack *2|[[ [$Atk] ?{Attack is:|Standard,1d20|Advantage,2d20kh1|Disadvantage,2d20kl1} + @{spell_attack_bonus} ]] --?? $Atk >= @{target|AC} AND $Atk.base <> 20 ?? Initial Damage *2|[[ [$BaseDmg] [[round((@{level} + 1) / 4 + 0.5)]]d6 + @{intelligence_mod}]] --?? $Atk.base == 20 ?? Critical Initial Damage *2|[[ [$CritBaseDmg] [[round((@{level} + 1) / 4 + 0.5) * 2]]d6 + @{intelligence_mod}]] --?? $Atk < @{target|AC} ?? skipTo *13|Missed --$Empowered Damage Type Roll *1|[[ [$EmpType] 1d4]] --?? $Atk >= @{target|AC} AND $Atk.base <> 20 ?? $Emp Base Dmg Roll *1|[[ [$EmpDmg] 1d10 + 1d4 ]] --?? $Atk.base == 20 ?? $Crit Emp Dmg Roll *1|[[ [$EmpCrit] 2d10 + 2d4 ]] --?? $EmpType == 1 AND $Atk.base <> 20 ?? Empowered Damage *1|[^EmpDmg] Psychic Damage --?? $EmpType == 2 AND $Atk.base <> 20 ?? Empowered Damage *2|[^EmpDmg] Cold Damage --?? $EmpType == 3 AND $Atk.base <> 20 ?? Empowered Damage *3|[^EmpDmg] Lightning Damage --?? $EmpType == 4 AND $Atk.base <> 20 ?? Empowered Damage *4|[^EmpDmg] Fire Damage --?? $EmpType == 1 AND $Atk.base == 20 ?? Critical Empowered Damage *1|[^EmpCrit] Psychic Damage --?? $EmpType == 2 AND $Atk.base == 20 ?? Critical Empowered Damage *2|[^EmpCrit] Cold Damage --?? $EmpType == 3 AND $Atk.base == 20 ?? Critical Empowered Damage *3|[^EmpCrit] Lightning Damage --?? $EmpType == 4 AND $Atk.base == 20 ?? Critical Empowered Damage *4|[^EmpCrit] Fire Damage --api_modattr *1|_silent _charid @{character_id} _lvl1_slots_expended|-1 --skipTo *14|EndOfCard --:Lvl2Cast| --?? ~Lvl2Slots$ < 1 ?? skipTo *15|NotEnoughSlots --Empowered Throw *3|2nd Level --Attack *3|[[ [$Atk] ?{Attack is:|Standard,1d20|Advantage,2d20kh1|Disadvantage,2d20kl1} + @{spell_attack_bonus} ]] --?? $Atk >= @{target|AC} AND $Atk.base <> 20 ?? Initial Damage *3|[[ [$BaseDmg] [[round((@{level} + 1) / 4 + 0.5)]]d6 + @{intelligence_mod}]] --?? $Atk.base == 20 ?? Critical Initial Damage *3|[[ [$CritBaseDmg] [[round((@{level} + 1) / 4 + 0.5) * 2]]d6 + @{intelligence_mod}]] --?? $Atk < @{target|AC} ?? skipTo *16|Missed --$Empowered Damage Type Roll *2|[[ [$EmpType] 1d4]] --?? $Atk >= @{target|AC} AND $Atk.base <> 20 ?? $Emp Base Dmg Roll *2|[[ [$EmpDmg] (1d10 + 1d4) * 2]] --?? $Atk.base == 20 ?? $Crit Emp Dmg Roll *2|[[ [$EmpCrit] (2d10 + 2d4) * 2]] --?? $EmpType == 1 AND $Atk.base <> 20 ?? Empowered Damage *5|[^EmpDmg] Psychic Damage --?? $EmpType == 2 AND $Atk.base <> 20 ?? Empowered Damage *6|[^EmpDmg] Cold Damage --?? $EmpType == 3 AND $Atk.base <> 20 ?? Empowered Damage *7|[^EmpDmg] Lightning Damage --?? $EmpType == 4 AND $Atk.base <> 20 ?? Empowered Damage *8|[^EmpDmg] Fire Damage --?? $EmpType == 1 AND $Atk.base == 20 ?? Critical Empowered Damage *5|[^EmpCrit] Psychic Damage --?? $EmpType == 2 AND $Atk.base == 20 ?? Critical Empowered Damage *6|[^EmpCrit] Cold Damage --?? $EmpType == 3 AND $Atk.base == 20 ?? Critical Empowered Damage *7|[^EmpCrit] Lightning Damage --?? $EmpType == 4 AND $Atk.base == 20 ?? Critical Empowered Damage *8|[^EmpCrit] Fire Damage --api_modattr *2|_silent _charid @{character_id} _lvl2_slots_expended|-1 --skipTo *17|EndOfCard --:Lvl3Cast| --?? ~Lvl3Slots$ < 1 ?? skipTo * 18|NotEnoughSlots --Empowered Throw *4|3rd Level --Attack *4|[[ [$Atk] ?{Attack is:|Standard,1d20|Advantage,2d20kh1|Disadvantage,2d20kl1} + @{spell_attack_bonus} ]] --?? $Atk >= @{target|AC} AND $Atk.base <> 20 ?? Initial Damage *4|[[ [$BaseDmg] [[round((@{level} + 1) / 4 + 0.5)]]d6 + @{intelligence_mod}]] --?? $Atk.base == 20 ?? Critical Initial Damage *4|[[ [$CritBaseDmg] [[round((@{level} + 1) / 4 + 0.5) * 2]]d6 + @{intelligence_mod}]] --?? $Atk < @{target|AC} ?? skipTo *19|Missed --$Empowered Damage Type Roll *3|[[ [$EmpType] 1d4]] --?? $Atk >= @{target|AC} AND $Atk.base <> 20 ?? $Emp Base Dmg Roll *3|[[ [$EmpDmg] (1d10 + 1d4) * 3]] --?? $Atk.base == 20 ?? $Crit Emp Dmg Roll *3|[[ [$EmpCrit] (2d10 + 2d4) * 3]] --?? $EmpType == 1 AND $Atk.base <> 20 ?? Empowered Damage *9|[^EmpDmg] Psychic Damage --?? $EmpType == 2 AND $Atk.base <> 20 ?? Empowered Damage *10|[^EmpDmg] Cold Damage --?? $EmpType == 3 AND $Atk.base <> 20 ?? Empowered Damage *11|[^EmpDmg] Lightning Damage --?? $EmpType == 4 AND $Atk.base <> 20 ?? Empowered Damage *12|[^EmpDmg] Fire Damage --?? $EmpType == 1 AND $Atk.base == 20 ?? Critical Empowered Damage *9|[^EmpCrit] Psychic Damage --?? $EmpType == 2 AND $Atk.base == 20 ?? Critical Empowered Damage *10|[^EmpCrit] Cold Damage --?? $EmpType == 3 AND $Atk.base == 20 ?? Critical Empowered Damage *11|[^EmpCrit] Lightning Damage --?? $EmpType == 4 AND $Atk.base == 20 ?? Critical Empowered Damage *12|[^EmpCrit] Fire Damage --api_modattr *3|_silent _charid @{character_id} _lvl3_slots_expended|-1 --skipTo * 20|EndOfCard --:Lvl4Cast| --?? ~Lvl4Slots$ < 1 ?? skipTo * 21|NotEnoughSlots --Empowered Throw *5|4th Level --Attack *5|[[ [$Atk] ?{Attack is:|Standard,1d20|Advantage,2d20kh1|Disadvantage,2d20kl1} + @{spell_attack_bonus} ]] --?? $Atk >= @{target|AC} AND $Atk.base <> 20 ?? Initial Damage *5|[[ [$BaseDmg] [[round((@{level} + 1) / 4 + 0.5)]]d6 + @{intelligence_mod}]] --?? $Atk.base == 20 ?? Critical Initial Damage *5|[[ [$CritBaseDmg] [[round((@{level} + 1) / 4 + 0.5) * 2]]d6 + @{intelligence_mod}]] --?? $Atk < @{target|AC} ?? skipTo *22|Missed --$Empowered Damage Type Roll *4|[[ [$EmpType] 1d4]] --?? $Atk >= @{target|AC} AND $Atk.base <> 20 ?? $Emp Base Dmg Roll *4|[[ [$EmpDmg] (1d10 + 1d4) * 4]] --?? $Atk.base == 20 ?? $Crit Emp Dmg Roll *4|[[ [$EmpCrit] (2d10 + 2d4) * 4]] --?? $EmpType == 1 AND $Atk.base <> 20 ?? Empowered Damage *13|[^EmpDmg] Psychic Damage --?? $EmpType == 2 AND $Atk.base <> 20 ?? Empowered Damage *14|[^EmpDmg] Cold Damage --?? $EmpType == 3 AND $Atk.base <> 20 ?? Empowered Damage *15|[^EmpDmg] Lightning Damage --?? $EmpType == 4 AND $Atk.base <> 20 ?? Empowered Damage *16|[^EmpDmg] Fire Damage --?? $EmpType == 1 AND $Atk.base == 20 ?? Critical Empowered Damage *13|[^EmpCrit] Psychic Damage --?? $EmpType == 2 AND $Atk.base == 20 ?? Critical Empowered Damage *14|[^EmpCrit] Cold Damage --?? $EmpType == 3 AND $Atk.base == 20 ?? Critical Empowered Damage *15|[^EmpCrit] Lightning Damage --?? $EmpType == 4 AND $Atk.base == 20 ?? Critical Empowered Damage *16|[^EmpCrit] Fire Damage --api_modattr *4|_silent _charid @{character_id} _lvl4_slots_expended|-1 --skipTo *23|EndOfCard --:Lvl5Cast| --?? ~Lvl5Slots$ < 1 ?? skipTo *24|NotEnoughSlots --Empowered Throw *6|5th Level --Attack *6|[[ [$Atk] ?{Attack is:|Standard,1d20|Advantage,2d20kh1|Disadvantage,2d20kl1} + @{spell_attack_bonus} ]] --?? $Atk >= @{target|AC} AND $Atk.base <> 20 ?? Initial Damage *6|[[ [$BaseDmg] [[round((@{level} + 1) / 4 + 0.5)]]d6 + @{intelligence_mod}]] --?? $Atk.base == 20 ?? Critical Initial Damage *6|[[ [$CritBaseDmg] [[round((@{level} + 1) / 4 + 0.5) * 2]]d6 + @{intelligence_mod}]] --?? $Atk < @{target|AC} ?? skipTo *25|Missed --$Empowered Damage Type Roll *5|[[ [$EmpType] 1d4]] --?? $Atk >= @{target|AC} AND $Atk.base <> 20 ?? $Emp Base Dmg Roll *5|[[ [$EmpDmg] (1d10 + 1d4) * 5]] --?? $Atk.base == 20 ?? $Crit Emp Dmg Roll *5|[[ [$EmpCrit] (2d10 + 2d4) * 5]] --?? $EmpType == 1 AND $Atk.base <> 20 ?? Empowered Damage *17|[^EmpDmg] Psychic Damage --?? $EmpType == 2 AND $Atk.base <> 20 ?? Empowered Damage *18|[^EmpDmg] Cold Damage --?? $EmpType == 3 AND $Atk.base <> 20 ?? Empowered Damage *19|[^EmpDmg] Lightning Damage --?? $EmpType == 4 AND $Atk.base <> 20 ?? Empowered Damage *20|[^EmpDmg] Fire Damage --?? $EmpType == 1 AND $Atk.base == 20 ?? Critical Empowered Damage *19|[^EmpCrit] Psychic Damage --?? $EmpType == 2 AND $Atk.base == 20 ?? Critical Empowered Damage *18|[^EmpCrit] Cold Damage --?? $EmpType == 3 AND $Atk.base == 20 ?? Critical Empowered Damage *19|[^EmpCrit] Lightning Damage --?? $EmpType == 4 AND $Atk.base == 20 ?? Critical Empowered Damage *20|[^EmpCrit] Fire Damage --api_modattr *5|_silent _charid @{character_id} _lvl5_slots_expended|-1 --skipTo *26|EndOfCard --:Lvl6Cast| --?? ~Lvl6Slots$ < 1 ?? skipTo *27|NotEnoughSlots --Empowered Throw *7|6th Level --Attack *7|[[ [$Atk] ?{Attack is:|Standard,1d20|Advantage,2d20kh1|Disadvantage,2d20kl1} + @{spell_attack_bonus} ]] --?? $Atk >= @{target|AC} AND $Atk.base <> 20 ?? Initial Damage *7|[[ [$BaseDmg] [[round((@{level} + 1) / 4 + 0.5)]]d6 + @{intelligence_mod}]] --?? $Atk.base == 20 ?? Critical Initial Damage *7|[[ [$CritBaseDmg] [[round((@{level} + 1) / 4 + 0.5) * 2]]d6 + @{intelligence_mod}]] --?? $Atk < @{target|AC} ?? skipTo *28|Missed --$Empowered Damage Type Roll *6|[[ [$EmpType] 1d4]] --?? $Atk >= @{target|AC} AND $Atk.base <> 20 ?? $Emp Base Dmg Roll *6|[[ [$EmpDmg] (1d10 + 1d4) * 6]] --?? $Atk.base == 20 ?? $Crit Emp Dmg Roll *6|[[ [$EmpCrit] (2d10 + 2d4) * 6]] --?? $EmpType == 1 AND $Atk.base <> 20 ?? Empowered Damage *21|[^EmpDmg] Psychic Damage --?? $EmpType == 2 AND $Atk.base <> 20 ?? Empowered Damage *22|[^EmpDmg] Cold Damage --?? $EmpType == 3 AND $Atk.base <> 20 ?? Empowered Damage *23|[^EmpDmg] Lightning Damage --?? $EmpType == 4 AND $Atk.base <> 20 ?? Empowered Damage *24|[^EmpDmg] Fire Damage --?? $EmpType == 1 AND $Atk.base == 20 ?? Critical Empowered Damage *21|[^EmpCrit] Psychic Damage --?? $EmpType == 2 AND $Atk.base == 20 ?? Critical Empowered Damage *22|[^EmpCrit] Cold Damage --?? $EmpType == 3 AND $Atk.base == 20 ?? Critical Empowered Damage *23|[^EmpCrit] Lightning Damage --?? $EmpType == 4 AND $Atk.base == 20 ?? Critical Empowered Damage *24|[^EmpCrit] Fire Damage --api_modattr *6|_silent _charid @{character_id} _lvl6_slots_expended|-1 --skipTo * 29|EndOfCard --:Lvl7Cast| --?? ~Lvl7Slots$ < 1 ?? skipTo *30|NotEnoughSlots --Empowered Throw *8|7th Level --Attack *8|[[ [$Atk] ?{Attack is:|Standard,1d20|Advantage,2d20kh1|Disadvantage,2d20kl1} + @{spell_attack_bonus} ]] --?? $Atk >= @{target|AC} AND $Atk.base <> 20 ?? Initial Damage*8|[[ [$BaseDmg] [[round((@{level} + 1) / 4 + 0.5)]]d6 + @{intelligence_mod}]] --?? $Atk.base == 20 ?? Critical Initial Damage *8|[[ [$CritBaseDmg] [[round((@{level} + 1) / 4 + 0.5) * 2]]d6 + @{intelligence_mod}]] --?? $Atk < @{target|AC} ?? skipTo *31|Missed --$Empowered Damage Type Roll *7|[[ [$EmpType] 1d4]] --?? $Atk >= @{target|AC} AND $Atk.base <> 20 ?? $Emp Base Dmg Roll *7|[[ [$EmpDmg] (1d10 + 1d4) * 7]] --?? $Atk.base == 20 ?? $Crit Emp Dmg Roll *7|[[ [$EmpCrit] (2d10 + 2d4) * 7]] --?? $EmpType == 1 AND $Atk.base <> 20 ?? Empowered Damage *25|[^EmpDmg] Psychic Damage --?? $EmpType == 2 AND $Atk.base <> 20 ?? Empowered Damage *26|[^EmpDmg] Cold Damage --?? $EmpType == 3 AND $Atk.base <> 20 ?? Empowered Damage *27|[^EmpDmg] Lightning Damage --?? $EmpType == 4 AND $Atk.base <> 20 ?? Empowered Damage *28|[^EmpDmg] Fire Damage --?? $EmpType == 1 AND $Atk.base == 20 ?? Critical Empowered Damage *25|[^EmpCrit] Psychic Damage --?? $EmpType == 2 AND $Atk.base == 20 ?? Critical Empowered Damage *26|[^EmpCrit] Cold Damage --?? $EmpType == 3 AND $Atk.base == 20 ?? Critical Empowered Damage *27|[^EmpCrit] Lightning Damage --?? $EmpType == 4 AND $Atk.base == 20 ?? Critical Empowered Damage *28|[^EmpCrit] Fire Damage --api_modattr *7|_silent _charid @{character_id} _lvl7_slots_expended|-1 --skipTo *32|EndOfCard --:Lvl8Cast| --?? ~Lvl8Slots$ < 1 ?? skipTo *33|NotEnoughSlots --Empowered Throw *9|8th Level --Attack *9|[[ [$Atk] ?{Attack is:|Standard,1d20|Advantage,2d20kh1|Disadvantage,2d20kl1} + @{spell_attack_bonus} ]] --?? $Atk >= @{target|AC} AND $Atk.base <> 20 ?? Initial Damage *9|[[ [$BaseDmg] [[round((@{level} + 1) / 4 + 0.5)]]d6 + @{intelligence_mod}]] --?? $Atk.base == 20 ?? Critical Initial Damage *9|[[ [$CritBaseDmg] [[round((@{level} + 1) / 4 + 0.5) * 2]]d6 + @{intelligence_mod}]] --?? $Atk < @{target|AC} ?? skipTo *34|Missed --$Empowered Damage Type Roll *8|[[ [$EmpType] 1d4]] --?? $Atk >= @{target|AC} AND $Atk.base <> 20 ?? $Emp Base Dmg Roll *8|[[ [$EmpDmg] (1d10 + 1d4) * 8]] --?? $Atk.base == 20 ?? $Crit Emp Dmg Roll *8|[[ [$EmpCrit] (2d10 + 2d4) * 8]] --?? $EmpType == 1 AND $Atk.base <> 20 ?? Empowered Damage *29|[^EmpDmg] Psychic Damage --?? $EmpType == 2 AND $Atk.base <> 20 ?? Empowered Damage *30|[^EmpDmg] Cold Damage --?? $EmpType == 3 AND $Atk.base <> 20 ?? Empowered Damage *31|[^EmpDmg] Lightning Damage --?? $EmpType == 4 AND $Atk.base <> 20 ?? Empowered Damage *32|[^EmpDmg] Fire Damage --?? $EmpType == 1 AND $Atk.base == 20 ?? Critical Empowered Damage *29|[^EmpCrit] Psychic Damage --?? $EmpType == 2 AND $Atk.base == 20 ?? Critical Empowered Damage *30|[^EmpCrit] Cold Damage --?? $EmpType == 3 AND $Atk.base == 20 ?? Critical Empowered Damage *31|[^EmpCrit] Lightning Damage --?? $EmpType == 4 AND $Atk.base == 20 ?? Critical Empowered Damage *32|[^EmpCrit] Fire Damage --api_modattr *8|_silent _charid @{character_id} _lvl8_slots_expended|-1 --skipTo *35|EndOfCard --:Lvl9Cast| --?? ~Lvl9Slots$ < 1 ?? skipTo *36|NotEnoughSlots --Empowered Throw *10|9th Level --Attack -10|[[ [$Atk] ?{Attack is:|Standard,1d20|Advantage,2d20kh1|Disadvantage,2d20kl1} + @{spell_attack_bonus} ]] --?? $Atk >= @{target|AC} AND $Atk.base <> 20 ?? Initial Damage*10|[[ [$BaseDmg] [[round((@{level} + 1) / 4 + 0.5)]]d6 + @{intelligence_mod}]] --?? $Atk.base == 20 ?? Critical Initial Damage*10|[[ [$CritBaseDmg] [[round((@{level} + 1) / 4 + 0.5) * 2]]d6 + @{intelligence_mod}]] --?? $Atk < @{target|AC} ?? skipTo *37|Missed --$Empowered Damage Type Roll *9|[[ [$EmpType] 1d4]] --?? $Atk >= @{target|AC} AND $Atk.base <> 20 ?? $Emp Base Dmg Roll *9|[[ [$EmpDmg] (1d10 + 1d4) * 9]] --?? $Atk.base == 20 ?? $Crit Emp Dmg Roll *9|[[ [$EmpCrit] (2d10 + 2d4) * 9]] --?? $EmpType == 1 AND $Atk.base <> 20 ?? Empowered Damage *33|[^EmpDmg] Psychic Damage --?? $EmpType == 2 AND $Atk.base <> 20 ?? Empowered Damage *34|[^EmpDmg] Cold Damage --?? $EmpType == 3 AND $Atk.base <> 20 ?? Empowered Damage *35|[^EmpDmg] Lightning Damage --?? $EmpType == 4 AND $Atk.base <> 20 ?? Empowered Damage *36|[^EmpDmg] Fire Damage --?? $EmpType == 1 AND $Atk.base == 20 ?? Critical Empowered Damage *33|[^EmpCrit] Psychic Damage --?? $EmpType == 2 AND $Atk.base == 20 ?? Critical Empowered Damage *34|[^EmpCrit] Cold Damage --?? $EmpType == 3 AND $Atk.base == 20 ?? Critical Empowered Damage *35|[^EmpCrit] Lightning Damage --?? $EmpType == 4 AND $Atk.base == 20 ?? Critical Empowered Damage *36|[^EmpCrit] Fire Damage --api_modattr *9|_silent _charid @{character_id} _lvl9_slots_expended|-1 --skipTo *38|EndOfCard --:NotEnoughSlots| --Failure|Not enough spell slots for this option --skipTo *39|EndOfCard --:Missed| --Attack Missed|No damage dealt --skipTo *40|EndOfCard --:EndOfCard| }}