So, I want to make an ability, which can move your unit to a point. What I also want:
-You can only move the unit once with this ability.
-You can only move your unit with this ability.
-The max distance you can cast this ability is limited.
(I tried to do it with triggers, but I failed. I guess it most be easy to do with data editor, but I didnt figure anything out to do it.)
mmm sounds like giving it a charge counter so it can only be used once. or give it a requirement so its use is disabled and show is enabled or maybe both disabled until some condition(as for the condition im not sure what parameters or what condition >.<) i would also have been thinking of triggers for this solution
@zeropoints: Go
If you have the move ability added to the unit (doesnt need to be added to the command card) and you select unit and click somewhere else, will result the unit move there. So thats why I cant figure out myself how to do this.
Could be done with a buff setting the move speed from 0 or you could simply try giving the Move ability a requirement. There are also the Behavior - Modification - Modify Flags which have supress movement.
For your ability I would give the unit 0 movement speed with a supress movement behavior and get the ability to apply a speed and allow movement buff which disables the other behavior while at the same time using a persistant to constantly issue order the unit to the target location. The number of uses and distance can be set under the Effect - Target ability
same time using a persistant to constantly issue order the unit to the target location.
WOW, cool idea. thx!
Finally I solved it with triggers:
Unit - Set (Triggering unit) Movement Speed to (X)
Unit - Disable the Deploylight ability for (Triggering unit)
General - Repeat (Actions) forever
Actions
Unit - Order (Triggering unit) to ( Move targeting (Triggering ability target point)) (Replace Existing Orders)
General - Wait 0.2 Game Time seconds
General - If (Conditions) then do (Actions) else do (Actions)
If
((Triggering unit) is in (Idle Units for player (Triggering player))) == true
Then
General - Break
Else
Unit - Set (Triggering unit) Movement Speed to 0.0
I also added error message with triggers if it is out range and now I am adding behavior which is showing that unit is under deployment. (I used triggers cause I can easily customize unit speed and ability range, under game)
I was trying to do something like that but had no luck.. Its mostly dont wants to move to target area, other stuff. :(
help.
Have ability with range to move. Behaviors which allow disallow movement but dont know how to make it to MOVE to location. how effects have to conect to each other.
EDIT2: Ok so worked out it with triggers. Now other porblem. Have Rally Point and Move abilitys and want to make that you would choose rally point as point where unit will go but not order to move him by right clicking to that location.
Is there are some kind prioritys to be able to set up to make Rally point more important to right click order than Move order?
Just get the ability to create a persistant at the point that then issues order to move the unit to that point constantly. The initial effect of the persistant applies the buff/disables the hold position buff allowing movement.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
So, I want to make an ability, which can move your unit to a point. What I also want:
-You can only move the unit once with this ability.
-You can only move your unit with this ability.
-The max distance you can cast this ability is limited.
(I tried to do it with triggers, but I failed. I guess it most be easy to do with data editor, but I didnt figure anything out to do it.)
mmm sounds like giving it a charge counter so it can only be used once. or give it a requirement so its use is disabled and show is enabled or maybe both disabled until some condition(as for the condition im not sure what parameters or what condition >.<) i would also have been thinking of triggers for this solution
@zeropoints: Go that doesnt solves the problem with units can be moved any time...
haha i suppose getting rid of move and attack button wouldn't fix that
@zeropoints: Go If you have the move ability added to the unit (doesnt need to be added to the command card) and you select unit and click somewhere else, will result the unit move there. So thats why I cant figure out myself how to do this.
@Hookah604: Go
Try setting its movement speed to 0
Could be done with a buff setting the move speed from 0 or you could simply try giving the Move ability a requirement. There are also the Behavior - Modification - Modify Flags which have supress movement.
For your ability I would give the unit 0 movement speed with a supress movement behavior and get the ability to apply a speed and allow movement buff which disables the other behavior while at the same time using a persistant to constantly issue order the unit to the target location. The number of uses and distance can be set under the Effect - Target ability
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
WOW, cool idea. thx!
Finally I solved it with triggers:
Unit - Set (Triggering unit) Movement Speed to (X)
Unit - Disable the Deploylight ability for (Triggering unit)
General - Repeat (Actions) forever
Actions
Unit - Order (Triggering unit) to ( Move targeting (Triggering ability target point)) (Replace Existing Orders)
General - Wait 0.2 Game Time seconds
General - If (Conditions) then do (Actions) else do (Actions)
If
((Triggering unit) is in (Idle Units for player (Triggering player))) == true
Then
General - Break
Else
Unit - Set (Triggering unit) Movement Speed to 0.0
I also added error message with triggers if it is out range and now I am adding behavior which is showing that unit is under deployment. (I used triggers cause I can easily customize unit speed and ability range, under game)
@DrSuperEvil: Go
I was trying to do something like that but had no luck.. Its mostly dont wants to move to target area, other stuff. :(
help.
Have ability with range to move. Behaviors which allow disallow movement but dont know how to make it to MOVE to location. how effects have to conect to each other.
EDIT2: Ok so worked out it with triggers. Now other porblem. Have Rally Point and Move abilitys and want to make that you would choose rally point as point where unit will go but not order to move him by right clicking to that location.
Is there are some kind prioritys to be able to set up to make Rally point more important to right click order than Move order?
Just get the ability to create a persistant at the point that then issues order to move the unit to that point constantly. The initial effect of the persistant applies the buff/disables the hold position buff allowing movement.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg