
Untitled
By: a guest on
Apr 24th, 2012 | syntax:
None | size: 2.37 KB | hits: 13 | expires: Never
Variable - Set Blue amount = (Number of Living units in (Any units in (Entire map) owned by player 2 matching Excluded: Missile, Dead, Hidden, with at most Any Amount))
Variable - Set Teal amount = (Number of Living units in (Any units in (Entire map) owned by player 3 matching Excluded: Missile, Dead, Hidden, with at most Any Amount))
Variable - Set Total amount = (Number of Living units in (Any units in (Entire map) owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount))
Leaderboard - Set leaderboard item text at column 2 and row 1 to (Text(Blue amount))
Leaderboard - Set leaderboard item text at column 2 and row 2 to (Text(Teal amount))
General - If (Conditions) then do (Actions) else do (Actions)
If
Teal amount != 0
Blue amount != 0
Then
Leaderboard - Set leaderboard item progress value at column 1 and row 3 to (((Real(Blue amount)) / (Real(Total amount))) * 100.0)
General - If (Conditions) then do (Actions) else do (Actions)
If
Teal amount > Blue amount
Then
Leaderboard - Set leaderboard item text at column 2 and row 3 to ((Text(((((Real(Teal amount)) - (Real(Blue amount))) / (Real(Blue amount))) * 100.0)) with Any Precision decimal places) + ("% " + "Teal has advantage"))
Else
General - If (Conditions) then do (Actions) else do (Actions)
If
Teal amount != Blue amount
Then
Leaderboard - Set leaderboard item text at column 2 and row 3 to ((Text(((((Real(Blue amount)) - (Real(Teal amount))) / (Real(Teal amount))) * 100.0)) with Any Precision decimal places) + ("% " + "Blue has advantage"))
Else
General - If (Conditions) then do (Actions) else do (Actions)
If
Teal amount == Blue amount
Then
Leaderboard - Set leaderboard item text at column 2 and row 3 to "0% advantage"
Else
Else