.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 May 22nd, 2012, 06:18 PM

JonBrave JonBrave is offline
Second Lieutenant
 
Join Date: Aug 2010
Posts: 546
Thanks: 100
Thanked 10 Times in 8 Posts
JonBrave is on a distinguished road
Default Re: Quick scripting question

As I learnt recently, if you script to cast a spell and it can't be cast (e.g. insufficient level or gems, or already cast), the mage will "substitute" not "skip". So you could do that in the script and hope he will pick a newly discovered spell...
Reply With Quote
  #2  
Old May 22nd, 2012, 08:23 PM

krpeters krpeters is offline
Second Lieutenant
 
Join Date: Dec 2006
Posts: 564
Thanks: 1
Thanked 10 Times in 7 Posts
krpeters is on a distinguished road
Default Re: Quick scripting question

Keep in mind that "substitute" means "commit suicide" whenever possible.

For example, an Eagle King casting Ironskin on his own, then frying himself with Shock Wave.
Reply With Quote
The Following User Says Thank You to krpeters For This Useful Post:
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 11:08 AM.


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