Paste #35519: Untitled Paste

Date: 2016/08/23 04:38:05 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


KingQuest:
    type: assignment
    actions:
        on assignment:
        - trigger name:click state:true
    interact scripts:
    - 10 KingInteract

king:
    type: format
    format: "<&7><npc.name.nickname> <&7>> <&a><text>"

KingInteract:
    type: interact
    steps:
        1:
            click trigger:
                script:
                - engage
                - narrate format:king ""
                - wait 1s
                - narrate format:king ""
                - disengage

KillKing:
    type: world
    events:
      on npc dies:
      - if !<context.damager.is_player||false> {
      - give money 100 player:<context.damager>
      - queue clear
      }