Paste #30167: Comparator

Date: 2016/02/11 16:52:36 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@<server.flag[AlorehCount]>|<server.flag[ItheroCount]>|<server.flag[VrovonaCount]>|<server.flag[ArSelukkCount]>|<server.flag[DaggerlandsCount]>|<server.flag[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"