.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, 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
  #2  
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
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 06:17 PM.


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