Difference between revisions of "Programmable Spell Effects"

Jump to navigation Jump to search
m
no edit summary
imported>Elder
m
imported>Elder
m
 
 
Ironically enough, the thing that Ability spells are not a good idea for is adding permanent effects to targets - including the player! The problem is that abilities get cancelled/re-cast when the target (re)enters or leaves the player cell, and any scripted variables are reset. This also applies to abilities on the player when he/she changes cell, although here it is not so bad if you employ all globalguest variablevariables in the ScriptEffectUpdate block. An even less desirable issue is that the ability is added to the base actor object so any spawned generic characters will inherit the same ability. (This is partly why the recipe for silent spells always removes the ability after 1 frame.)
 
An even less desirable issue is that the ability is added to the base actor object so any spawned generic characters will inherit the same ability. (This is partly why the recipe for silent spells always removes the ability after 1 frame.) This is not an issue if you want your script to affect all base models and may actually be appropriate since the ability will only be in effect when the affected actor(s) are in the same cell as the player.
 
However, for true permanent (spell) effects on targets or invisible abilities on the player you really need to use Unplayable Item (Token) Effects.
 
[[Category: Useful Code]]
Anonymous user

Navigation menu