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 ;(
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.
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.
SetUpLeaderboardOptions:ActionReturnType:(None)ParametersGrammarText:SetUpLeaderboard()HintText:(None)CustomScriptCodeLocalVariablesIteration=0<Integer>ArrayIndex=0<Integer>SwapInteger=0<Integer>ActionsGeneral-ForeachintegerIterationfrom1to(NumberofplayersinTEAM.SR.TEAMA+B)withincrement1,do(Actions)ActionsVariable-SetSCOR.SR.LEADERBOARDGROUP[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.LEADERBOARDGROUP[Iteration]] > SCOR. SR.SCORE POINTS[SCOR.SR.LEADERBOARDGROUP[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
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
Varhighest=0highplace=0Pickeachintegerfrom0to12Ifscore[pickedinteger]>highestSethighplace=pickedintegerSethighest=score[pickedinteger]EndifEndpickDisplay"the highest score is player ",highestplace," 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.
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 :/
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
SetUp-LeaderboardOptions:ActionReturnType:(None)ParametersGrammarText:SetUp-Leaderboard()HintText:(None)CustomScriptCodeLocalVariablesIteration1=0<Integer>Iteration2=0<Integer>ATEAMTOTALSCORE=(((((SCOR.SR.SCOREPOINTS[(Player1fromTEAM.SR.TEAMA)] + SCOR. SR.SCORE POINTS[(Player2fromTEAM.SR.TEAMA)]) + SCOR. SR.SCORE POINTS[(Player3fromTEAM.SR.TEAMA)]) + SCOR. SR.SCORE POINTS[(Player4fromTEAM.SR.TEAMA)]) + SCOR. SR.SCORE POINTS[(Player5fromTEAM.SR.TEAMA)]) + SCOR. SR.SCORE POINTS[(Player6fromTEAM.SR.TEAMA)]) <Integer>
B TEAM TOTAL SCORE = (((((SCOR. SR.SCORE POINTS[(Player1fromTEAM.SR.TEAMB)] + SCOR. SR.SCORE POINTS[(Player2fromTEAM.SR.TEAMB)]) + SCOR. SR.SCORE POINTS[(Player3fromTEAM.SR.TEAMB)]) + SCOR. SR.SCORE POINTS[(Player4fromTEAM.SR.TEAMB)]) + SCOR. SR.SCORE POINTS[(Player5fromTEAM.SR.TEAMB)]) + SCOR. SR.SCORE POINTS[(Player6fromTEAM.SR.TEAMB)]) <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[(PlayerIteration1fromTEAM.SR.TEAMA+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[(PlayerIteration1fromTEAM.SR.TEAMA+B)] >= SCOR. SR.SCORE POINTS[(PlayerIteration2fromTEAM.SR.TEAMA+B)]
Then
Else
Variable - Set SCOR. SR.BEST OF REST[(PlayerIteration1fromTEAM.SR.TEAMA+B)] = False
General - Break
Else
General - If (Conditions) then do (Actions) else do (Actions)
If
SCOR. SR.BEST OF REST[(PlayerIteration1fromTEAM.SR.TEAMA+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[(PlayerIteration1fromTEAM.SR.TEAMA)] = 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[(PlayerIteration1fromTEAM.SR.TEAMA)] >= SCOR. SR.SCORE POINTS[(PlayerIteration2fromTEAM.SR.TEAMA)]
Then
Else
Variable - Set SCOR. SR.BEST OF REST[(PlayerIteration1fromTEAM.SR.TEAMA)] = False
General - Break
Else
General - If (Conditions) then do (Actions) else do (Actions)
If
SCOR. SR.BEST OF REST[(PlayerIteration1fromTEAM.SR.TEAMA)] == 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[(PlayerIteration1fromTEAM.SR.TEAMB)] = 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[(PlayerIteration1fromTEAM.SR.TEAMB)] >= SCOR. SR.SCORE POINTS[(PlayerIteration2fromTEAM.SR.TEAMB)]
Then
Else
Variable - Set SCOR. SR.BEST OF REST[(PlayerIteration1fromTEAM.SR.TEAMB)] = False
General - Break
Else
General - If (Conditions) then do (Actions) else do (Actions)
If
SCOR. SR.BEST OF REST[(PlayerIteration1fromTEAM.SR.TEAMB)] == 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
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 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 :(
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.
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?
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.
0
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 ;(
0
I dont understand what are u talking about, can u please explain it to me.
0
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.
0
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.
0
doublepost
0
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.
0
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.
0
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
0
i still dont understand how to do it ;(
0
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 :(
0
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.
0
Created new leaderboard for BGHA today, heres screen of new and an old one.
0
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?
0
really nothing?
0
can u show me how to create this kind of requirement, i dont really understand.