Paste #11926: Edit of P#11924 - Edit of P#11923 - Untitled Paste

Date: 2014/12/08 16:33:08 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


Strah:
  type: assignment
  actions:
    on assignment:
    - trigger name:damage state:true
    - trigger name:proximity state:true radius:15
    - trigger name:click state:true
    - vulnerable state:true
    - health 150 state:true
    - heal
    on spawn:
    - health 150 state:true
    - heal
    - announce "<&6>Strah has been reset!"
    on enter proximity:
    - narrate "<&4>Fear can be a powerful enemy..."
    - wait 1s
    - narrate "<&4>Let's see how well you handle it."
    - wait 1s
    - cast CONFUSION duration:10s power:10 <player>

    on move proximity:
    - look <npc> <player.location>
    - walk <npc> <player.location> speed:5
    - attack <npc> target:<player>
    - if <npc.health> <= 50 {
        - narrate "<&4>Gah! I need more health!"
        - cast WITHER duration:10s power:10 <player>
        }
    - if <npc.health> <= 100 {
        - narrate "<&4>I have run out of patience..."
        - wait 1s
        - narrate "<&4>Let's see how well you fight without your eyes!"
        - cast BLINDNESS duration:20s <player>
        }
    on death:
    - cast CONFUSION remove
    - cast WITHER remove
    - cast BLINDNESS remove
    - wait 1t
    - give i@gems qty:10
    - wait 1t
    - give i@VladsPick 
    - wait 1t
    - firework <npc> <trail> primary:red
    - firework <npc> <trail> primary:orange
    - firework <npc> <trail> primary:yellow
    - firework <npc> <trail> primary:green
    - firework <npc> <trail> primary:blue
    - firework <npc> <trail> primary:purple
    - firework <npc> <trail> primary:magenta
    - announce "<&6>Strah has fallen!"