Difference between revisions of "Script Processing"

Jump to navigation Jump to search
431 bytes added ,  01:17, 19 October 2013
Added details about Medium and Low Level Processing
imported>UDUN
imported>QQuix
(Added details about Medium and Low Level Processing)
 
== How Often are Scripts Processed? ==
;Actors (Creatures and NPCs): Processed every time the actor's AI is processed. In high process (the loaded area around the player), this is every frame. When the player leaves the area, the actor goes into Medium Level Processing and the script runs about every 9 minutes (game time) or 18 seconds (real time). Later, when the actor cell is unloaded and the actor does not inhave the “No low level processing” flag highchecked, thisit isgoes muchinto lessLow oftenLevel (downProcessing toand oncethe everyscripts 15run minutesevery ofhour (game time) ator 2 minutes (real time). Of course, if the lowestactor processhas the “No low level) processing” flag checked, its scripts stop running at his point. ButScripts on items in the actor's inventory run when the actor script run. theseThese are still the only scripts (aside from quest scripts) that are processed when the player is not around.
;Doors: A bit of a special case, these scripts are processed like other scripts on references (every frame when loaded), but they will also be processed once any time an actor activates the door.
;Objects in Containers: Processed when the container's script is processed -- so, items on actors are processed when the actor is processed; items in other containers are processed every frame when the cell is loaded.
Anonymous user

Navigation menu