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

Ship unique

Cpt Nogo

Landlubber
I have done what is said here

"first of all, in ships_init.c file, add this string below the black pearl description

refship.canencounter = false;

this prevents the ai from adding the pearl to sea encounters, otherwise you may happen to find a merchant fleet escorted by two pearls!!


then you have to create a character. for example, in characters/init/islamona.c add the following lines

makeref(ch,Characters[n]);
ch.id = "Barbossa";
ch.name = "Barbossa";
ch.lastname = "";
ch.nation = PIRATE;
ch.model = "pirat_10";
ch.sex = "man";
ch.model.animation = "man";
ch.location = "";
ch.location.group = "";
ch.location.locator = "";
ch.rank = 60;
ch.experience = 1000000;
ch.loyality = 99;
ch.skill.Leadership = "9";
ch.skill.Fencing = "10";
ch.skill.Gun = "10";
ch.skill.Sailing = "10";
ch.skill.Tactic = "10";
ch.skill.Accuracy = "10";
ch.skill.Cannons = "10";
ch.skill.Grappling = "10";
ch.skill.Repair = "8";
ch.skill.Defence = "10";
ch.skill.Commerce = "5";
ch.skill.Sneak = "9";
ch.money = "10000";
ch.ship.type = generateship(SHIP_blackpearl, 1);

n = n + 1;

you may also edit this character's stats adn skills, and make the battle easier ot tougher. this character is the only one in the game who will sail with the pearl.
now you have to place it somewhere. to do so, you may add these lines in quests\story_line.c, below 'case "begin story line"'

Group_CreateGroup("pearl");
Group_AddCharacter("pearl", "barbossa");
Group_SetGroupCommander("pearl", "barbossa");
Group_SetTaskAttack("pearl", PLAYER_GROUP);
Group_SetAddress("pearl", "islamona", "quest_ships","quest_ship_1");
Group_LockTask("pearl");"

Then why when i look through my spyglass the captain of the pearl isn't Barbossa? :s
 
Back
Top