PDA

View Full Version : Help with npc selection script


cooldamien
05-16-2007, 03:33 PM
I have problem while this script.
The script below does disable Kreia which is good.
1 .But it forces you to select Atton which is bad
2. The mouse pointer works but is hidden from view. have no idea wht this happens. you just can't see the mouse pointer in the npc screen.


I also have not figured out a way for when the player beats Nar Shadda to have access via the same dialog menu to give access to Koriban or after the player beats koriban to add even another location they can travel to.


The variable below is set via a .dlg file. so let say the player picks to go to Nar Shadda the travel variable is set to = 2. Then when the player click on the exit door of the ship the script below fires


Last but not least I need a onenter script for end.mod that strip all npc from you so you are alone and can't have 1 or 2 npc following you thanks

void main()




{

int iCheck = GetGlobalNumber("travel");

if (iCheck == 0)
{
SetNPCSelectability(6, 0);
SetNPCSelectability(3, 0);
string Module = GetScriptStringParameter();
int ForceNPCa = GetScriptParameter(1);
int ForceNPCb = GetScriptParameter(2);
ShowPartySelectionGUI("", ForceNPCa, ForceNPCb, FALSE);
PlayMovie("Telmov01");

DelayCommand(0.1, StartNewModule("tel01", ""));


}


if (iCheck == 1)
{
SetNPCSelectability(6, 0);
SetNPCSelectability(3, 0);
string Module = GetScriptStringParameter();
int ForceNPCa = GetScriptParameter(1);
int ForceNPCb = GetScriptParameter(2);
ShowPartySelectionGUI("", ForceNPCa, ForceNPCb, FALSE);
PlayMovie("Telmov15");
DelayCommand(0.1, StartNewModule("end", "SW_STARTLOC001"));


}



if (iCheck == 2)
{
SetNPCSelectability(6, 0);
SetNPCSelectability(3, 0);
string Module = GetScriptStringParameter();
int ForceNPCa = GetScriptParameter(1);
int ForceNPCb = GetScriptParameter(2);
ShowPartySelectionGUI("", ForceNPCa, ForceNPCb, FALSE);
PlayMovie("Narmov01");
DelayCommand(0.1, StartNewModule("nar01", ""));




}


}




Link to project that this code will be used for (http://www.lucasforums.com/showthread.php?t=168281)