Paste #1101: CreeperLord

Date: 2014/01/05 19:47:01 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


CreeperLoardScriptAs:
  Type: Assignment
  Actions:
    on assignment:
    - trigger name:chat toggle:true
    - trigger name:click toggle:true
  Interact Scripts:
  - 10 CreeperLordScript
CreeperLordScript:
  Type : Interact
  Requirements: None
  Steps:
    1:
      Click Trigger:
        Script:
        - if <player.has_finished[KingScriptTask]> {
          - CHAT "So it's you who has been killing my creepers!"
          - WAIT 1
          - CHAT "You will pay!"
          - WAIT 1
          - ATTACK <PLAYER>
          - RUN as_server "npc sel CreeperLord"
          - RUN as_server "npc vulnerable"
          on npc killed by player:
          - ANNOUNCE "<GOLD><PLAYER.NAME><WHITE>has slain the <GOLD>CreeperLord<WHITE>!"
          - ZAP step:3 script:KingScript
          - FINISH script:CreeperLordScript
          - WAIT 45
          - RUN as_server "npc sel CreeperLoad"
          - RUN as_server "npc spawn"
          } else {
          - CHAT "Creepers have become more powerful than I could have imagined..."
          - WAIT 2
          - CHAT "And it's all thanks to ME!"
          - WAIT 2
          - ANNOUNCE "<NPC.NAME> laughs evily... Perhaps he could become important at some point."
          }