lfnetwork.com mark read register faq members calendar

Thread: Scripts: Mira and Visas on Malachor
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 11-24-2005, 07:26 AM   #1
Patriarch
Rookie
 
Join Date: Oct 2005
Posts: 77
Scripts: Mira and Visas on Malachor

Howdy
Anybody know how to include Mira and Visas/handmaiden to your party upon entering Trayus Academy? I am trying to integrete the script into a_903_kreia.ncs.

I am confused wether i should use k_inc_glob_party or som other scripts....I tried using the mentioned script with little succes, as it gives me an error in the "void SetPlayerParty(int aNPC_CONSTANT_1, int aNPC_CONSTANT_2)" line


I know i have to replace my anpcconstants but my problem is that it gives me a syntax error "("

This is my script:


#include "k_inc_debug"
#include "k_inc_glob_party"
void main()
{
int nParam1 = GetScriptParameter(1);
if ((nParam1 == 1)) {
SetGlobalFadeIn(0.1, 2.0, 0.0, 0.0, 0.0);
AssignCommand(GetObjectByTag("DarthSion", 0), ActionMoveToObject(GetObjectByTag("wp_sioncut_1", 0), 0, 1.0));
AssignCommand(GetFirstPC(), ActionJumpToObject(GetObjectByTag("wp_903kreia_sp" , 0), 1));
SetLockOrientationInDialog(GetObjectByTag("DarthSi on", 0), 1);
}
else {
if ((nParam1 == 2)) {
CreateObject(1, "sithasscut1", GetLocation(GetObjectByTag("wp_sithass1_1", 0)), 0);
CreateObject(1, "sithasscut2", GetLocation(GetObjectByTag("wp_sithass2_1", 0)), 0);
CreateObject(1, "sithasscut3", GetLocation(GetObjectByTag("wp_sithass3_1", 0)), 0);
CreateObject(1, "sithasscut4", GetLocation(GetObjectByTag("wp_sithass4_1", 0)), 0);
CreateObject(1, "sithasscut5", GetLocation(GetObjectByTag("wp_sithass5_1", 0)), 0);
CreateObject(1, "sithasscut6", GetLocation(GetObjectByTag("wp_sithass6_1", 0)), 0);
AssignCommand(GetObjectByTag("SithAssassinCut1", 0), ActionMoveToObject(GetObjectByTag("wp_sithass1_2", 0), 0, 1.0));
AssignCommand(GetObjectByTag("SithAssassinCut2", 0), ActionMoveToObject(GetObjectByTag("wp_sithass2_2", 0), 0, 1.0));
AssignCommand(GetObjectByTag("SithAssassinCut3", 0), ActionMoveToObject(GetObjectByTag("wp_sithass3_2", 0), 0, 1.0));
AssignCommand(GetObjectByTag("SithAssassinCut4", 0), ActionMoveToObject(GetObjectByTag("wp_sithass4_2", 0), 0, 1.0));
AssignCommand(GetObjectByTag("SithAssassinCut5", 0), ActionMoveToObject(GetObjectByTag("wp_sithass5_2", 0), 0, 1.0));
AssignCommand(GetObjectByTag("SithAssassinCut6", 0), ActionMoveToObject(GetObjectByTag("wp_sithass6_2", 0), 0, 1.0));
}
else {
if ((nParam1 == 3)) {
object oPC = GetFirstPC();
object oD_entrance = GetObjectByTag("d_entrance", 0);
SetLightsaberPowered(oPC, 1, 1, 0);
AssignCommand(oPC, ActionMoveToObject(GetObjectByTag("wp_903kreia_1", 0), 0, 1.0));
DelayCommand(4.0, AssignCommand(oD_entrance, ActionOpenDoor(oD_entrance)));
}
else {
if ((nParam1 == 4)) {
effect efVisual = EffectVisualEffect(8001, 0);
object oSithAssassinCut1 = GetObjectByTag("SithAssassinCut1", 0);
object oSithAssassinCut2 = GetObjectByTag("SithAssassinCut2", 0);
object oSithAssassinCut3 = GetObjectByTag("SithAssassinCut3", 0);
object oSithAssassinCut4 = GetObjectByTag("SithAssassinCut4", 0);
object oSithAssassinCut5 = GetObjectByTag("SithAssassinCut5", 0);
object oSithAssassinCut6 = GetObjectByTag("SithAssassinCut6", 0);
AssignCommand(oSithAssassinCut1, ActionMoveToObject(GetObjectByTag("wp_sithass1_3", 0), 0, 1.0));
AssignCommand(oSithAssassinCut2, ActionMoveToObject(GetObjectByTag("wp_sithass2_3", 0), 0, 1.0));
AssignCommand(oSithAssassinCut3, ActionMoveToObject(GetObjectByTag("wp_sithass3_3", 0), 0, 1.0));
AssignCommand(oSithAssassinCut4, ActionMoveToObject(GetObjectByTag("wp_sithass4_3", 0), 0, 1.0));
AssignCommand(oSithAssassinCut5, ActionMoveToObject(GetObjectByTag("wp_sithass5_3", 0), 0, 1.0));
AssignCommand(oSithAssassinCut6, ActionMoveToObject(GetObjectByTag("wp_sithass6_3", 0), 0, 1.0));
object oBeltItem = GetItemInSlot(10, oSithAssassinCut1);
object object55 = GetItemInSlot(10, oSithAssassinCut2);
object object57 = GetItemInSlot(10, oSithAssassinCut3);
object object59 = GetItemInSlot(10, oSithAssassinCut4);
object object61 = GetItemInSlot(10, oSithAssassinCut5);
object object63 = GetItemInSlot(10, oSithAssassinCut6);
DelayCommand(0.5, ApplyEffectToObject(1, efVisual, oSithAssassinCut1, 2.0));
DelayCommand(0.5, ApplyEffectToObject(1, efVisual, oSithAssassinCut2, 2.0));
DelayCommand(0.5, ApplyEffectToObject(1, efVisual, oSithAssassinCut3, 2.0));
DelayCommand(0.5, ApplyEffectToObject(1, efVisual, oSithAssassinCut4, 2.0));
DelayCommand(0.5, ApplyEffectToObject(1, efVisual, oSithAssassinCut5, 2.0));
DelayCommand(0.5, ApplyEffectToObject(1, efVisual, oSithAssassinCut6, 2.0));
DelayCommand(1.0, AssignCommand(oSithAssassinCut1, ActionUseSkill(2, oSithAssassinCut1, 0, oBeltItem)));
DelayCommand(1.0, AssignCommand(oSithAssassinCut2, ActionUseSkill(2, oSithAssassinCut2, 0, object55)));
DelayCommand(1.0, AssignCommand(oSithAssassinCut3, ActionUseSkill(2, oSithAssassinCut3, 0, object57)));
DelayCommand(1.0, AssignCommand(oSithAssassinCut4, ActionUseSkill(2, oSithAssassinCut4, 0, object59)));
DelayCommand(1.0, AssignCommand(oSithAssassinCut5, ActionUseSkill(2, oSithAssassinCut5, 0, object61)));
DelayCommand(1.0, AssignCommand(oSithAssassinCut6, ActionUseSkill(2, oSithAssassinCut6, 0, object63)));
DelayCommand(4.0, DestroyObject(oSithAssassinCut1, 0.0, 1, 0.0, 0));
DelayCommand(4.0, DestroyObject(oSithAssassinCut2, 0.0, 1, 0.0, 0));
DelayCommand(4.0, DestroyObject(oSithAssassinCut3, 0.0, 1, 0.0, 0));
DelayCommand(4.0, DestroyObject(oSithAssassinCut4, 0.0, 1, 0.0, 0));
DelayCommand(4.0, DestroyObject(oSithAssassinCut5, 0.0, 1, 0.0, 0));
DelayCommand(4.0, DestroyObject(oSithAssassinCut6, 0.0, 1, 0.0, 0));
}
else {
if ((nParam1 == 5)) {
SetLightsaberPowered(GetFirstPC(), 0, 1, 0);
DelayCommand(5.0, DestroyObject(GetObjectByTag("DarthSion", 0), 0.0, 0, 0.0, 0));
}
}
}
}
}
{
void SetPlayerParty(int aNPC_CONSTANT_1, int aNPC_CONSTANT_2)
{
ClearPlayerParty();
object oPartyMember1 = SpawnIndividualPartyMember(aNPC_CONSTANT_1);
object oPartyMember2 = SpawnIndividualPartyMember(aNPC_CONSTANT_2);
if(GetIsObjectValid(oPartyMember1) )
{
AddPartyMember(aNPC_CONSTANT_1, oPartyMember1);
}
if(GetIsObjectValid(oPartyMember2) )
{
AddPartyMember(aNPC_CONSTANT_2, oPartyMember2);
}
}
}
}

Anders

Last edited by Patriarch; 11-24-2005 at 07:38 AM.
Patriarch is offline   you may: quote & reply,
Old 11-24-2005, 06:05 PM   #2
stoffe
Network Caretaker
 
stoffe's Avatar
 
Status: Administrator
Join Date: Apr 2002
Posts: 5,833
Helpful! 10 year veteran! Notable contributor 
I made a quick hack some time ago that let you add party members as usual (except those who shouldn't be available for story reasons) with the party selection screen on the Malachor surface and in the main Trayus Academy areas. You can get it here if you want to have a look at it. The script source code should be included if I remember correctly.

stoffe is offline   you may: quote & reply,
Old 11-25-2005, 02:13 AM   #3
Patriarch
Rookie
 
Join Date: Oct 2005
Posts: 77
Hey Stoffe

I love your work man, actually the Quick hack you have made does'nt have the source included but, i managed to decompile using Decns, which works like a charm. I agree the characters that aren't available for story reasons should'nt be selectable. I' have just allways hated TSL Malachor ending, I mean looks like Mira is definitely trying to lend a hand to the Exile. And looking at the OE's included scripts then obviously Atton, Mandalore, Handmaiden and Visas should be there. Well Well stoffe , now you have given me some starting of point as to selectabillity (just could'nt find that part anywhere) This is definitely a very good start and for that I thank you a lot.

Next step is to add them to the party which should'nt prove to difficult, as I now should be able to use the addavailablenpc etc.

once again thx man!!!
Patriarch is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Editing / Modding > Holowan Laboratories > Scripts: Mira and Visas on Malachor

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:46 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.