| 03-16-2006, 03:24 AM | #1 |
Greetings. I have computer-controlled players in a map. Sometimes they get items for various reasons. However, when they get within range of their townhall, the heroes frequently sell the items they get, no matter what they are, or try to sell them even if they have no sell price (at which point they're dropped on the ground next to the shop). What do I need to do to make the computer players not sell items? I am not running any AI scripts. |
| 03-19-2006, 03:23 PM | #2 |
I thought that surely someone would know what causes this behavior. Are there no AI savants patrolling the forum? |
| 03-19-2006, 05:07 PM | #3 |
Double post! :D It is interesting, I thought computer players can't sell items. Can't you disable Sell Item ability (I think shops have one) |
| 03-19-2006, 05:20 PM | #4 | |
Quote:
good one, then no one can sell items |
| 03-19-2006, 05:33 PM | #5 |
Then modify AI so it doesn't sell items. |
| 03-19-2006, 05:57 PM | #6 | |
Quote:
yea that was what the topic of the thread was |
| 03-22-2006, 05:03 PM | #7 |
Make the item undroppable if it's held by an AI hero :P |
| 03-22-2006, 05:46 PM | #8 |
And if the computer hero is controlled by a human ally? |
| 03-23-2006, 12:12 AM | #9 |
You can detect when a computer player picks up an item and them make it undroppable only for that computer player. |
| 03-29-2006, 12:04 AM | #10 |
I don't see anyway to make it undroppable for only one player. Honestly, I expected the general direction of the answer to be towards "how to make the AI not want to do that" rather than "make the AI unable to do that when it tries". |
| 03-29-2006, 01:23 AM | #11 | |
Quote:
Event- A item is aquaired Conditions - Player type of Owner of hero manipulating item equal computer Actions - Make item being manipulated undroppable Do you see the light now? This is foolproof unless you trigger computer items to drop or make them undroppable somehow. |
| 03-29-2006, 01:48 AM | #12 |
but if an person has control of the computer player's hero, then they can't drop it. |
| 03-29-2006, 01:50 AM | #13 | |
Quote:
obviously but what purpose does it serve for a player to control a computer, the whole idea of the computer is to be self animated, even if a player did control the computer, it would better suit it as so the player doesn't just steal all fo the computers item and sells it. |
| 03-29-2006, 03:51 AM | #14 |
The nature of the problem is that there are computer slots that can sell items, and they can be controlled by the player. That's the very issue I presented. |
| 04-02-2006, 04:34 PM | #15 |
Did you start the standard human orc undead nightelf AI? Do you use any kind of AI-Script? Do you use any kind of Jass-AI? Tell me |
