Jump to content

Home

Party Member Scripts


Fallen Guardian

Recommended Posts

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...