Cheers Lightfoot8,
The above code is part of a series of IF statements OnUserDefined. I checked all the conversation nodes and The Text Appears When Scripts for the questions are fine, this will display question 26 (sc_ta_q26):
int StartingConditional()
{
// Inspect local variables
if(!(GetLocalInt(GetPCSpeaker(), "iQuestion") == 26))
return FALSE;
return TRUE;
}
This all works fine if my question sets are less than 10 questions (bizarre)- I have a fully working module with 25 questions which are split into 5 question sets. I now want to build a module with larger question sets but my NPC's who ask the questions stop listening after 9 questions?
?
Question Master (NPC) conversation:
- [OWNER] Q28) 24/0.4 = ? -Text Appears When script(sc_ta_28)
- I'll type in my answer[END DIALOGUE] - Actions Taken Script(see below)
- [OWNER] Q27) 27/0.3 = ? - -Text Appears When script(sc_ta_27)
- I'll type in my answer[END DIALOGUE] - Actions Taken Script(see below)
This will check the listenpattern for the answer just typed in - Actions Taken Script:
void main()
{
object oSelf = OBJECT_SELF;
// Decimals
string sAnswer3a = "517.2";
string sAnswer3b = "109.4";
string sAnswer3c = "722.5";
string sAnswer3d = "93.81";
string sAnswer3e = "0.03";
string sAnswer3f = "0.005";
string sAnswer3g = "0.006";
string sAnswer3h = "0.016";
string sAnswer3i = "70";
string sAnswer3j = "70";
string sAnswer3k = "90";
string sAnswer3l = "60";
SetListenPattern(oSelf, sAnswer3a, 517);
SetListenPattern(oSelf, sAnswer3b, 518);
SetListenPattern(oSelf, sAnswer3c, 519);
SetListenPattern(oSelf, sAnswer3d, 520);
SetListenPattern(oSelf, sAnswer3e, 521);
SetListenPattern(oSelf, sAnswer3f, 522);
SetListenPattern(oSelf, sAnswer3g, 523);
SetListenPattern(oSelf, sAnswer3h, 524);
SetListenPattern(oSelf, sAnswer3i, 525);
SetListenPattern(oSelf, sAnswer3j, 526);
SetListenPattern(oSelf, sAnswer3k, 527);
SetListenPattern(oSelf, sAnswer3l, 528);
SetListenPattern(oSelf, "**", 999);
SetListening(oSelf, TRUE);
}
I just find it strange that my NPC's stop listening @ a certain point - i've used these types of scripts before for puzzles and passwords and never had a problem but when I want to ask a larger series of questions it fails.