Warcraft III resources & community, 2003–2006 · archived

Help With Making AI For Hero!!

7 posts
#1

Help With Making AI For Hero!!

Please help me with making AI for one Hero! I must use triggers or what :?:
#2
U start with giving its player computer insane, so it uses skills and flees.

the rest i mostly do with triggers, always actually

just make a trigger so he reatrets if he has for example 100 hp

tell me what kind of ai u need and ill make the code for it
#3

Peace

You see! I want to understand how to make it! The hero for who I want to make AI must use non-uasual magic skills and diffrend items! How to make something like that?? :
#4
i dont get what u mean

The hero for who I want to make AI must use non-uasual magic skills


wt*?

and diffrend items


u mean it has to use and pick up items or sumthing?
#5
He means use custom spell and custom items.
The ai will use them like it uses their base spell.
For example.

Ai will use life drain if it is at a low enough hp enough.
So if you made a spell based off life drain but you called it Soul drain and it drains mana and hp it will still use it like life drain.

Ai will use rain of fire to burn enemies in an area if there are more enemies than its allies.
If you made the spell heal affected units in the area and called it Rain of Healing the AI will still use it like rain of fire even though it will be healing the enemies more than its allies.

AI will NOT use death pact so nomater what you change it into it will not use it.
You have to use triggers to cast it.

Thoughs are examples of how the AI will cast spells.
It will even cast spells if they have trigger run affects.
#6
ah, i understand. to solve that problem, u can make triggers so they cast it when u want

for example:

Events:
unit is attacked
Conditions:
attacked unit is .....
Actions:
Order attacked unit to 'human MK - Avatar'
#7
Exacly! My hero must use magic skills with diffrend names and actions! I will try to make it with triggers! Thanks you Ramza and Dr Super Good! :D