Simpler way to apply an effect through a script ?

Post » Wed Jun 20, 2012 9:02 pm

One of my spells has a script attached, and from inside this script I want sometimes to apply an stagger effect to the target.

I know I can create a self stagger effect, then create another spell which calls this effect, and pass this spell through a property to script, finally using the Cast() function.

But I just want to know: Is there any simpler way to do this without using a second spell?
User avatar
Dan Scott
 
Posts: 3373
Joined: Sun Nov 11, 2007 3:45 am

Post » Thu Jun 21, 2012 1:26 am

Since there doesn't seem to be a stagger function (I could be wrong), the only way to apply stagger would be through a spell. And since you don't want the stagger to happen immediately, 100% of the time, then I think it'll always require at least two spells. Or at least a perk and a spell.
User avatar
Emmie Cate
 
Posts: 3372
Joined: Sun Mar 11, 2007 12:01 am

Post » Wed Jun 20, 2012 7:23 pm

During the OnEffectStart event, but only if certain conditions come true. Those conditions have some calulations, so I can't replicate them outside the script.
User avatar
Laura Richards
 
Posts: 3468
Joined: Mon Aug 28, 2006 4:42 am

Post » Wed Jun 20, 2012 11:41 pm

During the OnEffectStart event, but only if certain conditions come true.
Then why not just add the conditions in? Are you not able to use any of the http://www.creationkit.com/Category:Condition_Functions?
User avatar
Saul C
 
Posts: 3405
Joined: Wed Oct 17, 2007 12:41 pm

Post » Thu Jun 21, 2012 1:22 am

Just make this scripted affect like:

Event OnEffectStart(Actor akTarget, Actor akCaster)bool conditionsweretrue = false   if myconditionsaretrue      SendAnimationEvent(akTarget ,"bleedoutstart")	  conditionsweretrue = true   endifEndEventEvent OnEffectFinish(Actor akTarget, Actor akCaster)   if conditionsweretrue     SendAnimationEvent(akTarget,"bleedoutstop")   endifEndEvent
That does a bleedout....but you could substitute staggers eventname.
User avatar
Lew.p
 
Posts: 3430
Joined: Thu Jun 07, 2007 5:31 pm

Post » Wed Jun 20, 2012 8:17 pm

That does a bleedout....but you could substitute staggers eventname.

Yes, that's it. Thanks a lot.
User avatar
Solène We
 
Posts: 3470
Joined: Tue Mar 27, 2007 7:04 am


Return to V - Skyrim