• 0

    posted a message on Did anyone cry @ the end of lotv?

    I didn't cry becuz LOTV didnt touch me at all, damn WOL has sucha great story and HOTS was good too, well not that great as WOTL but i loved it and when i played LOTV i was like DAMN! Its not the ending i was w8ting for ;( Wheres tragedy, wheres pain? i need more tragedy and less childshit ;(

    Posted in: General Chat
  • 0

    posted a message on What the FUCK of this "Legend of Titan"

    I dont understand what are u talking about, can u please explain it to me.

    Posted in: General Chat
  • 0

    posted a message on flash screen image for triggering player

    cant you just create fullscreen dialog with background image u want? and show/hide it to specific player and you can change transparency dynamicly with loop for specific player aswell to make flash effect.

    Posted in: Triggers
  • 0

    posted a message on I got problems...

    I listen to all u guys said and made this function, i used method from Algorithm folder ZMilla told me to check and mixed with GlornII array method, but i used 2 different variables instead of 1 with double arrays. Function is working fine, ill upload video right now, but im not sure if it has bugs or not and i hope it wont cause laggs on bnet.

    Set Up Leaderboard
        Options: Action
        Return Type: (None)
        Parameters
        Grammar Text: Set Up Leaderboard()
        Hint Text: (None)
        Custom Script Code
        Local Variables
            Iteration = 0 <Integer>
            ArrayIndex = 0 <Integer>
            SwapInteger = 0 <Integer>
        Actions
            General - For each integer Iteration from 1 to (Number of players in TEAM. SR.TEAM A+B) with increment 1, do (Actions)
                Actions
                    Variable - Set SCOR. SR.LEADERBOARD GROUP[Iteration] = (Player Iteration from TEAM. SR.TEAM A+B)
            General - If (Conditions) then do (Actions) else do (Actions)
                If
                    (Number of players in TEAM. SR.TEAM A+B) == 1
                Then
                Else
                    General - For each integer Iteration from 1 to (Number of players in TEAM. SR.TEAM A+B) with increment 1, do (Actions)
                        Actions
                            General - For each integer ArrayIndex from 1 to (Number of players in TEAM. SR.TEAM A+B) with increment 1, do (Actions)
                                Actions
                                    General - If (Conditions) then do (Actions) else do (Actions)
                                        If
                                            SCOR. SR.SCORE POINTS[SCOR. SR.LEADERBOARD GROUP[Iteration]] > SCOR. SR.SCORE POINTS[SCOR. SR.LEADERBOARD GROUP[ArrayIndex]]
                                        Then
                                            Variable - Set SwapInteger = SCOR. SR.LEADERBOARD GROUP[ArrayIndex]
                                            Variable - Set SCOR. SR.LEADERBOARD GROUP[ArrayIndex] = SCOR. SR.LEADERBOARD GROUP[Iteration]
                                            Variable - Set SCOR. SR.LEADERBOARD GROUP[Iteration] = SwapInteger
                                        Else
    
    Posted in: Triggers
  • 0

    posted a message on I got problems...

    doublepost

    Posted in: Triggers
  • 0

    posted a message on I got problems...
    Quote from willuwontu: Go

    @DarcZaFire: Go

    @ZMilla93: Go

    I don't think he wants to sort his array as each element probably corresponds with each player, I think this is something like what he wants

    Var
    highest = 0
    high place = 0
    
    Pick each integer from 0 to 12
        If score[picked integer] > highest
              Set high place = picked integer
              Set highest = score[picked integer]
        End if
    End pick
    
    Display "the highest score is player ", highest place, " with ", highest
    

    Some psuedo-code there, but it tells him who has the highest score and what it is.

    i tried find highest to add it to player group be4 others and then find hiest of them and then add that player, i thought i can use group like list where i pick player with higest score and add players one by one to this group, but by some reason player groups dont work like i thought or maybe i do something wrong.

    Posted in: Triggers
  • 0

    posted a message on I got problems...
    Quote from ZMilla93: Go

    If you are confused on the math behind sorting a set of numbers, you can google "array sort algorithm" and get lots of good information about different ways to sort stuff.

    If you are confused on how to implement such an algorithm in the sc2 editor, there is actually a templete by blizzard. In the trigger editor, click view and make sure "Show Libraries" is check. Then open Built-In>Template>Algorithms to see some example actions that sort an array of scores. You can also just search your question on this website to find other threads about this.

    i checked algorithms and looks like mine informatics knowlage is too low, cuz i dont understand how its working at all :/

    and my function is not wokring also.

    Posted in: Triggers
  • 0

    posted a message on I got problems...

    not sure if im doing is right, i didnt try it yet, if im doing this right to find witch value is highest u just check its numeration in player group from 1 to 12

    Set Up - Leaderboard
        Options: Action
        Return Type: (None)
        Parameters
        Grammar Text: Set Up - Leaderboard()
        Hint Text: (None)
        Custom Script Code
        Local Variables
            Iteration 1 = 0 <Integer>
            Iteration 2 = 0 <Integer>
            A TEAM TOTAL SCORE = (((((SCOR. SR.SCORE POINTS[(Player 1 from TEAM. SR.TEAM A)] + SCOR. SR.SCORE POINTS[(Player 2 from TEAM. SR.TEAM A)]) + SCOR. SR.SCORE POINTS[(Player 3 from TEAM. SR.TEAM A)]) + SCOR. SR.SCORE POINTS[(Player 4 from TEAM. SR.TEAM A)]) + SCOR. SR.SCORE POINTS[(Player 5 from TEAM. SR.TEAM A)]) + SCOR. SR.SCORE POINTS[(Player 6 from TEAM. SR.TEAM A)]) <Integer>
            B TEAM TOTAL SCORE = (((((SCOR. SR.SCORE POINTS[(Player 1 from TEAM. SR.TEAM B)] + SCOR. SR.SCORE POINTS[(Player 2 from TEAM. SR.TEAM B)]) + SCOR. SR.SCORE POINTS[(Player 3 from TEAM. SR.TEAM B)]) + SCOR. SR.SCORE POINTS[(Player 4 from TEAM. SR.TEAM B)]) + SCOR. SR.SCORE POINTS[(Player 5 from TEAM. SR.TEAM B)]) + SCOR. SR.SCORE POINTS[(Player 6 from TEAM. SR.TEAM B)]) <Integer>
        Actions
            General - If (Conditions) then do (Actions) else do (Actions)
                If
                    (Number of players in TEAM. SR.TEAM A+B) > 0
                Then
                    ------- BOTH TEAMS
                    Player Group - Reset SCOR. SR.BOTH TEAMS to have no players
                    General - For each integer Iteration 1 from 1 to (Number of players in TEAM. SR.TEAM A+B) with increment 1, do (Actions)
                        Actions
                            Variable - Set SCOR. SR.BEST OF REST[(Player Iteration 1 from TEAM. SR.TEAM A+B)] = True
                            General - For each integer Iteration 2 from 1 to (Number of players in TEAM. SR.TEAM A+B) with increment 1, do (Actions)
                                Actions
                                    General - If (Conditions) then do (Actions) else do (Actions)
                                        If
                                            Iteration 1 != Iteration 2
                                        Then
                                            General - If (Conditions) then do (Actions) else do (Actions)
                                                If
                                                    SCOR. SR.SCORE POINTS[(Player Iteration 1 from TEAM. SR.TEAM A+B)] >= SCOR. SR.SCORE POINTS[(Player Iteration 2 from TEAM. SR.TEAM A+B)]
                                                Then
                                                Else
                                                    Variable - Set SCOR. SR.BEST OF REST[(Player Iteration 1 from TEAM. SR.TEAM A+B)] = False
                                                    General - Break
                                        Else
                            General - If (Conditions) then do (Actions) else do (Actions)
                                If
                                    SCOR. SR.BEST OF REST[(Player Iteration 1 from TEAM. SR.TEAM A+B)] == True
                                Then
                                    Player Group - Add player (Player Iteration 1 from TEAM. SR.TEAM A+B) to SCOR. SR.BOTH TEAMS
                                Else
                    ------- TWO TEAMS
                    General - If (Conditions) then do (Actions) else do (Actions)
                        If
                            (Number of players in TEAM. SR.TEAM B) > 0
                        Then
                            ------- TEAM A
                            Player Group - Reset SCOR. SR.TOP TEAM to have no players
                            Player Group - Reset SCOR. SR.BOTTOM TEAM to have no players
                            General - For each integer Iteration 1 from 1 to (Number of players in TEAM. SR.TEAM A) with increment 1, do (Actions)
                                Actions
                                    Variable - Set SCOR. SR.BEST OF REST[(Player Iteration 1 from TEAM. SR.TEAM A)] = True
                                    General - For each integer Iteration 2 from 1 to (Number of players in TEAM. SR.TEAM A) with increment 1, do (Actions)
                                        Actions
                                            General - If (Conditions) then do (Actions) else do (Actions)
                                                If
                                                    Iteration 1 != Iteration 2
                                                Then
                                                    General - If (Conditions) then do (Actions) else do (Actions)
                                                        If
                                                            SCOR. SR.SCORE POINTS[(Player Iteration 1 from TEAM. SR.TEAM A)] >= SCOR. SR.SCORE POINTS[(Player Iteration 2 from TEAM. SR.TEAM A)]
                                                        Then
                                                        Else
                                                            Variable - Set SCOR. SR.BEST OF REST[(Player Iteration 1 from TEAM. SR.TEAM A)] = False
                                                            General - Break
                                                Else
                                    General - If (Conditions) then do (Actions) else do (Actions)
                                        If
                                            SCOR. SR.BEST OF REST[(Player Iteration 1 from TEAM. SR.TEAM A)] == True
                                        Then
                                            General - If (Conditions) then do (Actions) else do (Actions)
                                                If
                                                    A TEAM TOTAL SCORE >= B TEAM TOTAL SCORE
                                                Then
                                                    Player Group - Add player (Player Iteration 1 from TEAM. SR.TEAM A) to SCOR. SR.TOP TEAM
                                                Else
                                                    Player Group - Add player (Player Iteration 1 from TEAM. SR.TEAM A) to SCOR. SR.BOTTOM TEAM
                                        Else
                            ------- TEAM B
                            General - For each integer Iteration 1 from 1 to (Number of players in TEAM. SR.TEAM B) with increment 1, do (Actions)
                                Actions
                                    Variable - Set SCOR. SR.BEST OF REST[(Player Iteration 1 from TEAM. SR.TEAM B)] = True
                                    General - For each integer Iteration 2 from 1 to (Number of players in TEAM. SR.TEAM B) with increment 1, do (Actions)
                                        Actions
                                            General - If (Conditions) then do (Actions) else do (Actions)
                                                If
                                                    Iteration 1 != Iteration 2
                                                Then
                                                    General - If (Conditions) then do (Actions) else do (Actions)
                                                        If
                                                            SCOR. SR.SCORE POINTS[(Player Iteration 1 from TEAM. SR.TEAM B)] >= SCOR. SR.SCORE POINTS[(Player Iteration 2 from TEAM. SR.TEAM B)]
                                                        Then
                                                        Else
                                                            Variable - Set SCOR. SR.BEST OF REST[(Player Iteration 1 from TEAM. SR.TEAM B)] = False
                                                            General - Break
                                                Else
                                    General - If (Conditions) then do (Actions) else do (Actions)
                                        If
                                            SCOR. SR.BEST OF REST[(Player Iteration 1 from TEAM. SR.TEAM B)] == True
                                        Then
                                            General - If (Conditions) then do (Actions) else do (Actions)
                                                If
                                                    B TEAM TOTAL SCORE > A TEAM TOTAL SCORE
                                                Then
                                                    Player Group - Add player (Player Iteration 1 from TEAM. SR.TEAM B) to SCOR. SR.TOP TEAM
                                                Else
                                                    Player Group - Add player (Player Iteration 1 from TEAM. SR.TEAM B) to SCOR. SR.BOTTOM TEAM
                                        Else
                        Else
                Else
    
    Posted in: Triggers
  • 0

    posted a message on I got problems...
    Quote from DarcZaFire: Go

    I would set the "uncertain number" to = all YourSetVar[12]'s. Then have a switch.. not sure if you can have >= or > etc. in a switch. On the chance that you cant, I would then just make a bunch of if then elses. If YourSetVar[2] is > YourSetVar[3]... and the same for <. It would beneficial if there was a way to grab highest or lowest values and I guess that's what youre hoping for.

    i still dont understand how to do it ;(

    Posted in: Triggers
  • 0

    posted a message on I got problems...

    i have uncertain number of integers from 2 to 12, and i need to compare them all to know witch value is highest, witch one second, third, etc... i tried to use iteration, but it didnt work, looks like i just dont know method to do it :(

    Posted in: Triggers
  • 0

    posted a message on Automatic Transform ability

    i think u can just create morph ability with autocast, do behavior that enables ur morph ability with validator that disables behavior if u dont have have an upgrade, and when u need to automorph ur unit u just set up upgrade by triggers, u can create 1 ability that morps to Wolf and other to Human, and use 2 different upgrades or 1 upgrade with 2 levels to set up validator. Or mb u dont even need any behavior, just don't make command Button for ability, and make auto-cast validator that checks for this upgrade setted by triggers, it will be even eiser.

    Or just do it with triggers, create morph ability and then night starts make While loop with condition that checks if unit is morphed and action that order him to start morphing.

    Posted in: Data
  • 0

    posted a message on New Leaderboard

    Created new leaderboard for BGHA today, heres screen of new and an old one.

    Posted in: General Chat
  • 0

    posted a message on New patch today 3.3.0 = New Editor stuff ?

    i cant log in battle.net with editor since this patch released... it says PH-The Sunken you are connecting to is denying logins from your program, n1 knows how to fix it?

    Posted in: General Chat
  • 0

    posted a message on New patch today 3.3.0 = New Editor stuff ?
    Quote from egodbout: Go

    i downloaded new dependencies when logging on the editor, lets see

    really nothing?

    Posted in: General Chat
  • 0

    posted a message on question about damage response
    Quote from fishy77: Go

    You could add a behavior and have the requirement on the next two states that the unit must not have that behavior in order to run. Same with the third state.

    I hope this helps you.

    can u show me how to create this kind of requirement, i dont really understand.

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