Jump to content

Home

Script help. male or female in script not dialog?


randydg

Recommended Posts

Pretty sure you'd use something like this for TSL. I don't have KotOR installed so if it's for that game someone else can help you. :)

 

void main()
{
//checks if male
if(GetGlobalBoolean("000_PLAYER_GENDER") == TRUE) {
PlayMovie("movie01");
}
else {
PlayMovie("movie02");
}
}

 

That compiles fine, but I'm not sure if it works in-game.

Link to comment
Share on other sites

The function GetGlobalBoolean() is not compared with a value. Also i believe it is 0: Male, 1: Female.

Try this script:

void main() {
if(GetGlobalBoolean("000_PLAYER_GENDER")) // Female
	QueueMovie("movie_female", 0);
else // Male
	QueueMovie("movie_male", 0);

PlayMovieQueue(TRUE);
}

Link to comment
Share on other sites

This code fixes the looping over and over of the movie but playes male movie if male or female.

void main() 
{ 
if(GetGlobalBoolean("000_PLAYER_GENDER") == TRUE) // Female 
QueueMovie("intromale", 0); 
else
// Male 
QueueMovie("introfemale", 0); 
PlayMovieQueue(TRUE);
}

Link to comment
Share on other sites

This code fixes the looping over and over of the movie but playes male movie if male or female.

void main() 
{ 
if(GetGlobalBoolean("000_PLAYER_GENDER") == TRUE) // Female 
QueueMovie("intromale", 0); 
else
// Male 
QueueMovie("introfemale", 0); 
PlayMovieQueue(TRUE);
}

 

You've added the check again :p

void main() {
   if(GetGlobalBoolean("000_PLAYER_GENDER"))
   {
       QueueMovie("introfemale", 0);
   }
   else
   {
       QueueMovie("intromale", 0);
   }
   PlayMovieQueue(TRUE);
}

Link to comment
Share on other sites

Nope still not doing it right. now its playing the female movie for both

 

Dang it this cant be that hard to figure out :/

 

Edit: due to this was just about to fall of second page, I still need help on this. Is the script being posted not working because its to early to determin male or female for the intro movie?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...