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.
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 :D
TB12
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.