Adding a script to NPC without editing their CS entry

Post » Wed May 19, 2010 6:51 am

Is there any reasonable way to add a script to an NPC Vampire without editing every vampire in the CS? I already thought of running getnextref and then adding a token object that has a script, but I don't want to kill the performance of the game by running it all the time.
User avatar
Marie
 
Posts: 3405
Joined: Thu Jun 29, 2006 12:05 am

Post » Wed May 19, 2010 10:47 am

Is there any reasonable way to add a script to an NPC Vampire without editing every vampire in the CS? I already thought of running getnextref and then adding a token object that has a script, but I don't want to kill the performance of the game by running it all the time.

One approach would be, each time the game is restarted, add an extra script effect to one of the ability spells common to all vampires.
If the script was extremely trivial I'd handle everything inside the effect script; otherwise I'd have the effect script check for the presence of a scripted token and add one if not found, letting the token script handle everything else.
User avatar
sally R
 
Posts: 3503
Joined: Mon Sep 25, 2006 10:34 pm

Post » Wed May 19, 2010 7:59 am

That sounds perfect, thanks!
User avatar
Yung Prince
 
Posts: 3373
Joined: Thu Oct 11, 2007 10:45 pm


Return to IV - Oblivion