Jump to content

Home

Gender Related Problems


TheProphet

Recommended Posts

An error in my mod has been baffling me until I did a certain check. My mod completely replaces the original modules, so any set scripts for globals do not activate. I was making dialogs that had both male and female versions, and i noticed that when i put the c_ismale or c_isfemale scrtips where they needed to be, it didnt work. So i took a look at the actual script and it says this

 

c_isfemale

#include "k_inc_debug"

int StartingConditional()
{
   if(GetGlobalBoolean("000_PLAYER_GENDER") == FALSE)
       return TRUE;
   return FALSE;
}

 

c_ismale obviously has 000_PLAYER_GENDER set as TRUE. So i started a new game as a male and then saved the game and took a look at that boolean and noticed that it was false, i then did it again as a female and noticed it was still false, they cant both have the same value. So somewhere in the beginning modules that boolean is set, what I want to know is what is the script to set the gender of the character determining their GENDER: line?

 

-Chuck McMackin

Link to comment
Share on other sites

I was making dialogs that had both male and female versions, and i noticed that when i put the c_ismale or c_isfemale scrtips where they needed to be, it didnt work. So i took a look at the actual script and it says this

 

(snip)

if(GetGlobalBoolean("000_PLAYER_GENDER") == FALSE)

(snip)

 

It's set in a_hatchopen in 101PER_s.rim (Peragus Admin) and a_bet3m4 in 001EBO_s.rim (the Prologue).

 

However, if you are replacing the whole game anyway, why not just change the gender checking scripts (or make your own scripts) that uses the GetGender() function instead? Like...

if (GetGender(GetFirstPC()) == GENDER_FEMALE)

...to check if the player is female.

 

I'm somewhat curious as to why Obsidian would use a global boolean to keep track of something that's already saved in the character sheet. My guess would be it is to be able to make proper gender references when the Exile is not in the active party. If you don't do this in your mod there is no reason to use resources to store the gender info double. :)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...