View Single Post
Old 03-11-2012, 03:08 PM   #146
Ferc Kast
Modder
 
Ferc Kast's Avatar
 
Join Date: Jan 2007
Location: Tython
Posts: 1,584
Current Game: The Old Republic
Helpful! Forum Veteran Contest winner - Fan Fiction Veteran Modder 
Well, while modding in TSL, I found a minor flaw in the following script I made: the party selection screen doesn't show up regardless of how I've changed that part of the script. Any help would be appreciated.

Code:
// recruit.nss
// Created by Ferc Kast

void RecruitA(int iNPC, string sResRef, string sExit, int iForce)
{
	int iNPC;
	string sResRef;
	string sExit;
	int iForce;
	RemoveAvailableNPC(iNPC);
	AddAvailableNPCByTemplate(iNPC, sResRef);
	if ( iForce == TRUE )
	{
		DelayCommand(1.5,ShowPartySelectionGUI(sExit, iNPC));
	}
	else if ( iForce == FALSE )
	{
		DelayCommand(1.5,ShowPartySelectionGUI(sExit));
	}
}

void RecruitB(string sTag)
{
	string sTag;
	object oNPC = GetObjectByTag(sTag);
	ActionPauseConversation();
	SetGlobalFadeOut(1.0, 0.5);    
	DelayCommand(1.0, DestroyObject(oNPC));
	DelayCommand(1.0,SetGlobalFadeIn(0.7,0.0));
	ActionResumeConversation();
}

Ferc Kast is offline   you may: quote & reply,