Spell Scripts and order of execution

Post » Fri Mar 25, 2011 7:32 pm

If I use the addspell function ([ActorID.]AddSpell EffectID) in a quest script, does it interupt the quest script, then come back, or does it get queued and processed later?
User avatar
City Swagga
 
Posts: 3498
Joined: Sat May 12, 2007 1:04 am

Post » Fri Mar 25, 2011 9:20 pm

The quest script will continue to run to its end. Can't say with any certainty when the spell script will run other than after the quest script completes its execution in that frame. I would guess that the spell script would run in the next frame, and not the current frame directly after the quest script ends. You could test it using PTC if you really need to know.
User avatar
kirsty joanne hines
 
Posts: 3361
Joined: Fri Aug 18, 2006 10:06 am

Post » Fri Mar 25, 2011 3:22 pm

The quest script will continue to run to its end. Can't say with any certainty when the spell script will run other than after the quest script completes its execution in that frame. I would guess that the spell script would run in the next frame, and not the current frame directly after the quest script ends. You could test it using PTC if you really need to know.


Thanks. That answered my question.
User avatar
Christina Trayler
 
Posts: 3434
Joined: Tue Nov 07, 2006 3:27 am


Return to Fallout 3