I wanted to provide an ability which can "move" a unit to a position.
Thus I created a grid of regions over my map and now I am trying to create a condition which limits the amount of units in one of the fields to 1.
In detail the unit which I controll has 4 abilities to move in each direction and they should only be clickable when the desired path is free.
Is it possible to provide such functionality using the Data Editor with Conditions and such things? Or do I have to code it myself?
The regions are all equal so maybe it could be done by distance between units? Since I only allow one unit per region this unit is always in the center. Also the unit itself cannot move. Just with the mentioned abilities.
If you have any suggestions, I would be glad to hear ;)
You can probably trigger something to disable the ability when the pathing is not available. As for the data editor, you might be able to do this if the pathing changes itself to a different type, such as creep, this can always be customized of course. I'm thinking triggering this would be simpler.
My suggestion would be to compare what you are trying to do to a chess style map. I'm sure there are some on WCIII and possibly SC2 maps that are available for viewing.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello folks,
I wanted to provide an ability which can "move" a unit to a position.
Thus I created a grid of regions over my map and now I am trying to create a condition which limits the amount of units in one of the fields to 1.
In detail the unit which I controll has 4 abilities to move in each direction and they should only be clickable when the desired path is free.
Is it possible to provide such functionality using the Data Editor with Conditions and such things? Or do I have to code it myself?
The regions are all equal so maybe it could be done by distance between units? Since I only allow one unit per region this unit is always in the center. Also the unit itself cannot move. Just with the mentioned abilities.
If you have any suggestions, I would be glad to hear ;)
Regards,
Angel0fDarkness
@Angel0fDarkness: Go
You can probably trigger something to disable the ability when the pathing is not available. As for the data editor, you might be able to do this if the pathing changes itself to a different type, such as creep, this can always be customized of course. I'm thinking triggering this would be simpler.
My suggestion would be to compare what you are trying to do to a chess style map. I'm sure there are some on WCIII and possibly SC2 maps that are available for viewing.