Jump to content

Home

Scripting Question.


.:Sam:.

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...