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

Character flag...

Takeda-One

Prussian Corsair
Storm Modder
Hey folks, I tested the smuggler-cheat for an own flag and it works. Know I am thinking of a way to link the "chr.nation = iNation;
ChangeCharacterFlag(chr, iNation)" attribute to a certain flag-texture file appart from the flagall-file. Lets look into these lines: scripts/flag.c


<i>void ChangeCharacterNation(aref chr, int iNation)
{
chr.nation = iNation;
ChangeCharacterFlag(chr, iNation);

}

void ChangeCharacterFlag(aref chr, int iNation)
{
if(!CheckAttribute(chr, "nation.flag"))
{
chr.nation.flag = iNation;
}

if(sti(chr.nation.flag) != iNation)
{
chr.nation.flag = iNation;
int iLuck = sti(chr.skills.sneak);
int iFame = sti(chr.fame);

int isSucces = rand(100);
int iLuckModif = rand(12);

if(iFame < isSucces)
{
isSucces = isSucces - iFame;
}
if(iLuck < iLuckModif)
{
isSucces = isSucces - iLuckModif + iLuck;
}

if(isSucces > rand(isSucces))
{
chr.nation.flag.success = 1;
}
else
{
chr.nation.flag.success = -1;
}
}
}</i>
 
Back
Top