View Single Post
  #18  
Old January 7th, 2007, 02:58 PM
Jack_Trowell's Avatar

Jack_Trowell Jack_Trowell is offline
Second Lieutenant
 
Join Date: Oct 2006
Location: Toulouse, FRANCE
Posts: 436
Thanks: 150
Thanked 21 Times in 13 Posts
Jack_Trowell is on a distinguished road
Default Re: Gandalf\'s Crazy Solo Games

I've just finished making a conversion of your script in Perl.

(note : the perl module Math::Random is needed, easy to install on Windows with activeperl)

As you were using the same code in lots of places (mainly for commander generation + bodyguards and/or squads of units), I made a function to centralize that, so it should be easier to change numbers/probabilities with the version.

I plan to add some more features in the near future, such as a parsing of the original file (to get the number of province and other infos), and maybe a separate config file (maybe in XML)

Edit : updated attachment with latest version
Attached Files
File Type: rar 485189-gpmap.rar (2.7 KB, 108 views)
__________________
Q: "How many Vorlons does it takes to change a lightbulb ?"
A: "Yes !" <stranges noises>
--
Dominions Map validator and randomizer : http://dominions.realites.org
Dominions Map editor v0.75b : http://dominions.realites.org/map_editor
Reply With Quote