.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Air Command 3.0- Save $12.00
War Plan Pacific- Save $7.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening

Reply
 
Thread Tools Display Modes
  #1  
Old September 8th, 2006, 09:42 PM

Archonsod Archonsod is offline
Sergeant
 
Join Date: Jun 2006
Location: Edinburgh, Bonnie Scotland
Posts: 226
Thanks: 0
Thanked 6 Times in 4 Posts
Archonsod is on a distinguished road
Default Re: Spell Casting AI

Presumably Fat refers to the fatigue incurred for casting, Boost is the bonus gained by gem use, vis looks like LOS or potential targets.
Unfortunately, it's not clear to me how it's coming up with the final scores. It looks like it's automatically discarding spells which you can't cast (either through magic picks or range etc) with those -1 results. It looks like it assigns a point value based on targets hit & damage or effect (for offensive spells) and effect on self for buffs (I would assume the point values are assigned, i.e. slowing the opponent is worth 2 points). Problem is, we can't see the calculation it then uses for the final score (so we don't know how much fatigue and gem use factor into the calculation).
The interesting thing is, it looks like it's thinking about using a gem to cast Summon Earthpower...
Reply With Quote
  #2  
Old September 8th, 2006, 11:12 PM
BigJMoney's Avatar

BigJMoney BigJMoney is offline
Second Lieutenant
 
Join Date: Sep 2005
Location: North Carolina, USA
Posts: 403
Thanks: 0
Thanked 0 Times in 0 Posts
BigJMoney is on a distinguished road
Default Re: Spell Casting AI

Quote:
Archonsod said:
The interesting thing is, it looks like it's thinking about using a gem to cast Summon Earthpower...
I don't read it that way. I think it's coincidence that they are adjacent to each other. For example, if he had a different favored spell, it would still say (mayusegems1). It might be there is a way to set (mayusegems 0) so that they never use any gems at all.

=$= Big J Money =$=
__________________
Reply With Quote
  #3  
Old September 9th, 2006, 12:06 AM

Wick Wick is offline
Sergeant
 
Join Date: Oct 2003
Posts: 262
Thanks: 1
Thanked 0 Times in 0 Posts
Wick is on a distinguished road
Default Re: Spell Casting AI

The "mayusegems 1" at the top probably is 1 = true, 0 = false and since it's true he's checked for gem use for every spell at "boost xx scoreat x". I also think the scoreat 0 means he doesn't actually have any gems.

I still think we are seeing the easy part. How does it set the relative score for Ironskin at 1003, Quicken at 768, Flying Shards 7, and so on?

A different point is that this routine could probably be speeded up a lot by checking the favored spell first and stopping if it works (favored is +100000!) and setting mayusespells to 0 if the commander doesn't have any.
Reply With Quote
  #4  
Old September 9th, 2006, 04:36 AM
Endoperez's Avatar

Endoperez Endoperez is offline
National Security Advisor
 
Join Date: Sep 2003
Location: Eastern Finland
Posts: 7,110
Thanks: 145
Thanked 153 Times in 101 Posts
Endoperez is on a distinguished road
Default Re: Spell Casting AI

Quote:
Archonsod said:
Presumably Fat refers to the fatigue incurred for casting, Boost is the bonus gained by gem use, vis looks like LOS or potential targets.
Also, Dominions magic system is heavily influenced by Ars Magica role-playing system. In Ars Magica, everyone plays a mage, magus, and there's this beautiful system which allows very liberal use of magic, and beautifully described spells. I'll take Arcs of Fiery Ribbons and Ball of Abysmal Fire over Scorching Ray and Fireball any time of the day. Ars Magica also had rules for how auras of different powers (Fae, Infernal, Dominion of God, and Magic) interact with the world...

Any way, magic "gems" were called Vis in Ars Magica. Further:
Not enough vis for Summon Lesser Earth Elemental

It fits.
Reply With Quote
  #5  
Old September 9th, 2006, 03:03 PM

Sindai Sindai is offline
Corporal
 
Join Date: Jan 2004
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Sindai is on a distinguished road
Default Re: Spell Casting AI

Hehe, looks like the system already works the way I said would be nice in the Dom2 forum. I guess the evaluation functions just aren't as rigorous as they could be.
Reply With Quote
  #6  
Old September 9th, 2006, 03:48 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: Spell Casting AI

Well once the new release settles in we can always make suggestions. We would probably need to examine other combat samples than just this one.
__________________
-- 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
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 10:13 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.