proof of concept (fully functional)
It’s easy to get the EV: Nova engine to choose between two things with equal probability—just use the R operator in a Set expression. By induction, it’s not too hard to get any fraction whose denominator is a whole power of 2. But to choose among three things with equal probability, that’s much trickier.
You could use a crön with a 33 or 34 percent chance of firing, but that requires a day to pass each time you want to trigger the effect. You could use a mïsn with a 33 or 34 percent chance of being offered, but that requires the player to land and it prevents other random missions from being offered. Plus those are still just approximations of an even split at 33:33:34 ratios.
We really want something that can go in any Set expression and will choose among three options with uniform probability. Here is my proof of concept plug-in: PerfectThirds.zip (37K)
Number of downloads: 3
Using it, go to any outfitter and buy the Perfect Thirds outfit. This will randomly grant one of three other outfits. Although this demonstration involves landing and buying an outfit, the methodology could be applied to any Set expression and it would work just fine. It could be done when observing a mission ship, when completing a mission, or even from a crön.
I set the Perfect Thirds outfit to have a maximum of 30,000. However, buying that many all at once may take a few seconds to process. On my computer it takes around 5 seconds. Buying a few hundred or even a thousand at a time you shouldn’t notice any delays though.
Edit: Fixed a bug.
This post has been edited by Qaanol : 10 February 2011 - 07:58 AM