- Joined
- Jun 27, 2010
- Messages
- 2,707
My map is a battle ground 6v6 heroes. I made AI to order automatically to the computer-controlled heroes to attack-move to a region. That's OK. Then i begun to make AI for spell casting - i made 3 units when attacked to learn and use a spell so far. Well - when i tested this in WC3 and i set all slots to computers - guess what - the units meet and begin to fight. that's not the problem - but when my hero(doesn't matter who) went to the melee the game crashed!
Here I post the code for the mountain king. (the others are paladin and archmage)
Here I post the code for the mountain king. (the others are paladin and archmage)
- Events
- Unit - mountain king is attacked
- Conditions
- Player 3 controller equal to computer
- Actions
- Countdown timer - expiring time as one-shot timer will expire in 2.00 seconds
- Hero - learn skill for mountain king : human mountain king - storm bolt (attacking unit)
- unit - order paladin human paladin holy light mountain king