Hello everybody, I got the idea to code the "malédiction", like this, with the Blackpearl you get normal crew at night and skeleton at day. You've just to open LAi_Boarding.c and add these files:
ref mchr = GetMainCharacter();
int mclass = GetCharacterShipClass(mchr);
int mcrew = GetCrewQuantity(mchr);
//===============>>==
bool bGenQuest.CrewSkelMode = false;//<<==Si bloqué marche pas, toujours squelettes
int st = GetCharacterShipType(mchr);
int iShipType = sti(RealShips[st].basetype);
if(ShipsTypes[iShipType].name == "Blackpearl")
{
if(GetTime() > 6.0 && GetTime() < 23.99)
{
mchr.GenQuest.CrewSkelMode = true;
}
}
//===============<<==
// Saving enemy captain rank for future use in CalculateAppropriateSkills (Gray 12.02.2005)
mchr.EnemyRank = echr.rank
and this
if (i == 0 && CheckAttribute(&Locations[locIndex], "CabinType"))
{
//==================>>=========
DeleteAttribute(mchr, "GenQuest.CrewSkelMode");
//==================<<=========
ChangeAttributesFromCharacter(chr, boarding_enemy, true);
Caution: I get an error.log cause the line : bool bGenQuest.CrewSkelMode = false; but if I delete it it doesn't work, I get skeleton even if character change ship. With this line game works fine.
ref mchr = GetMainCharacter();
int mclass = GetCharacterShipClass(mchr);
int mcrew = GetCrewQuantity(mchr);
//===============>>==
bool bGenQuest.CrewSkelMode = false;//<<==Si bloqué marche pas, toujours squelettes
int st = GetCharacterShipType(mchr);
int iShipType = sti(RealShips[st].basetype);
if(ShipsTypes[iShipType].name == "Blackpearl")
{
if(GetTime() > 6.0 && GetTime() < 23.99)
{
mchr.GenQuest.CrewSkelMode = true;
}
}
//===============<<==
// Saving enemy captain rank for future use in CalculateAppropriateSkills (Gray 12.02.2005)
mchr.EnemyRank = echr.rank
and this
if (i == 0 && CheckAttribute(&Locations[locIndex], "CabinType"))
{
//==================>>=========
DeleteAttribute(mchr, "GenQuest.CrewSkelMode");
//==================<<=========
ChangeAttributesFromCharacter(chr, boarding_enemy, true);
Caution: I get an error.log cause the line : bool bGenQuest.CrewSkelMode = false; but if I delete it it doesn't work, I get skeleton even if character change ship. With this line game works fine.