Default UnitAI: Need some help

WarKirby

Arty person
Joined
Jul 13, 2006
Messages
5,317
Location
Glasgow, Scotland
I'm tweaking auric to be much, MUCH more powerful. And I'm trying to get the AI to use him like that.

I've made him strong enough to crush the world singlehandedly if he so chooses, but the AI is using him like a warrior.

I started a deity game. Speed quick, standard map, etc. Put myself in a little corner, and just let the world develop for 100 turns before unleashing him. most of the AIs have a neat little empire. I spawned him under control of Agares

I started Auric off on UNITAI_ATTACK. He has 10 movement and blitz, so he should have no problems getting to, and killing things. But all he did was wander around the countryside casting snowfall now and then. Never directly attacked anything, and left a trail of untouched cities in his wake. :(

So I tried changing him to UNITAI_CITY_ATTACK, and I didn't see any difference. he was still doing the same thing.

So then I tried UNITAI_CITY_ATTACK_LEMMING, which sounds like he should just attack cities no matter the odds. But he didn't. He still just wandered around casting snowfall for a bit.

Then he stumbled on a goblin fort. And decided that he should use his awesome godly power to protect that fort at all costs.

10 turns later.... he's still sitting in that fort, not moving, or doing anything.

What am I doing wrong here? Is there an ideal AI profile for this kind of unit? I just want to make him attack attack attack anything he sees. That seems pretty simple.. right?
 
You gave him to the Barbarians. They ignore most of the standard UnitAI code and just act as Barbarians primarily. Though NO world limited (or even National Limited) units should be trying to pull guard duty, unless the python code forcing that got fouled up somewhere after I had first revised it...


Anyway, if you want a unit to take a specific set of actions, you have to intercept their orders with python like the Giant Spiders do. Or get in the DLL and create a completely new UnitAI.
 
Ok, I tried giving another instance of him to the chislev. Under UNITAI_ATTACK, he took a city, but then sat in it defending.

I tried the lemming one though, and that seems to work ok. Although he rampages around taking cities, installs a new governor, then moves on, leaving it undefended. And the enemies just retake them as he goes.

Is there an AI to make him auto-raze cities? or would that have to be done as a property of the unit, like with the horsemen?
 
Back
Top Bottom