HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

help with ai

05-26-2006, 11:18 PM#1
Griknash
How do I set a computer to build a specified number of units I want and then to attack. I try to do it but the computer always sends all its units and doesn't build anymore. And how could I set an allied computer like from wc3's campaign,how they support you during the mission
05-27-2006, 01:11 AM#2
The)TideHunter(
You cant order a unit to do 2 things, if you hold shift-click ingame, the unit will remember the next actions you gave it.
But there is no way to make this possible for GUI and Jass.

I dont understand the second part of the question.
05-27-2006, 01:22 AM#3
Anopob
Quote:
Originally Posted by Griknash
How do I set a computer to build a specified number of units I want and then to attack. I try to do it but the computer always sends all its units and doesn't build anymore. And how could I set an allied computer like from wc3's campaign,how they support you during the mission

Ok the 1st question I think you're saying something about triggers in AOS's right? (DotA, AoM, AotZ, etc.) The 2nd question I have no idea what you're talking about, so I'll just answer your 1st question.

Note: All units and #'s are examples

Trigger 1
Code:
Event: Map Initialization
Condition: None
Action: Set (new variable, Point-Type) = Center of (Region you want your people to move to)

Trigger 2
Code:
Event: Every 30 seconds
Condition: None
Action: Unit -> Create 1 Footman at Position of Barracks (or region around barracks)

Trigger 3
Code:
Event: A unit enter (region around barracks)
Condition: Unit-type = Footman
Action: Unit -> Issue order unit to attackmove to Point (that variable from Trigger 1)
05-27-2006, 01:28 AM#4
Griknash
Sorry I guess the question was confusing. I'll try out that^But my first question was relating to like a campaign-type map. Or a custom ai,like I'm making a map that the computer controls an undead settlement and it will attack you like every 2-3 minutes or so. And the 2nd one I was thinking bout having a computer on your team that would help you,sorta like in roc when you had to retrieve grom hellscreams soul and Jaina was your ally. I hope that helps
05-27-2006, 02:21 AM#5
Anopob
Oh, I see. Well you could make it so that every 30 seconds there will be like 2 ghouls in a region, then every 2 minutes they are sent to attack you.

I think you're saying you want a normal AI computer as an ally? Because if you want that you can just put a normal computer, while lots of AI scripts would be more confusing.