HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Can someone PLZ help!

06-01-2003, 05:02 AM#1
Anubhab123
I've pretty much finished the first part of my map. The only problem is that the AI does not work.Basically I used player start locations and changed the look and function of each to an altar. I have an Undead Base with Crypts,Temple of the Damneds,and Frost Wyrm produceers. I wanted all the units in the base to attack a random structure owned by players 1-11 or however many there are. So I setup a trigger for the buildings to produce units

TRIGGER: Produce

EVENT:
Every 60 second of Game Time

Conditions:

Actions:
Issue Order with no target--->Order Crypt 0173 to train/upgrade Ghoul
----------------I proceded with all the buildings doing the same----->

TRIGGER:Attack

Events:
Crypt 0173 finishes training/upgrading a unit

Conditions:

Actions:

Wait 1 seconds

Set Variable(this one is a unit group)--->Set Unit=Units owned by Player 1 matching matching unit is alive

Set Variable(This one is a unit)--->Set AttackTarget=Random unit from Unit

Unit Group-Issue Order targeting Unit----->Order Units owned by Neutral Passive to Attack-Move AttackTarget

------------------I also tried making the order just attack---------------

The AI however attempts to goto the target but then comes back inside the base. In many cases however they got stuck or rather had trouble moving through the narrow path bu mostly not.

Any ideas,suggestions,solutions?
06-01-2003, 05:26 AM#2
Guest
Why not just use an AI script?
06-01-2003, 12:51 PM#3
Anubhab123
the reason i didn't is because i thought it might be easier without an AI script so..... but i guess i could use one.
06-01-2003, 01:30 PM#4
Anubhab123
Does anyone know where I can find a good AI scripting tutorial besides maps.warcraftiii.net tutorials?