Thursday, September 8, 2011

Turn Rules

Alright, starting to get into actual CRUNCH.

 An everyturn rule(this is the Eternal Hunger rule):
    let consume be the population of the tribe of player;
    now consume is consume times the hunger of the tribe of player;
    now consume is consume / 100;
    if consume is less than 0, now consume is 0;
    decrease food of tribe of player by consume;
    if food of tribe of player is less than 0:
        say "Your people starve without food: ";
        let x be 0 - food of tribe of player;
        now food of tribe of player is 0;
        multiply x by 100;
        divide x by hunger of the tribe of the player;
        if x is greater than 0:
            say "Casualties: [x] ";
            decrease population of tribe of player by x;
        let loss be 1;
        increase loss by x times 2;
        multiply loss by 100;
        divide loss by mood of tribe of player;
        if loss is greater than 0:
            say "Morale Loss: [loss]";
        say "[line break]";

This will get called every time the game decides a turn has passed. You lose food depending on how hungry your people generally are, and how many there are. A 50 hunger species(standard) will munch 1 food per 2 people per turn. A 20 hunger species would only nibble 1 food per 5 people, and a 200 hunger species(dude, you need a diet) would chew 2 food per person.

The people you can't feed will fall over and die, very sad. Right now, they all just die instantly. This may be unrealistic or unfair, but it's a start.

You also lose morale, no one likes seeing neighbors starve to death, not fun.