<!--`QuoteBegin-Verruckt`+--><div class='quotetop'>QUOTE(Verruckt)</div><div class='quotemain'><!--QuoteEBegin-->You could also rig something up like NK(I think) did with the name where you can hit 'n' and set it to the text file.[/quote]
Okay, I've been trying to figure out exactly how NK worked the character `name-change` into a `hot-key`, and these are the relative entries that I've found so far:
<i>In PROGRAMBuildSettings.h:</i>
#define FIRSTNAME ""
#define LASTNAME ""
<i>In PROGRAMCONTROLSinit_pc.c:</i>
CI_CreateAndSetControls( "", "NK_NameChange", CI_GetKeyCode("KEY_N"), 0, false );
<i>In PROGRAMseadogs.c:</i>
if(ControlName == "NK_NameChange") { ChangeName(GetMainCharacter()); }
<i>In PROGRAMCharacterscharacters_init.c:</i>
ChangeName(GetMainCharacter()); // NK, this sets mainchar name to name in ..BuildSettings.h
I want to make a `hot-key` that allows me to change my main ship's name, which can be set in BuildSettings.h (as #define SHIPNAME "", for example). The problem is that I haven't found where "ChangeName()" is defined as a function (I assume "GetMainCharacter()" is defined inside the game engine itself or something). Without knowing how it's defined, I don't know how to define my own function that will change the ship name. Any POTC code gurus out there know enough about this to help me out? I'm still digging through code and header files, trying to find this stuff, but I could <i>really</i> use a little help right now. There's a cask of rum in it for ya if you can! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/pirate2.gif" style="vertical-align:middle" emoid="

:" border="0" alt="pirate2.gif" />