online games, multiplayer games
Simcountry is an Online Digital World where you are the President of a country.
No download needed!
What is Simcountry?
Beginners Info
What is Simcountry?

Contract mechanics improvement? (Kebir Blue)

Simcountry: Simcountry Bulletin Board  Contract mechanics improvement? (Kebir Blue)

Imprudent Spender (Kebir Blue)

Thursday, November 11, 2004 - 04:14 pm Click here to edit this post
Weird error ate the end of that message. Looks like you can't use greater-than and less-than characters here.

It should conclude:

Can the code on the multi-corp contract-signing page be changed so that when the sign-contract request is made:

(1) if offered supply -lessthan- demand, the contracts for that commodity are spread out proportionally among consumers

(2) if offered supply -greaterthan- demand, the contracts are distributed proportionally among producers (for those commodities offered by more than one producing corp.)

The determination of which situation is easy enough:

for commodity C,
with "supply" S(C) (i.e. quantity offered in contracts)
"demand" D(C) (i.e. quantity requested in contracts)
and N(C) corps offering commodity C

if ( S(C) / D(C) ) -lessthan- 1

/* sign contracts for ( S(C)/D(C) * monthly consumption) -- i.e. only a portion of each consumer's request */

else if (N(C) -greaterthan- 1)

/* sign contracts only up to D(C)/S(C) of offers -- i.e. only a portion of each producer's offer */


/* sign contracts as currently done */

This would both be more sensible and also save a fair bit of time, as it is tedious trying to "approximate" this effect manually by multiple offers & signups.

Simcountry Introduction