Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

completed quest script

Page: 1 of 1
 newbiemodder
01-16-2011, 12:29 PM
#1
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.
 TimBob12
01-16-2011, 1:29 PM
#2
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
 newbiemodder
01-16-2011, 2:38 PM
#3
Thanks TB12
 JCarter426
01-16-2011, 9:28 PM
#4
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.
 newbiemodder
01-16-2011, 10:40 PM
#5
thx for the info jc
Page: 1 of 1