PDA

View Full Version : recruitment in tsl script help


L0rdReV@n88
07-23-2007, 01:19 PM
now im useing Darth333's great tutorial for recruit in 10 steps but its for the first kotor.

void main()
{
RemoveAvailableNPC(7);
AddAvailableNPCByTemplate(7, "p_dustil");
DelayCommand(1.5,ShowPartySelectionGUI());
}

now as i understand it the 7 pertain to T3m4 party slot i need the number for g0t0 and the "p_dustil" will be changed to my recruitment character "p_DPlight" right?
is there a tutorial specific for recruitment in tsl? and if so you can you give me a link. thanks in advance.

Leviathan
07-23-2007, 04:41 PM
Off-topic : If it happened that you wished to take advantage out of existing Party Slots so as to reallocate them in favor or newly-devised Non-Playable Characters, then you should peruse the section of Star Wars™ : Knights of the Old Republic® - The Sith Lords' « nwscript.nss » file dedicated to the definition of essential Constants, which must be located at the top of this last Neverwinter Nights Source Script. Consequently, by proceeding this way, you should run into Constants bearing labels starting with the « NPC_ » expression, and that's where you will find out the numeric associated to G0T0...

L0rdReV@n88
07-23-2007, 05:04 PM
alright i opened nwscript.nss with KT and searched for g0t0 and found this
int NPC_PLAYER =-1;
int NPC_ATTON = 0;
int NPC_BAO_DUR = 1;
int NPC_CANDEROUS = 2;
int NPC_G0T0 = 3;
int NPC_HANDMAIDEN = 4;
int NPC_HK_47 = 5;
int NPC_KREIA = 6;
int NPC_MIRA = 7;
int NPC_T3_M4 = 8;
int NPC_VISAS = 9;
int NPC_HANHARR = 10;
int NPC_DISCIPLE = 11;


so instead of 7 i would use 3?correct
so the script would be

void main()
{
RemoveAvailableNPC(3);
AddAvailableNPCByTemplate(3, "p_DPlight");
DelayCommand(1.5,ShowPartySelectionGUI());
}