.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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old September 28th, 2010, 09:23 AM
WraithLord's Avatar

WraithLord WraithLord is offline
General
 
Join Date: Sep 2003
Location: Tel Aviv, Israel
Posts: 3,465
Thanks: 511
Thanked 162 Times in 86 Posts
WraithLord is on a distinguished road
Default Battle AI hooks

AI hooks

I think no explanations are required re. how poor is the battle AI (and AI in general…).
Some notable examples:
- Mages refusing to cast scripted key winning spells
- Mages casting utter rubbish, like spamming protection on some militia instead of sleep to fatigue SCs, casting encase in ice million times on units already encased etc.
- Big formations just clog instead of spread thus dying slowly to a few SCs

It’s also well known that IW would never improve the AI but what if they were to do this relatively small effort to install hooks into their battle AI source code so that we could mod the AI. I’ll explain what I have in mind by way of example, (changed pseudo code in bold font):
- New mod command: #prioritize_spell_2_cast_hook $DOM_INSTALL_HOME/mods/ prioritize_spell_2_cast_hook.py
- In the belly of the source code leviathan where lies the code to decide which spell to cast, perhaps something like:
o Get list of targets
o Get list of available spells
o If isDefined(prioritize_spell_2_cast_hook ) then call prioritize_spell_2_cast_hook else Rank spells
o Sort ranked spells
o dequeue spell from list of spells

Motivation:
- Make battles more interesting
- Make mages vs. SCs more viable. right now the SCs take full advantage of the 5 slot script. The AI likes to buff so they'll always manage to buff while mages are at mercy of the AI
- Rarely researched/used spells will become more important/frequent
- Allow us to mod cool stuff like: black list spells and more

Opinions?
Reply With Quote
The Following User Says Thank You to WraithLord For This Useful Post:
 

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:31 AM.


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