SC2Mapster Forums

Resources > Trigger Libraries & Scripts

Little bonus: Event that WORKS with unit's footprint...

  • 8 posts
    #1 Jan 05, 2013 at 20:24 UTC - 0 likes

    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

    Last edited Jan 07, 2013 by tatatatate
    Name Description Size MD5
    Footprint_event_mechanic.SC2Map Example Map 56.2 KiB 7bba08c4fa3d...
    Footprint_event_mechanic.SC2Lib Library 201.0 KiB 71df5bc6e373...
    #2 Jan 07, 2013 at 22:36 UTC - 0 likes

    Bump, 50 views and no comments?

    #3 Jan 07, 2013 at 22:46 UTC - 0 likes
    Quote from tatatatate: Go

    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.

    http://img42.imageshack.us/img42/7586/signaturemj.jpg

    #4 Jan 07, 2013 at 22:58 UTC - 0 likes

    @tatatatate: Go

    Are you making Dune 2?

    #5 Jan 08, 2013 at 00:00 UTC - 0 likes

    @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.

    #6 Jan 08, 2013 at 01:26 UTC - 0 likes

    @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?

    Last edited Jan 08, 2013 by Zolden
    #7 Jan 08, 2013 at 02:34 UTC - 0 likes

    @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!

    #8 Jan 08, 2013 at 10:53 UTC - 0 likes

    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.

    http://www.sc2mapster.com/media/attachments/32/871/nod_tower.jpg

    Also I have a model of deviator/launcher, but it's actually a turret.

    http://www.sc2mapster.com/media/attachments/33/77/deviator.jpg

  • 8 posts

You must login to post a comment. Don't have an account? Register to get one!