Really cool but since everyone can run a map with their friends only it gives easy way to fake W/L ratio. If only we could use Blizzard's matchmaking system...
Seems to be an error with the texts values. It loads up as param/value/*randomnumbersandletters* for each header/rank.
i went to the texts in the trigger and litteraly just opening the value and closing it fixed the names, except it still messes up on the win/lose% section.
Ive been having difficulty getting your system to work for a 4v4
"If you decide the map to be a team game with more than one player to win, set more than one integer variable for the player(s) winning in your winning condition triggers, and in 'Career Stats Data' add 'Or' condition and under 'Or 'add additional conditions Picked Integer = e.g. your 1st integer variable, Picked Integer = your 2nd integer, your 3rd integer etc., in this way all winners get a win, no matter how many, all losers get a loss. If you add more players, change the Pick Each Integer to be from 1 to (the number of players you will use). Leaderboard should be then set with more than 8 Rows, synchronize the triggers."
I added Variables Victory 2, Victory 3, Victory 4.
I added The Or Condition in
-General - If (condition) then do (actions} else do (actions)
>IF
(picked integer ) == Victory
OR
> Conditions
(picked integer ) == Victory 2
(picked integer) == Victory 3
(picked integer) == Victory 4
With this Or condition alone, no wins are awarded to any body, and instead, everyone gets a loss - even the winners..
Also, im trying to set losses for players that leave. I know theres a problem with bnet detecting defeated or tied players, so i have it triggering like this
Player - Player any Player leaves the game with Any
Actions:
General - If (conditions) then do (actions) else do (actions)
> If
Victory == (triggering player)
> then
> Else
runs the trigger from your victory command*
What needs to be takin out so it just registers a single loss for the triggering player, and not for every player?
Oh ok i get it. I was making completely new variables instead of setting the original one to an array. And its a custom map, not melee.
So you say you have a map with team wins, is there anyway you can upload that? My map loses all integer arrays for players once computer players are added so your script isn't testable for me with my map if computer players are present (its my map thats broken, not your script.) This way, it would save me the hassle of having to find players over bnet to test with me.
Update: With the latest change, all you have to do is set the variable for each winning player and add them under 'Or' condition in 'Career Stats Data'. I did my own experiment, here is a team victory system with random teams, each time different players are combined, and you can be in the Red or in the Blue team.
Note: The League Placement messes up so hard because this map is to test team stats and it is still Multiplayer map. When playing with Computers, the Single Player steps should be applied using different Section of the Bank for each Computer player (see the screenshot with triggers above).
Not approved. The system has some obvious inefficiencies.
Instead of executing a bunch of different triggers on the same event (such as on map initialization) or using trigger execute, use custom actions.
Reduce repeated code by using parameters and record arrays to pass information around. You don't need an action for each rank assignment; you can use a single action that takes an integer parameter that refers to an index of a record array, and get all the important information from it to use in its actions.
I have managed to greatly reduce the redundancy of some triggers in this system and its only really 4-5 functions and triggers now for a standard map. If you would like me to send you a copy so you can upload it or something that would be great, you said you wanted to learn how to use parameters, and I have basically converted a lot of it to functions.
Let me know, because this is a really great system when done right. (I'm sure there are people who will say even my coding is redudant :3)
....
Really cool but since everyone can run a map with their friends only it gives easy way to fake W/L ratio. If only we could use Blizzard's matchmaking system...
Pretty cool. Would take a map like micro wars to the next level.
Thanks ^ ^ All should be fine with it, no errors, for Single Player it's just a small issue.
@sigmapl: Go
There are ways to protect the Banks to not allow them to work properly, so this shouldn't be an issue. It is up to the mapmakers to protect it ;>
Seems to be an error with the texts values. It loads up as param/value/*randomnumbersandletters* for each header/rank.
i went to the texts in the trigger and litteraly just opening the value and closing it fixed the names, except it still messes up on the win/lose% section.
There a fix to this?
Updated.
It should have no problems with the names in Battle net. The issue was only for Single Player if the player isn't set to be Computer.
Nice work!
Im still seeing the same problem. All the names are replaced with coding "paremvalue/.../.." instead of score board names
Im getting the same problem on other computers. does it have anything to do which folder the map is downloaded too?
EDIT* seems like that was the problem. Thanks for the script! will give credit.
Ive been having difficulty getting your system to work for a 4v4
"If you decide the map to be a team game with more than one player to win, set more than one integer variable for the player(s) winning in your winning condition triggers, and in 'Career Stats Data' add 'Or' condition and under 'Or 'add additional conditions Picked Integer = e.g. your 1st integer variable, Picked Integer = your 2nd integer, your 3rd integer etc., in this way all winners get a win, no matter how many, all losers get a loss. If you add more players, change the Pick Each Integer to be from 1 to (the number of players you will use). Leaderboard should be then set with more than 8 Rows, synchronize the triggers."
I added Variables Victory 2, Victory 3, Victory 4.
I added The Or Condition in
-General - If (condition) then do (actions} else do (actions)
>IF
(picked integer ) == Victory
OR
> Conditions
(picked integer ) == Victory 2
(picked integer) == Victory 3
(picked integer) == Victory 4
With this Or condition alone, no wins are awarded to any body, and instead, everyone gets a loss - even the winners..
Also, im trying to set losses for players that leave. I know theres a problem with bnet detecting defeated or tied players, so i have it triggering like this
Player - Player any Player leaves the game with Any
Actions:
General - If (conditions) then do (actions) else do (actions)
> If
Victory == (triggering player)
> then
> Else
What needs to be takin out so it just registers a single loss for the triggering player, and not for every player?
.....
@Eimtr: Go
Oh ok i get it. I was making completely new variables instead of setting the original one to an array. And its a custom map, not melee.
So you say you have a map with team wins, is there anyway you can upload that? My map loses all integer arrays for players once computer players are added so your script isn't testable for me with my map if computer players are present (its my map thats broken, not your script.) This way, it would save me the hassle of having to find players over bnet to test with me.
Thanks!
Update: With the latest change, all you have to do is set the variable for each winning player and add them under 'Or' condition in 'Career Stats Data'. I did my own experiment, here is a team victory system with random teams, each time different players are combined, and you can be in the Red or in the Blue team.
Team Victory System
Note: The League Placement messes up so hard because this map is to test team stats and it is still Multiplayer map. When playing with Computers, the Single Player steps should be applied using different Section of the Bank for each Computer player (see the screenshot with triggers above).
Not approved. The system has some obvious inefficiencies.
Ive noticed that sometimes i start and i have -1 loses when im supose to have 0 loses and it changed the w/l ratio to over 100% because of it.
I also cant figure out how to set it so a player whos left the game before it ended receives a loss.
....
Hi. sorry about the super necro.
I have managed to greatly reduce the redundancy of some triggers in this system and its only really 4-5 functions and triggers now for a standard map. If you would like me to send you a copy so you can upload it or something that would be great, you said you wanted to learn how to use parameters, and I have basically converted a lot of it to functions.
Let me know, because this is a really great system when done right. (I'm sure there are people who will say even my coding is redudant :3)
Chanyman
@thechanyman: Go
did you alter it for custom maps as well?