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.

Remove party members

Page: 1 of 1
 Mindtwistah
06-10-2007, 12:50 PM
#1
What script are there to remove temporary party members? Like when Trask was removed. [K1]
 swfan28
06-10-2007, 1:25 PM
#2
Mindtwistah Wrote:
What script are there to remove temporary party members? Like when Trask was removed. [K1]
RemoveAvailableNPC( int nNPC );
where int nNPC is by default:

int NPC_BASTILA = 0;
int NPC_CANDEROUS = 1;
int NPC_CARTH = 2;
int NPC_HK_47 = 3;
int NPC_JOLEE = 4;
int NPC_JUHANI = 5;
int NPC_MISSION = 6;
int NPC_T3_M4 = 7;
int NPC_ZAALBAR = 8;
 Mindtwistah
06-10-2007, 1:58 PM
#3
So if I want Bastila removed, I'll write:

RemoveAvailableNPC( 0 );
 Master Zionosis
06-10-2007, 2:07 PM
#4
You had a slight error with your script two spaces between the brackets. (Assuming you want to remove Bastila) The full script you will want to use is:

void main()
{
RemoveAvailableNPC(0);
}

Or if this is for a recruit mod or if someone is to replace Bastila, you would use this script:

void main()
{
RemoveAvailableNPC(0);
AddAvailableNPCByTemplate(0, "UTC_FILE_NAME");
}

I just thought I'd give you the script for recruiting someone if that is what you going to do after removal. :)
 Gargoyle King
06-10-2007, 2:10 PM
#5
So if I want Bastila removed, I'll write:

RemoveAvailableNPC( 0 );

Well removing Bastila would be a tricky business, partly because you'd probably mess up the game if done (unless you use a character model to replace Bastila but reprises the actions and events of Bastila in-game).
 Master Zionosis
06-10-2007, 2:16 PM
#6
Well removing Bastila would be a tricky business, partly because you'd probably mess up the game if done (unless you use a character model to replace Bastila but reprises the actions and events of Bastila in-game).

I was also going to bring that up but i assumed that mindtwistah would be using the script for his new storyline mod, so it wouldn't matter that he replaced Bastila, But thats was just assuming, lol.
 Mindtwistah
06-10-2007, 2:26 PM
#7
You assumed right
Page: 1 of 1