Hi all, I'm having a little trouble with the Ice Knife spell. It's a complicated one as it has two steps, the first is that it targets a single creature with an attack spell roll with 1d10 damage, second is that it does an AoE saving throw damage of 1d6 to the creature and every creature in a 5 ft range. I've used ScriptCards and SmartAoE to create the AoE damage, but I need some ideas about the initial damage to the single target. Here's the macro so far: !script {{
--#title|Ice Knife
--#sourcetoken|@{selected|token_id}
--#emoteText|[*S:character_name] Casts Ice Knife.
--#bodyfontface|Helvetica
--#oddrowfontcolor|#290000
--#evenrowfontcolor|#290000
--#bodyfontsize|12px
--#titlecardbackgroundcolor|#930c10
--#titlecardbackgroundcolor|#672223
--#titlefontcolor|#fffebd
--#titlefontsize|1.5em
--#titlefontshadow|0
--#oddrowbackground|#f7ce65
--#evenrowbackground|#f7ce65
--#oddrowbackground|#b3ab96
--#evenrowbackground|#b3ab96
--#subtitlefontcolor|#fffebd
--#tablebgcolor|#fffebd
--#lineheight|10pt
--#buttonfontsize|10px
--#buttonbackground|#930c10
--#buttonbackground|#672223
--#buttonbackground|rgba(103,34,35,1); display:inline-block;
--#buttonfontface|Tahoma
--#buttonpadding|8px
--#bodyfontface|Helvetica
--#bodyfontsize|14px
-->WhatSpellSlot|
--X|
--:IceKnife|
--@smartaoe|
_title|Ice Knife
_leftsub|Slot level [$SlotLevel]
_rightsub|DC @{selected|spell_save_dc} WIS
_titlecardbackground|linear-gradient(#672223, #930c10)
_titlefontcolor|#fffebd
_titlefontface|Tahoma
_titlefontsize|1.5em
_titlefontlineheight|10pt
_bodyfontface|Helvetica
_bodyfontsize|12px
_oddrowfontcolor|#290000
_evenrowfontcolor|#290000
_tablebgcolor|#290000
_evenrowbackground|#f7ce65
_oddrowbackground|#f7ce65
_evenrowbackground|#b3ab96
_oddrowbackground|#b3ab96
_subtitlefontcolor|#fffebd
_chatAvatarsEnabled|1
_aoeType|circle, float
_radius|5ft
_aoeColor|#80ff0000
_aoeOutlineColor|#80ff0000
_controlTokName|Ice Knife
_controlTokSize|3
_gridColor|#99000000
_minGridArea|0.25
_minTokArea|0.25
_fx|burn-magic
_dc|@{selected|spell_save_dc}
_saveFormula|5eDEX
_damageFormula1|[$damageFormula1]
_damageType1|Ice
_ignore|SmartAoE_Ignore,1
_bar|1
_autoApply|1
_instant|1
_forceIntersection|0
_desc|You create a shard of ice and fling it at one creature within range. Make a ranged spell attack against the target. On a hit, the target takes 1d10 piercing damage. Hit or miss, the shard then explodes. The target and each creature within 5 feet of the point where the ice exploded must succeed on a Dexterity saving throw or take 2d6 cold damage.%br%At Higher Levels. When you cast this spell using a spell slot of 2nd level or higher, the cold damage increases by 1d6 for each slot level above 1st.
--X|
--:WhatSpellSlot|
--+At what level is the spell being cast?|
--+|[rbutton]1::WhatLVL;1[/rbutton][rbutton]2::WhatLVL;2[/rbutton][rbutton]3::WhatLVL;3[/rbutton][rbutton]4::WhatLVL;4[/rbutton][rbutton]5::WhatLVL;5[/rbutton][rbutton]6::WhatLVL;6[/rbutton][rbutton]7::WhatLVL;7[/rbutton][rbutton]8::WhatLVL;8[/rbutton][rbutton]9::WhatLVL;9[/rbutton]
--X|
--:WhatLVL|
--=SlotLevel|[&reentryval]
--=SlotsTotal|0
--=SlotsExpended|[*S:lvl[$SlotLevel]_slots_expended]
--?[$SlotsExpended.Raw] -eq [$SlotsTotal.Raw]|[
-->NoSlotsLeft|
--]|[
--?[$SlotLevel] -eq 0|NoSlot
--=SlotsLeft|[$SlotsExpended] - 1
--!a:[*S:character_id]|lvl[$SlotLevel]_slots_expended:[$SlotsLeft]
--=damageFormula1|[= [$SlotLevel]+1]d6
--+|Level [$SlotLevel] Slots Left: [$SlotsLeft]
-->IceKnife|
--X|
--:NoSlot|
--X|
--:NoSlotsLeft|
--+|[b][*S:character_name] has no level [$SlotLevel.Total] spell slots available.[/b]
--X|NoSlotsLeftStop
--X|
}}