- Joined
- Apr 19, 2011
- Messages
- 447
Hi there.
I have been working on a hero arena-type of map, and I recently started to create some AIs, so the game offers some kind of challenge even without human players. However, I found that the computer is using certain items when I don't want him to use them.
For example, I order the computer to buy some Healing Potions (healing 250 each). I want the computer controlled heroes to use the potions when their health goes under 10%. However, they are using them whenever they lose those 250 health points I mentioned earlier. They completely ignore the AI I programmed and act on their own. This doesn't happen just with Healing Potions, also with Mana Potions, and any other health or mana recovering item.
Maybe this is a silly question, but I don't know how to avoid this behaviour. I had a look at the forums, but I didn't find anything like this.
Can someone help me?
Kind Regards
I have been working on a hero arena-type of map, and I recently started to create some AIs, so the game offers some kind of challenge even without human players. However, I found that the computer is using certain items when I don't want him to use them.
For example, I order the computer to buy some Healing Potions (healing 250 each). I want the computer controlled heroes to use the potions when their health goes under 10%. However, they are using them whenever they lose those 250 health points I mentioned earlier. They completely ignore the AI I programmed and act on their own. This doesn't happen just with Healing Potions, also with Mana Potions, and any other health or mana recovering item.
Maybe this is a silly question, but I don't know how to avoid this behaviour. I had a look at the forums, but I didn't find anything like this.
Can someone help me?
Kind Regards