Silence Caster spell?

Post » Sun Jun 24, 2012 12:47 pm

I want to make a spell that makes spellcastingin a given radius impossible for a given amount of time, can anyone think of a way to do it? I have the visual effect (a swarm of black bees) accomplished (it looks great) but I can't figure out how to make spellcasting within a given radius impossible.
User avatar
Monique Cameron
 
Posts: 3430
Joined: Fri Jun 23, 2006 6:30 am

Post » Sun Jun 24, 2012 1:01 am

You could try reducing magicka to zero.
User avatar
A Lo RIkIton'ton
 
Posts: 3404
Joined: Tue Aug 21, 2007 7:22 pm

Post » Sun Jun 24, 2012 10:01 am

My system doesn't operate on magicka, actors have a given number of casts per day per spell.
EDIT: Maybe there is a way to ForceUnequip spells? Some way to keep them from being able to equip spells for a given amount of time?
User avatar
+++CAZZY
 
Posts: 3403
Joined: Wed Sep 13, 2006 1:04 pm

Post » Sun Jun 24, 2012 12:32 pm

My system doesn't operate on magicka, actors have a given number of casts per day per spell.
EDIT: Maybe there is a way to ForceUnequip spells? Some way to keep them from being able to equip spells for a given amount of time?

If actors have a given number of casts per day, then you must have some way of keeping track of how many casts they have remaining. In which case, you could retrieve that value, store it, set the value to zero, and when the effect is over set it back to what it was before.
User avatar
suniti
 
Posts: 3176
Joined: Mon Sep 25, 2006 4:22 pm

Post » Sun Jun 24, 2012 10:11 am

My system doesn't work that way unfortunately. Basically the system is a global that maintains how many casts remaining, and if that hits zero and they try to cast, it removes the spell from them permanently (until, if it is a character, they rest) so if I did that they would just continue casting once per spell, and then would permanently lose each spell in succession.
User avatar
Lucky Girl
 
Posts: 3486
Joined: Wed Jun 06, 2007 4:14 pm

Post » Sun Jun 24, 2012 11:11 am

Can't you grab that global?
User avatar
Jeff Turner
 
Posts: 3458
Joined: Tue Sep 04, 2007 5:35 pm

Post » Sun Jun 24, 2012 3:40 pm

Oh wait, derp, I forgot that NPC spells don't work the same way as characters where they have limited casts per day. They are basically spell barrage machines until they die. So...I guess I could make a formlist of all the NPC spells in the game, and then iterate through the formlist unequipping all of them. It just keeps looping through that while loop until 30 seconds is up, and then it breaks and they can equip spells successfully again.
User avatar
Emma Copeland
 
Posts: 3383
Joined: Sat Jul 01, 2006 12:37 am

Post » Sun Jun 24, 2012 4:34 pm

I have a similar spell, what I did was registered for an animation event looking for spell cast right and spell cast left. Once those are triggered you can try the interrupt spell function or remove spell function.
User avatar
Miss K
 
Posts: 3458
Joined: Sat Jan 20, 2007 2:33 pm

Post » Sun Jun 24, 2012 2:30 pm

I have a similar spell, what I did was registered for an animation event looking for spell cast right and spell cast left. Once those are triggered you can try the interrupt spell function or remove spell function.
That's a good idea. I also think I may be able to leave it as just a swarm of bees, as just they themselves make it pretty much impossible to hit anything with a spell.
User avatar
Eduardo Rosas
 
Posts: 3381
Joined: Thu Oct 18, 2007 3:15 pm

Post » Sun Jun 24, 2012 5:18 am

Not sure if its relevant to what you need but you could try InterruptCast()
http://www.creationkit.com/InterruptCast_-_ObjectReference
User avatar
danni Marchant
 
Posts: 3420
Joined: Sat Oct 07, 2006 2:32 am

Post » Sun Jun 24, 2012 7:41 am

make a spell with a script effect for interrupt cast, and then use a cloak effect to spam it onto anyone in the affected area
User avatar
Mr. Ray
 
Posts: 3459
Joined: Sun Jul 29, 2007 8:08 am

Post » Sun Jun 24, 2012 4:30 am

Not sure how cloaks work exactly, but I'll look into it. Sounds like the right idea.
User avatar
Greg Cavaliere
 
Posts: 3514
Joined: Thu Nov 01, 2007 6:31 am

Post » Sun Jun 24, 2012 8:37 am

If you want to force the caster to use weapons I think you need to remove the spells. Wouldn't interrupt just cause them to constanty stutter trying to cast spells effectively incapacitating them?
User avatar
Rinceoir
 
Posts: 3407
Joined: Thu Jun 29, 2006 1:54 am

Post » Sun Jun 24, 2012 1:01 pm

I think what I'll do is unequip spells and disallow requipping as the effect of my cloak.
User avatar
Theodore Walling
 
Posts: 3420
Joined: Sat Jun 02, 2007 12:48 pm


Return to V - Skyrim