SC2Mapster Forums

Development > Triggers

How to Create an working Income Region

  • 5 posts
    #1 Dec 21, 2012 at 16:56 UTC - 0 likes

    Hey Guys i want to create a income Region but it dont works

    Income Region

    Please can someone help , its german.

    #2 Dec 21, 2012 at 21:56 UTC - 0 likes

    moved to correct forum and hopefully someone that can speak German can help you

    Current Project: Community Project

    #3 Dec 22, 2012 at 11:52 UTC - 0 likes

    @Nemirisu: Go

    I'm sorry, but I do not understand German, so I do not understand your actions.

    I would highly suggest you to reinstall your game in english, if you are planning to go into SC2 modding (and want to use online forums) it will be a huge barrier for you to not be using the english version.

    NOTE: If you do reinstall, make 100% SURE that you backup your maps and stuff inside the SC2 folder, as it will delete EVERYTHING inside the folder in a matter of seconds, when you uninstall (Which cant be restored).

    For your trigger, please try to explain what you want, then I might be able to create a working one in english for you to translate ;)

    EDIT: If I am right, and I misunderstood this, and you need help translating this, refer to the "Explain what you want" part ;)

    Last edited Dec 22, 2012 by Demtrod
    #4 Dec 22, 2012 at 14:19 UTC - 0 likes

    After toying with translator and mixing and matching some common sense, I see what your trigger does. For other's sake:

    Events
        Unit - Unit enters region Mins (Mins is the region's name)

    Local Variables
        My Hero = Any Unit <Unit>

    Actions
        If (Conditions) are true, do (Actions)
            Conditions
                My Hero is in region Mins == true
            Actions
                General - Wait 5 seconds (not sure if game time or otherwise)
                Modify (Owner of My Hero) minerals: Add 50
        General - Break

    So it looks like what you're trying to do is just give a player minerals every time one of their units enters the specified region, after waiting 5 seconds. To accomplish this, the only things you actually need (seeing as how you don't have any limitations on what unit it is) are the Event you currently have and these actions:

        General - Wait 5 seconds (game time or real time is up to you)
        Modify (Owner of Triggering Unit) Minerals: Add 50

    The rest of the trigger doesn't actually accomplish anything other than look fancy.

    Last edited Dec 22, 2012 by Dragoneles
    #5 Dec 22, 2012 at 15:04 UTC - 0 likes

    @Nemirisu: Go

    Der Fehler liegt hier:

    MyHero = Beliebige Einheit

    "Beliebige Einheit" macht in diesem Zusammenhang keinen Sinn. Ändere Das einfach in "Auslösende Einheit" und das Ganze sollte funktionieren. Die Letzte Zeile ("Unterbrechen") kannst du ebenfalls löschen, sie bewirkt dort nichts.

    http://i55.tinypic.com/wio5t0.jpg

    Starcraft Universe lead programmer

  • 5 posts

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