Jump to content

Home

Question about romance mod ..


NeoShodan

Recommended Posts

Is there something like that out there or could someone tell me how to change the gender in the savefile. Should be easy enough .. i even found a entry in the savefile using a hexeditor that said gender but the value is always 00 no matter what gender you play.

Link to comment
Share on other sites

  • Replies 52
  • Created
  • Last Reply

I have been looking into this and have found a way to alter it, but! the save will not load after altering the gender of the main character.

 

I'm checking out any other way of doing it and have so far found two script used to return the gender of the user and two that checks for flirting but have not gone further than that.

Link to comment
Share on other sites

I was dorking around with that this morning and I seem to have managed to get the flirting dialogue with Bastila with a female PC. It wasn't with the save files though, I just did a little tweaking with the k_con_flirt/no and the k_con_is(fe)male scripts.

Link to comment
Share on other sites

k_con_* are scripts that are checking if something is in a spcific condition... for example, if the PC is female.

 

First you have to extract said scripts from the script.bif. To do that, get teh NWNexplorer (from http://www.torlack.com ), start it, and open the chitin.key which is located in the main kotor directory.

Goto NWN Main Data -> Scripts.bif -> Scripts and search "k_con_isfemale.nss", "k_con_ismale.nss", "k_con_flirt.nss" and "k_con_flirtno.nss" export theese into a directory.

 

Now open the exported nss-files (neverwinter script source ir whatever...) in a normal texteditor - emacs, notepad, wordpad, whatever.

 

Change the k_con_ismale nss into this (Bold - here is what changed, italic - added comments):

 

//:: k_con_ismale
/*
   checks if pc is male
*/
//:: Created By:  Jason Booth
//:: Copyright (c) 2002 Bioware Corp.

#include "k_inc_debug"

int StartingConditional()
{
   int iGender = GetGender(GetFirstPC());
   if (iGender == [b]GENDER_FEMALE[/b])
   {
       return TRUE;
   }
   return FALSE;
}

 

k_con_isfemale:

//:: k_con_isfemale
/*
   checks to see if pc is female
*/
//:: Created By:  Jason Booth
//:: Copyright (c) 2002 Bioware Corp.

#include "k_inc_debug"

int StartingConditional()
{
   int iGender = GetGender(GetFirstPC());
   if (iGender == [b]GENDER_MALE[/b]) 
   {
       return TRUE;
   }
   return FALSE;
}

 

k_con_flirt

//:: k_con_flirt
/*
   checks to see if npc and pc are of the opposite sex and the pc's
   charisma is normal or better
*/
//:: Created By:  Jason Booth
//:: Copyright (c) 2002 Bioware Corp.

#include "k_inc_debug"

int StartingConditional()
{
   int nGender = GetGender(GetPCSpeaker());
   if(GetAbilityScore(GetPCSpeaker(),ABILITY_CHARISMA) >= 10)
   {
       if(nGender [b]==[/b] GetGender(OBJECT_SELF))
       {
          return TRUE;
       }
       else
       {
          return FALSE;
       }
   }
   return FALSE;
}

 

k_con_flirtno

 


//:: k_con_flirtno
/*
   checks if pc charisma is low or pc and npc are same sex
*/
//:: Created By:  Jason Booth
//:: Copyright (c) 2002 Bioware Corp.

#include "k_inc_debug"

int StartingConditional()
{
   if((GetGender(GetPCSpeaker()) [b]!=[/b] GetGender(OBJECT_SELF)) ||
  GetAbilityScore(GetPCSpeaker(),ABILITY_CHARISMA) < 10)
   {
       return TRUE;
   }
   return FALSE;
}

 

Now you have to recompile your edited scripts, todo that you need a compiler - I recommend the commandlinecompiler HazardX modified for the use with kotor, http://www.megamods.de/_data/parts/dl.php?file=37 . Put the executable into the directory in which the nss are, start a command prompt and goto that directory, and type "nwnnsscomp.exe -c k_con_*", switch back to the windows explorer and copy the for .ncs-files you now have into the overridedirectory in the swkotor main directory.

 

I haven't tested it, but it should do the trick.

 

HTH

Link to comment
Share on other sites

It will take until Dantooine before you can be certain if it works (it is there where the flirting with Bastila really starts). I'm currently playing a game to test and has so far, I think, gotten somewhat different dialog options.

 

I don't know if it matter when you add this mod to the game, but I'm going to try it from before I get Bastila.

 

(edit)

 

And in my version of the mod I changed the two flirt scripts to only check for high charisma and not for gender like this:

int StartingConditional()

{

if(GetAbilityScore(GetPCSpeaker(),ABILITY_CHARISMA) >= 10)

{

return TRUE;

}

return FALSE;

}

Link to comment
Share on other sites

IIRC teh first different dialog option is "and saved the damsel in distress" (or something similar, I have the german version and don't know what the original line was) when you talk to her the first or second time in the taris apartment...

 

And yes, if you want all flirts possible, that is the best way *grin*

Link to comment
Share on other sites

normaly haden trys to come on to the female pc (the seedy guy in the lower cantina) and now hes not. so i gues its realy working ! trying with a guy now but im pretty sure thatll work as well, Thanks alot for all the help ! btw someone should make a real mod out of this and host it somewhere , im pretty sure alot of people would be interested in it.

Link to comment
Share on other sites

I'm aming to make a mod that allows the player to select with whom they want to be able to have a romance with, Carth, Bastila or Juhani (or any two, or all three). The small mod I have done so far will only work with a female character and Bastila but I aim to make it totally up to the player.

Link to comment
Share on other sites

Originally posted by Gloranor

IIRC teh first different dialog option is "and saved the damsel in distress" (or something similar, I have the german version and don't know what the original line was) when you talk to her the first or second time in the taris apartment...

 

And yes, if you want all flirts possible, that is the best way *grin*

 

I got that. That might mean that this works!

 

:)

Link to comment
Share on other sites

Originally posted by Hoa_Binh

int StartingConditional()

{

if(GetAbilityScore(GetPCSpeaker(),ABILITY_CHARISMA) >= 10)

{

return TRUE;

}

return FALSE;

}

 

Originally posted by Hoa_Binh

The small mod I have done so far will only work with a female character and Bastila but I aim to make it totally up to the player.

 

mkay, I don't know much bout scriptin.. could you please tell me why that mod would'nt work with male-carth or female-juhani?

Link to comment
Share on other sites

Originally posted by k0la

mkay, I don't know much bout scriptin.. could you please tell me why that mod would'nt work with male-carth or female-juhani?

 

The first thing would of course be that Juhani is only interested in women from the start. But both of them (Carth and Juhani) uses other scripts to set variables for the romance depending on gender. My aim was to make one that worked for Bastila and a female PC and that one works.

 

To be able to change the romance with Juhani at least the script "k_hjuh_p17.nss" needs to be changed.

 

And for Carth the script "k_swg_carth13.nss" needs to be changed.

 

To be certain about which scripts to be changed someone needs to go trough all of the conversations with those two and check everything. I still can't read the conversation files completely so I can not be certain that an alteration works or not.

Link to comment
Share on other sites

Hoa_Binh:

 

ah ok then i get it, i just thought that all of em used the same script to check gender etc.. but as I said earlier i dont know much bout scripting :) I guess I'll play a female char and see if i can get some from juhani, while i wait for ur mod ^^

 

tee hee

Link to comment
Share on other sites

I could probably put together a small mod that alters all of the scripts that I have found so far. Unfortuately there is no guarantee that anything other than the Bastila part will work.

 

(edit)

 

I have uploaded the mod. As I said there is no guarante that it will work beyond Bastila. Try it, and if you find something wrong, please let me know.

 

http://freehost01.websamba.com:8081/andershemsida/romancemod.zip

 

(edit 2)

 

If the direct link does not work try http://www.websamba.com/andershemsida and then follow the link on that page.

Link to comment
Share on other sites

I have uploaded the mod. As I said there is no guarante that it will work beyond Bastila. Try it, and if you find something wrong, pleas let me know.
I've noticed one problem. To progress on Taris you need an offduty Sith from the cantina to invite you to a party. Normally the male officer invites female characters and the female officer invites male characters, but with the modified k_con_isfemale and k_con_ismale files being used, neither officer will invite a female character. Either the files need to be changed, or they should not be used until after this point in the game. Ah well, thanks for making them available anyway.
Link to comment
Share on other sites

In NWN, first branch in dialog with text appears condition TRUE is used. It might be necesary to revisit all dialogs and adjust them.

 

Probable dialog checks you mentioned (I didn't verify it):

 

- male officer checks for female and gets FALSE, so he asumes he speaks with male.

- female officer checks for male and gets FALSE so he assumes he speaks with female.

 

Changing conditionals that way might work in seweral cases, but better (and unfortunately much harder) would be to modify scripts attached to dialogs.

 

Problem you mentioned might be just a top of iceberg.

 

PSen

 

 

Originally posted by Kath Hound

I've noticed one problem. To progress on Taris you need an offduty Sith from the cantina to invite you to a party. Normally the male officer invites female characters and the female officer invites male characters, but with the modified k_con_isfemale and k_con_ismale files being used, neither officer will invite a female character. Either the files need to be changed, or they should not be used until after this point in the game. Ah well, thanks for making them available anyway.

Link to comment
Share on other sites

What I aim to make is to alter all of the conversations with Carth, Bastila and Juhani to check for a new global that the player can set to be allowed to romance whomever they want. This mod would not create the trouble that others characters will respond wrong to the characters gender but it will take some time to implement.

 

What I also aim to do is to change the conversation with Tanis and the Twi-lek slaves in Davik's house.

Link to comment
Share on other sites

Originally posted by psen

- male officer checks for female and gets FALSE, so he asumes he speaks with male.

- female officer checks for male and gets FALSE so he assumes he speaks with female.

 

Changing conditionals that way might work in seweral cases, but better (and unfortunately much harder) would be to modify scripts attached to dialogs.

 

Problem you mentioned might be just a top of iceberg.

 

PSen

 

Yes, I know. My alterations will probably alter lots of other conversations too. That is why I aim to do it another way next time.

 

My scrips will always report that the main character has the sought gender, the script that checks for male will always return true and the female also always true. Don't know why the two officers' dialogs do not work, but I will check them out and try to alter them not to respond to the altered gender of the character.

Link to comment
Share on other sites

Originally posted by Kath Hound

I've noticed one problem. To progress on Taris you need an offduty Sith from the cantina to invite you to a party. Normally the male officer invites female characters and the female officer invites male characters, but with the modified k_con_isfemale and k_con_ismale files being used, neither officer will invite a female character. Either the files need to be changed, or they should not be used until after this point in the game. Ah well, thanks for making them available anyway.

 

Unless your mod has changed the game completely, you don't have to get invited to the party. You can simply enter the apartment complex and you will see a sith interrogation scene. Kill the siths and you will get armor from them to get into the lower city.

 

Stator

Link to comment
Share on other sites

Archived

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


×
×
  • Create New...