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.

Scripting Question.

Page: 1 of 1
 .:Sam:.
04-06-2008, 9:54 AM
#1
Just a quick, simple question. ;)

What script would I have to use to make a creature say different things depending on who is with me in my party?

I want a Selkath to say something about Mission Vao to the player, but only if Mission is not on the team, with the player. How is this done?

Sam
 Marius Fett
04-06-2008, 10:14 AM
#2
In the script that determines availability field, type k_con_missionpm. :)
 .:Sam:.
04-06-2008, 12:29 PM
#3
Thank You! I would like to ask one more question and then I will be on my way. :)
Which script would I need to use so that Mission temporarily leaves the party, but keep her stats for when she returns.
 Marius Fett
04-06-2008, 12:56 PM
#4
I think you could use this:

void main()
{
RemoveAvailableNPC(6);
}

I'm no scripter though so you should probably ask someone else too. :)
 glovemaster
04-06-2008, 1:11 PM
#5
RemoveAvailableNPC(6); Will remove Mission from the available Party characters rather than remove her from the Party.

void main(){
object Mission = GetObjectByTag("Mission");
AssignCommand(Mission, RemoveFromParty(Mission));
}

Should remove mission from the current party.

EDIT:
And assuming you didn't destroy mission, and your in the same module :rolleyes:
void main(){
object Mission = GetObjectByTag("Mission");
AssignCommand(Mission, AddToParty(Mission, GetFirstPC()));
}
Should add her back
 .:Sam:.
04-06-2008, 1:32 PM
#6
Thanks. That'll be all for now. :)
I won't be silly enough to destroy her. Lol.
 Marius Fett
04-06-2008, 2:12 PM
#7
RemoveAvailableNPC(6); Will remove Mission from the available Party characters rather than remove her from the Party.

I thought that was what Sam was after. Plus as I said, i'm no scripter. ;)
Page: 1 of 1