I want to create a procedurally generated history system for a game I am making, somewhat similar to Dwarf Fortress even though that's really complex. I have taken a stab at it and it didn't turn out too well. So I was wondering how should I go about creating this system? How do I make civilizations be allies, enemies, trade, go to war, control population, farm for themselves, etc. Again this doesn't have to be realistic, just make an interesting story for the player to discover about the world they are playing in.
Thanks!