newbiemodder Posted January 16, 2011 Share Posted January 16, 2011 I need a conditional script to check if a particular quest has been completed....checked the threads, didn't see any. Help, please. Thanks. For TSL. Link to comment Share on other sites More sharing options...
TimBob12 Posted January 16, 2011 Share Posted January 16, 2011 it would be easiest if you set a global variable at the end of the quest and just check if the variable was TRUE. That would be best. Something like SetGlobalBoolean("TEST", TRUE); And then to check for the variable: int StartingConditional() { int iResult; iResult = ((GetGlobalBoolean("TEST") == TRUE) ); return iResult; } Just replace TEST with your own variable defined in globals.2da Hope this helped TB12 Link to comment Share on other sites More sharing options...
newbiemodder Posted January 16, 2011 Author Share Posted January 16, 2011 Thanks TB12 Link to comment Share on other sites More sharing options...
JCarter426 Posted January 17, 2011 Share Posted January 17, 2011 If you have a quest with multiple endings, you can use a_global_set to set a different number for each ending (e.g. 91, 92, etc), then if you just want to check if it's done at all use c_global_gt to check if the global is greater than a certain number (e.g. 90). In both cases, parameter 1 is the number and the string parameter is the name from globalcat.2ds. The beauty of this is all the scripting is done, you just have to edit globalcat and attach the scripts to your dialogue. Link to comment Share on other sites More sharing options...
newbiemodder Posted January 17, 2011 Author Share Posted January 17, 2011 thx for the info jc Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.