HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Making smart creeps?

11-20-2007, 05:35 PM#1
cohadar
Ok so I have a creep with 3 different abilities.
And I want him to use those abilities against heroes in a smart way.

Is there some standard good way to do this?
11-20-2007, 05:47 PM#2
rain9441
No easy way, I got a system thats a WiP that does exactly this though... Its very very complicated, you can see a demo of it if you want...

http://wc3campaigns.net/pastebint.ph...bc5abb981d0386
11-20-2007, 06:13 PM#3
cohadar
Perhaps attaching AutocastDemo2Interface.j as well?
11-20-2007, 06:58 PM#4
moyack
The best way IMO is creating the custom abilities based on ones which have the respective AI behavior.

For example, if you want to do an instant spell that will be activated when the unit is surrended by enemies, you should base it on War Stomp or Thunder Clap. and so on.

If you put the abilities descriptions, I can suggest you what base abilities are the most appropriate to base on.
11-20-2007, 10:02 PM#5
vesuvan doppleganger
Instead of giving each creep an AI trigger or timer, just make a timer for each hero that checks every 3 seconds(the possible delay will make it feel more random and organic) for nearby creeps that are in the "castercreeps" group.
11-20-2007, 10:45 PM#6
cohadar
Quote:
Originally Posted by vesuvan doppleganger
Instead of giving each creep an AI trigger or timer, just make a timer for each hero that checks every 3 seconds(the possible delay will make it feel more random and organic) for nearby creeps that are in the "castercreeps" group.

Really nice idea.