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

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







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

Reply
 
Thread Tools Display Modes
  #1  
Old October 13th, 2008, 07:28 AM
vfb's Avatar

vfb vfb is offline
General
 
Join Date: Mar 2007
Location: Japan
Posts: 3,691
Thanks: 269
Thanked 397 Times in 200 Posts
vfb is on a distinguished road
Default Re: AI and following scripts

You can run with debugging on, if you have a command prompt that would be:

dom3 -ddddddd

(Actually, I don't know exactly how many d's you need, but that's enough.)

Capture the output into a text file and search for your spell, and you'll see a bunch of other spells being evaluated too. The one with the highest score gets cast, and the spell that you've given orders to cast gets a score bonus. If the enemy is considered too weak, the debug log will tell you if it's refusing to use gems. There's not much you can do in that case.
__________________
Whether he submitted the post, or whether he did not, made no difference. The Thought Police would get him just the same. He had committed— would still have committed, even if he had never set pen to paper— the essential crime that contained all others in itself. Thoughtcrime, they called it. Thoughtcrime was not a thing that could be concealed forever.
http://z7.invisionfree.com/Dom3mods/index.php?
Reply With Quote
The Following 2 Users Say Thank You to vfb For This Useful Post:
  #2  
Old October 13th, 2008, 09:45 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: AI and following scripts

The more Ds in the debug, the more info you'll get.


Sometimes the AI refuses to cast spells because it considers the enemy army too weak to be worth investing gems on. This is necessary because ritual attacks like Call of Winds happen before normal battles, and it'd be very annoying if your mages spent all your gems on some birds instead of the enemy army that attacked you later on the same turn.

The logic isn't perfect, so sometimes you'll lose battles you'd have won if your mages had obeyed their orders.
Reply With Quote
Reply

Bookmarks


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 07:54 PM.


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