Aller au contenu

Photo

Differenciating dialogs for male and female PCs


  • Veuillez vous connecter pour répondre
1 réponse à ce sujet

#1
DLAN_Immortality

DLAN_Immortality
  • Members
  • 481 messages
I've been writing dialogs for an NPC and at some point he has to say "My Lady" or "My Lord".

The string already has one conditional (gen00pt_backgrounds, GEN_BACK_HUMAN_NOBLE) added in the "plots and scripting" tag.

Is there any easy way to add a second conditional to the same dialog to check if your PC is male or female or the only way to do this is via scripting?

#2
Qkrch

Qkrch
  • Members
  • 128 messages
You have also the second option where you can set a script, right?



Make a script and paste this, place it there:



//COnvo conditional script
//Check if speaker is female for showing that line


int StartingConditional()
{
    object oPC = GetPCSpeaker();
    
    if (GetCreatureGender(oPC) == GENDER_FEMALE)
        return TRUE;

    return FALSE;

}