N
Nmare
Guest
Hi all.
I want to create a simple Ai for my map. Before asking i want to state that I'm fairly new to warcraft 3 editing; so sorry if this is a trivial question
I spawn creeps for 2 sides. Beside that I also spawn 2 heroes. The heroes helps the player by running around and killing the creeps, going home to heal and so on. This works perfectly. What I want to implent is some sort check if the hero is outnumbered i.e. if there are more of the opponents creeps than his. And if he is, then pull back and wait for some reinforcements.
I thought of something like:
1. Check a region where the hero is in center 20 units at each side.
2. See if there are more of opponent creeps than his.
3. Run back.
But i can't find out how to make .1
Any help and or suggestions would be really great
-NMare
I want to create a simple Ai for my map. Before asking i want to state that I'm fairly new to warcraft 3 editing; so sorry if this is a trivial question
I spawn creeps for 2 sides. Beside that I also spawn 2 heroes. The heroes helps the player by running around and killing the creeps, going home to heal and so on. This works perfectly. What I want to implent is some sort check if the hero is outnumbered i.e. if there are more of the opponents creeps than his. And if he is, then pull back and wait for some reinforcements.
I thought of something like:
1. Check a region where the hero is in center 20 units at each side.
2. See if there are more of opponent creeps than his.
3. Run back.
But i can't find out how to make .1
Any help and or suggestions would be really great
-NMare


