Staredit Network

Staredit Network -> UMS Assistance -> Ai Script Trouble
Report, edit, etc...Posted by Vindexus on 2004-08-09 at 18:10:24
I've been making a test map like Dynasty Warriors. When the comps units spawn, i want it to attack to the other side of the map. So i've been using AI scripts. Here's what it looks like

QUOTE
Players
- Comp 1
Conditions
- Spawn
Actions
- Create Units at 6 Spawn 1
- Run AI Script "Set Generic Command Target" at 7 Spawn 1
- Run AI Script "Make these Units Patrol (to upper left corner)" at 6 spawn 1
- Preserver


This works fine the first time but when I try to do the same thing for P6 second spawn point, the units attack to 7 Spawn 1, even though I reset the Generic Command Target to 7 Spawn 2.
Report, edit, etc...Posted by Silent[wolf] on 2004-08-10 at 00:51:01
dude just use the "order" action it will work but u need a location in the spot they start and the place you want them to go pokey.gif
Report, edit, etc...Posted by Mini Moose 2707 on 2004-08-10 at 01:17:08
Why are you using "Set Generic Command Target" in the first place? It isn't necessary. If you use regular StarEdit, it's a hidden AI anyway. tongue.gif
Report, edit, etc...Posted by r[s]t on 2004-08-10 at 01:22:11
speaking of ai scripts, is there a junk yard dog script for starforge? if so where? if not where i get?
Report, edit, etc...Posted by Stereo on 2004-08-10 at 02:06:00
"Set Unit Order to: Junk Yard Dog" runaiscriptat
Report, edit, etc...Posted by Vindexus on 2004-08-10 at 15:51:50
If you use the order command, the units just run past each other if they don't get in each others way. Using set generic command target sets the target that they will patrol to when using the Make Units patrol AI script. That ai script makes it so that the units are much more aggresive and will attack units in range whilst patrolling.
Report, edit, etc...Posted by Nozomu on 2004-08-10 at 16:08:04
That "Set Generic Command Target" and "Patrol to Upper Left Corner" combo only works on units that you can't order around, like Scarabs, Interceptors, and Nukes. It's pretty damn cool.
Report, edit, etc...Posted by Vindexus on 2004-08-10 at 16:09:15
No, it's works on all units, the only problem i'm having is that I can' seem to reset the generic command target.
Report, edit, etc...Posted by Yoshi da Sniper on 2004-08-11 at 15:47:31
I don't think you can. That AI script was designed for instances of constantly attacking a valuable building in the Starcraft campaigns
Report, edit, etc...Posted by .Coko[CK] on 2004-08-11 at 17:12:41
Actually use the Order again, and set it to either Patrol or Attack, and in this case Attack, and if they meet an enemy unit as the go they will attack it and move on.

There problem solved.
Report, edit, etc...Posted by Vindexus on 2004-08-11 at 17:18:13
QUOTE
If you use the order command, the units just run past each other if they don't get in each others way


I already tried that, but even if you use attack or patrol, then can brush shoulders and keep moving. It's definetely not cool *humph* disgust.gif
Report, edit, etc...Posted by Nozomu on 2004-08-11 at 17:22:23
They will only attack units after they reach the target location. So Make it bigger or something.
Next Page (1)