Jump to content

Home

completed quest script


newbiemodder

Recommended Posts

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

Link to comment
Share on other sites

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...