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

This Month's Specials

The Star & the Crescent- Save $9.00
winSPWW2- Save $6.00

   







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

Reply
 
Thread Tools Display Modes
  #1  
Old January 5th, 2007, 04:54 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 Scripting unit\'s actions

It's great that one can script unit's actions. However, when i tried to "prepare" a set of spells for my mage i discovered there was a limit on how much commands i could assign.

Is it possible to script more than 5 actions, like (Mirror Image)(Ame)(Ame)(Ame)(Ame)(Summon Air Elemental)(Aim) and so on, or the limit can't be bypassed?
Reply With Quote
  #2  
Old January 5th, 2007, 05:10 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: Scripting unit\'s actions

Nope.
Probably we should get out of the habit of calling it "scripting". Its more like your pretender making suggestions. The mage can still make decisions different than you have scripted based on what he sees when he gets into the fight. And apparently the only suggestion you can give after 5 rounds of combat is a very general thing.
__________________
-- 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!)
Reply With Quote
  #3  
Old January 6th, 2007, 12:00 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

Are there any spells which AI will never cast normally (by default)?

For example there's a 0-level spell Freezing Touch, which my mages will never use even if they are surrounded by hostile units, and even if they don't know any other spells.
Reply With Quote
  #4  
Old January 6th, 2007, 12:28 PM
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: Scripting unit\'s actions

I doubt it's not that AI never uses them, but that the mages were either unconscious, unable to cast spells due to being in melee, or having access to some other spell they would rather cast.

I've seen Hand of Death kill my group of sacred knights that went straight for enemy mages, against AI, so everything is possible.
Reply With Quote
  #5  
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
  #6  
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:29 PM.


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