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

Encounters file

edcope

Landlubber
Hello, all. I've been fiddling around with the encounters.ini file, but can't figure a few of the lines of text out. I am trying to:

1.Alter the frequency of each type of encounter
2.Change the number and class of ships each encounter may have

This is going hand in hand with another little bit of tinkering I've been doing. Essentially, I want to change the class numbers for many of the ships, so class 4, for example, would be just large merchant vessels, 2 would be just large military vessels, 3 would be ideal for pirate ships, etc. That way merchants, pirates, and navies would use ships you'd expect them to. Any thoughts?

Thanks!
 
Give a guy a chance to respond... ;)

For frequency, here's how encounters are set up.

First, a temporary array is created, and then each encounter is checked.
If frnd() is < enc chance, the encounter is added to the array, otherwise it's skipped.
If the minrank of the encounter is > your character's level, it's skipped.
Once all encounters have been checked, a random one out of the possible ones is chosen.

So you can change the chance of an encounter, but not so directly as directly changing weighting.

2. Change the AddClasses lines.
Encounters can be different at different player levels; that's why there's more than one line for each encounter (and why some addclasses blocks start at level >1, because the encounter itself has a minrank).
Oh, NB, the game uses rank and level interchangably.
If player level is > highest level that classes were added for, the highest level is used.
The format for the line is, IIRC, level_to_use, min trade class, max trade class, min war, max war.

War and trade may be reversed, and min/max may be reversed. I don't recall offhand.
-------

You can change ship classes in the ships_init.c file, but that may have unforseen `side-effects`. Or, for that matter, forseeable but `none-the`-less undesirable ones.
Like possibly breaking Pirate Hunting or Escort quets.
 
would be nice to lower the frequency of class 1 encounters, have been thinking of doing it my self for some time since it didnt look too hard to do and was a good place to get startet with the modding.

will you give it a try edcope or should i try a some time?? would surdently be a great mod ;)
 
Back
Top