|
|
|
 |

September 8th, 2006, 09:42 PM
|
Sergeant
|
|
Join Date: Jun 2006
Location: Edinburgh, Bonnie Scotland
Posts: 226
Thanks: 0
Thanked 6 Times in 4 Posts
|
|
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...
|

September 8th, 2006, 11:12 PM
|
 |
Second Lieutenant
|
|
Join Date: Sep 2005
Location: North Carolina, USA
Posts: 403
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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 =$=
__________________
|

September 9th, 2006, 12:06 AM
|
Sergeant
|
|
Join Date: Oct 2003
Posts: 262
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
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.
|

September 9th, 2006, 04:36 AM
|
 |
National Security Advisor
|
|
Join Date: Sep 2003
Location: Eastern Finland
Posts: 7,110
Thanks: 145
Thanked 153 Times in 101 Posts
|
|
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.
|

September 9th, 2006, 03:03 PM
|
Corporal
|
|
Join Date: Jan 2004
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|

September 9th, 2006, 03:48 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
|
|
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!)
|
Thread Tools |
|
Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|