Jump to content

Home

Harbinger Cutscene Scripts NSS


rgdelta

Recommended Posts

I was wondering if anyone had a copy or could make me the NSS of the following Harbinger Cutscene Scripts from the Engine Room a_sion_cut and a_sion_cut2 these are from the kriea and sion cutscenes both of them.

 

Dencs does not seem to be working with the new version of JRE 1.6 (I posted about that in the DENCS thread) and the versions in the DENCS script archive are bugged when compiled Sion and Kreia does not move.

 

Let me know I really need them thanks.

 

I know the USM modified those so if the USM guys read this and have them let me know as they are not in the source folders in any of the USM zip files.

Link to comment
Share on other sites

Often when DeNCS fails to decompile it is due to small things. Some of the case statements were missing brackets in these scripts.

 

a_sion_cut.nss:

// a_sion_cut.nss in 153HAR

void main() {
object oDarthSion = GetObjectByTag("DarthSion");
if ((!GetIsObjectValid(oDarthSion))) {
	AurPostString("Darth Sion isn't here, don't bother with the rest of the cut scene", 5, 7, 10.0);
	return;
}
SetPartyLeader(NPC_PLAYER);
object oPC = GetFirstPC();
object oAtton = GetObjectByTag("atton");
object oKreia = GetObjectByTag("kreia");
if (!GetIsObjectValid(oAtton) || !GetIsObjectValid(oKreia)) {
	AurPostString("No Atton or Kreia, don't bother with the rest of the cut scene", 5, 7, 10.0);
	return;
}
int nParam1 = GetScriptParameter(1);
switch (nParam1) {
	case 0:
		AssignCommand(oPC, ClearAllActions());
		AssignCommand(oKreia, ClearAllActions());
		AssignCommand(oAtton, ClearAllActions());
		AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetObjectByTag("WP_pc"))));
		AssignCommand(oKreia, ActionJumpToLocation(GetLocation(GetObjectByTag("WP_npc2"))));
		AssignCommand(oAtton, ActionJumpToLocation(GetLocation(GetObjectByTag("WP_npc3"))));
		{
			object oWP_SION_PC1 = GetObjectByTag("WP_SION_PC1");
			object oWP_SION_PC2 = GetObjectByTag("WP_SION_PC2");
			object oWP_SION_PC3 = GetObjectByTag("WP_SION_PC3");
			AssignCommand(oPC, ActionForceMoveToLocation(GetLocation(oWP_SION_PC1)));
			vector vPosWP_pc_look = GetPositionFromLocation(GetLocation(GetObjectByTag("WP_pc_look")));
			AssignCommand(oPC, ActionDoCommand(SetFacingPoint(vPosWP_pc_look)));
			AssignCommand(oPC, SetLockOrientationInDialog(oPC, TRUE));
			DelayCommand(0.1, AssignCommand(oKreia, ActionForceMoveToLocation(GetLocation(oWP_SION_PC2))));
			DelayCommand(0.1, AssignCommand(oAtton, ActionForceMoveToLocation(GetLocation(oWP_SION_PC3))));
		}
		break;
	case 1:
		AssignCommand(oPC, ActionWait(1.8));
		AssignCommand(oPC, ActionPlayAnimation(ANIMATION_FIREFORGET_HEAD_TURN_LEFT));
		break;
	case 2:
		{
		AssignCommand(oPC, ClearAllActions());
		AssignCommand(oKreia, ClearAllActions());
		AssignCommand(oAtton, ClearAllActions());
		AssignCommand(oPC, SetLockOrientationInDialog(oPC, FALSE));
		vector vPosSion = GetPositionFromLocation(GetLocation(oDarthSion));
		AssignCommand(oPC, ActionDoCommand(SetFacingPoint(vPosSion)));
		AssignCommand(oKreia, ActionDoCommand(SetFacingPoint(vPosSion)));
		DelayCommand(0.5, AssignCommand(oAtton, ActionDoCommand(SetFacingPoint(vPosSion))));
		}
		break;
	case 3:
		break;
	case 4:
		{
			effect effect1 = EffectMovementSpeedDecrease(50);
			AssignCommand(oDarthSion, ClearAllActions());
			ApplyEffectToObject(DURATION_TYPE_TEMPORARY, effect1, oDarthSion, 4.0);
			AssignCommand(oDarthSion, ActionForceMoveToObject(GetObjectByTag("WP_SION_2", 0)));
		}
		break;
	case 5:
		{
		AssignCommand(oKreia, ClearAllActions());
		AurPostString("Kreia flourish.", 5, 12, 10.0);
		vector vPosPC = GetPositionFromLocation(GetLocation(oPC));
		AssignCommand(oKreia, ActionDoCommand(SetFacingPoint(vPosPC)));
		AssignCommand(oKreia, SetLockOrientationInDialog(oKreia, TRUE));
		AssignCommand(oKreia, CreatureFlourishWeapon(oKreia));
		}
		break;
	case 6:
		AurPostString("Kreia runs first WP.", 5, 14, 10.0);
		AssignCommand(oKreia, ClearAllActions());
		AssignCommand(oKreia, ActionForceMoveToObject(GetObjectByTag("WP_kreia_leave_1", 0), TRUE));
		break;
	case 7:
		AssignCommand(oKreia, ClearAllActions());
		AssignCommand(oKreia, ActionForceMoveToObject(GetObjectByTag("WP_kreia_leave_2", 0), TRUE));
		break;
	case 8:
		{
			object oKreia_sion_door = GetObjectByTag("kreia_sion_door");
			if (GetIsObjectValid(oKreia_sion_door)) {
				AssignCommand(oKreia_sion_door, ActionCloseDoor(oKreia_sion_door));
				AssignCommand(oKreia_sion_door, SetLocked(oKreia_sion_door, TRUE));
			}
		}
		break;
	case 9:
		{
		AssignCommand(oKreia, ClearAllActions());
		vector locPC = GetPositionFromLocation(GetLocation(oPC));
		AssignCommand(oKreia, ActionDoCommand(SetFacingPoint(locPC)));
		AssignCommand(oKreia, SetLockOrientationInDialog(oKreia, TRUE));
		}
		break;
	case 10:
		{
			object object24 = GetObjectByTag("kreia", 0);
			if (GetIsObjectValid(object24)) {
				AurPostString("Kreia removed from party.", 5, 10, 10.0);
				RemovePartyMember(NPC_KREIA);
			}
		}
		break;
	case 11:
		AssignCommand(oKreia, ActionUnequipItem(GetItemInSlot(INVENTORY_SLOT_RIGHTWEAPON, OBJECT_SELF)));
		AssignCommand(oKreia, ActionUnequipItem(GetItemInSlot(INVENTORY_SLOT_LEFTWEAPON, OBJECT_SELF)));
		AssignCommand(oKreia, ActionUnequipItem(GetItemInSlot(INVENTORY_SLOT_RIGHTWEAPON2, OBJECT_SELF)));
		AssignCommand(oKreia, ActionUnequipItem(GetItemInSlot(INVENTORY_SLOT_LEFTWEAPON2, OBJECT_SELF)));
		AssignCommand(oKreia, ActionEquipItem(CreateItemOnObject("w_melee_06", oKreia, 1, 1), INVENTORY_SLOT_RIGHTWEAPON, TRUE));
		break;
	case 12:
		{
			object oRWeapItem = GetItemInSlot(INVENTORY_SLOT_RIGHTWEAPON, oKreia);
			DestroyObject(oRWeapItem);
		}
		break;
}
}

 

a_sion_cut2.nss:

// a_sion_cut2.nss in 153HAR


void main() {
object oDarthSion = GetObjectByTag("DarthSion");
object oKreia = GetObjectByTag("kreia");
object oAtton = GetObjectByTag("atton");
if (!GetIsObjectValid(oDarthSion) || !GetIsObjectValid(oKreia) || !GetIsObjectValid(oAtton)) {
	AurPostString("No Darth Sion and/or Kreia, don't bother with the rest of the cut scene", 5, 7, 10.0);
	return;
}
int nParam1 = GetScriptParameter(1);
switch (nParam1) {
	case 0:
		{
		AssignCommand(oKreia, ClearAllActions());
		AssignCommand(oKreia, ActionJumpToLocation(GetLocation(GetObjectByTag("WP_kreia_start"))));
		vector vWPFightKreia = GetPositionFromLocation(GetLocation(GetObjectByTag("WP_fight_kreia")));
		AssignCommand(oKreia, ActionDoCommand(SetFacingPoint(vWPFightKreia)));
		AssignCommand(oKreia, SetLockOrientationInDialog(oKreia, TRUE));
		}
		break;
	case 1:
		{
			effect effect1 = EffectMovementSpeedDecrease(50);
			ApplyEffectToObject(DURATION_TYPE_TEMPORARY, effect1, oDarthSion, 15.0);
			AssignCommand(oDarthSion, ClearAllActions());
			AssignCommand(oDarthSion, ActionForceMoveToLocation(GetLocation(GetObjectByTag("WP_fight_sion"))));
			vector vWPSionLeft = GetPositionFromLocation(GetLocation(GetObjectByTag("WP_sion_left")));
			AssignCommand(oDarthSion, ActionDoCommand(SetFacingPoint(vWPSionLeft)));
			AssignCommand(oDarthSion, SetLockOrientationInDialog(oDarthSion, TRUE));
		}
		break;
	case 2:
		{
		SetFakeCombatState(oKreia, TRUE);
		vector vPosSion = GetPositionFromLocation(GetLocation(oDarthSion));
		AssignCommand(oKreia, ActionDoCommand(SetFacingPoint(vPosSion)));
		AssignCommand(oKreia, ActionPlayAnimation(10173));
		AssignCommand(oKreia, ActionPlayAnimation(ANIMATION_LOOPING_READY, 1.0, (-1.0)));
		AssignCommand(oKreia, SetLockOrientationInDialog(oKreia, TRUE));
		AssignCommand(oKreia, CreatureFlourishWeapon(oKreia));
		}
		break;
	case 3:
		{
		AssignCommand(oKreia, ClearAllActions());
		AssignCommand(oKreia, ActionForceMoveToLocation(GetLocation(GetObjectByTag("WP_fight_kreia"))));
		vector vPosDarthSion = GetPositionFromLocation(GetLocation(oDarthSion));
		AssignCommand(oKreia, ActionDoCommand(SetFacingPoint(vPosDarthSion)));
		AssignCommand(oKreia, SetLockOrientationInDialog(oKreia, TRUE));
		}
		break;
	case 4:
		{
		AssignCommand(oDarthSion, CreatureFlourishWeapon(oDarthSion));
		}
		break;
	case 5:
		AssignCommand(oKreia, ActionUnequipItem(GetItemInSlot(INVENTORY_SLOT_RIGHTWEAPON, OBJECT_SELF)));
		ChangeObjectAppearance(oKreia, 627);
		break;
	case 6:
		{
		vector vWPSionRight = GetPositionFromLocation(GetLocation(GetObjectByTag("WP_sion_right", 0)));
		AssignCommand(oDarthSion, ActionDoCommand(SetFacingPoint(vWPSionRight)));
		AssignCommand(oDarthSion, SetLockOrientationInDialog(oDarthSion, TRUE));
		}
		break;
	case 7:
		{
		vector vPosDoor = GetPositionFromLocation(GetLocation(GetObjectByTag("kreia_sion_door")));
		AssignCommand(oDarthSion, ActionDoCommand(SetFacingPoint(vPosDoor)));
		AssignCommand(oDarthSion, SetLockOrientationInDialog(oDarthSion, TRUE));
		}
		break;
	case 8:
		AssignCommand(oAtton, ClearAllActions());
		AssignCommand(oAtton, ActionForceMoveToObject(GetFirstPC(), TRUE));
		break;
	case 9:
		{
			object oRWeapItem = GetItemInSlot(INVENTORY_SLOT_RIGHTWEAPON, oKreia);
			DestroyObject(oRWeapItem, 0.0, 0, 0.0, 0);
		}
		break;
	case 10:
		break;
	case 11:
		AssignCommand(oDarthSion, ClearAllEffects());
		break;
	case 12:
		AssignCommand(oKreia, ActionUnequipItem(GetItemInSlot(INVENTORY_SLOT_RIGHTWEAPON, OBJECT_SELF)));
		AssignCommand(oKreia, ActionUnequipItem(GetItemInSlot(INVENTORY_SLOT_LEFTWEAPON, OBJECT_SELF)));
		AssignCommand(oKreia, ActionUnequipItem(GetItemInSlot(INVENTORY_SLOT_RIGHTWEAPON2, OBJECT_SELF)));
		AssignCommand(oKreia, ActionUnequipItem(GetItemInSlot(INVENTORY_SLOT_LEFTWEAPON2, OBJECT_SELF)));
		AssignCommand(oKreia, ActionEquipItem(CreateItemOnObject("w_melee_06", oKreia, 1, 1), INVENTORY_SLOT_RIGHTWEAPON, TRUE));
		break;
}
}

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...