You want them to remember who spoke to them... like individually... as a party and/or as in MP?
There are several ways to do that in java. Could use a vector or array variable stored at a module level that stores a player's ID (array recommended since vectors can't be saved all that easily). I think I did something like this with my Club Abla scripts, which I think I included source code in MoTA.
Loading scenes would be easier, but you still need to have a grasp of java and how to use variable storage and condition checking. The pre-built scripts I included with my tutorials only have basic functions so you're still left with studying code to add new features.
So in a nutshell, your question steps into the realm of programming logic. I'll give you a basic idea of how you might code that:
private String convos[] = {"convo1", "convo2", "convo3"}; //where this is the convo NAME in the nco file
private int playerspoke[] = new int[8]; //Since the MP game is limited to maximum of 8 players.
private int playerconvoflag[] = new int[8]; //All players start at convo 0... assuming this is initialized :/
Conditions can be a bit more complicated but using this set of variables could give you an idea on what to put at module level. I haven't coded in long while like this so bare with me. Here's what you could do with these variables:
When the player clicks:
//Start with a search for the player in the array
for(int i = 0;i < playerspoke.length;i++){
//If the player was found then run the convo for the player
if(playerspoke[i] == clicker.GetGUID()){
//Here's where the convo name is used from the convo file name (nco)
ExecuteConversation(clicker.GetGUID(), clicked.GetGUID(), convos[playerconvoflag[i]], "MyConvo.nco", CONV_XFLAG_WANTFEEDBACK);
//Increment to the next conversation for that player
//Make sure the convo flag doesn't exceed the number of convos
if(playerconvoflag[i] < convos.length)
playerconvoflag[i] += 1; //++ might blow up in 1.1.8 java for an array not initialized.
}
}This is a pretty flawed script but should give you a good idea of what Java can allow. This is only an idea script and shouldn't be plugged into you code unless you know what it I'm missing. This is not enough to make things work. There's still missing initializers and logic errors, but should give you a basic idea of what you can do.
Hope this helps.
