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!
Quick links for Beyond New Horizons
- Download latest version
- Wiki
- FAQ
- Report bugs here
- Bug Tracker on Github
Quick links for Maelstrom
- Download the latest version of Maelstrom
- Download the latest version of ERAS II
- Download the latest version of New Horizons on Maelstrom
Quick links for PotC: New Horizons
- Download latest version
- Wiki
- FAQ
- Report bugs here
Thanks to YOUR votes, GOG.com now sells:
- Sea Dogs
- Sea Dogs: Caribbean Tales
- Sea Dogs: City of Abandoned Ships
Vote now to add Pirates of the Caribbean to the list!
Quick links for AoP2: Gentlemen of Fortune 2
- Downloads and info
- ModDB Profile
- Forums Archive
A Pirate Podcast with Interviews
Music, Comedy and all things Pirate!
- Episode Guide - About - Subscribe -
- Twitter - Facebook - iTunes - Android -
- Youtube - Fill the Coffers -
She won’t be Spanish, rest assured.It might be Spanish there, but it’s just to get them spawned for testing.
refShip.period.0 = 0
refShip.period.1 = 0
refShip.period.2 = 0
refShip.period.3 = 0
refShip.period.4 = 0.6
refShip.period.5 = 0.2
refShip.england = 0.5
refShip.france = 0
refShip.holland = 0
refShip.portugal = 0
refShip.pirate = 0
refShip.spain = 0
refShip.america = 0
void SetRandomNameToShip(ref rCharacter)
{
...
if (rShiptype == "BlackPearl") {
rCharacter.Name = "Hector Barbossa"
rCharacter.id = "Barbossa"
rCharacter.model = "Barbossa"
rCharacter.nation = PIRATE
rCharacter.FaceId = 78
rCharacter.Flags.Personal = 2
rCharacter.Flags.Pirate = 0
}
...
void Fantom_SetRandomModel(ref rFantom, string sFantomType)
{
...
bool override = false
//int iShip = GetCharacterShipType(rFantom)
//ref rShip = GetShipByType(iShip)
if (rFantom.Ship.Type == "BlackPearl") {
override = true
rFantom.Ship.Name = "Black Pearl"
rFantom.Name = "Hector"
rFantom.LastName = "Barbossa"
rFantom.ID = "Barbossa"
rFantom.Model = "Barbossa"
rFantom.Nation = PIRATE
rFantom.FaceId = 78
rFantom.Flags.Personal = 2
rFantom.Flags.Pirate = 0
SetModelfromArray(rFantom,GetModelIndex("Barbossa"))
}
if (rFantom.Ship.Type == "HMS_Victory") {
override = true
rFantom.Ship.Name = "Victory"
rFantom.Name = "Horatio"
rFantom.LastName = "Nelson"
rFantom.ID = "Cpnnelson"
rFantom.Model = "Cpnnelson"
rFantom.Nation = ENGLAND
rFantom.FaceId = 103
rFantom.Flags.Personal = 20
SetModelfromArray(rFantom,GetModelIndex("Cpnnelson"))
}
// Original function...
if (override == false) {
string mAni = Models[GetModelIndex(sModel)].ani;
string mSex = Models[GetModelIndex(sModel)].sex;
float mHeight = stf(Models[GetModelIndex(sModel)].height);
SetModel(&rFantom, sModel, mAni, mSex, mHeight, false);
}
}
void SetCoastTraffic(string islandstr)
{
...
ref cr = CharacterFromID(chrstr + (i+j));
...
bool bDead = CharacterIsDead(cr);
bool bDead;
if (CheckAttribute(cr, "index")) {
bDead = CharacterIsDead(cr);
}
else {
bDead = true;
}
Why would you want to change a character ID?By changing an existing NPC’s ID
I can't really think of any situations where you need to change the ID.That’s what I was doing to get these guys spawned in their ships. Maybe I don’t need to do that, I dunno.
Simplest would be to just define your entire characters with their ships and character stats and maybe even ship stats in the character init files.I think I need to make new characters and forcibly replace the captain.
I was thinking more along the lines that if you define the character with ship stats in the character init files, you may not need to define a whole new ship.I don’t see why I would need to do anything about the attributes outside of ships_init since the above ships are already defined and there would be nothing to change.