Script Effect Ability won't go away

Post » Fri Aug 13, 2010 9:50 am

Hey everyone,

on my new mod I'm working on, I've made an ability.
The duration of this ability is set, so it won't be infinitive.
But after you see the duration in the upper right corner run out, the ability will just stay there.
It seems to never run the ScriptEffectFinish block, which should be run after the duration has ended, right?

I'd rather not reveal too much of my script :)
User avatar
Kayleigh Mcneil
 
Posts: 3352
Joined: Thu Jun 29, 2006 7:32 am

Post » Fri Aug 13, 2010 10:40 pm

I'm assuming your using something like:

Begin ScriptEffectStart Player.AddSpell [Ability-TypeSpell]End


If so, you may be able to use a Quest Script, something like:

If ( Player.IsSpellTarget [MainSpell] == 0 )  If ( Player.IsSpellTarget [Ability-TypeSpell] == 1 )    Player.RemoveSpell [Ability-TypeSpell]  EndIfEndIf

User avatar
Sandeep Khatkar
 
Posts: 3364
Joined: Wed Jul 18, 2007 11:02 am

Post » Fri Aug 13, 2010 5:38 pm

I'd think that for duration-set abilities, the effects might be finite, but the ability itself is not, because I don't think an ability will actually leave the target like a spell that is dispelled.

Use a script to remove the ability manually instead, should work. Set it to Magic Effect and add it to the ability itself so the ability can clean up itself
User avatar
Emma
 
Posts: 3287
Joined: Mon Aug 28, 2006 12:51 am

Post » Fri Aug 13, 2010 5:06 pm

Yes I figured out a way.
I already had a timer in my script and just modified the script to remove the spell at the last second.
And it works fine

I'd think that for duration-set abilities, the effects might be finite, but the ability itself is not, because I don't think an ability will actually leave the target like a spell that is dispelled.

Yes, well this ability seems to stay active after the duration has ended, both in effects still showing and that the effect icon is still showing in the upper right corner of the screen.
User avatar
Lauren Dale
 
Posts: 3491
Joined: Tue Jul 04, 2006 8:57 am

Post » Fri Aug 13, 2010 6:31 pm

I've ran into the same problem as yours, namely ability won't go away after the supposed "duration" has ended, and now I think I've came into a conclusion: an ability will always active no matter what happens until removed manually
User avatar
Hannah Barnard
 
Posts: 3421
Joined: Fri Feb 09, 2007 9:42 am


Return to IV - Oblivion