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.

Ebon Hawk exit script

Page: 1 of 1
 cooldamien
08-08-2006, 11:10 PM
#1
In my mod TSL: End of game level addon I just creat my custom ship which is goto's. I am creat two or there custom levels.

1. NarShadaw

2. Telos Space Station

3. Jedi Academy

So what I need is when I open one of the many panels on goto ship and select number one NarShadaw and walk out airlock and click the door the team member menu pops ups and once I pick two npc it loads my custom NarShadaw.

I am not trying use the star map just .dlg computer menu.

Once I have this script my mod should really take off
 Lit Ridl
08-09-2006, 1:20 AM
#2
First of all don't forget that your script should be fired by the trigger setted on the exit. If you decided to use dialog than you should use different scripts or different modules. Sorry guy, but I haven't time to write normal script, here is primitive sample:

void sub1();

void sub1()
{
AurPostString("Showing party selection", 5, 20, 10.0);
ShowPartySelectionGUI("party_gui", 0xFFFFFFFF, 0xFFFFFFFF, 0);
}

void main() {
SetGlobalFadeOut(0.0, 0.0, 0.0, 0.0, 0.0);
SetFadeUntilScript();
AurPostString("Leaving the ship", 15, 22, 10.0);
DelayCommand(1.0, sub1());
}

This is thefirst script, but you will need the second one, and here I see problem of using dialog...

void sub1();

void sub1() {
StartNewModule("module", "WP_from_exile_ship", "movie1", "movie2", "movie3", "movie4", "movie5", "movie6");
}

void main() {
SetGlobalFadeIn(0.0, 0.0, 0.0, 0.0, 0.0);
int int1 = GetRunScriptVar();
object oPC = GetFirstPC();
AssignCommand(oPC, ClearAllActions());
AssignCommand(oPC, ActionJumpToLocation(GetLocation(GetObjectByTag("WP_from_outside", 0))));
SetGlobalBoolean("003_PARTY_SPAWN", 0);
sub1();
}

OR IF YOU WANT JUST TO SHOW UP PARTY SELECTION SCREEN AND THEN TELEPORT, you may use one very easy, basic script. But note it will be showed up just when dialog will end. This type of script don't alow you to satrat new module at the waypoint, and play movie. But allows you to show party selecetion screen and start new module after 10 seconds. ForceNPCa and ForceNPCb are must-to-be-in-party NPCs, use script parameter for them.

void main()
{
string Module = GetScriptStringParameter();
int ForceNPCa = GetScriptParameter(1);
int ForceNPCb = GetScriptParameter(2);

ShowPartySelectionGUI("", ForceNPCa, ForceNPCb, FALSE);
DelayCommand(10.0, StartNewModule(Module, "", ""));
}
Also there is a way to make all, like this
[CODE]
void main() {

int Main = GetScriptParameter( 1 );
int Place = GetScriptParameter( 2 );

if ( Main == 1 ) {
if ( Place == 1 ) { ShowPartySelectionGUI("", 0xFFFFFFFF, 0xFFFFFFFF, FALSE);
DelayCommand(10.0, StartNewModule(000abc, "", ""));}

if ( Place == 2 ) { ShowPartySelectionGUI("", 0xFFFFFFFF, 0xFFFFFFFF, FALSE);
DelayCommand(10.0, StartNewModule(000abc, "", ""));}

if ( Place == 3 ) { ShowPartySelectionGUI("", 0xFFFFFFFF, 0xFFFFFFFF, FALSE);
DelayCommand(10.0, StartNewModule(000abc, "", ""));}

if ( Place == 4 ) { ShowPartySelectionGUI("", 0xFFFFFFFF, 0xFFFFFFFF, FALSE);
DelayCommand(10.0, StartNewModule(000abc, "", ""));}

if ( Place == 5 ) { ShowPartySelectionGUI("", 0xFFFFFFFF, 0xFFFFFFFF, FALSE);
DelayCommand(10.0, StartNewModule(000abc, "", ""));}

if ( Place == 6 ) { ShowPartySelectionGUI("", 0xFFFFFFFF, 0xFFFFFFFF, FALSE);
DelayCommand(10.0, StartNewModule(000abc, "", ""));}

if ( Place == 7 ) { ShowPartySelectionGUI("", 0xFFFFFFFF, 0xFFFFFFFF, FALSE);
DelayCommand(10.0, StartNewModule(000abc, "", ""));}

if ( Place == 8 ) { ShowPartySelectionGUI("", 0xFFFFFFFF, 0xFFFFFFFF, FALSE);
DelayCommand(10.0, StartNewModule(000abc, "", ""));}

if ( Place == 9 ) { ShowPartySelectionGUI("", 0xFFFFFFFF, 0xFFFFFFFF, FALSE);
DelayCommand(10.0, StartNewModule(000abc, "", ""));}

if ( Place == 10 ) { ShowPartySelectionGUI("", 0xFFFFFFFF, 0xFFFFFFFF, FALSE);
DelayCommand(10.0, StartNewModule(000abc, "", ""));}
}
}

If you need some reference to my writning ask me. Sorry for raw scripts, my time is limited, very limited.
 cooldamien
08-10-2006, 12:45 AM
#3
I need to know how to disable Kreia and Goto from npc select screen.


I also need to know package my mod.

I have added gloable vars and I wish to be able to automaticly add my vars.

Becasue if I just give you my gloabe.d2a file and if the users is like me which has the batle ring and high level force power vars. replacing it would mess up the game.

Any ideas I hace the packager but I have not been able to get to work right.
 Lit Ridl
08-10-2006, 9:08 AM
#4
Sorry please, but may you check your posts? With Microsoft Word for example.
I haven't understood anythig, only that Kreai and G0-To shoul be unselectable (or removed from party?)
To make NPC unselectable use this function:

SetNPCSelectability(6, 0);

6 - is Kreia's number in npc.2da, G0-T0's number is 3 (if I remeber it right), Atton's is 1 for example.
If you want to use it, insert this line before ShowPartySelectionGUI function, And then you may make her selectable again.
Page: 1 of 1