Initial commit
Initial commit. Updated release archive.
This commit is contained in:
23
_module/nss/qdb_sr_accept.nss
Normal file
23
_module/nss/qdb_sr_accept.nss
Normal file
@@ -0,0 +1,23 @@
|
||||
#include "qdb_include"
|
||||
|
||||
void main()
|
||||
{
|
||||
string sTalk = GetLocalString(OBJECT_SELF, "Stack");
|
||||
string sDB;
|
||||
string sVarName;
|
||||
|
||||
int iAccept;
|
||||
|
||||
sDB=GetDBName();
|
||||
iAccept=StringToInt(sTalk);
|
||||
sVarName = "Quest" + IntToString(GetLocalInt(GetModule(),"QDB_Quest"))
|
||||
+ "Step" + IntToString(GetStepNumber())
|
||||
+ "Line" + IntToString(iAccept);
|
||||
|
||||
if (GetCampaignString(sDB,sVarName) == "" && iAccept>0)
|
||||
DelayCommand(0.1,SendMessageToPC(GetPCSpeaker(),"No line number " + IntToString(iAccept) + " exists."));
|
||||
else
|
||||
SetResponseInt("Accept",iAccept);
|
||||
|
||||
SetupResponse(GetResponseNumber());
|
||||
}
|
||||
Reference in New Issue
Block a user