.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 January 6th, 2007, 02:23 PM

Borya Borya is offline
BANNED USER
 
Join Date: Jan 2007
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Borya is on a distinguished road
Default Re: Scripting unit\'s actions

Do you thinkg the AI will use spells through items then?

I gave one of my commanders Snake Ring (it allows to cast poison touch), put him in front, ordered to "attack closest", and tested in about 5 fights. He survived all of them, killed a lot of troops, but never used his Poison Touch.
Reply With Quote
  #2  
Old January 7th, 2007, 06:31 AM
Jack_Trowell's Avatar

Jack_Trowell Jack_Trowell is offline
Second Lieutenant
 
Join Date: Oct 2006
Location: Toulouse, FRANCE
Posts: 436
Thanks: 150
Thanked 21 Times in 13 Posts
Jack_Trowell is on a distinguished road
Default Re: Scripting unit\'s actions

If you give your unit an order to "attack", you're telling him : don't was time casting spells, just attack

With this order the unit will neitheir cast spells nor fire ranged weapons.

You could give him as orders something like 'attack one turn' (to have him advance), maybe 2 times if the commander is slow or the ennemy is far away, and then you change him tocast spells.
If the commander is not a mage and has only the item spell available, it will cast it as often as possible. Note however that with ennemy in melee range there's a chance your commander will react and attack in melee sometimes instead of casting the spell. You can also just don't give any general order to the commander after the first (up to) 5
, and let you commander decide each round what to do.
__________________
Q: "How many Vorlons does it takes to change a lightbulb ?"
A: "Yes !" <stranges noises>
--
Dominions Map validator and randomizer : http://dominions.realites.org
Dominions Map editor v0.75b : http://dominions.realites.org/map_editor
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 05:11 PM.


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