• 0

    posted a message on Game Attributes

    So I'm having a bit of a problem. I created a Game Attribute named "Score Limit" with the values { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }, and a global variable named Points to win.. Basically, I want the host to be able to choose how many points to play to, then when the game starts, set the Points to Win variable to what was selected in the lobby. But I can't figure out how to actually REFERENCE the attribute.

    I know I can do "If => Condition (Score Limit game value == 5) => then do (Set Points to Win = 5)", but to do it that way, I have to make 10 different if statements. Is that really the only way?

    Anyone have any ideas for me?

    TL;DR - need a way to convert game attribute from lobby to an integer (or something that I can then convert to an integer).

    Posted in: Triggers
  • 0

    posted a message on Need help toggling "Ally Colors" setting

    Thanks! Worked perfectly.

    Posted in: Triggers
  • 0

    posted a message on Need help toggling "Ally Colors" setting

    My friends and I have been playing a lot of the map named Lightcycles, and to our surprise, it was actually unlocked. So we've set about trying to add a team mode to it, because it adds a fun new dynamic. But, the map itself has all of the default blizzard UI turned off, which means that the normally "Toggle Ally Colors" button is gone, so the keybinding for it doesn't even work. I've been trying to add it back, but I just can't seem to figure it out. Any ideas?

    Here's what I have:

    Laggy Test
        Events
            UI - Player Any Player presses F key Down with shift Exclude, control Exclude, alt Require
        Local Variables
            TeamColors <Ally Color Setting>
        Conditions
        Actions
            General - If (Conditions) then do (Actions) else do (Actions)
                If
                    TeamColors == Normal Colors
                Then
                    Variable - Set TeamColors = Team Colors for Minimap and Game View
                    UI - Lock ally color settings for players in (Player group((Triggering player))) to Team Colors for Minimap and Game View
                Else
                    UI - Lock ally color settings for players in (Player group((Triggering player))) to Normal Colors
                    Variable - Set TeamColors = Normal Colors
    

    The first time I hit alt+f, it turns on the team colors fine. All of the players change colors like expected. But hitting it again just doesn't do anything. The team colors just always stay on. Any ideas?

    Posted in: Triggers
  • To post a comment, please or register a new account.