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

This Month's Specials

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

   







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

Reply
 
Thread Tools Display Modes
  #1  
Old April 25th, 2007, 06:23 AM
Meglobob's Avatar

Meglobob Meglobob is offline
Major General
 
Join Date: Sep 2006
Posts: 2,198
Thanks: 90
Thanked 32 Times in 22 Posts
Meglobob is on a distinguished road
Default The fatal flaws of scripting mages...

Currently playing in a game where R'lyeh Mind Lords & Aboleths are teleporting into my Atlantian provinces, scripted with, Body Etheral, Personal Luck, Quicken Self, Astral Shield, Breath of Winter, Attack Closet.

With this a single Aboleth or Mind Lord can defeat 25 - 30 Atlantian PD, 9 times out of ten.

Okay, fair enough, so I send out a few mages to boost the PD a little and hopefully kill a few more of the MInd Lords & Aboleths. I equip a lvl 5 water mage with 3W gems and script Summon Water, Winter Ward, Water Ward, Friendly Currents, Water Strike, cast spells.

My mage absolutely refuses to follow his script, resulting in the battle being lost. Obviously the AI is classing the single Mind Lord/Aboleth as no threat, when of course it is.

Isn't this a clear case of scripting being fatally flawed?

I believe in the future perhaps Dom 4, you should have a option of switching the AI scripting off/on. So when off it follows your spell script exactly, when on works as it presently does.

I know this as been discussed many times, but as its so annoying I thought it deserved a rehash...grrrrr....gives all the new players a chance to growl at the AI scripting as well.
Reply With Quote
  #2  
Old April 25th, 2007, 06:56 AM

Nick_K Nick_K is offline
Sergeant
 
Join Date: Oct 2006
Posts: 247
Thanks: 0
Thanked 0 Times in 0 Posts
Nick_K is on a distinguished road
Default Re: The fatal flaws of scripting mages...

The other side of the coin here, is that if you selected 'AI scripting off' for a big army, the enemy could drop 'call of the winds' on you and your mages would waste tons of gems. Then if the army is attacked in the same turn, it might be left vulnerable - I believe that's what used to happen in Doms2.
Reply With Quote
  #3  
Old April 25th, 2007, 07:44 AM
Meglobob's Avatar

Meglobob Meglobob is offline
Major General
 
Join Date: Sep 2006
Posts: 2,198
Thanks: 90
Thanked 32 Times in 22 Posts
Meglobob is on a distinguished road
Default Re: The fatal flaws of scripting mages...

Quote:
Nick_K said:
The other side of the coin here, is that if you selected 'AI scripting off' for a big army, the enemy could drop 'call of the winds' on you and your mages would waste tons of gems. Then if the army is attacked in the same turn, it might be left vulnerable - I believe that's what used to happen in Doms2.
At least you would have a choice by being able to switch it on or off and the enemy would not know wether it was on or off.
Reply With Quote
  #4  
Old April 25th, 2007, 09:03 AM
Dedas's Avatar

Dedas Dedas is offline
Lieutenant Colonel
 
Join Date: Nov 2005
Location: Lund, Sweden
Posts: 1,377
Thanks: 72
Thanked 25 Times in 20 Posts
Dedas is on a distinguished road
Default Re: The fatal flaws of scripting mages...

That seems like a nice choice to have. And with the possibility that you might screw up I think it just adds to the game.
Reply With Quote
  #5  
Old April 25th, 2007, 11:58 AM
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: The fatal flaws of scripting mages...

It sounds like a good idea but I dont know if Kristoffer would go for it.

"Your god tells you to do xxxx, xxxxx, xxxxx, xxxxx, xxxxx but in battle you decide to do it abit differently"
makes more sense thematically than
"Your god tells you to do absolutely nothing in combat"

You could make a stronger case for
"Your god tells you to do xxxx, xxxxx, xxxxx, xxxxx, xxxxx and even though it seems stupid during the battle you do it anyway because you are more afraid of angering your god than the idea of dying".

Actually, the strongest case of all would be to examine the game log and see where you feel the logic failed. The mage goes thru a huge list of spells rating them. Maybe the rating could be tweaked in a way that will work (for all nations)
__________________
-- 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
  #6  
Old April 25th, 2007, 12:19 PM

Sombre Sombre is offline
BANNED USER
 
Join Date: Feb 2007
Posts: 5,463
Thanks: 165
Thanked 324 Times in 190 Posts
Sombre is on a distinguished road
Default Re: The fatal flaws of scripting mages...

Why does it have to be god telling them what to do? Why can't the scripting just represent the mage deciding something?

This is a gameplay deal, not much to do with 'realism' or 'thematics'.
Reply With Quote
  #7  
Old April 25th, 2007, 12:21 PM

thejeff thejeff is offline
General
 
Join Date: Apr 2005
Posts: 3,327
Thanks: 4
Thanked 133 Times in 117 Posts
thejeff is on a distinguished road
Default Re: The fatal flaws of scripting mages...

And what does it mean to follow the script exactly. Should the mage cast attack spells with nothing in range? Blessings when everyone is already blessed (or no sacred units present)? Mind duel with no enemy astral mages? Etc, etc.

Better (though more developer work) would be to improve the "Is this enemy force worth wasting gems on?" logic. That seems to be where most of the problems lie.
Reply With Quote
  #8  
Old April 25th, 2007, 12:25 PM

Sombre Sombre is offline
BANNED USER
 
Join Date: Feb 2007
Posts: 5,463
Thanks: 165
Thanked 324 Times in 190 Posts
Sombre is on a distinguished road
Default Re: The fatal flaws of scripting mages...

I don't think people have a problem with the casting AI deviating if the scripted stuff isn't possible (they might, but it's certainly a lesser problem). It's more that the AI has spells scripted that are possible and entirely sensible, but decides to do its own thing anyway and gets killed.
Reply With Quote
  #9  
Old April 25th, 2007, 12:57 PM

thejeff thejeff is offline
General
 
Join Date: Apr 2005
Posts: 3,327
Thanks: 4
Thanked 133 Times in 117 Posts
thejeff is on a distinguished road
Default Re: The fatal flaws of scripting mages...

The only cases of the AI deviating that I know of come down to either not possible or gem use.
Not possible is usually not in range.

The gem use is a real problem, but I still think the better solution is to improve the "enemy strength" algorithm.

I don't like the AI scripting on/off idea.
In the original example, you could just teleport in a cheap mage with hold/hold/retreat to burn his gems if he has scripting off, followed by the Mind Lord who will slaughter them because they have no gems left. If he leaves scripting on, they don't follow the script for the cheap mage or the Aboleth and die anyway.

It just means you have to work a little hard to exploit the problem. It doesn't fix it.
Reply With Quote
  #10  
Old April 25th, 2007, 01:02 PM
Baalz's Avatar

Baalz Baalz is offline
Major General
 
Join Date: Feb 2004
Location: Houston, Texas
Posts: 2,435
Thanks: 57
Thanked 662 Times in 142 Posts
Baalz will become famous soon enough
Default Re: The fatal flaws of scripting mages...

Yeah, another example I ran afoul of in another game was the AI deciding not to "waste" blood slaves casting hell bind heart as I had scripted...after all it's just one guy they were fighting! >:/

What's especially messed up in the fight Bob's talking about is after disregarding his orders to cast friendly currents, the AI decided to go ahead and spend the gems summoning sharks. Talk about adding insult to injury. Well, at least there was a funny stalemate where the Mage of the Deep kept my frost immune (from breath of winter) aboleth permanently encased in ice while the breath of winter caused him to be surrounded by passed out militia and the only damage being dealt was "holy avenger" being triggered on the (passed out) mother of the deep by breath of winter.
Reply With Quote
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:40 PM.


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