Do added abilities stick to base actors?

Post » Mon Nov 28, 2011 7:25 pm

I've never been sure about this, I realize. Let's say I've got a custom spell that is cast on a target NPC. The Start Block adds a Damage Strength Ability to them to "debuff" them, and the Finish Block takes it away. But what if they die before the Finish Block executes? I know that spells stop working on Actors who die. Will this Ability remain on the base actor and therefore be all over the leveled lists and respawns?

I know you shouldn't mess with NPC factions because it changes not only their faction, but the faction of the base actor. And I think I found out that diseases you add to NPCs have a tendency to stick around too. So what about abilities? My hope is that the Ability is cleared from the Actor on death.

Thanks!
User avatar
Sammygirl
 
Posts: 3378
Joined: Fri Jun 16, 2006 6:15 pm

Post » Mon Nov 28, 2011 10:51 pm

I've never been sure about this, I realize. Let's say I've got a custom spell that is cast on a target NPC. The Start Block adds a Damage Strength Ability to them to "debuff" them, and the Finish Block takes it away. But what if they die before the Finish Block executes? I know that spells stop working on Actors who die. Will this Ability remain on the base actor and therefore be all over the leveled lists and respawns?

I know you shouldn't mess with NPC factions because it changes not only their faction, but the faction of the base actor. And I think I found out that diseases you add to NPCs have a tendency to stick around too. So what about abilities? My hope is that the Ability is cleared from the Actor on death.

Thanks!



Just found out that it adds to the base actor. Crap. Anyone know about using ModActorValue? Is it safe in this way?
User avatar
Shelby Huffman
 
Posts: 3454
Joined: Wed Aug 08, 2007 11:06 am

Post » Mon Nov 28, 2011 11:01 pm

I've never been sure about this, I realize. Let's say I've got a custom spell that is cast on a target NPC. The Start Block adds a Damage Strength Ability to them to "debuff" them, and the Finish Block takes it away. But what if they die before the Finish Block executes? I know that spells stop working on Actors who die. Will this Ability remain on the base actor and therefore be all over the leveled lists and respawns?

I know you shouldn't mess with NPC factions because it changes not only their faction, but the faction of the base actor. And I think I found out that diseases you add to NPCs have a tendency to stick around too. So what about abilities? My hope is that the Ability is cleared from the Actor on death.

Thanks!

Actually script effects are not just stopped, the scripteffectfinish block is executed on actor's death. When an actors dies all magic effects that he had, not only abilities, executes their finish blocks, if those are present.

EDIT: Hmm, apparently abilities are added to the base actor. To solve the problem just remember to put
removespell Ability
in the scripteffectfinish block.
User avatar
Nathan Maughan
 
Posts: 3405
Joined: Sun Jun 10, 2007 11:24 pm

Post » Mon Nov 28, 2011 7:58 pm

Actually script effects are not just stopped, the scripteffectfinish block is executed on player's death. When an actors dies all magic effects that he had, not only abilities, executes their finish blocks, if those are present.

EDIT: Hmm, apparently abilities are added to the base actor. To solve the problem just remember to put
removespell Ability
in the scripteffectfinish block.


Great! Thanks! :thumbsup:
User avatar
Gisela Amaya
 
Posts: 3424
Joined: Tue Oct 23, 2007 4:29 pm


Return to IV - Oblivion