HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

AI Script

04-14-2006, 01:29 AM#1
kaldoreielf
I need an AI script, heres the map layout:

XXXXXXXXXXXXXXXXXXXXXX
AAAXXXXXXOOOOXXXXXXBBB
AAAXXXXXXOOOOXXXXXXBBB
XXXXXXXXXXXXXXXXXXXXXX

the A's are team A, the B's are team B and the O's are the centre of the map. Now The aim of the game is too summon units (controlled by an AI script) and kill the other summons or the other team. Now the AI script I want made it to, whenever they are summoned, the move towards the other team, attacking anything in there way. That is all, how can I do that?
04-14-2006, 01:32 AM#2
BBDino
Action - Order Unit (Last Created Unit) to [Attack Move] to Center of Region (Team B)

I think you can do the rest.
04-14-2006, 01:42 AM#3
kaldoreielf
wow, is that really it? awsome
04-14-2006, 04:03 AM#4
BBDino
Note: if units actually "summon" the units with spells you will want this

E - A unit spawns a summoned Unit
A - Order (Summoned Unit) to Attack Move to Center of Region (Team B)

Oh and i'm only giving you the framework, i assuem you are competent with regions and triggers in general?
04-14-2006, 08:55 AM#5
Captain Griffen
Or rather:

E - A unit spawns a summoned Unit
A - if: Owner of summing unit is in TeamA //use a variable
then: Change owner of summoned unit to Team A Computer
Order (Summoned Unit) to Attack Move to TeamBBasePoint
Else: Change owner of summoned unit to Team B Computer
Order (Summoned Unit) to Attack Move to TeamABasePoint

Use point and player group variables, else it will leak.
04-14-2006, 10:36 AM#6
kaldoreielf
ok, yes, I do know about regions and that...