Paste #750: miniboss

Date: 2013/12/30 16:31:33 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
13
14
15


on player damaged by entity:
    - ^if '<context.damager.custom_name.strip_color.contains[*Really Angry Skeleton]>' ^run 's@Really Angry Skeleton' d:<context.damager>|<context.entity> attack

    on player damages entity:
    - ^if '<context.entity.custom_name.strip_color.contains[*Really Angry Skeleton]>' ^run 's@Really Angry Skeleton' d:<context.damager>|<context.entity> defend


"Really Angry Skeleton":
  type: task
  definitions: attacker|miniboss
  script:
  attack:
  - narrate "<%miniboss%.custom_name> <&8>| <&2> I'm attacking you!"
  defend:
  - narrate "<%miniboss%.custom_name> <&8>| <&2> I'm defending against you!"