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

Need Help Make Surprise Unique?

Luffy

Pirate King
hey is it possible to make the Surprise only be one in the game, so that i can use it as my starter ship. and no npc or whatever, can use this ship?
 
You can probably find her PROGRAM\Ships\ships_init.c and set CanEncounter and CanBuy to false .
 
Just checked in CoAS and it does have the CanEncounter line there, but not CanBuy.
 
Was looking at this because I'm trying to do something related (add a ship to encounters or shipyard since it is in the ship_init.c but I haven't seen it ingame), and the CanEncounter line is only found in quest ships, so I presume the line is considered default true if not present on a particular ship.

Just add line

CanEncounter = False above the HP and SP lines, should work.
 
Was looking at this because I'm trying to do something related (add a ship to encounters or shipyard since it is in the ship_init.c but I haven't seen it ingame), and the CanEncounter line is only found in quest ships, so I presume the line is considered default true if not present on a particular ship.
I do believe that is true. That is how it is coded in PotC as well. :yes
 
Was looking at this because I'm trying to do something related (add a ship to encounters or shipyard since it is in the ship_init.c but I haven't seen it ingame), and the CanEncounter line is only found in quest ships, so I presume the line is considered default true if not present on a particular ship.

Just add line

CanEncounter = False above the HP and SP lines, should work.
cheer's:cheers
 
Was looking at this because I'm trying to do something related (add a ship to encounters or shipyard since it is in the ship_init.c but I haven't seen it ingame), and the CanEncounter line is only found in quest ships, so I presume the line is considered default true if not present on a particular ship.

Just add line

CanEncounter = False above the HP and SP lines, should work.
like this?

= 50;
refShip.BoardingCrew = 50;
refShip.GunnerCrew = 20;
refShip.CannonerCrew = 50;
refShip.SailorCrew = 100;
refShip.SpeedRate = 12.8;
refShip.TurnRate = 26.0;
refShip.Price = 110000;
if(!RTBL) // = If RTBL is NOT enabled
CanEncounter = False
{
refShip.HP = 1000;
}
else // = If RTBL IS enabled
{
refShip.HP = 1000;
}
 
Put it above that if(!RTBL) // = If RTBL is NOT enabled line. Otherwise I think you'll get the game well confused. :wp
 
like this?

= 50;
refShip.BoardingCrew = 50;
refShip.GunnerCrew = 20;
refShip.CannonerCrew = 50;
refShip.SailorCrew = 100;
refShip.SpeedRate = 12.8;
refShip.TurnRate = 26.0;
refShip.Price = 110000;
if(!RTBL) // = If RTBL is NOT enabled
CanEncounter = False
{
refShip.HP = 1000;
}
else // = If RTBL IS enabled
{
refShip.HP = 1000;
}

Sorry, made a mistake, think the line should be refship.CanEncounter = False
 
Yes, that too! :onya

So it should look like:
Code:
refShip.BoardingCrew = 50;
refShip.GunnerCrew = 20;
refShip.CannonerCrew = 50;
refShip.SailorCrew = 100;
refShip.SpeedRate = 12.8;
refShip.TurnRate = 26.0;
refShip.Price = 110000;
refShip.CanEncounter = false;
if(!RTBL) // = If RTBL is NOT enabled
{
refShip.HP = 1000;
}
else // = If RTBL IS enabled
{
refShip.HP = 1000;
}
Note also the ; at the end of that line.
 
Yes, that too! :onya

So it should look like:
Code:
refShip.BoardingCrew = 50;
refShip.GunnerCrew = 20;
refShip.CannonerCrew = 50;
refShip.SailorCrew = 100;
refShip.SpeedRate = 12.8;
refShip.TurnRate = 26.0;
refShip.Price = 110000;
refShip.CanEncounter = false;
if(!RTBL) // = If RTBL is NOT enabled
{
refShip.HP = 1000;
}
else // = If RTBL IS enabled
{
refShip.HP = 1000;
}
Note also the ; at the end of that line.
so use this? one? Exactly as it is?
 
Should work as far as I can tell. Basically, just add that one line above if(!RTBL) .
 
Back
Top