EN6_PRC8/_module/nss/qdb_sr_addline.nss
Jaysyn904 a6f6db7303 Initial commit
Initial commit.  Updated release archive.
2024-06-13 15:08:33 -04:00

53 lines
827 B
Plaintext

#include "qdb_include"
void main()
{
string sLine;
string sResponse;
string sToken;
int iDone;
int iAccept;
int iNPC;
int iIndex;
int iStep;
int iLine;
int iOriginalLine;
iLine=GetLineNumber();
iOriginalLine=iLine;
iNPC=GetLineInt("NPC");
iDone=GetResponseInt("Done");
iAccept=GetResponseInt("Accept");
while (GetLine()!="")
{
iLine++;
SetLineNumber(iLine);
}
SetLineInt("NPC",iNPC);
//Link Goto To This Line.
SetLineNumber(iOriginalLine);
SetResponseInt("Goto",iLine);
SetLineNumber(iLine);
//sLine=GetLine();
//iStep=GetStepNumber();
sToken=GetLineInfo();
SetCustomToken(100,sToken);
iIndex=1;
while (iIndex<=5)
{
SetResponseNumber(iIndex);
sResponse=GetResponse();
if (sResponse=="")
sResponse="(No Response)";
SetCustomToken(100+iIndex,sResponse);
iIndex++;
}
}