I just wanted to know if there is an Ai similar to the junk yard dog from scmdraft that i can use in starcraft 2 editor?
None.
No but there is a roam behaviour in the data editor
None.
And it is doable with triggers as well, I can help you there if wanted.
Please report errors in the Staredit.Network forum.
Yeah help would be awesome, I tried the roam and thats not really what i wanted. I want the units to move all over the map.
None.
Hello Striker,
I think we should ask ourselves exactly what "Junk Yard Dog" did in Broodwar. The unit would move in a random direction a random distance then stop for a random amount of time. We can emulate this for units through triggers. Make sure to pick a random direction relative to the unit "wandering." We can easily get the XY coordinates of this unit; then we need to decide how many directions we wish to have. I recommend 8. Up, left, down, right, top right, top left, bottom right, bottom left. (I personally would do as many directions as I possibly could, maybe 32 or 64, because I am literally insane.)
Let me know if you would like some more help constructing these triggers.
None.
Yeah I need some detailed look of what the trigger would look like.
None.
Hello Striker,
I think we should ask ourselves exactly what "Junk Yard Dog" did in Broodwar. The unit would move in a random direction a random distance then stop for a random amount of time. We can emulate this for units through triggers. Make sure to pick a random direction relative to the unit "wandering." We can easily get the XY coordinates of this unit; then we need to decide how many directions we wish to have. I recommend 8. Up, left, down, right, top right, top left, bottom right, bottom left. (I personally would do as many directions as I possibly could, maybe 32 or 64, because I am literally insane.)
Let me know if you would like some more help constructing these triggers.
That is pretty inefficient considering there is already a behaviour in the data editor to do this. You could even use triggers to apply the behaviour.
None.
Except the roam is not what i want.
None.
Something like this might work:
Untitled Trigger 001
Events
Timer - Every 1.0 seconds of Game Time
Local Variables
Conditions
(Marine Unit order at index 0) == ( Stop)
Actions
Unit - Order Unit to ( Attack targeting (Random point in (Entire map))) (Replace Existing Orders)
Theoretically, this should make it so every second, if the unit has no order (is given the stop command), then it should take a random point in the entire map and order the unit to attack to there. It's not the greatest, but it should work. (You could also create another trigger every certain amount of time to do the same thing, this just prevents the unit from standing still while waiting for a timed order.)
None.
Would that work for multiple units that are created with another trigger?
None.
I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.
Would that work for multiple units that are created with another trigger?
You would need to add all units in a unit group and do that action when the unit has no orders and is inside the unit group.
Yeah, just like he said, whenever you create a unit, add it to a global unit group variable, and then just modify the trigger to cycle through the unit group and check each unit to see if it needs to be issued a new command.
None.
For anyone who wants to use the data editor wander behaviour to accomplish the exact same effect as above (so you do not need to run an extra periodic trigger, or you have many units needing the behaviour) here is how you do it.
Create a new behaviour called JunkYard and set the behaviour type to wander. Set the Stats - Range field to 500.
Two triggers, one to turn on the junk yard mode and one to turn it off for all units in a unit group.
Turn On Junk Yard
Events
Local Variables
Conditions
Actions
Unit Group - Pick each unit in UnitGroup and do (Actions)
Actions
Unit - Add 1 JunkYard to (Picked unit) from (Picked unit)
Turn Off Junk Yard
Events
Local Variables
Conditions
Actions
Unit Group - Pick each unit in UnitGroup and do (Actions)
Actions
Unit - Remove 1 JunkYard from (Picked unit)
None.
Striker I'm also making an ob dodge map.
I have the observer junkyard and unit death triggers up thanks to Devourer.
Terrain is a lot different from your map and a bit smaller to fit about the same size as obs lovely.
I came directly from the east dodging clan channel op obs-
Feel free to add me on msn.
None.
Haha nicee, yeah I'm from west how far are you from completing the map?
None.