Rizalgar Posted July 8, 2018 Share Posted July 8, 2018 Okay, so I am trying to make a spell, that if you do not have the required items to cast it, it will not allow it and display a message saying why. I have all the latter down, minus it canceling the cast itself. Here's my script. I tried to make a 'workaround' to cancel it by deleting then readding the spell, which itself works, but still doesn't cancel the cast. Forgive if it's incredibly simple and a mere oversight on my end. I have OBSE so you can list which function it is, if it is, here. I have searched through the standard and OBSE functions to no avail though. scn bmtestspellscript Short Message Begin ScriptEffectStart if player.getitemcount gold001 <1 message "You have no runes" removespell bmtestspell endif End Begin ScriptEffectFinish addspell bmtestspell End Link to comment Share on other sites More sharing options...
Rizalgar Posted July 8, 2018 Author Share Posted July 8, 2018 I just had a thought. I think that since I can't figure out how to cancel a cast, I'm going to instead make it cost money, health, or something of the like if you don't have the required items. It's at least a workaround for now. Link to comment Share on other sites More sharing options...
lubronbrons Posted July 15, 2018 Share Posted July 15, 2018 (edited) to cancel a spell,you could use event handler OnSpellCast (read here --> https://cs.elderscrolls.com/index.php?title=Event_Handler_Functions)and thenforce the actor to play idle to simplify the functions you could just use that script of yours (ScriptEffectStart)and force the actor to play idle with this simple script PlayGroup Idle 1 use syntax 'return' to prevent the script runningoryou could use syntax Dispel <your_spell> Edited July 15, 2018 by lubronbrons Link to comment Share on other sites More sharing options...
Recommended Posts