Quote:
|
though I'm not sure how much there is in the dungeon to keep track of.
|
Heres some perspective:
Each actor on the level, including your PC's are running up to five scripts continuously.
The scripts are basically lists which say If this occurs, do this, or If X is seen, do this, etc...
Besides the scripts the characters (called actors) are running (which could be very big for the NPCS) all interactable objects on the level are also running scripts. The object scripts are much simpler If clicked or If opened or If over me checks but still all scripts are run continously.
Besides all of the above scripts which are running,the area itself has a script running that can override any of the actors or objects in that area.
And besides the area script there is a main script that controls most of the game interactions called Baldur.bcs that is always running. It is huge for a script (about 10 times bigger than a standard NPC Big script).(as a side note my improved Dragon AI script is almost double the size of Baldur.bcs).
Now according to Bioware all scripts are run 30 times a second. That means every second every script in the level is cycled through 30 times. (testing shows that even if they run that fast though some of the actions take a half second or more to execute...)
Now with all that runnning behind the scenes add in animations, animations with movements, burning torches, spell animations, and glowing weapons and armor, to name just a few animations, which are also running continuously.
Frankly Im suprised it works as well as it does.
