• 0

    posted a message on Unit choose and skip not playing player

    I think i dont need that one after another system. All players can choose unit sametime. Now i need it when all players is select unit. Game unpause all units. Or is it better way make timer? And how i make player win game when all others players units are dead? Game is FFA.

    SBeier: You ask why i set that player team. I didnt find (Or i am blind) option specific player. So i set that player team. It work. Game is FFA

    Only dialog hide dont work. So my trigger code is now.

     Events
            Dialog - Any Dialog Item is used by Player 1 with event type Clicked
        Local Variables
        Conditions
            Or
                Conditions
                    (Used dialog item) == Marine Nappi
                    (Used dialog item) == Marauder Nappi
                    (Used dialog item) == Reaper Nappi
        Actions
            General - Switch (Actions) depending on (Used dialog item)
                Cases
                    General - If (Marine Nappi)
                        Actions
                            General - Repeat (Actions) 30 times
                                Actions
                                    Unit - Create 1 Marine for player (Triggering player) at (Center of Pelaaja 1 Mini FFA) using default facing (No Options)
                                    Unit Group - Add (Last created unit) to Pelaaja Grouppi Mini FFA[(Triggering player)]
                            UI - Display ((Text (Name of player (Triggering player)) with color (Color((Current player (Triggering player) color)))) + " Choose Marine.") for (Players on team 2) to Subtitle area
                            Unit Group - Pick each unit in Pelaaja Grouppi Mini FFA[(Triggering player)] and do (Actions)
                                Actions
                                    Unit - Pause (Picked unit)
                    General - If (Marauder Nappi)
                        Actions
                            General - Repeat (Actions) 15 times
                                Actions
                                    Unit - Create 1 Marauder for player (Triggering player) at (Center of Pelaaja 1 Mini FFA) using default facing (No Options)
                                    Unit Group - Add (Last created unit) to Pelaaja Grouppi Mini FFA[(Triggering player)]
                            UI - Display ((Text (Name of player (Triggering player)) with color (Color((Current player (Triggering player) color)))) + " Choose Marauder.") for (Players on team 2) to Subtitle area
                            Unit Group - Pick each unit in Pelaaja Grouppi Mini FFA[(Triggering player)] and do (Actions)
                                Actions
                                    Unit - Pause (Picked unit)
                    General - If (Reaper Nappi)
                        Actions
                            General - Repeat (Actions) 30 times
                                Actions
                                    Unit - Create 1 Reaper for player (Triggering player) at (Center of Pelaaja 1 Mini FFA) using default facing (No Options)
                                    Unit Group - Add (Last created unit) to Pelaaja Grouppi Mini FFA[(Triggering player)]
                            UI - Display ((Text (Name of player (Triggering player)) with color (Color((Current player (Triggering player) color)))) + " Choose Reaper.") for (Players on team 2) to Subtitle area
                            Unit Group - Pick each unit in Pelaaja Grouppi Mini FFA[(Triggering player)] and do (Actions)
                                Actions
                                    Unit - Pause (Picked unit)
                Default
                    Dialog - Hide Yksikko valinta for (Player group((Triggering player)))
    


    I make every player own dialog choose, because units cant spawn same region.

    Posted in: Triggers
  • 0

    posted a message on Unit choose and skip not playing player

    Can you say, how i fix this? One way is, i move default triggers to buttons. But that mean again, i have alot wok then.

    Posted in: Triggers
  • 0

    posted a message on Unit choose and skip not playing player

    I noticed that, all triggers what are in default. It doesn't run them. What wrong my triggers is? Why it doesn't run deafault triggers?

    Posted in: Triggers
  • 0

    posted a message on Unit choose and skip not playing player

    Players select unit one after another. Exp: Player 1 select marine. Then player 2 choose unit. But if there is player who is not playing. It cant give turn to next player. Here trigger code.

    Edit: I notice it doesnt hide dialog anymore. Strange. It worked sometime.

        Events
            Dialog - Any Dialog Item is used by Player 1 with event type Clicked
        Local Variables
        Conditions
            Or
                Conditions
                    (Used dialog item) == Marine Nappi
                    (Used dialog item) == Marauder Nappi
                    (Used dialog item) == Reaper Nappi
        Actions
            General - Switch (Actions) depending on (Used dialog item)
                Cases
                    General - If (Marine Nappi)
                        Actions
                            General - Repeat (Actions) 30 times
                                Actions
                                    Unit - Create 1 Marine for player (Triggering player) at (Center of Pelaaja 1 Mini FFA) using default facing (No Options)
                                    Unit Group - Add (Last created unit) to Pelaaja 1 Grouppi Mini FFA
                            UI - Display ((Text (Name of player (Triggering player)) with color (Color((Current player (Triggering player) color)))) + " Choose Marine.") for (Players on team 2) to Subtitle area
                            Unit Group - Pick each unit in Pelaaja 1 Grouppi Mini FFA and do (Actions)
                                Actions
                                    Unit - Pause (Picked unit)
                    General - If (Marauder Nappi)
                        Actions
                            General - Repeat (Actions) 15 times
                                Actions
                                    Unit - Create 1 Marauder for player (Triggering player) at (Center of Pelaaja 1 Mini FFA) using default facing (No Options)
                                    Unit Group - Add (Last created unit) to Pelaaja 1 Grouppi Mini FFA
                            UI - Display ((Text (Name of player (Triggering player)) with color (Color((Current player (Triggering player) color)))) + " Choose Marauder.") for (Players on team 2) to Subtitle area
                            Unit Group - Pick each unit in Pelaaja 1 Grouppi Mini FFA and do (Actions)
                                Actions
                                    Unit - Pause (Picked unit)
                    General - If (Reaper Nappi)
                        Actions
                            General - Repeat (Actions) 30 times
                                Actions
                                    Unit - Create 1 Reaper for player (Triggering player) at (Center of Pelaaja 1 Mini FFA) using default facing (No Options)
                                    Unit Group - Add (Last created unit) to Pelaaja 1 Grouppi Mini FFA
                            UI - Display ((Text (Name of player (Triggering player)) with color (Color((Current player (Triggering player) color)))) + " Choose Reaper.") for (Players on team 2) to Subtitle area
                            Unit Group - Pick each unit in Pelaaja 1 Grouppi Mini FFA and do (Actions)
                                Actions
                                    Unit - Pause (Picked unit)
                Default
                    Dialog - Hide Yksikko valinta for (Player group((Triggering player)))
                    General - If (Conditions) then do (Actions) else do (Actions)
                        If
                            (Status of player 2) == Playing
                        Then
                            Dialog - Show Yksikko valinta for (Players on team 2)
                            UI - Display ((Text (Name of player 2) with color (Color((Current player 2 color)))) + " Choose unit. Please wait.") for (All players) to Subtitle area
                        Else
                            General - If (Conditions) then do (Actions) else do (Actions)
                                If
                                    (Status of player 3) == Playing
                                Then
                                    Dialog - Show Yksikko valinta for (Players on team 3)
                                    UI - Display ((Text (Name of player 3) with color (Color((Current player 3 color)))) + " Choose unit. Please wait.") for (All players) to Subtitle area
                                Else
                                    General - If (Conditions) then do (Actions) else do (Actions)
                                        If
                                            (Status of player 4) == Playing
                                        Then
                                            Dialog - Show Yksikko valinta for (Players on team 4)
                                            UI - Display ((Text (Name of player 4) with color (Color((Current player 4 color)))) + " Choose unit. Please wait.") for (All players) to Subtitle area
                                                                        Else
                                                                            Unit Group - Pick each unit in Pelaaja 1 Grouppi Mini FFA and do (Actions)
                                                                                Actions
                                                                                    Unit - Unpause (Picked unit)
                                                                            Unit Group - Pick each unit in Pelaaja 2 Grouppi Mini FFA and do (Actions)
                                                                                Actions
                                                                                    Unit - Unpause (Picked unit)
                                                                            Unit Group - Pick each unit in Pelaaja 3 Grouppi Mini FFA and do (Actions)
                                                                                Actions
                                                                                    Unit - Unpause (Picked unit)
                                                                            Unit Group - Pick each unit in Pelaaja 4 Grouppi Mini FFA and do (Actions)
                                                                                Actions
                                                                                    Unit - Unpause (Picked unit)
                                                                            UI - Display "Game has started!" for (All players) to Subtitle area
    
    Posted in: Triggers
  • 0

    posted a message on Unit chase range

    Ok thanks now i know where set chase range. So its not possible set follow range specific unit?

    Posted in: Data
  • 0

    posted a message on Unit chase range

    Where i can set unit chase range? Example Zerglin attacking unit when it come close. Is there possible change too, how long unit chase?

    Posted in: Data
  • 0

    posted a message on Leaderboard kill point

    Thanks again. Didnt thought it work in else.

    Posted in: Triggers
  • 0

    posted a message on Leaderboard kill point

    Oh there is one more problem. I have visibility trigger that doest run if player kill self.

    Events

    Unit - Any Unit dies

    Local Variables

    Conditions

    (Unit type of (Triggering unit)) == Sniper

    Actions

    General - If (Conditions) then do (Actions) else do (Actions)

    If

    (Killing unit) != No Unit

    Then

    General - If (Conditions) then do (Actions) else do (Actions)

    If

    (Owner of (Killing unit)) != (Owner of (Triggering unit))

    Then

    Variable - Modify Score[(Owner of (Killing unit))]: + 1

    Leaderboard - Set Leaderboard item text at column 2 and row (Owner of (Killing unit)) to (Text(Score[(Owner of (Killing unit))]))

    UI - Display ((Text (Name of player (Owner of (Killing unit))) with color (Color((Current player (Owner of (Killing unit)) color)))) + (" Killed " + (Text (Name of player (Owner of (Triggering unit))) with color (Color((Current player (Owner of (Triggering unit)) colo for (All players) to Subtitle area

    Visibility - Reveal Näytä Sniper Arena for player (Owner of (Triggering unit)) for 32767.0 seconds and Do Not check cliff level

    Else

    Else

    Posted in: Triggers
  • 0

    posted a message on Leaderboard kill point

    Its work. Thanks. :)

    Posted in: Triggers
  • 0

    posted a message on Leaderboard kill point

    My kill point work well, but there is one problem. If player kill himself, he get point for that too. How prevent get point self kill?

    Events

    Unit - Any Unit dies

    Local Variables

    Conditions

    (Unit type of (Triggering unit)) == Sniper

    Actions

    Variable - Modify Score[(Owner of (Killing unit))]: + 1

    Leaderboard - Set Leaderboard item text at column 2 and row (Owner of (Killing unit)) to (Text(Score[(Owner of (Killing unit))]))

    Posted in: Triggers
  • 0

    posted a message on Race lap score points

    I try make self and i dont know why this dont work. Here is trigger code. It set player minerals to 0, but not give leaderboarder 3 points.

    Events

    Unit - Any Unit Enters Maali

    Local Variables

    Conditions

    Actions

    General - Pick each integer from 1 to 8, and do (Actions)

    Actions

    General - If (Conditions) then do (Actions) else do (Actions)

    If

    (Player (Picked integer) has at least 3 and at least 0) == True

    Then

    Variable - Modify Score[(Picked integer)]: + 3

    Player - Modify player (Picked integer) Minerals: Set To 0

    Trigger - Turn (Current trigger) Off

    Else

    Posted in: Triggers
  • 0

    posted a message on Race lap score points

    When hellion enter goal region. Player got 1 mineral. Mineral works laps. I need score to leaderboard, when player collect 3 mineral first, it get 3 point to leaderboard. Second who collect 3 minerals, get 2 point. Third 1 point.

    I think this can make this way. When first get 3 mineral give it 3 points to player, and turn off trigger ''First points'' and Turn on trigger ''Second points'' and player get second place turn off trigger ''Second points'' turn on trigger ''Third points''

    I need trigger when player is collect 3 mineral. Give him to leaderboarder x points, and i set that turn on/off system.

    I hope this is clear. If there is better way. Sure you can share that info. :D

    Posted in: Triggers
  • 0

    posted a message on Remove player units when left the game

    @CrazyTwigman: Go

    Ok. Thanks to hint. :)

    Posted in: Triggers
  • 0

    posted a message on Remove player units when left the game

    I find way how make this work. Thanks to all for help. Here is trigger code.

    Events

    Timer - Every 1.0 seconds of Game Time

    Local Variables

    Conditions

    Actions

    General - If (Conditions) then do (Actions) else do (Actions)

    If

    (Status of player 1) == Unused

    Then

    Unit Group - Pick each unit in (Any units in (Entire map) owned by player 1 matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)

    Actions

    Unit - Remove (Picked unit) from the game

    Else

    General - If (Conditions) then do (Actions) else do (Actions)

    If (Status of player 2) == Unused

    Then

    Unit Group - Pick each unit in (Any units in (Entire map) owned by player 2 matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)

    Actions

    Unit - Remove (Picked unit) from the game

    Else

    General - If (Conditions) then do (Actions) else do (Actions)

    If

    (Status of player 3) == Unused

    Then

    Unit Group - Pick each unit in (Any units in (Entire map) owned by player 3 matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)

    Actions

    Unit - Remove (Picked unit) from the game

    Else

    General - If (Conditions) then do (Actions) else do (Actions)

    If

    (Status of player 4) == Unused

    Then

    Unit Group - Pick each unit in (Any units in (Entire map) owned by player 4 matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)

    Actions

    Unit - Remove (Picked unit) from the game

    Else

    General - If (Conditions) then do (Actions) else do (Actions)

    If

    (Status of player 5) == Unused

    Then

    Unit Group - Pick each unit in (Any units in (Entire map) owned by player 5 matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)

    Actions

    Unit - Remove (Picked unit) from the game

    Else

    General - If (Conditions) then do (Actions) else do (Actions)

    If

    (Status of player 6) == Unused

    Then

    Unit Group - Pick each unit in (Any units in (Entire map) owned by player 6 matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)

    Actions

    Unit - Remove (Picked unit) from the game

    Else

    General - If (Conditions) then do (Actions) else do (Actions)

    If

    (Status of player 7) == Unused

    Then

    Unit Group - Pick each unit in (Any units in (Entire map) owned by player 7 matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)

    Actions

    Unit - Remove (Picked unit) from the game

    Else

    General - If (Conditions) then do (Actions) else do (Actions)

    If

    (Status of player 8) == Unused

    Then

    Unit Group - Pick each unit in (Any units in (Entire map) owned by player 8 matching Excluded: Missile, Dead, Hidden, with at most Any Amount) and do (Actions)

    Actions

    Unit - Remove (Picked unit) from the game

    Else

    Posted in: Triggers
  • 0

    posted a message on Remove player units when left the game

    @iE4TM4PS: Go

    Can you give that trigger code? It is easier find.

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