Rizalgar Posted December 21, 2018 Share Posted December 21, 2018 Ok, so I'm trying to make a script that, when the player casts a spell, it drains the players magicka, running the script until the players magicka runs out. I've tried having the script add a damage and drain magicka spell, but the damage only does the magnitude for the duration, it doesn't increase with the duration. The drain would work, if it didn't just drain the magicka and return it to myself. So I imagine something like having an invisible actor tele to me, cast the spell on me? Or is there a better, more simpler way I'm missing? Link to comment Share on other sites More sharing options...
Rizalgar Posted December 21, 2018 Author Share Posted December 21, 2018 I figured it out. Next time I'll try harder before going to the forums XD If anyone else wants to use something like this, this is the script I used scn RizPrayerScript float fquestdelaytime float timer begin gamemode let fquestdelaytime := 1 set timer to timer + GetSecondsPassed if timer < 1 return else if player.HasSpell RizPrayerMFort player.modactorvalue2 Magicka -10 set timer to 0 endif endif if player.GetActorValue Magicka < 10 player.removespell RizPrayerMFort player.dispel RizPrayerMFortSpell endif end Link to comment Share on other sites More sharing options...
Recommended Posts