SC2Mapster Forums

Development > Triggers

[Help] Creating a Neutral Garrison Building

  • 3 posts
    #1 Dec 11, 2012 at 14:55 UTC - 0 likes

    So here's the issue I've been tinkering around to make a bunker-like structure that is neutral and can be used by 2 opposing parties.

    I want to make it a C&C-styled garrison so that range attacks were still valid but also possible to be "stormed" or "flushed out" by a specific enemy unit.

    So my original design was to use the abandoned structure unit, make it neutral, set a one-way alliance from the neutral player to the rest and make a "while" trigger that will change the ownership of any of the said unit to the occupying player but be set back to neutral after it is vacant.

    The problem being I can't find the right value fields to modify and its not coming out well.

    Here are the relevant issues:

    -I want all players to see the cargo space bar.

    -I want ownership to change after occupation.

    -(after value field modifications) I can make my units enter the cargo bay of the transport structure unit but I have either, no control over the unit (it doesn't change ownership), or, no visibility of the command card and its buttons (which I had already set up) or both.

    Any help would be greatly appreciated.

    #2 Dec 13, 2012 at 06:06 UTC - 0 likes

    @darthuser3220:

    Um, I couldn't really make out exactly what you wanted but from what I did make out is that you want to be able to have a neutral structure that can load units as cargo and then change ownership to the unit that is currently loaded as cargo?

    If so, take a look at this. Very simple trigger.

    Untitled Trigger 001
        Events
            Unit - Any Unit Loads cargo
        Local Variables
        Conditions
        Actions
            Unit - Change ownership of (Triggering unit) to player (Owner of (Triggering cargo unit)) and Change Color

    http://www.sc2pod.com/achievement.php?id=13914

    #3 Dec 13, 2012 at 15:29 UTC - 0 likes

    You may find a better solution to this in the Data forum.

    My Projects:
    Malum Ruina: SC2Mapster
    Eternal Exile: SC2Mapster
    Spine Crawler Madness: SC2Mapster
    Xeno Crisis: SC2Mapster

  • 3 posts

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