lfnetwork.com mark read register faq members calendar

Thread: Remove party members
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 06-10-2007, 12:50 PM   #1
Mindtwistah
Junior Member
 
Mindtwistah's Avatar
 
Join Date: Apr 2007
Location: Derka Derka
Posts: 470
Remove party members

What script are there to remove temporary party members? Like when Trask was removed. [K1]


Mindtwistah is offline   you may: quote & reply,
Old 06-10-2007, 01:25 PM   #2
swfan28
Rookie
 
Join Date: May 2007
Location: Finland
Posts: 157
Mindtwistah Wrote:
Quote:
What script are there to remove temporary party members? Like when Trask was removed. [K1]
Code:
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;
swfan28 is offline   you may: quote & reply,
Old 06-10-2007, 01:58 PM   #3
Mindtwistah
Junior Member
 
Mindtwistah's Avatar
 
Join Date: Apr 2007
Location: Derka Derka
Posts: 470
So if I want Bastila removed, I'll write:

RemoveAvailableNPC( 0 );


Mindtwistah is offline   you may: quote & reply,
Old 06-10-2007, 02:07 PM   #4
Master Zionosis
Relax On Air
 
Master Zionosis's Avatar
 
Join Date: Sep 2006
Location: High In The Sky
Posts: 1,280
Current Game: TR 8: Underworld
Contest winner - Modding 
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:

Code:
void main()
{
   RemoveAvailableNPC(0);
}
Or if this is for a recruit mod or if someone is to replace Bastila, you would use this script:

Code:
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.

Master Zionosis is offline   you may: quote & reply,
Old 06-10-2007, 02:10 PM   #5
Gargoyle King
Veteran
 
Gargoyle King's Avatar
 
Join Date: Apr 2007
Location: In My Own Little World!
Posts: 895
Quote:
Originally Posted by Mindtwistah
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).
Gargoyle King is offline   you may: quote & reply,
Old 06-10-2007, 02:16 PM   #6
Master Zionosis
Relax On Air
 
Master Zionosis's Avatar
 
Join Date: Sep 2006
Location: High In The Sky
Posts: 1,280
Current Game: TR 8: Underworld
Contest winner - Modding 
Quote:
Originally Posted by Gargoyle_King
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.

Master Zionosis is offline   you may: quote & reply,
Old 06-10-2007, 02:26 PM   #7
Mindtwistah
Junior Member
 
Mindtwistah's Avatar
 
Join Date: Apr 2007
Location: Derka Derka
Posts: 470
You assumed right


Mindtwistah is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Editing / Modding > Holowan Laboratories > Remove party members

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:33 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.