.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 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 10:43 AM.


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