Paste #17478: Untitled Paste

Date: 2015/07/07 01:53:46 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


GuardianSpawner:
  type: world
  default constants:
    - guardianSpawnChance: 6
  events:
    on squid spawns:
    - define randomSelection <util.random.int[1].to[10]>
    - if <def[randomSelection]> >= <script.constant[guardianSpawnChance]> {
      - determine CANCELLED
      - spawn guardian <context.location>
    }