Paste #35522: Untitled Paste

Date: 2016/08/23 04:53:37 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


KingQuest: 
    type: assignment 
    actions: 
        on assignment: 
        - trait health state:true
        - trigger name:click state:true 
        on death: 
        - if !<context.damager.is_player||false> { 
          - queue clear 
          } 
        - give money 100 player:<context.damager> 
    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 "Hey, could u please kill the King ?" 
                - wait 1s
                - narrate "Type Yes or No in chat."
                - disengage
            chat trigger:
                1:
                    trigger: /Yes/, i'll help you.
                    script:
                    - engage
                    - narrate format:chat "So, than kill him"
                    - zap 2
                    - disengage
                2:
                    trigger: /No/, i can't.
                    script:
                    - random 2
                    - narrate format:chat "Screw off."
                    - narrate format:chat "K, Ciao."
        2: