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.

Modding help switching party leader

Page: 1 of 1
 mitchjo2345
02-15-2008, 4:09 AM
#1
hello i am in progress of making a mod and i would like to no how to fade out of a conversation and change my party leader
example

talking to atton about his past
then fades out
Pc is now atton
in an interly different place [ redecorated harbinger]
 Seamhainn
02-15-2008, 4:40 AM
#2
If you want to do that, you can accomplish that if you put the appropiate entries into the "Speaker" and "Listner" fields. With this trick you can have many persons participating in a conversation.
 Marius Fett
02-15-2008, 5:16 AM
#3
I think he means like on Dxun, when your party goes off alone.

I think you do it like this:

void main()
{
SwitchPlayerCharacter("NPC_TAG_HERE")
}

Just replace NPC_TAG_HERE with the tag of the NPC.
 stoffe
02-15-2008, 7:53 AM
#4
void main()
{
SwitchPlayerCharacter("NPC_TAG_HERE")
}

Just replace NPC_TAG_HERE with the tag of the NPC.

Almost. :) You don't specify any tag as parameter to the SwitchPlayerCharacter() function, since it requires an integer. You specify the party slot index of the character to make into temporary main character. This is a number between -1 and 11 in TSL, or -1 and 8 in KOTOR1, or you could just use the NPC_ constants instead to make it easier to read. Like:

void SwitchPC(int iSlot) {
SwitchPlayerCharacter(iSlot);
}

void main() {
SetGlobalFadeOut(0.0, 2.0);
DelayCommand(2.0, SwitchPC(NPC_HK_47));
SetGlobalFadeIn(2.0, 2.0);
}

(...which should fade to black, switch HK47 to main character and then fade in.)
 Marius Fett
02-15-2008, 8:36 AM
#5
So near yet so far...

Thanks stoffe, and sorry mitchjo2345. :)

I'm not really a scripter as you will notice :lol:
Page: 1 of 1