Yep, works great... now we need some beta testers.
even improved old script a little to check (condition = char_in_party) if you already have NPC in party, it might be possible to also to add another check for active quests when NPC is gone?
from what I can tell pylons are located in three places? Northern Portal is not in use?
z5riverlanddlg.txt
z10monbasecdlg.txt
z15troezendlg.txt
code to add under "variables;"
short i;
add at the bottom of the text file (no need to add it under main pylon text, works just fine at the bottom)
// PYLON full party
begintalknode;
state = 300;
nextstate = 301;
condition = 1;
question = "Call for more Hands to assist you.";
text1 = "Who do you wish to summon for help?";
begintalknode;
state = 301;
nextstate = -1;
condition = char_in_party(10) < 0;
question = "Add Khalida to party.";
text1 = "Khalida appears nearby. _Thank you for calling for me, [N]._";
code =
i = random_group_member(0);
set_pc_presence(10,2);
telep_char_to_char(char_in_party(10),i,0);
break;
begintalknode;
state = 301;
nextstate = -1;
condition = char_in_party(11) < 0;
question = "Add Yoshiria to party.";
text1 = "Yoshiria appears nearby. _Greetings, [N]. I will fight honorably at your side._";
code =
i = random_group_member(0);
set_pc_presence(11,2);
telep_char_to_char(char_in_party(11),i,0);
break;
begintalknode;
state = 301;
nextstate = -1;
condition = char_in_party(12) < 0;
question = "Add Dedrick to party.";
text1 = "Dedrick appears nearby. _Hello, [N]. It is good to be outside once again. _";
code =
i = random_group_member(0);
set_pc_presence(12,2);
telep_char_to_char(char_in_party(12),i,0);
break;
begintalknode;
state = 301;
nextstate = -1;
condition = char_in_party(13) < 0;
question = "Add Yannick to party.";
text1 = "Yannick appears nearby. _I knew you wouldn't leave me behind, [N]! Let us hunt._";
code =
i = random_group_member(0);
set_pc_presence(13,2);
telep_char_to_char(char_in_party(13),i,0);
break;
begintalknode;
state = 301;
nextstate = -1;
condition = char_in_party(14) < 0;
question = "Add Alcander to party.";
text1 = "Alcander appears nearby. _I knew you wouldn't leave me behind, [N]! Let us hunt._";
code =
i = random_group_member(0);
set_pc_presence(14,2);
telep_char_to_char(char_in_party(14),i,0);
break;
begintalknode;
state = 301;
nextstate = -1;
condition = 1;
question = "Done.";
text1 = "With your new party of Hands, you set out to complete the tasks that lie ahead.";
action = END_TALK;
now we just need the dungeon code and maybe Tower of Trials and Redbeard's Chambers? he would never expect a coup to be carried out out of nowhere