I'm still working on my RTS, but I wait for (maybe) the updates that Blizzard will make a day. If you have libraries or ideas for this kind of weapon/unit, It is sure that I want to take a look at it!
I finally decided to make a bonus library about my first problem in the editor: make an event or an action that works with the unit's footprint. I made this little map to show you the workaround needed to make this works. Let's get started!
How your map works?
In my scenario, worms spawn near your buildings and you must defend them by creating a concrete slab. This slab have something particular: It blocks incoming worms with pathing, but you can put your units and buildings over it. If you have tested my map, you can see that my slab have a footprint of 1X1, so a barrack will need 9 slabs to be protected and the startport will need 5.
What does exactly the slab?
When a worm explodes, my trigger creates a region around this unit. In first, this trigger checks if there is concrete slabs inside it and if it return yes, it creates a negative square region that is the size of 1 slab.
How actually works all the building's action?
As there is no actions about unit's footprint, I need to create a new action definition that set points around my building. For example, my starport have a footprint of 5 cases in a star shape. So when this action fires, it checks if there is a slab at coordinates x+1, x-1, y+1, y-1 and at point 0,0. If 1 one these point is in the region, it will kill the starport.
Why don't you use an effect to set this?
Effects can work with the radius of a unit, so with this method I will not get the exact footprint, but only a circle of radius 1.5, as example. Maybe with my barracks this could works, but with my starport it will surely fail.
This little library can get you out of trouble when you need specific actions about building's footprint. If you got new ideas, this is the place to share it!
P.S: I suggest you to go to my other libraries to leave comments and suggestions and I have finally done a wish list on the official forum of Starcraft 2. My only demand is that people who see, like and use my libraries could go on the battle.net forum and like my comments about the improvement for the editor. It's not an obligation, but It would me make very happy! Here is the link for the forum : http://us.battle.net/sc2/en/forum/topic/6307501153?page=6#110
@Zolden: Go
I'm still working on my RTS, but I wait for (maybe) the updates that Blizzard will make a day. If you have libraries or ideas for this kind of weapon/unit, It is sure that I want to take a look at it!
@Ahli634: Go
That is a simple workaround to make actions that works with footprint, and what could I add to this page to make you test it?
@Zolden: Go
This is not a true version of dune, but more a mix of many RTS game under the environment of Arrakis, the sand planet.
Bump, 50 views and no comments?
I finally decided to make a bonus library about my first problem in the editor: make an event or an action that works with the unit's footprint. I made this little map to show you the workaround needed to make this works. Let's get started!
How your map works?
In my scenario, worms spawn near your buildings and you must defend them by creating a concrete slab. This slab have something particular: It blocks incoming worms with pathing, but you can put your units and buildings over it. If you have tested my map, you can see that my slab have a footprint of 1X1, so a barrack will need 9 slabs to be protected and the startport will need 5.
What does exactly the slab?
When a worm explodes, my trigger creates a region around this unit. In first, this trigger checks if there is concrete slabs inside it and if it return yes, it creates a negative square region that is the size of 1 slab.
How actually works all the building's action?
As there is no actions about unit's footprint, I need to create a new action definition that set points around my building. For example, my starport have a footprint of 5 cases in a star shape. So when this action fires, it checks if there is a slab at coordinates x+1, x-1, y+1, y-1 and at point 0,0. If 1 one these point is in the region, it will kill the starport.
Why don't you use an effect to set this?
Effects can work with the radius of a unit, so with this method I will not get the exact footprint, but only a circle of radius 1.5, as example. Maybe with my barracks this could works, but with my starport it will surely fail.
This little library can get you out of trouble when you need specific actions about building's footprint. If you got new ideas, this is the place to share it!
P.S: I suggest you to go to my other libraries to leave comments and suggestions and I have finally done a wish list on the official forum of Starcraft 2. My only demand is that people who see, like and use my libraries could go on the battle.net forum and like my comments about the improvement for the editor. It's not an obligation, but It would me make very happy! Here is the link for the forum : http://us.battle.net/sc2/en/forum/topic/6307501153?page=6#110