SC2Mapster Forums

General > General Chat

[2.0.4]Fix your map with "Override Player Option"

  • 14 posts
    #1 Feb 19, 2013 at 18:01 UTC - 6 likes

    Now with the new game options of Patch 2.0:

    - Game Setting "Enable Simple Command Card" is on by default, so all buttons in row 1 and 2 of unit command card would be hidden.

    - "Enable Enemy Unit Selection" is off by default, so players can't select Enemy/Friend(non-shared control allys)'s units.

    These would certainly break some maps.

    If your map have these issues, you need to use a 2.0.4 new trigger action: "Override Player Option" to fix your map.

    This action can override gameplay settings specified player(Only affect in its current game of course), so you can use it to turn on/off these game options.

    Fix it
        Events
            Game - Map initialization
        Local Variables
            p = 0 <Integer>
        Conditions
        Actions
            Player Group - For each player p in (All players) do (Actions)
                Actions
                    Player - Override Enable Enemy Unit Selection option for player p to Enabled
                    Player - Override Enable Simple Command Card option for player p to Disabled
    

    The galaxy version of this action is "PlayerOptionOverride(int,string,string)", it's a hidden function so you can't find this function in Native.galaxy. I guess blizzard forgot to add it. You can still use this function to in galaxy though.

    Last edited Feb 19, 2013 by Renee2islga
    #2 Feb 19, 2013 at 18:14 UTC - 0 likes

    Plus: Even with "Simple Command Card" on, you can still force certain buttons to be displayed on row 1 and row 2- By set its "Hides For Simple Text" flag to "Disabled" in Button Editor.

    Last edited Feb 19, 2013 by Renee2islga
    #3 Feb 20, 2013 at 04:56 UTC - 0 likes

    thanks, will use this.

    #4 Feb 20, 2013 at 07:16 UTC - 0 likes

    I find useful for my maps to set this 2 too:
    Player - Override Display Game Tooltips option for player (Picked player) to Enabled (even though its enabled by default)
    Player - Override Show Alerts option for player (Picked player) to Enabled

    Homepage: www.sc2goa.com

    #5 Feb 20, 2013 at 13:15 UTC - 0 likes

    Thanks. :)

    #6 Feb 20, 2013 at 14:31 UTC - 0 likes

    Thanks, now we are again able to play)

    #7 Feb 21, 2013 at 03:05 UTC - 0 likes

    thank you for this !

    #8 Feb 21, 2013 at 11:14 UTC - 0 likes

    Wohoo! Thanks a lot!

    Working on a project so awesome I won't tell you about it!

    Icebane @ B.NET EU

    #9 Feb 21, 2013 at 12:43 UTC - 0 likes

    What exactly is the problem with maps and such a command cart? Isn't there a feature in Options where you can untick this simple command cart..

    #10 Feb 21, 2013 at 13:59 UTC - 0 likes
    Quote from Eimtr: Go

    What exactly is the problem with maps and such a command cart? Isn't there a feature in Options where you can untick this simple command cart..

    This is so you can force players options while they are playing your map, Simple command card is a melee feature.

    my maps will always be Free. and Available to the public at the earliest possible date.

    If you need a tester feel free to ask IShadowWolf.258

    You can also catch me on the IRC most times.

    #11 Feb 21, 2013 at 15:48 UTC - 0 likes

    Thanks for the info!

    #12 Feb 22, 2013 at 10:56 UTC - 0 likes

    Anoyne had problems with Color Formatting in text values not showing in game?

    #13 Feb 26, 2013 at 03:45 UTC - 0 likes

    Having an issue: Units loaded into a Bunker are removed from the Control Group they were in now, but unsure how to fix this (other than a trigger that fires when ability 'unload' is cast to then pick all units of triggering player and add to control group 1).

    Maps: Zone Control 4, Sentry Hunt, Team Blitz Tactics, Microcraft

    #14 Mar 01, 2013 at 21:37 UTC - 0 likes

    Those features just in the end are hindering players who don't bother to check out the options menu. It is like something what was bought over from Diablo III's design. Of course those same players would blame that map is broken due of that too.

    Last edited Mar 01, 2013 by Clord
  • 14 posts

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