I initially thought it possible because of the spell 'Equilibrium' (sacrifice health for magicka). However, when looking at the spell I notice it accomplishes its task by just damaging health and restoring magicka. So I started on creating a basic script for it.
pseudo-script
Event OnSpellCast if (mana < spell.manaCost) int healthcost = spell.manaCost - mana Health = Health - healthcost ContinueCastingSpell() endifEndEvent
Unfortunately I'm running into obstacles with just about everything. Does anyone have a better idea of how to do this? Here are my problems more specifically...
-There doesn't seem to be an event that is called when a player casts a spell
-(if there is an event, there doesn't seem to be a way to get that spells cost)
-I can't find any way to get around the cancellation of the spell when you run out of magicka... this is why ContinueCastingSpell() is left so vague.