Jump to content


Photo

How to make the AI use/purchase spells?


  • Please log in to reply
2 replies to this topic

#1 Ultim

Ultim
  • New Members
  • 4 posts

Posted 06 September 2006 - 09:04 PM

First off, sorry if this has already been covered in another topic. I haven't had a lot of free time lately to browse/search around...

Anyway, has anyone found a way to make the AI use it's bought spells? During games I've only notice the AI using the first tier spells... even on Brutal. I miss the days when you could find a balrog landing in your base ripping it up. Nothing like that or the AOD to turn the battle around.

I've only just started messing around with modding the game, so hopefully it isn't too difficult. Any suggestions?

Cheers,

Ultim

#2 gansnudel

gansnudel
  • Members
  • 25 posts

Posted 06 September 2006 - 09:37 PM

Well the sad truth is that most of the stuff is bugged. I fixed it all up in my mod, which you can find here:

http://mevault.ign.c...2...tail&id=186

Spell purchasing is handled by the scripts in AI_spell_execution.map, which you find in libraries.big. The scripts are pretty selfexplanatory, but lots of them(almost all) have errors in the unmodded version, which leads to the AI not purchasing all spells.

The actual casting is handled in system.ini in ini.big with stuff like this:

Behavior = AISpecialPowerUpdate SpellBookWarChantAI
		CommandButtonName = Command_SpellBookWarChant
		SpecialPowerAIType = AI_SPELLBOOK_ASSIST_BATTLE_BUFF
		SpecialPowerRadius = 100
	End

Again a lot of the stuff doesn´t work well and some are just plain missing. I think I named all the missing ones in the readme of my mod.

The one spell I still haven´t been able to get to work is the scavenger power of the goblins. It gets bought correctly, because the spell purchasing script advances, but it doesn´t seem to get activated even though it´s a passive power. Any ideas?

Edited by gansnudel, 06 September 2006 - 09:44 PM.


#3 Ultim

Ultim
  • New Members
  • 4 posts

Posted 07 September 2006 - 03:00 AM

Hey thanks for the tips and the link to your mod! I'll download it and give it a try.

Ultim

:D




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users