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
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!
Sure I have ideas, it was and probably is within my plans to create an rts, strongly based on Dune II. Sonic projectile is a model which will look like dune2 sonic tank attack if you use it as its missile model. I made it for sonic turret in my TD map.
NOD tower looks like this, and in my td it attacks with a red ray, so you could do the same, just for nostalgia purposes.
Also I have a model of deviator/launcher, but it's actually a turret.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
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
Bump, 50 views and no comments?
Well, I'm confused what you are doing and that's not enough to make me download and look at the map.
Images that show which problem it can solve might be helpful to make people use this.
@tatatatate: Go
Are you making Dune 2?
@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.
@tatatatate: Go
Is it the project u're working on and plan to release one day or you deserted it and jsut sharing workarounds?
Do you need that NOD laser tower model? Or sonic tank projectile?
@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!
Sure I have ideas, it was and probably is within my plans to create an rts, strongly based on Dune II. Sonic projectile is a model which will look like dune2 sonic tank attack if you use it as its missile model. I made it for sonic turret in my TD map.
NOD tower looks like this, and in my td it attacks with a red ray, so you could do the same, just for nostalgia purposes.
Also I have a model of deviator/launcher, but it's actually a turret.