View Single Post
  #2  
Old February 22nd, 2012, 08:53 PM

elmokki elmokki is offline
Second Lieutenant
 
Join Date: Aug 2008
Posts: 408
Thanks: 11
Thanked 209 Times in 57 Posts
elmokki is on a distinguished road
Default Re: UnitGen - Random nations with procedural sprites!

23th of Feb version up.

I worked quite a bit on filters that go through units and give them stuff if they fulfill the requirements. Currently there's nothing very noticeable with this since filters are handling just bonus weapon and dual wielding generation, but those two have both changed.

Dual wielding can now convert any unit to a dualwielder instead of turning shields to onehanded weapons. This makes the 5% dual wield chance higher in effect and I'll have to consider lowering it if it generates dual wielders for nations without primitive / dualwielding / berserking tags too often.

Bonus ranged weapon generation algorithm has been changed. Nations posses a bonus weapon affinity now, which is from 0 to 1. Currently it's given completely randomly, but I'm fairly sure I'll make some tags affect this as well as possibly giving extra affinity to such bonus ranged weapons that suit the national tags. Bonus weapon affinity determines two things. How heavy units can get bonus weapons and what weapon-shield configurations can get them. Currently with an affinity of 1 you'll probably see tons of bonus weapons, but the heaviest possible units still won't get them. Also some bonus weapons (chakrams and sticks & stones) have additional limitations and standards ignore the affinity completely, but have a limit in generateability. This feature is something that will recieve tweaks at some point since it still is far from perfect.

I've also worked on trimming nation unit rosters since obviously every human nation won't have 4 ranged, 1 chariot, 4-9 infantry and 2-4 horsemen. Currently nations get 8 to 13 units if I recall correctly. This'll get heavy tweaks - currently it's a very rough algorithm, but in general generates fairly good lineups.

Elitefying some units is pretty much an obvious next step since that is heavily tied with filters. That does need a bit of extra work compared to just adding filters though.
__________________
UnitGen - randomly generated nations with randomly generated sprites
http://forum.shrapnelgames.com/showthread.php?t=48341
Reply With Quote