Casting spells at a higher level slot

Using 5e rules you can cast spells using a higher level slot. Is there a way to code the spell to permit the user to choose a higher level slot at this time?

Hi @Renegade,

In case you didn’t know, Astral maintains a list of spells and class actions already formatted so you can easily copy-paste:

That being said, take a look at the proposed solution for Mass Healing Word:

Casting Time: 1 bonus action
Range: 60 feet
Components: V
Duration: Instantaneous
As {name} calls out words of restoration, up to six creatures of their choice that they can see within range regain hit points equal to !(1d4 + {CastStatMod}). This spell has no effect on undead or constructs.

When they cast this spell using a spell slot of {"4th level or higher"} , the healing increases by {"1d4"} for each slot level above {"3rd"} .
Additional Healing:
Spell slot level 4: !!(1d4)
Spell slot level 5: !!(2d4)
Spell slot level 6: !!(3d4)
Spell slot level 7: !!(4d4)
Spell slot level 8: !!(5d4)
Spell slot level 9: !!(6d4)

That’s currently the easiest way to handle this.