Hi Federico, There's an example of the spell Healing Aura on the SmartAoE wiki page that can be easily edited to create one for healing word. Just need to change the radius to 5 feet, the roll to a d4 and add in a level select. EDIT: So, turns out SmartAoE has it's own resource reduction already built in. I've updated the SmartAoE script with that included. The problem comes when you try to use ChatSetAttr after the smartaoe script as the "what level" query won't pass to outside of the SmartAoE script. Here is a working SmartAoE script for Healing Word, but it won't deduct a spell slot. !smartaoe {{
--title|Aura of Vitality
--leftsub|Slot level ?{Cast at what level?|1,1|2,2|3,3|4,4|5,5|6,6|7,7|8,8|9,9}
--rightsub|No Save
--titlecardbackground|url('<a href="https://s3.amazonaws.com/files.d20.io/images/253287692/0dpMLj12wwv9cRy5RRw6LA/max.png?1635706258');background-size" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/253287692/0dpMLj12wwv9cRy5RRw6LA/max.png?1635706258');background-size</a>: 100% 100%; background-repeat: no-repeat
--oddrowbackground|#ffffaa
--evenrowbackground|#ffffff
--oddrowfontcolor|#000000
--tablebgcolor|#ffffff
--aoeColor|#ffff0050
--aoeOutlineColor|#cccc00
--gridColor|#ffffff00
--aoeType|circle, float
--radius|5ft
--forceIntersection|0
--minGridArea|0.5
--minTokArea|0.25
--fx|bubbling-holy
--noSave|1
--damageFormula1|[[0 + [[0 -?{Cast at what level?}]]d4]]
--damageType1|(Healing)
--autoApply|1
--instant|1
--resource|lvl?{Cast at what level?}_slots_expended,1
}} I'll show you the macro I use for Healing Word which can also be adapted to Cure Wounds and other healing spells. It does require the ScriptCards, and TokenMod scripts, though. It also uses my preferred template style, but you can change it up or use --overridetemplate and use the built in ScriptCards templates. !scriptcards {{
--#title|Healing Word
--#leftsub|Level 1 | Evocation | Bonus Action [br]
--#rightsub| 60' | V | Instantaneous
--#sourceToken|@{selected|token_id}
--#targetToken|@{target|token_id}
--#emoteText|[*S:character_name] Casts Healing Word on [*T:character_name]
--#bodyfontface|Helvetica
--#oddrowfontcolor|#290000
--#evenrowfontcolor|#290000
--#bodyfontsize|12px
--#buttonfontsize|10px
--#buttonbackground|#930c10
--#buttonbackground|#672223
--#buttonbackground|rgba(103,34,35,1); display:inline-block;
--#buttonfontface|Tahoma
--#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
--#buttonpadding|5px
--~HowFarAway|distance;@{selected|token_id};@{target|token_id}
--=HowFar|[$HowFarAway] * 5
--?[$HowFar] -gt 60|tooFar
-->WhatSpellSlot|
--X|
--:HealingWord|
--=HPRecovered|[$SlotLevel]d4 + @{selected|wisdom_mod}
--=Wounds|[*T:hp^] - [*T:hp]
--?[$HPRecovered] -le [$Wounds]|StillWounded
--+|[*T:character_name] received [$HPRecovered] HP and is now at full health!
--+|Level [$SlotLevel] Slots Left: [$SlotsLeft]
--@token-mod| _set bar1_value|+[$Wounds] _ids @{target|token_id}
--X|
--:StillWounded|
--+|[*T:character_name] recovered [$HPRecovered] of [$Wounds] lost HP!
--+|Level [$SlotLevel] Slots Left: [$SlotsLeft]
--@token-mod| _set bar1_value|+[$HPRecovered] _ids @{target|token_id}
--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]
--=Targets|[$SlotLevel]-1
--a|cure_wounds
-->HealingWord|
--]|
--X|
--:NoSlot|
--X|
--:NoSlotsLeft|
--+|[b][*S:character_name] has no level [$SlotLevel.Total] spell slots available.[/b]
--X|NoSlotsLeftStop
--X|
--:tooFar|
--+|The target is too far away.
--X|
}}