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

Govenor Message

Cep

Landlubber
Hello,

I notice that a few people have been complaining about a rather garbage message that appears when a colony is attacked by an NPC nation. Its also been a pet annoyance of mine and I have found the script that affects this.

Edit programs/interface/AskForHelp.c

Find,

void CalculateInfoData()

And edit the lines,

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->
void CalculateInfoData()
{
    
    
    int iHelp = sti(pchar.quest.Fight_forOtherColony_temp.help);

    int iEnemy = sti(pchar.quest.attack_other_fort.enemy);
    int iNation = sti(pchar.quest.attack_other_fort.nation);
    string sColony = pchar.quest.attack_other_fort.colony;
    
    if (iHelp == 2)
    {
        totalinfo = "HELLO " + XI_ConvertString(GetNationNameByType(iEnemy) + "Gen") + " YOUR SEXY " + (10000 + sti(pchar.skill.commerce)*500) + " OH YES.";
        pchar.quest.Fight_forOtherColony_temp.help = 0;
    }
    else
    {
        totalinfo = "Lookout reports that " + XI_ConvertString(GetNationNameByType(iEnemy) + "Gen") + " is attacking the " + XI_ConvertString(GetNationNameByType(iNation)+"Dat") + " fort.";
    }

    SetCurrentNode("B_OK");
}
<!--c2--></div><!--ec2-->

I haven't quite figured out what the top part of the if statement is doing yet, the bottom part appears to be where you sail into a port and its under attack by friendly and neutral forces (I have a funny story about that in another thread).
 
Good werk thar, matey! <img src="style_emoticons/<#EMO_DIR#>/onya.gif" style="vertical-align:middle" emoid=":onya" border="0" alt="onya.gif" />
 
Just a quick update, I got the message the wrong way around change the statement to,

<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->
totalinfo = "Lookout reports " + XI_ConvertString(GetNationNameByType(iEnemy) + "Gen") + " is under attack from " + XI_ConvertString(GetNationNameByType(iNation)+"Dat") + ".";
    }
<!--c2--></div><!--ec2-->
 
Back
Top