I'm working on a zombie survival type map (were one player would be on the zombie team and one team would be defending as humans).
I have made it so that the undead attacking player team is controlled by a computer player if they aren't in the game.
I have managed to make the computer buy heroes, upgrades and send them into the battlefield.
My problem is that I want the computer to use the heroes abilities which are things like Death Pact, Rain of Chaos, Carrion Swarm and Doom. I have managed to make them learn the abilities but now i want them to actually use them. Here are my ideas for the abilities:
Death Pact - Hero is attacked and has 10% HP
- Order attacked unit to use Death Pact on random unit controlled
by player purple within range of attacked unit.
Rain of Chaos - Hero is attacked by unit.
- Order attacked unit to use Rain of Chaos on attacking unit.
My problem is that there is no condition for HP, and when ordering the unit to use the ability there is only normal abilities, not custom ones. Help?
I have made it so that the undead attacking player team is controlled by a computer player if they aren't in the game.
I have managed to make the computer buy heroes, upgrades and send them into the battlefield.
My problem is that I want the computer to use the heroes abilities which are things like Death Pact, Rain of Chaos, Carrion Swarm and Doom. I have managed to make them learn the abilities but now i want them to actually use them. Here are my ideas for the abilities:
Death Pact - Hero is attacked and has 10% HP
- Order attacked unit to use Death Pact on random unit controlled
by player purple within range of attacked unit.
Rain of Chaos - Hero is attacked by unit.
- Order attacked unit to use Rain of Chaos on attacking unit.
My problem is that there is no condition for HP, and when ordering the unit to use the ability there is only normal abilities, not custom ones. Help?