How do I create a background script?

Post » Wed Jan 02, 2013 6:05 pm

I wish to create a script that runs in the background and is not associated to any object (AFAIK), e.g. I want to have my script listen to certain events and then update game settings' values.

So,
- which class should I extend? none?
- I created the psc externally in the dir, how do I save that into a plugin? I couldn't find how the CK will pickup the file and save it in the plugin. Must all scripts be attached to some world object?
User avatar
NIloufar Emporio
 
Posts: 3366
Joined: Tue Dec 19, 2006 6:18 pm

Post » Wed Jan 02, 2013 8:32 pm

Change it to "extends Quest" then make a new "start game enabled" quest and place your script in the scripts tab (don't forget to generate a seq file with xEdit).

A "quest" in the ck isn't just for making missions. Somebody on here a little while ago coined the term "logic containers" which I believe better describes their job

- Hypno
User avatar
Hearts
 
Posts: 3306
Joined: Sat Oct 20, 2007 1:26 am


Return to V - Skyrim