Re: Personalities.oxp
Posted: Sun Feb 13, 2011 1:39 pm
Actually it's a little more complicated than that, because the personalities can appear in multiple ways.
The relevant bit is in the file personalities.js, in lines 60-72:
In order to turn the general probability down you have to lower all three values, the
All this is true in case you jump into a new system. Personalities may also be added when you launch from the main station. The relevant code is in lines 91-103, looks very similar to the bit shown above, and again contains different ways of adding a personality, with different probabilities. Again you have to lower all three values in order to lower the overall probability while more or less maintaining the ratio of the different ways.
In my local copy, which will eventually become version 1.0, I have lowered the total probability to only 17%, quite a way down from the original 65%.
The relevant bit is in the file personalities.js, in lines 60-72:
Code: Select all
this.personalitiesAppearance = Math.random();
if(this.personalitiesAppearance < 0.25)
{
this.waitUntilSpawn = new Timer(this, this.spawnPersonality, ((Math.random() * 7) + 5));
}
else if(this.personalitiesAppearance < 0.4)
{
system.legacy_addShips("personalities", 1);
}
else if(this.personalitiesAppearance < 0.65)
{
system.legacy_addShipsWithinRadius("personalities", 1, "wpu", [0, 0, ((Math.random() * 0.6) + 0.2)], 20000);
}
0.25
, the 0.4
, and the 0.65
. Using 0.15, 0.25, and 0.4 respectively will lower the overall probability from 65% to 40%, while at the same time roughly maintaining the ratio of the different addition methods. You're free to experiment with even lower values, of course.All this is true in case you jump into a new system. Personalities may also be added when you launch from the main station. The relevant code is in lines 91-103, looks very similar to the bit shown above, and again contains different ways of adding a personality, with different probabilities. Again you have to lower all three values in order to lower the overall probability while more or less maintaining the ratio of the different ways.
In my local copy, which will eventually become version 1.0, I have lowered the total probability to only 17%, quite a way down from the original 65%.