Jump to content

Home

Joining the party?


Phantasmgrl91

Recommended Posts

at the start of kotor 2 I have made some interesting mods to kreia, but I do not want to have to wait so long to get her to join my party, I'm sure there is a way but how do I get her in my party immediatly as the game starts? I couldn't seem to find a thread on this, if there already is one can someone please redirect me to that and a mod can delete this pointless thread?

 

Thanks

 

Trish

Link to comment
Share on other sites

Well you could try modifying the script that fires during the first dialog line she has when you meet her. Here is the code for that...

 

Name this script a_cut_kreia

void main() {
int nParam1 = GetScriptParameter(1);
switch (nParam1) {
	case 0:
		SetGlobalBoolean("101PER_KREIA_STUNT", 1);
		SetGlobalFadeIn(0.0, 1.0, 0.0, 0.0, 0.0);
		{
			object oKreiaStand = GetObjectByTag("KreiaStand", 0);
			DelayCommand(1.6, SoundObjectPlay(oKreiaStand));
		}
		break;
	case 1:
		{
			object oP_kreia = GetObjectByTag("KreiaStuntman", 0);
			AssignCommand(oP_kreia, ClearAllActions());
			AssignCommand(oP_kreia, ActionJumpToObject(GetObjectByTag("MN_MEDLAB", 0), 1));
			location location1 = GetLocation(GetObjectByTag("WP_KREIA_SPAWN1", 0));
			oP_kreia = CreateObject(1, "p_kreia", location1, 0);
			ChangeToStandardFaction(oP_kreia, 5);
			AssignCommand(oP_kreia, ClearAllActions());
			AssignCommand(oP_kreia, ActionStartConversation(GetFirstPC(), "101kreia", 0, 0, 0, "", "", "", "", "", "", 0, 0xFFFFFFFF, 0xFFFFFFFF, 0));
		}
		break;
	case 2:
		SetGlobalFadeOut(0.0, 1.0, 0.0, 0.0, 0.0);
		SetFadeUntilScript();
		break;
	case 3:
		SetGlobalFadeIn(0.0, 1.5, 0.0, 0.0, 0.0);
		break;
	case 4:
		vector struct2 = GetPositionFromLocation(GetLocation(GetObjectByTag("WP_bike", 0)));
		AssignCommand(GetFirstPC(), SetFacingPoint(struct2));
		AssignCommand(GetFirstPC(), ActionPlayAnimation(15, 1.0, (-1.0)));
		break;
	case 5:
		{
			object object12 = GetObjectByTag("KreiaStuntman", 0);
			DestroyObject(object12, 1.0, 1, 0.0, 0);
			ClearAllActions();
			ActionJumpToObject(GetObjectByTag("WP_KREIA_SPAWN1", 0), 1);
			SetGlobalFadeIn(0.0, 1.5, 0.0, 0.0, 0.0);
		}
		break;
	case 6:
		break;
	case 7:
		break;
}
ExecuteScript("your_script_name_goes_here", OBJECT_SELF);
}

 

Along with that script you would need a recruitment script who's name would go into the spot where it says "your_script_name_goes_here". So heres that script...

 


void main()
{

 SetGlobalNumber("101PER_Kreia_Joined", 1);

 AddAvailableNPCByObject(NPC_KREIA,GetObjectByTag("kreia"));

 AddPartyMember(NPC_KREIA,GetObjectByTag("kreia"));

}

Hope this helps you out a bit.;)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...