Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Party Member Scripts

Page: 1 of 1
 Fallen Guardian
02-06-2011, 10:42 AM
#1
So I wanted to have a conditional script where you could only have a node of dialogue occur if a certain Party Member was in your party. I tried using the source and compiling and it either ignored it because it was an add on or found some syntax error or another. So I'd like to know that script as well one other.

Second One: What is the script that makes it so a certain party member has to be a member of your party?
 TimBob12
02-06-2011, 11:14 AM
#2
For the first question. U could find the tag of the party member and use GetIsObjectValid. I would post an example but on my phone. No idea abput the second questioon
 Fastmaniac
02-06-2011, 12:56 PM
#3
Ok, assuming you are talking about K1:

First question: Why use a new script? You can use the original Tags of the party members and use those scripts:

k_con_carthpm: Checks if Carth is in your party
k_con_canderpm: Checks if Canderous is in your party
k_con_bastpm: Checks if Bastila is in your party
k_con_hk47pm: Checks if HK-47 is in your party
k_con_joleepm: Checks if Jolee is in your party
k_con_juhanipm: Checks if Juhani is in your party
k_con_missionpm: Checks if Mission is in your party
k_con_t3m3pm: Checks if T3 is in your party
k_con_zaalpm: Checks if Zaalbar is in your party

If you have custom npc you should use those tags to check it.

Second question: Although I never got it working, Kotor Tool defines the ShowPartySelectionGUI as the following:


// 712: ShowPartySelectionGUI
// Brings up the party selection GUI for the player to
// select the members of the party from
// if exit script is specified, will be executed when
// the GUI is exited

void ShowPartySelectionGUI(string sExitScript = "", int nForceNPC1 = -1, int nForceNPC2 = -1);


So you can use it like this:

ShowPartySelectionGUI("", 0, -1); That should make Carth a Member of the party when the Selection pops up. As I said, it never worked for me, but maybe it will for you.

Fastmaniac
 Fallen Guardian
02-06-2011, 4:16 PM
#4
All right thanks Fastmaniac.
 Fastmaniac
02-06-2011, 5:04 PM
#5
No Problem;) Anytime
Page: 1 of 1