• 0

    posted a message on Trigger for Lobby game attributes

    I found a way to do it, but I have to make like 7 triggers for each player. Since it's the only way i can find I will have to do it. Here's what I did:

             General - If (Conditions) then do (Actions) else do (Actions)
                If
                    Or
                        Conditions
                            (Team value for player 1) == Team 1
                            (Team value for player 1) == Team 1
                            (Team value for player 1) == Team 1
                            (Team value for player 1) == Team 1
                            (Team value for player 1) == Team 1
                            (Team value for player 1) == Team 1
                            (Team value for player 1) == Team 1
                Then
                    Player Group - Add player 1 to Team 1
                Else
                    Player Group - Add player 1 to Team 2
    

    Since I have to make it so there are only a certain number of players per team, I had to make a bunch of the same attribute and make it first come, first serve.

    Posted in: Triggers
  • 0

    posted a message on Trigger for Lobby game attributes

    Is there a trigger to do something if a player uses a certain attribute from the lobby? My lobby is glitching so I'm trying to make the players pick which team they want to be on through an attribute in the lobby.

    If there is not a trigger for this, what other way can I assign players to a team?

    Posted in: Triggers
  • 0

    posted a message on Working as a Team

    @Scionave: Go

    if someone is only doing terrain, you just make the map with all the triggers and data into a mod and add it in when your done

    Posted in: Miscellaneous Development
  • 0

    posted a message on Players not working right in lobby

    Yes i did that on most if not all the triggers however, what i meant is that since the players arent going to the right team, a player on team 2 in the lobby gets placed on team 1 in game

    Posted in: Miscellaneous Development
  • 0

    posted a message on Players not working right in lobby

    I have a problem. When a player joins my lobby, they become the player number that they joined as. So if they move to the other team to even out the ratio of players per team, when the game starts they enter as what they joined first as. How do I make them start as the player they are in the lobby?

    Posted in: Miscellaneous Development
  • 0

    posted a message on Upgrade that adds health

    I have the upgrade and button and prices right, but I don't know how to get the effect to add health to a different unit (their base).

    Posted in: Data
  • 0

    posted a message on Revive unit that's not pre-placed

    @fishy77: Go

    Nevermind. I found the problem.

    Posted in: Triggers
  • 0

    posted a message on Revive unit that's not pre-placed

    hmm. so now everything works, however for some reason, no matter what region and point i put it keeps spawning my unit in a place i dont want it to. i put a debug message and its running the right trigger, for some reason its just not doing the trigger correctly.

    For example. i told it to spawn and pan to region one and then it does all of it to region 2. then i changed region 1 to region 7, and it still went to region 2.

    Posted in: Triggers
  • 0

    posted a message on Revive unit that's not pre-placed

    Yup it was in map options.

    Posted in: Triggers
  • 0

    posted a message on Zerg Units Bug!! Let's Solve it!

    @coolcool1994: Go

    what your condition is saying, is that it will count the number of living units in your unit group. Not the number of hatcheries. You should check to make sure the units you want are actually being added to the unit group.

    Posted in: Triggers
  • 0

    posted a message on Revive unit that's not pre-placed

    Right now the only way I found to do it is to make two messages and have one say the player and one say killed you.

    Also, I remember seeing it once but I don't remember where it was. Where is the thing that makes the trigger errors not appear?

    Posted in: Triggers
  • 0

    posted a message on Revive unit that's not pre-placed

    @TheAlmaity: Go

    It worked, thanks :) so now I have one last thing I cant figure out. I want to make a message that tells you who killed you when you die. I know it would be a message and it would use killing player, but it wont let me use both my own text and a function. Also, the killing player isn't in the functions for the message action.

    Posted in: Triggers
  • 0

    posted a message on Revive unit that's not pre-placed

    well, i tried the,

    (Triggering player == Player 1 of Allies of Player 1)

    and now it thinks that no one is clicking the dialog so the dialog clicked trigger isnt working now.

     revive 2 Team 2
        Events
            Dialog - Any Dialog Item is used by Player Any Player with event type Clicked
        Local Variables
        Conditions
            Or
                Conditions
                    (Triggering player) == (Player 1 from (Allies of player 7))
                    (Triggering player) == (Player 2 from (Allies of player 7))
                    (Triggering player) == (Player 3 from (Allies of player 7))
                    (Triggering player) == (Player 4 from (Allies of player 7))
                    (Triggering player) == (Player 5 from (Allies of player 7))
                    (Triggering player) == (Player 6 from (Allies of player 7))
        Actions
            General - If (Conditions) then do (Actions) else do (Actions)
                If
                    (Used dialog item) == revive unit dialog item[0]
                Then
                    Player Group - Remove player (Triggering player) from triggering player 2
                    Unit - Revive respawn unit[(Triggering player)]
                    Unit - Move respawn unit[(Triggering player)] instantly to Point 002 (No Blend)
                    Dialog - Hide Revive unit dialog for (Active Players)
                    Camera - Pan the camera for player (Triggering player) to (Center of Region 002) over 2.0 seconds with Existing Velocity% initial velocity, 10% deceleration, and Do Not use smart panning
                Else
                    General - If (Conditions) then do (Actions) else do (Actions)
                        If
                            (Used dialog item) == revive unit dialog item[1]
                        Then
                            Player Group - Remove player (Triggering player) from triggering player 2
                            Unit - Create 1 Probe for player (Triggering player) at Start Location 002 facing 270.0 degrees (No Options)
                            Debug - Display "Team 2 Is on" as debug output using Type 1, and Do display it in the game window
                            Unit Group - Add (Last created unit) to probe group
                            Dialog - Hide Revive unit dialog for (Active Players)
                            Camera - Pan the camera for player (Triggering player) to (Center of Region 004) over 2.0 seconds with Existing Velocity% initial velocity, 10% deceleration, and Do Not use smart panning
                        Else
    


    Dialog used trigger ^

     revive Team 1
        Events
            Unit - Any Unit dies
        Local Variables
        Conditions
            Not
                Conditions
                    (Owner of (Triggering unit)) == (Player 15 from (All players))
                    Or
                        Conditions
                            (Triggering unit) == (Unit (Triggering player) from probe group)
            Or
                Conditions
                    (Owner of (Triggering unit)) == (Player 1 from (Allies of player 1))
                    (Owner of (Triggering unit)) == (Player 2 from (Allies of player 1))
                    (Owner of (Triggering unit)) == (Player 3 from (Allies of player 1))
                    (Owner of (Triggering unit)) == (Player 4 from (Allies of player 1))
                    (Owner of (Triggering unit)) == (Player 5 from (Allies of player 1))
                    (Owner of (Triggering unit)) == (Player 6 from (Allies of player 1))
                    And
                        Conditions
        Actions
            Unit - Move (Triggering unit) instantly to Point 017 (No Blend)
            Player Group - Add player (Triggering player) to triggering player 2
            Timer - Create a timer window for revive timer, with the title "Time before revive", using Remaining time (initially Visible)
            Timer - Show revive timer 2 for triggering player 2
            Timer - Start revive timer as a One Shot timer that will expire in 30.0 Game Time seconds
            Timer - Show (Last created timer window) for triggering player 2
            Unit Group - Add (Triggering unit) to Revive unit group
            General - Wait for revive timer to have 0.0 seconds Remaining
            Timer - Hide revive timer 2 for (All players)
            Timer - Hide (Last created timer window) for (All players)
            Dialog - Create a Modal dialog of size (500, 500) at (0, 0) relative to Center of screen
            Variable - Set Revive unit dialog = (Last created dialog)
            Dialog - Create a label for dialog Revive unit dialog with the dimensions (100, 100) anchored to Top Left with an offset of (50, 50) with the text "Revive unit or pick a new one?" color set to White text writeout set to False with a writeout duration of 2.0
            Dialog - Create a button for dialog Revive unit dialog with the dimensions (200, 200) anchored to Left with an offset of (0, 0) setting the tooltip to "Revive your current unit." with button text "Revive" and the hover image set to ""
            Variable - Set revive unit dialog item[0] = (Last created dialog item)
            Dialog - Create a button for dialog Revive unit dialog with the dimensions (200, 200) anchored to Right with an offset of (0, 0) setting the tooltip to "Pick a new unit." with button text "Pick a new unit." and the hover image set to ""
            Variable - Set revive unit dialog item[1] = (Last created dialog item)
            Dialog - Show Revive unit dialog for triggering player 2
    


    other trigger ^

    also, the timer is still starting for a player 15 death.

    Posted in: Triggers
  • 0

    posted a message on Revive unit that's not pre-placed

    @TheAlmaity: Go

    Alright. thanks for the help. i shall try those. :)

    Posted in: Triggers
  • 0

    posted a message on Revive unit that's not pre-placed
    revive 2 Team 1
        Events
            Dialog - Any Dialog Item is used by Player Any Player with event type Clicked
        Local Variables
        Conditions
            Or
                Conditions
                    (Owner of (Triggering unit)) == (Player 1 from (Allies of player 1))
                    (Owner of (Triggering unit)) == (Player 2 from (Allies of player 1))
                    (Owner of (Triggering unit)) == (Player 3 from (Allies of player 1))
                    (Owner of (Triggering unit)) == (Player 4 from (Allies of player 1))
                    (Owner of (Triggering unit)) == (Player 5 from (Allies of player 1))
                    (Owner of (Triggering unit)) == (Player 6 from (Allies of player 1))
                    And
                        Conditions
                            Not
                                Conditions
                                    (Owner of (Triggering unit)) == (Player 15 from (All players))
                                    (Triggering unit) == (Unit (Triggering player) from probe group)
        Actions
            General - If (Conditions) then do (Actions) else do (Actions)
                If
                    (Used dialog item) == revive unit dialog item[0]
                Then
                    Player Group - Remove player (Triggering player) from triggering player 2
                    Unit - Revive respawn unit[(Triggering player)]
                    Debug - Display (Name of player (Triggering player)) as debug output using Type 1, and Do display it in the game window
                    Unit - Move respawn unit[(Triggering player)] instantly to Point 002 (No Blend)
                    Dialog - Hide Revive unit dialog for (Active Players)
                    Camera - Pan the camera for player (Triggering player) to (Center of Region 002) over 2.0 seconds with Existing Velocity% initial velocity, 10% deceleration, and Do Not use smart panning
                Else
                    General - If (Conditions) then do (Actions) else do (Actions)
                        If
                            (Used dialog item) == revive unit dialog item[1]
                        Then
                            Player Group - Remove player (Triggering player) from triggering player 2
                            Unit - Create 1 Probe for player (Triggering player) at Start Location 001 facing 270.0 degrees (No Options)
                            Debug - Display "Team 1 is on" as debug output using Type 1, and Do display it in the game window
                            Unit Group - Add (Last created unit) to probe group
                            Dialog - Hide Revive unit dialog for (Active Players)
                            Camera - Pan the camera for player (Triggering player) to (Center of Region 004) over 2.0 seconds with Existing Velocity% initial velocity, 10% deceleration, and Do Not use smart panning
                        Else
    


    Team 1 probe spawn ^

     revive 2 Team 2
        Events
            Dialog - Any Dialog Item is used by Player Any Player with event type Clicked
        Local Variables
        Conditions
            Or
                Conditions
                    (Owner of (Triggering unit)) == (Player 7 from (Allies of player 7))
                    (Owner of (Triggering unit)) == (Player 8 from (Allies of player 7))
                    (Owner of (Triggering unit)) == (Player 9 from (Allies of player 7))
                    (Owner of (Triggering unit)) == (Player 10 from (Allies of player 7))
                    (Owner of (Triggering unit)) == (Player 11 from (Allies of player 7))
                    (Owner of (Triggering unit)) == (Player 12 from (Allies of player 7))
                    And
                        Conditions
                            Not
                                Conditions
                                    (Triggering unit) == (Unit (Triggering player) from probe group)
        Actions
            General - If (Conditions) then do (Actions) else do (Actions)
                If
                    (Used dialog item) == revive unit dialog item[0]
                Then
                    Player Group - Remove player (Triggering player) from triggering player 2
                    Unit - Revive respawn unit[(Triggering player)]
                    Unit - Move respawn unit[(Triggering player)] instantly to Point 001 (No Blend)
                    Dialog - Hide Revive unit dialog for (Active Players)
                    Camera - Pan the camera for player (Triggering player) to (Center of Region 001) over 2.0 seconds with Existing Velocity% initial velocity, 10% deceleration, and Do Not use smart panning
                Else
                    General - If (Conditions) then do (Actions) else do (Actions)
                        If
                            (Used dialog item) == revive unit dialog item[1]
                        Then
                            Player Group - Remove player (Triggering player) from triggering player 2
                            Unit - Create 1 Probe for player (Triggering player) at Start Location 002 facing 270.0 degrees (No Options)
                            Debug - Display "Team 2 Is on" as debug output using Type 1, and Do display it in the game window
                            Unit Group - Add (Last created unit) to probe group
                            Dialog - Hide Revive unit dialog for (Active Players)
                            Camera - Pan the camera for player (Triggering player) to (Center of Region 003) over 2.0 seconds with Existing Velocity% initial velocity, 10% deceleration, and Do Not use smart panning
                        Else
    


    Probe 2 spawn ^

     revive Team 1
        Events
            Unit - Any Unit dies
        Local Variables
        Conditions
            Or
                Conditions
                    (Owner of (Triggering unit)) == (Player 1 from (Allies of player 1))
                    (Owner of (Triggering unit)) == (Player 2 from (Allies of player 1))
                    (Owner of (Triggering unit)) == (Player 3 from (Allies of player 1))
                    (Owner of (Triggering unit)) == (Player 4 from (Allies of player 1))
                    (Owner of (Triggering unit)) == (Player 5 from (Allies of player 1))
                    (Owner of (Triggering unit)) == (Player 6 from (Allies of player 1))
                    And
                        Conditions
                            Not
                                Conditions
                                    (Owner of (Triggering unit)) == (Player 15 from (All players))
                                    (Triggering unit) == (Unit (Triggering player) from probe group)
        Actions
            Timer - Show revive timer 2 for triggering player 2
            Unit - Move (Triggering unit) instantly to Point 017 (No Blend)
            Player Group - Add player (Triggering player) to triggering player 2
            Timer - Start revive timer as a One Shot timer that will expire in 30.0 Game Time seconds
            Timer - Show (Last created timer window) for triggering player 2
            Unit Group - Add (Triggering unit) to Revive unit group
            General - Wait for revive timer to have 0.0 seconds Remaining
            Timer - Hide revive timer 2 for (All players)
            Timer - Hide (Last created timer window) for (All players)
            Dialog - Create a Modal dialog of size (500, 500) at (0, 0) relative to Center of screen
            Variable - Set Revive unit dialog = (Last created dialog)
            Dialog - Create a label for dialog Revive unit dialog with the dimensions (100, 100) anchored to Top Left with an offset of (50, 50) with the text "Revive unit or pick a new one?" color set to White text writeout set to False with a writeout duration of 2.0
            Dialog - Create a button for dialog Revive unit dialog with the dimensions (200, 200) anchored to Left with an offset of (0, 0) setting the tooltip to "Revive your current unit." with button text "Revive" and the hover image set to ""
            Variable - Set revive unit dialog item[0] = (Last created dialog item)
            Dialog - Create a button for dialog Revive unit dialog with the dimensions (200, 200) anchored to Right with an offset of (0, 0) setting the tooltip to "Pick a new unit." with button text "Pick a new unit." and the hover image set to ""
            Variable - Set revive unit dialog item[1] = (Last created dialog item)
            Dialog - Show Revive unit dialog for triggering player 2
    


    My trigger for the timer. ^

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