• 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!

editing players stats and stuff

bassman7

Landlubber
what file is the players skills, items, health etc. in? reason i ask is because i'm messing around reskining some blades and such and i'd like to see what they look like in game.
 
Easiest is to just give yourself the item with a <i>GiveItem2Character(pchar,"itemID");</i> line in PROGRAM\console.c. Do you know how the console works?
 
<!--quoteo(post=252207:date=Apr 23 2008, 12:18 PM:name=Pieter Boelen)--><div class='quotetop'>QUOTE (Pieter Boelen @ Apr 23 2008, 12:18 PM) <a href="index.php?act=findpost&pid=252207"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Easiest is to just give yourself the item with a <i>GiveItem2Character(pchar,"itemID");</i> line in PROGRAM\console.c. Do you know how the console works?<!--QuoteEnd--></div><!--QuoteEEnd-->

not really. it's pretty new to me ( that's kinda why everything is taking me a long while and i haven't contributed very much.)
 
Open console.c and find this code:<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->void ExecuteConsole()
{
    ref pchar = GetMainCharacter();
    ref ch;
    int i;<!--c2--></div><!--ec2-->Then add the code you want to add below. Example:<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->void ExecuteConsole()
{
    ref pchar = GetMainCharacter();
    ref ch;
    int i;

    // This will give the player a Conquistador
    // Find other item ID's in PROGRAM\ITEMS\initItems.c
    GiveItem2Character(pchar,"blade14");

    // This increases the player's skills to the values listed below:
    pchar.skill.Leadership = "6";
    pchar.skill.Fencing = "2";
    pchar.skill.Sailing = "2";
    pchar.skill.Accuracy = "2";
    pchar.skill.Cannons = "2";
    pchar.skill.Grappling = "2";
    pchar.skill.Repair = "2";
    pchar.skill.Defence = "2";
    pchar.skill.Commerce = "5";
    pchar.skill.Sneak = "2";<!--c2--></div><!--ec2-->
Then load your savegame and press F12 to execute the code and for the change to take effect.
 
ok thanks pieter. on aside note has anyone been able to fix the boarding problem in 14a6u2 where after everal boardings you end up getting the hamlet quote about talking to dead guys?
 
I think so. In the Alpha 8 WIP versions, we've got NEW boarding bugs. <img src="style_emoticons/<#EMO_DIR#>/danse1.gif" style="vertical-align:middle" emoid=":dance" border="0" alt="danse1.gif" />
 
yeah i know i played that verison and the one before it for a while but i got bogged down in bugs and school work so i took a break from the game. now i'm running b14a6u2
 
Back
Top