Sign in to follow this  
  • entries
    90
  • comments
    66
  • views
    72444

Last Logical Hurdle Solved

Sign in to follow this  
Tesseract

200 views

I have spent the past couple of weeks (off and on) beating my head against the last logical issue in my game. Here is the breakdown:

o Village population is the sum of every inhabitant in the village.
o Type "villager" is an un-assigned NPC which has minimal impact on production and consumption of goods, although will generally consume more than produce.
o Villagers can be assigned to be either "Miners" or "Farmers".
o Villagers assigned as Miners or Farmers can be arbitrarily re-assigned as Villagers, or switched between the two roles.
o Other specialists - Herbalist, Trader, etc - are hired from new arrivals at the village. Basically they come looking for a job.
o All inhabitants, other than Villagers, have prerequisites, based on general population, or of numbers of specific other specialists.

And here lay the problem:

o Some types are converted into other types (Villagers can be turned into Farmers) and some types are opened by certain criteria (If you have 25 Villagers you may have the opportunity to hire a Trader). Call these two options "Evolve" and "unlock"

I realized a couple of days ago I was making things too complicated by requiring that there be a certain number of unassigned Villagers available in order to unlock some of the other roles. So now there need only be a certain overall population in order to unlock those roles which are made available based on population. This also made another piece easier: Having a certain ration of different specialists to overall population; e.g. there can only be one Accountant per 250 villagers.

Also, once a villager is assigned a role (farmer | miner), that villager stays in that role permanently. No more switching. In order to account for bad rolls of the dice at the beginning, the game will start with a small stash of food and salt, so everyone doesn't starve to death on turn 3.

Wow. For a simple game - which this is - the design is a lot more complicated than I thought it would be.
Sign in to follow this  


2 Comments


Recommended Comments

It's not complicated; Population is just a stat and some rules are based on that. The implementation might be harder but the way it is it should be pretty obvious for the player.

Share this comment


Link to comment
True. It is not complicated now. But it took a lot of work to make it not complicated.

As Rudyard Kipling one wrote, "Sorry this is such a long letter, but I didn't have time to write a short one."

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now