Paste #30168: Comparator

Date: 2016/02/11 16:57:16 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12


Comparator:
    type: task
    script:
    - flag server AlorehCount:1
    - flag server ItheroCount:5
    - flag server RoregCount:7
  - foreach li@AlorehCount|VrovonaCount|ItheroCount|DaggerlandsCount|ArSelukkCount|RoregCount {
      - if <server.flag[<def[value]>]||0> >= <server.flag[<def[highest]||<def[value]>>]||0> {
        - define highest <def[value]>
        }
    }
    - narrate "<server.flag[<def[highest]>]> is the highest amount found"