randydg Posted July 18, 2008 Share Posted July 18, 2008 to clerify I need a way in a script to set if male then PlayMovie("movie", 0); If female then play PlayMovie("movie2", 0); but without a dialog this will be on module load. thanks, Randy Link to comment Share on other sites More sharing options...
Exile007 Posted July 19, 2008 Share Posted July 19, 2008 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 More sharing options...
glovemaster Posted July 19, 2008 Share Posted July 19, 2008 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 More sharing options...
randydg Posted July 19, 2008 Author Share Posted July 19, 2008 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 More sharing options...
glovemaster Posted July 20, 2008 Share Posted July 20, 2008 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 void main() { if(GetGlobalBoolean("000_PLAYER_GENDER")) { QueueMovie("introfemale", 0); } else { QueueMovie("intromale", 0); } PlayMovieQueue(TRUE); } Link to comment Share on other sites More sharing options...
randydg Posted July 20, 2008 Author Share Posted July 20, 2008 I already tried yours it didnt work Link to comment Share on other sites More sharing options...
glovemaster Posted July 20, 2008 Share Posted July 20, 2008 Well, alternatively there is: void main() { if(GetGender(GetFirstPC()) == 0) { QueueMovie("intromale", 0); } else { QueueMovie("introfemale", 0); } PlayMovieQueue(TRUE); } Link to comment Share on other sites More sharing options...
randydg Posted July 20, 2008 Author Share Posted July 20, 2008 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.