Paste #19482: Untitled Paste

Date: 2015/08/17 08:19:52 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19


TESTTASK:
  type: task
  script:
  - ^repeat <util.random.int[1].to[2]> {
    - if <li@leather_helmet|leather_chestplate|leather_leggings|leather_boots|chainmail_helmet|chainmail_chestplate|chainmail_leggings|chainmail_boots.random.contains[helmet]> {
      - define equip helmet
      }
    - if <li@leather_helmet|leather_chestplate|leather_leggings|leather_boots|chainmail_helmet|chainmail_chestplate|chainmail_leggings|chainmail_boots.random.contains[chestplate]> {
      - define equip chestplate
      }
    - if <li@leather_helmet|leather_chestplate|leather_leggings|leather_boots|chainmail_helmet|chainmail_chestplate|chainmail_leggings|chainmail_boots.random.contains[leggings]> {
      - define equip leggings
      }
    - if <li@leather_helmet|leather_chestplate|leather_leggings|leather_boots|chainmail_helmet|chainmail_chestplate|chainmail_leggings|chainmail_boots.random.contains[boots]> {
      - define equip boots
      }
    - narrate %equip%
    - wait 1t
    }