Tuesday, 21 December 2010

Customer Supply

I started thinking about this as something for an Android WM variant, but it occurs to be there's an identical problem to be solved in Clonemaster. So let's talk about that instead. It'll keep me from having too many irons in the fire.

Anyway: Customer Supply.

In the game, the player starts out in a deserted base carved into an asteroid in the Belt. He needn't stay lonely for long however as the Base's planners thoughtfully included a girl-making-machine and several tons of raw biomass. All the same, there's going to come a point where the player needs to get some  supplies from outside if he's going to supply. And give, this game traces its descent back to WhoreMaster, you can probably guess how he's going to approach the problem.

Scenario:

So let's assume that the player has some girls (I'll call them Xaviera, Yvette and Zoe) and that he's activated the base's radio beacon and persuaded a passing ship to stop and, umm "trade".

What I'd Like:

What I'd like is for passing ships to dock for a few days, while the crew release long building in-flight tensions, as it were. The simplest way to do this is to say something like:

duration_table = {
    { low =   0, high =   20, days = 0 },
    { low =  21, high =   40, days = 1 },
    { low =  41, high =   80, days = 2 },
    { low =  81, high =  100, days = 3 },
    { low = 101, high =  140, days = 4 },
    { low = 141, high =  160, days = 5 },
   # and so on as desired/
}

die_roll = d100() + ship.average_horniness - ship.captain.impaitence

length_of_stay = ship_duration[die_roll].days

It says something when even the easiest way to do a thing turns out to be somewhat complicated.

Anyway, that's the easy way. Naturally, I don't want to do it like that...

No comments: