View Single Post
  #70  
Old January 24th, 2009, 12:32 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: Curious about Dominions? how the AI thinks? which AI is best/worst?

The AI wasnt built to do well with lots of "if" in it. And the code for such would be pretty intensive. For instance, in your example there would be many things to affect the selection of Order so the sequence would have to be well tested.

Personally Id rather see better AI impacting the hosting portion than the setup portion. Hosting lag is easier to live with for some reason.

But it wouldnt be difficult to do if someone wanted to create such an AI. Ive attempted a couple of times and got bored. If someone wants to develop the logic-tree for it then it would be really simple to create a stand-alone program to add it.

Here is an example of a god-build for mid-Pangaea (nation 40) which I did for SemiRand:
Code:
#god 40 1026 -- Carrion Dragon
#comname "Komm Poast"
#allies 40 26 -- likes to ally with Oceania if they are both AI
#allies 40 48 -- likes to ally with Oceania if they are both AI
#allies 40 11 -- likes to ally with early_Pangaea if they are both AI
#allies 40 61 -- likes to ally with late_Pangaea if they are both AI
#clearmagic
#mag_death 2 -- needed for Pangea spells and a bless
#mag_nature 3 -- needed for Pangea spells and a bless
#mag_blood 1 -- good combo with the above and a bless
#additem "Treelord's Staff" -- 2 more nature
#additem "Skullface" -- helmet with 1 more death and support
#additem "Armor of Souls" -- armor and 1 more blood
#additem "Boots of Stone" -- he will lose armor boots and staff in shape change
#additem "Brazen Vessel" -- misc slot and 1 more blood
#additem "Ring of Sorcery" -- 1 death and 1 nature and 1 blood
#dominionstr 40 6
#scale_chaos 40 3
#scale_lazy 40 3
#scale_cold 40 -1
#scale_death 40 -3 
#scale_unluck 40 -3
#scale_unmagic 40 -3
This one is more extensive than is needed for an example but I had it laying around. It simply gets appended to the end of the .map file. A program could easily duplicate the .map file, change the name slightly, generate and append the AI god-builds, then start the game.
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote