ozziefire Posted September 11, 2011 Share Posted September 11, 2011 (edited) I've seen other peoples scripts use variables defined in Quest Scripts in other scripts, so I've created my Quest & Quest Script it all runs fine, then I created the Mod Settings Book ok, then wrote an Object script for a Menu to go in the Mod Settings Book but it doesn't seem to save because it doesn't recognise the variables I've defined in the Quest Script, I've rechecked the variable names and they are all good too, is there a trick to this or something dumb most people miss so I don't have to use Global Variables? I've searched 5 pages of hits with no luck finding anything on this, although I know it's something common & silly. Edited September 11, 2011 by ozziefire Link to comment Share on other sites More sharing options...
Glenstorm Posted September 11, 2011 Share Posted September 11, 2011 I've seen other peoples scripts use variables defined in Quest Scripts in other scripts, so I've created my Quest & Quest Script it all runs fine, then I created the Mod Settings Book ok, then wrote an Object script for a Menu to go in the Mod Settings Book but it doesn't seem to save because it doesn't recognise the variables I've defined in the Quest Script, I've rechecked the variable names and they are all good too, is there a trick to this or something dumb most people miss so I don't have to use Global Variables? I've searched 5 pages of hits with no luck finding anything on this, although I know it's something common & silly. You need to make sure that you've saved the quest script and then you can access said variables using <QuestID>.<VariableName> in any other script. Link to comment Share on other sites More sharing options...
ozziefire Posted September 11, 2011 Author Share Posted September 11, 2011 I've seen other peoples scripts use variables defined in Quest Scripts in other scripts, so I've created my Quest & Quest Script it all runs fine, then I created the Mod Settings Book ok, then wrote an Object script for a Menu to go in the Mod Settings Book but it doesn't seem to save because it doesn't recognise the variables I've defined in the Quest Script, I've rechecked the variable names and they are all good too, is there a trick to this or something dumb most people miss so I don't have to use Global Variables? I've searched 5 pages of hits with no luck finding anything on this, although I know it's something common & silly. You need to make sure that you've saved the quest script and then you can access said variables using <QuestID>.<VariableName> in any other script.Cool thanks, that's where I went wrong I missed the QuestID prexix, all is good now, I didn't see that mentioned in Geck, but now see it in the scripts I was modeling from :) Link to comment Share on other sites More sharing options...
Recommended Posts