• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

Can you set reputation to "x" level?

valkyr

Landlubber
I was looking through the various init files etc and I was wondering if there was way to reinit the reputation to some "x" value?

Like when I reinitialize have my rep reinit to 80 or something? Or perhaps bind a key to reinit Rep to "x" value? Kind of like the name change or similar...

Thanks!!
 
Sweet! I figured it out.

I modified the init_pc.c and seadogs.c files to get this to work. Was rather simple really.

First I changed the key mapping of Always Run KEY_K to KEY_X in init_pc.c
then made the following changes:

init_pc.c
<snip>
// NK -->
This is line that already exists -> CI_CreateAndSetControls( "", "`NK_Re-init`", CI_GetKeyCode("KEY_I"), 0, false );
Add this line -> CI_CreateAndSetControls( "", "RepAdd", CI_GetKeyCode("KEY_J"), 0, false );
Add this line -> CI_CreateAndSetControls( "", "RepSub", CI_GetKeyCode("KEY_K"), 0, false );
// NK <--


seadogs.c
/* This section exists already
// NK <--
if(ControlName == "Help") RunHelpChooser();

if(ControlName == "`NK_Re-init`") Reinit(false, true); // NK
End Section Exists */

/* Add this section

if(ControlName == "RepAdd")
{
ChangeCharacterReputation(GetMainCharacter(), +10);
}
if(ControlName == "RepSub")
{
ChangeCharacterReputation(GetMainCharacter(), -10);
}
End Add This Section */
 
Back
Top