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

GiveItem2Character

mjsbew

Landlubber
First I want to say hi. I have been playing since build 10 and must say I love POTC now, anyway in build 10 and 11 I used GiveItem2Character to give me sword,spyglass, and pistol `upgrades-i` have now installed build 12 and when I use the give item cheat my game crashes any ideas what i am doing wrong?
 
<img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/hi.gif" style="vertical-align:middle" emoid=":gday" border="0" alt="hi.gif" /> <b>mjsbew, </b>and welcome aboard! Have an ale! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/beer2.gif" style="vertical-align:middle" emoid=":beer" border="0" alt="beer2.gif" />

Which file are you editing? Things have changed a bit for B12.

If you wish to give yourself different items you may do so in this way:

This is from PROGRAMCharacterscharacters_init.c -<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->makeref(ch,Characters[0]);  //Blaze Devlin

    //ch.perks.list.InstantBoarding = true;

    ch.name  = "Nathaniel";

    ch.lastname = "Hawk";

    ch.id  = "Blaze";

    ch.nation    = START_NATION; // NK `04-09`-06

    ch.model    = "Animists1"; // NK

    ch.activity_begin = "0";

    ch.activity_end = "24";

    ch.sex = "man";

    ch.luck = 4;

//    ch.spyglass.itemID = COMMON_SPYGLASS;

//    ch.gun.itemID = GUN_COMMON;

//    ch.gun = "gun";

//    ch.blade = "dagger";

//    ch.blade.itemID = BLADE_DAGGER;

//    ch.blade.time = 0.1;

//    ch.blade.colorstart = argb(64, 64, 64, 64);

//    ch.blade.colorend = argb(0, 32, 32, 32);

    ch.location    = "";

    ch.location.group = "";

    ch.location.locator = "";

    ch.Dialog.Filename = "blaze_dialog.c";

    ch.rank  = START_LEVEL; // NK

    ch.reputation = "50";

    ch.experience = intRet(sti(ch.rank) > 1, CalculateExperienceFromRank(sti(ch.rank)), 0); // NK

    ch.skill.Leadership = "1";

    ch.skill.Fencing = "1";

    ch.skill.Sailing = "1";

    ch.skill.Accuracy = "1";

    ch.skill.Cannons = "1";

    ch.skill.Grappling = "1";

    ch.skill.Repair = "1";

    ch.skill.Defence = "1";

    ch.skill.Commerce = "1";

    ch.skill.Sneak = "1";

    ch.skill.freeskill = sti(ch.rank) * 2; // NK

    ch.perks.freepoints = sti(ch.rank); // NK

    ch.money = START_MONEY; // NK

    ch.Ship.Name = "Victory";

    ch.Ship.Type = START_SHIP(); // PS<!--c2--></div><!--ec2-->The items that have a <span style='color:darkred'>//</span> in front of them are the items you wish to change. Take away the two slashes and edit the items you wish to edit, and do not replace the slashes. That should then enable when you start a new game. I believe that should work for you.

If you wish to edit ship and starting money you can do so by looking in PROGRAMBuildSettings.h - instructions on how to tweak the mods are also in this file.

As always, make sure you are making these changes with a simple text editor like Notepad. Word or Wordpad will add invisible characters to your document that will screw up the game.

Hope that helps! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/onya.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="onya.gif" /> And again, welcome aboard! <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/par-ty.gif" style="vertical-align:middle" emoid=":cheers" border="0" alt="par-ty.gif" />
 
You can also still add GiveItem2Character lines, but you must be sure the item ID is correct (as Scheffnow/Sailor Al's Weapon Mod is enabled by default) and to put it in the right place in the file.
 
I used the GiveItem2Character command in the both_reation file to give you your fists at the very beginning of the game. This should also work for other items.
 
Back
Top