Overseer108 Posted July 7, 2013 Share Posted July 7, 2013 I am a decent modder working on a big mod but I never seemed to be able to find on the net. Please, help. A link to the proper page would be sufficient. Any advice welcome. Thank you. Link to comment Share on other sites More sharing options...
luthienanarion Posted July 7, 2013 Share Posted July 7, 2013 Write a quest script, declare a variable in it, and attach it to your quest. Link to comment Share on other sites More sharing options...
Overseer108 Posted July 7, 2013 Author Share Posted July 7, 2013 Write a quest script, declare a variable in it, and attach it to your quest. It's that easy? So if I create a script in which I only declare variables it will work? Link to comment Share on other sites More sharing options...
luthienanarion Posted July 7, 2013 Share Posted July 7, 2013 Yep. Attach it to a quest, and you can access those variables globally using the Quest.Variable syntax. Link to comment Share on other sites More sharing options...
Overseer108 Posted July 7, 2013 Author Share Posted July 7, 2013 Yep. Attach it to a quest, and you can access those variables globally using the Quest.Variable syntax.Thanks a lot luthienanarion ! Link to comment Share on other sites More sharing options...
pkleiss Posted July 7, 2013 Share Posted July 7, 2013 In addition... 1) When creating a quest script, one must select the "Quest" type from the script drop down box in the upper right of the scripting window.2) Quest scripts don't run until the quest is started. Therefore, if you want your quest variable available in other scripts right away, make sure you check the "Start Game Enabled" box on the Quest data page. If your quests starts later in the game, just remember that any quest script and quest variables won't exist, and can't be used, until then. Link to comment Share on other sites More sharing options...
Overseer108 Posted July 7, 2013 Author Share Posted July 7, 2013 In addition... 1) When creating a quest script, one must select the "Quest" type from the script drop down box in the upper right of the scripting window.2) Quest scripts don't run until the quest is started. Therefore, if you want your quest variable available in other scripts right away, make sure you check the "Start Game Enabled" box on the Quest data page. If your quests starts later in the game, just remember that any quest script and quest variables won't exist, and can't be used, until then. Yes of course. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts