HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

AI Question

01-31-2009, 05:08 PM#1
Zyrixion
I've been lazily working on a survival map for a bit, and have hit the wall of not knowing a good/reliable way to have hordes of creeps hunt down players. It's not hard to get them to hunt a fixed player down, as in when they spawn set them to hunt the nearest player, but say they die or run behind other players- the creeps shouldn't mindlessly stand around or try to get to the one guy while ignoring the other players. I can't think of a way to do this....any help/suggestions would be wonderful.
01-31-2009, 09:39 PM#2
Av3n
Perhaps get them to target different players each time they spawn, instead of targeting the nearest player (which would be fixed anyway).

-Av3n
01-31-2009, 10:23 PM#3
Fireeye
You could also detect when another player attacks them or a creep comes near them and do a boolean comparision including range, health, etc. (only some hints) and order the corresponding creep to attack that hero then.
02-01-2009, 12:12 AM#4
Zyrixion
Hmm....thanks, I think I know how to get what I need done. We'll see how well it works. Always room for improvement into a sadistic AI hellbent on getting the players killed. :)
At this rate I will probably be done with the alpha tonight. It isn't particularly flashy, but then it isn't particularly meant to be.

Short theory of the map follows, because I can-

Got tired of survivals that entailed you sitting in one place killing hordes of whatever. This one will force you to keep moving or get overrun...and killed. A map made by a master of survival maps, for masters of survival maps. Keeps you on your toes and on your feet at all times- really hard map but definitely doable with some applied thought, strategy, and teamwork- not entirely novice-friendly. Players will advance in military rank as their number of kills grows from game to game (players can save their kills, rank, and number of times they've completed the map and load them into a later game), giving them slight advantages and abilities to help them survive. However, a player of equal or higher rank than the player seeking promotion is required to promote a player to any rank, in addition to the requisite number of kills.

Short map story-

It's the year 2070, and "something" is overrunning the Earth. "Something" in that no one knows where it came from, nor what they really are. In a desperate attempt to salvage the world, the countries of Earth unified under one banner, and the military force, the Earth Coalition Force, launched a massive counteroffensive against the creatures, which had become known collectively as the Tide of Endtimes. Players represent squads of the elite marines of the Earth Coalition Force, fighting in the millions of skirmishes that occured against the creatures of the Tide of Endtimes.
02-01-2009, 12:33 PM#5
Archmage Owenalacaster
You could use an actual AI instead of trigger orders. Or a combination of the two.
02-01-2009, 05:03 PM#6
Zyrixion
So just how would I go about doing that? You're talking about the AI editor? No idea how I would go about making an AI that would do what I want it to using that.
02-01-2009, 06:47 PM#7
Archmage Owenalacaster
The AI editor is unwieldy, ugly, and without finesse. I use JassCraft to design AIs, as it supports the common.ai functions and constants. What do you want your AI to do?
02-01-2009, 08:44 PM#8
Zyrixion
All the AI really needs to be able to do is track down and kill players, and react to them moving around (players also have a short range blink-based ability) by choosing the closest pathable target, and updating on that order fairly frequently. And if it could be fairly intelligent about this (good pathing on trying to hunt them down), then that'd be ideal. But eh, I've found a way to do this anyways.