| 12-10-2002, 03:40 AM | #1 |
Guest | I have 2 computer Night Elf players and I have applied the elf.ai script to both of them. I want to have 1 CPU attck player 1 and 1 CPU attack player 6 but that's not what happens. The problem is, I can't figure out (after 10 minutes of looking) how the ai decides who to attack. Both the CPU players attack player 1 only. I can't find a way to get them to attack player 6 no matter what I do. Anybody know how I can make one of these computer guys to attack player 6 and not just player 1? Keep in mind, I want both CPU players to be enemies to both human players, so they'll attack them if they stumble across their troops in the field, it's just that I want one human player to be the prefered enemy over the other. |
| 12-10-2002, 04:49 AM | #2 |
Guest | Well, the race AI files (elf.ai, human.ai, etc...) are simply generic melee AI scripts that pick their targets through a simple algorithm. There's no way for you to determine which targets they choose. If you want control like that, you'll need to write your own scripts to do so. |
| 12-10-2002, 05:12 AM | #3 |
Guest | Drat and double drat :) I actually found a cheesy hack way of doing it. I put a wisp from player 12 into the town for player 1 and I put a wisp from player 11 into the town of player 6 and that must make them mad or something because after that Player 12 will nonstop attack player 1 and player 11 will non-stop attack player 6. It's not great because it seems to lose it's head and just attack nonstop this way. It doesn't mass troops and send groups of men, it just sends them as it makes them. It's good enough for me to build and test my map though until I have time to screw around with scripting. |
| 12-10-2002, 05:42 AM | #4 |
In the scenario menu, there's an option to change "priorities" of forces. I've never myself played around with this, but I'd assume this is how you tell the computer to "hate" certain colors more than others. I think that's what you're trying to do, and better yet, no screwing around with AI files. Can anyone confirm? |
| 12-10-2002, 05:44 AM | #5 |
Guest | I don't know what that player properties thing does, but it doesn't do what I want. I already checked. If you open it, you'll see that you can't set the priority for computer players. I can't figure out what it does. |
| 12-10-2002, 09:17 AM | #6 |
I think priorities work like Ari said, because if you play a bit of war3, you will notice that heroes are attacked last most of the time if they have other units near them, now go and check the hero priorities in worldedit, it's very low (some have 3 or 4) while the units have a high priority (some have around 9-11). |
| 12-10-2002, 12:51 PM | #7 |
Guest | No that's something different. I know what that is, thats a priority field on the unit itself. I'm trying to make it so the AI hates a PLAYER abover all other players, not just a specific unit. |
