I wanted a spell (Animate Dead, to be more exact) to be able to be used multiple times without unsummoning the previous summons.
I've found a nifty function for this here:
http://social.biowar...3174344#3174344
(Thanks, ShaDoOoW!)
but what I want to avoid is players using scrolls or wands to summon potentially infinite number of undead.
So, is there any check that could be used to determine if the spell is cast from a spell slot or not?
Thanks.
'>
Edit: I'm wondering if GetCasterLevel could do the trick somehow? What is the returned value if the source of the spell is a wand or a scroll?
Edit2: Dang, there are other problems, too. Namely, resting does not unsummon all of the undead and it looks like I'd have to modify the resting script itself for it to do so. I might just scrap the idea of multiple summons altogether.
Modifié par Grani, 04 janvier 2014 - 07:43 .