Difference between revisions of "Global Scripts"

645 bytes removed ,  21:26, 24 March 2006
imported>JT
m (designed->defined (oops ;-)))
imported>Kkuhlmann
Line 27: Line 27:


Before you can write your script, you need to create a quest to attach a script to.  This is done by selecting "Character"->"Quests" from the menu at the top of the Construction Set.  Once you are presented with the Quests dialog, move over to the white list on the left-hand side of the box.  Under the "Editor ID" column button, right-click and choose "New" to create a new Quest.  You are prompted for a name for your quest.  Type in a [[naming convention|good name]] and click OK.
Before you can write your script, you need to create a quest to attach a script to.  This is done by selecting "Character"->"Quests" from the menu at the top of the Construction Set.  Once you are presented with the Quests dialog, move over to the white list on the left-hand side of the box.  Under the "Editor ID" column button, right-click and choose "New" to create a new Quest.  You are prompted for a name for your quest.  Type in a [[naming convention|good name]] and click OK.
'''IMPORTANT:''' Now that your quest has been created, before doing anything else, you ''must'' create a condition for the quest.  If you create a quest in the Construction Set without specifying any conditions, Oblivion will crash when the game is started!  Since we want this quest to run all the time, we'll choose a condition that will always be true.  Right-click in the Quest Conditions listbox in the middle and choose New to create a condition.  Next, select "GetIsPlayableRace" from the "Condition Function" dropdown list, then enter the value "1" in the "Value" textbox.  Remember, if this is not done, Oblivion may crash on startup!


After you have a quest ready, move over to the "Script" selection box, and click the button marked "..." in order to open the Script Editor.
After you have a quest ready, move over to the "Script" selection box, and click the button marked "..." in order to open the Script Editor.
Anonymous user