Paste #14430: Gremlin

Date: 2015/03/11 22:46:37 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


"Gremlin":
  type: assignment
  actions:
    on assignment:
    - trigger name:proximity toggle:true radius:5 cooldown:10m
    - health toggle:true
    - vulnerable

    on enter proximity:
    - RANDOM 3
    - CHAT "&4Mmm! Yummy Machines!"
    - CHAT "&4Must DESTROY!"
    - CHAT "&4Hmm which Machine next? They all look delicious!"
  interact scripts:
  - 1 GremlinDeath

GremlinDeath:
  type: interact
  Steps: 
    1: 
      Npcdeath Trigger:
        script:
          - CHAT "&4AAAAARRGG!"
          - execute as_server "class exp <player> 5"