View Single Post
Old 04-29-2013, 02:19 PM   #297
Hassat Hunter
Forumite
 
Join Date: Jan 2010
Posts: 537
No.
She's neutral by default though.

When not, yeah, it has to be done. Here for example Kreia vs. Hanharr in the Jekk Jekk Tar. One solution actually has him attack, the other version uses animations to 'fake' it. Had to be done that way considering it works differently if he's a teammate, and damage will break the cutscene.

Code:
	if ((nParam1 == 5)) {
		object oKreia = GetObjectByTag("Kreia", 0);
		object oHanharr = GetObjectByTag("Hanharr", 0);
		ChangeToStandardFaction(oHanharr, STANDARD_FACTION_GIZKA_1);
		ChangeToStandardFaction(oKreia, STANDARD_FACTION_GIZKA_2);
        DelayCommand(0.2, AssignCommand(oHanharr, ActionAttack(oKreia)));
		DelayCommand(1.0, ChangeToStandardFaction(oHanharr, STANDARD_FACTION_FRIENDLY_1));
		DelayCommand(1.0, ChangeToStandardFaction(oKreia, STANDARD_FACTION_FRIENDLY_1));
		DelayCommand(2.2, AssignCommand(oKreia, ActionPlayAnimation(10063, 1.0, 3.5)));
        DelayCommand(2.3, AssignCommand(oHanharr, ClearAllActions()));
        DelayCommand(2.5, ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectChoke(), oHanharr, 2.3));
        DelayCommand(4.9, AssignCommand(oHanharr, ClearAllActions()));
	}
	if ((nParam1 == 6)) {
		object oKreia = GetObjectByTag("Kreia", 0);
		object oHanharr = GetObjectByTag("Hanharr", 0);
        DelayCommand(0.2, AssignCommand(oHanharr, ActionPlayAnimation(10098, 1.0, 3.5)));
		DelayCommand(2.2, AssignCommand(oKreia, ActionPlayAnimation(10063, 1.0, 3.5)));
        DelayCommand(2.3, AssignCommand(oHanharr, ClearAllActions()));
        DelayCommand(2.5, ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectChoke(), oHanharr, 2.3));
		SetFakeCombatState(oHanharr, 0);
		SetFakeCombatState(oKreia, 0);
        DelayCommand(4.9, AssignCommand(oHanharr, ClearAllActions()));
	}
Hassat Hunter is offline   you may: quote & reply,