In my cat and mouse map which I am making for clan CnM i was wondering how I make a good AI for my comp mouse. One that will Utilize my map options since my C&m is special and not gay.
Notes on map and what the ai would need
Warps at all 4 corners of my map that warp to warping station which would warp to any other 4 corners of the map. u choose.(the ai would use this to get to enemies faster[I was thinking after it killed a mouse it would go to nearest warp and then go to warp closest to next mouse])
It would get upgrades the more mice it kills so that it fell behind and didnt help anymore.
There is also a human cat so the ai would work with him.
I have seen some AI maps but those cats get stuck with a wall built at a certain way.
If u would know ways to do this i would appreciate info.
You can't get AI cat to go to a warp beacon becasue it knows what the warp does. Computer Ai has no knowledge of the triggers in your map therefore it cannot take an advantage of them.
You can't get a computer to upgrade. There was one guy who did it but it's not very reliable.
It's best that you make AI triggers like Order and RunAi to make it seem more intelligent.
I figured that part out. But a better question would be to get the cat to attack the nearest mouse how to do that?
Continually move a location on each 'cat' that is rather large and tell it to go to the nearest 'mouse'.
What is this "Go To Nearest Mouse" trigger?
I don't know what I was thinking when I made that post. You're going to need 2 locations. C and M. Make the location C large enough to see 'mouse' units around it. Then have this trigger:
Actions:
Current Player commands at least 1 'Cat'.
Conditions:
Center C on 'Cat' owned by Current Player at anywhere.
Preserve Trigger.
That will make sure the location is always on the 'cat'. Now use this on to find the 'mice'.
Actions:
Current Player commands at least 1 'Cat'.
Foes (or the player(s) owning the 'mice') brings at least 1 'mouse' to C.
Actions:
Center location M on 'mouse' owned by Foes at C.
Issue order to all units owned by Current player at location C: Patrol to M.
Preserve Trigger.
It will not tell the 'cat' to attack the nearest 'mouse'. But without complex triggers and a grid of burrowed lings it will do it's job just fine.
What are these complex triggers and grid system stuff. Will this work just as good or should i go extra length to make it good. I also want cat to continualy attack the 1st mouse nearest to it and how will i get a mous near it and what happens if more mice come. now im confused.
Why does your map making skill say Advanced when you don't even understand what I'm saying?
The trigger will continually tell the 'cat' to attack the 'mouse'. It will not matter how many 'mice' are in the location. And it will not move to the nearest 'mouse' but it will attack to a 'mouse' that is in the location C.
For a map like yours, this is good enough. You do not need a complex grid system to take care of the task of attacking to the nearest 'mice'.
Well for your comp mouse, you could use some AI scripts, and it would build lots of nexus. What you have to do is get a large locations following the cat, and if the comp mouse is in that location, have it run away, where there is no cat. You will most likely need multiple locations and complex triggers for the various situations the mouse will face. Don't forget to add a mouse squeak noise!

You could use one of the AI scripts, it might be protoss insane, and every time you run it, it will build a nexus, then use area town to tell the mouse to mine, or order it to move after, because it will just stand there untill the nexus finishes. Now, in case of a backstab, you would have to have it act more differently. Then there is rescuing the trapped mice. See how there will be many triggers?
Wont the location rotate through all the mice in the area. and if no mouse is in the location range for sum reason it wont do anything. and Dk the mice arent AI
the cat is or 1 of them is. The other is human its basically a stupid helper instead of 2 humans which is 2 smart. and yes i understand the rest of ure

very well thank u Chu.
Chu: That system is okay, but has its flaws. If it has multiple mouse in the C location, it will attack the lowest-left, not the closest. A better system is this: If the mosue is close enough that the cat can see it, the alliance AI scripts will take care of it. What you need for computer controlled cats is a location that constantly centers on a random mouse every say 45 seconds and if that mouse dies or the 45 secs is up changes target. Then use attack to location.
Fo mice it would be a lot harder. I'm not exactly sure what you would do, but the Protoss Insane script is a start. Perhaps some sort of not-yet-seen pathing system that figures out if the mouse is in danger and tells it to run to a safe spot. I suppose you could say if the mouse enters a large location around the cat, tell the mouse to go hide in a cat-proof area.
Yeah but with my method you can have the location be as large as you want and it will still work.
No, the larger it gets, the more impractical it is. If it spans the whole map, whoever gets smart and builds in the upper-right corner won't get attacked.
In a map like that, I dont think that would be a problem. Besides, we're not working with huge locations like you're probably thinking. A location that spans maybe 1.5 times their sight range would do fine.
Then the mice just hide outside that location and the cat does what, just sits there?
What are you talking about? Of course he's going to have them patroling between certain spots to cover the entire map.
QUOTE
Wont the location rotate through all the mice in the area. and if no mouse is in the location range for sum reason it wont do anything. and Dk the mice arent AI
the cat is or 1 of them is. The other is human its basically a stupid helper instead of 2 humans which is 2 smart. and yes i understand the rest of ure very well thank u Chu.
Ok what the hell are you talking about? Didn't you want a computer mouse?
QUOTE
i was wondering how I make a good AI for my comp mouse
QUOTE(Chu @ Jan 11 2005, 06:45 AM)
What are you talking about? Of course he's going to have them patroling between certain spots to cover the entire map.
[right][snapback]123033[/snapback][/right]
Then what is the point of all those triggers. The default AI scripts will work fine. though I begin to see how it might work. however, the cat would be on a set pattern, and the more you work to mix up the cat path, the less important that little tidbit becomes.
if its a comp mouse... You COULD COULD COULD!!!!!!! set it on junkyard.. Or have lots of locations dispersed throughout the map and randomize some switchs.
And I don't get it... its a comp mouse, and a comp cat? So what are you controlling?
QUOTE(keptwheat)
and Dk the mice arent AI
the cat is or 1 of them is. The other is human its basically a stupid helper instead of 2 humans which is 2 smart. and yes i understand the rest of ure censored.gif very well thank u Chu.
Read the thread. He wants human mice, one comp cat and one human cat. All it takes is a few more seconds out of your day.
QUOTE(DT_Battlekruser @ Jan 12 2005, 09:58 AM)
QUOTE(keptwheat)
and Dk the mice arent AI
the cat is or 1 of them is. The other is human its basically a stupid helper instead of 2 humans which is 2 smart. and yes i understand the rest of ure censored.gif very well thank u Chu.
Read the thread. He wants human mice, one comp cat and one human cat. All it takes is a few more seconds out of your day.
[right][snapback]123733[/snapback][/right]
DT, I think you clicked on the wrong quote button.
I think you could have the cats use the warp command in each corner of the map. First split the playing field was seperated into four quadrants, each with a warp in the corner of it. Now lets say P1 has a mouse in Q1 and the cat is in Q1....then just use attack to. But lets say P1 has a mouse in Q1 and the cat is in Q2....well order him to move to the teleport beacon , set a switch telling him what corner to go to when he gets to the selection area. And when that switch is set and the comp brings a cat to the selection area, he moves to the teleport area for Q1 and the switch is cleared and the cat is ordered to attack the mouse. Hope you can understand that.
QUOTE(Chu @ Jan 12 2005, 08:16 AM)
QUOTE(DT_Battlekruser)
Read the thread. He wants human mice, one comp cat and one human cat. All it takes is a few more seconds out of your day.
[right][snapback]123733[/snapback][/right]
DT, I think you clicked on the wrong quote button.
[right][snapback]123742[/snapback][/right]
No, I'm quoting keptwheat saying it's comp cats.
QUOTE
In my cat and mouse map which I am making for clan CnM i was wondering how I make a good AI for my comp mouse. One that will Utilize my map options since my C&m is special and not gay.
And I'm quoting keptwheat saying it is a comp mouse.
i figured he mis-spoke there because the second was a much more detailed explanation. Though I did initially discuss both cat and mouse AI. Mouse AI is just much more complicated.