The first run script

Post » Mon Nov 09, 2009 5:24 pm

In the CS we can open the script editor and see all of the scripts used in the game. Which one runs first?

Iv a feeling that it may be CharGen because that's what I edit when I want to make a custom player start location (that and the chargen quest), but Iv not found any information about the order in which the scripts run, or the quests for that matter.

Any ideas?

cheers

MVK
User avatar
Tikarma Vodicka-McPherson
 
Posts: 3426
Joined: Fri Feb 02, 2007 9:15 am

Post » Tue Nov 10, 2009 1:33 am

In the CS we can open the script editor and see all of the scripts used in the game. Which one runs first?

Iv a feeling that it may be CharGen because that's what I edit when I want to make a custom player start location (that and the chargen quest), but Iv not found any information about the order in which the scripts run, or the quests for that matter.

Any ideas?

cheers

MVK

Technically, a startgame enabled quest with a script function without constraints, within a generic menumode block will trigger first. It'll actually trigger to a limited degree during the title sequence. Beyond that, it really doesn't matter. A startgame gamemode script will run within a few frames of every other startgame gamemode script. Which one actually gets checked first is probably related to form ID and precedence, but can be inconsistent from one install to another.

If you're changing the start location you're really just best off changing the chargen script to be delayed or skipped and just move the player. You won't be able to make a custom start without changing chargen (well, not without probably breaking some parts of it).
User avatar
jaideep singh
 
Posts: 3357
Joined: Sun Jul 08, 2007 8:45 pm

Post » Mon Nov 09, 2009 6:18 pm

Iv been using info from 'WorldBuilding 101' on the Wiki to edit the startup location and it works fine, I was just wondering if there were any other scripts that fired at game startup. Its actually good to know the way in which things work, even if its not exactly clear cut and precise!

No Worries, cheers

MVK
User avatar
Stephanie Nieves
 
Posts: 3407
Joined: Mon Apr 02, 2007 10:52 pm


Return to IV - Oblivion