Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 24th, 2012  |  syntax: None  |  size: 2.37 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.         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))
  2.         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))
  3.         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))
  4.         Leaderboard - Set leaderboard item text at column 2 and row 1 to (Text(Blue amount))
  5.         Leaderboard - Set leaderboard item text at column 2 and row 2 to (Text(Teal amount))
  6.         General - If (Conditions) then do (Actions) else do (Actions)
  7.             If
  8.                 Teal amount != 0
  9.                 Blue amount != 0
  10.             Then
  11.                 Leaderboard - Set leaderboard item progress value at column 1 and row 3 to (((Real(Blue amount)) / (Real(Total amount))) * 100.0)
  12.                 General - If (Conditions) then do (Actions) else do (Actions)
  13.                     If
  14.                         Teal amount > Blue amount
  15.                     Then
  16.                         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"))
  17.                     Else
  18.                         General - If (Conditions) then do (Actions) else do (Actions)
  19.                             If
  20.                                 Teal amount != Blue amount
  21.                             Then
  22.                                 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"))
  23.                             Else
  24.                                 General - If (Conditions) then do (Actions) else do (Actions)
  25.                                     If
  26.                                         Teal amount == Blue amount
  27.                                     Then
  28.                                         Leaderboard - Set leaderboard item text at column 2 and row 3 to "0% advantage"
  29.                                     Else
  30.             Else