I need to find a way to order a computer ally's unit to move out of the way. I need it to be specific to a player and area so that it can not be abused in game this is what I have but it isn't working.
Game - Player 1 types a chat message containing "move", matching Exactly
Unit - Order (Closest unit to (Position of Private [99.64, 89.00]) in (Any units in (Entire map) owned by player 13 matching No Unit Filter, with at most Any Amount)) to ( Move targeting (Random point in (Region((Position of (Closest unit to (Position of Private [99.64, 89.00]) in (Any units in (Entire map) owned by player 13 matching No Unit Filter, with at most Any Amount))), 3.0)))) (Replace Existing Orders)
It looks like shit, I know.
I think it would be better if the hero had an ability that was used on the unit and have something like:
To create an ability, basically you need to make a "dummy ability" which is quite easy. Take a ghost's sniper round, for example, and remove all effects. You've got an ability which targets a unit but doesn't do anything.
Then setup a trigger to something like:
Event - unit uses ability DUMMY ABILITY
Condition - unit is in region (whatever region restriction you want)
Action - Issue order to targeted unit - move blah blah blah
or
Move targeted unit instantly blah blah blah
You could also make another trigger which moves a region every 0.01 sec to the position of your hero. It should be about the size of a Command Center I suppose. Let's call it moveRegion Then make a new trigger which looks like:
EVENT - When player 1 types a message containing "move" matching exactly
ACTION - Order all units owned by player 13 in [moveRegion] to Move to random point in [moveRegion] replacing existing orders
Unit - Any Unit uses Move soldier at (Triggering ability stage) stage (Ignore shared abilities)
(Owner of (Target unit for (Triggering order))) == 13
Unit - Order (Target unit for (Triggering order)) to ( Move targeting (Random point in (Region((Position of (Target unit for (Triggering order))), 3.0)))) (Replace Existing Orders)
Hard to say without me knowing how the "Move soldier" ability is working. I'd start by adding a text message as an action to let you know if the trigger is actually triggering properly. Then you'll at least know whether the fault lies in the trigger/condition, or in the action.
Try changing it into:
Unit - Any Unit uses Move soldier at (Effect 3 - Cast) stage (Ignore shared abilities)
PS: and this looks faulty too: (Target unit for (Triggering order))
Change it to:
(Triggering ability target unit)
Note that you have it once in Condition and once in Action
If it doesn't work after these changes then remove the Condition and change the action to something simple like Send Text Message and see if your event works.
If your event works, then add the condition again and check if it works now.
If that works too, then your action is wrong.
I need to find a way to order a computer ally's unit to move out of the way. I need it to be specific to a player and area so that it can not be abused in game this is what I have but it isn't working.
Game - Player 1 types a chat message containing "move", matching Exactly
Unit - Order (Closest unit to (Position of Private [99.64, 89.00]) in (Any units in (Entire map) owned by player 13 matching No Unit Filter, with at most Any Amount)) to ( Move targeting (Random point in (Region((Position of (Closest unit to (Position of Private [99.64, 89.00]) in (Any units in (Entire map) owned by player 13 matching No Unit Filter, with at most Any Amount))), 3.0)))) (Replace Existing Orders)
It looks like shit, I know.
I think it would be better if the hero had an ability that was used on the unit and have something like:
Unit is a target of an ability
I don't know how to do that.
What exactly do you want of us?
I'd kinda like to know why my trigger isn't working or if there is a better way to do it.
@EpicurusDarwin: Go
To create an ability, basically you need to make a "dummy ability" which is quite easy. Take a ghost's sniper round, for example, and remove all effects. You've got an ability which targets a unit but doesn't do anything.
Then setup a trigger to something like:
Event - unit uses ability DUMMY ABILITY
Condition - unit is in region (whatever region restriction you want)
Action - Issue order to targeted unit - move blah blah blah
or
Move targeted unit instantly blah blah blah
Cheers!,
Xen
You could also make another trigger which moves a region every 0.01 sec to the position of your hero. It should be about the size of a Command Center I suppose. Let's call it moveRegion Then make a new trigger which looks like:
Hope this works.
I have this so far but it isn't working
Unit - Any Unit uses Move soldier at (Triggering ability stage) stage (Ignore shared abilities)
(Owner of (Target unit for (Triggering order))) == 13
Unit - Order (Target unit for (Triggering order)) to ( Move targeting (Random point in (Region((Position of (Target unit for (Triggering order))), 3.0)))) (Replace Existing Orders)
Bump
bump again
For some reason I can target the ground with the ability but I thought that I got rid of it
bump
Hard to say without me knowing how the "Move soldier" ability is working. I'd start by adding a text message as an action to let you know if the trigger is actually triggering properly. Then you'll at least know whether the fault lies in the trigger/condition, or in the action.
Your event looks faulty.
Try changing it into:
Unit - Any Unit uses Move soldier at (Effect 3 - Cast) stage (Ignore shared abilities)
PS: and this looks faulty too: (Target unit for (Triggering order))
Change it to:
(Triggering ability target unit)
Note that you have it once in Condition and once in Action
If it doesn't work after these changes then remove the Condition and change the action to something simple like Send Text Message and see if your event works.
If your event works, then add the condition again and check if it works now.
If that works too, then your action is wrong.
@s3rius: Go
It's the action can't get them to move.