Paste #11112: Untitled Paste

Date: 2014/11/08 21:05:21 UTC-05:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


"Herobrine Assignment":
    type: assignment

    actions:
      on assignment:
      - trigger name:chat toggle:true
      - trigger name:click toggle:true
      - trigger name:proximity toggle:true
      - trigger name:damage toggle:true

    interact scripts:
    - 10 Herobrine Greeting


'Herobrine Greeting':
    type: interact

    steps:
        '1*':
            proximity trigger:
                entry:
                    script:
                    - lookclose toggle:true
                    - if <player.in_group[Stormtrooper]> {
                      - zap 'step:2'
                      }
                exit:
                    script:
                    - lookclose toggle:false

            damage trigger:
                script:
                - engage
                - execute as_server "smite <player.name>"
                - chat "You dare strike me!"
                - disengage

            click trigger:
                script:
                - engage
                - if <global.flag[Emperor]||null> == "" {
                  - chat "The Emperor has died."
                  }
                  else {
                  - chat "<global.flag[Emperor]> is the current Emperor."
                  }
                - wait 1
                - if <global.flag[Darth]||null> == "" {
                  - chat "There is no Sith apprentice."
                  }
                  else {
                  - chat "<global.flag[Darth]> is the Sith apprentice."
                  }
                - wait 2
                - if <global.flag[Emperor]||null> != "" && <global.flag[Darth]||null> != "" {
                  - chat "The Death Star is nearing completion and the Sith Lords will once again rule the galaxy."
                  }
                - disengage

            chat trigger:
                'catch-all':
                    trigger: '/REGEX:\w+/'
                    script: 
                    - engage
                    - chat "I'm sorry. I don't know what you're talking about."
                    - disengage
        '2':
            proximity trigger:
                entry:
                    script:
                exit:
                    script:
                    - lookclose toggle:false
                    - zap 'step:1'

            damage trigger:
                script:
                - engage
                - execute as_server "smite <player.name>"
                - chat "You dare strike me!"
                - disengage

            click trigger:
                script:
                - engage
                - if <player.in_group[Staff]> {
                  - if <global.flag[Emperor]||null> == "" {
                    - chat "The Emperor has died."
                    }
                    else {
                    - chat "<global.flag[Emperor]> is the current Emperor."
                    }
                  - wait 1
                  - if <global.flag[Darth]||null> == "" {
                    - chat "There is no Sith apprentice."
                    }
                    else {
                    - chat "<global.flag[Darth]> is the Sith apprentice."
                    }
                  - wait 2
                  - if <global.flag[Emperor]||null> != "" && <global.flag[Darth]||null> != "" {
                    - chat "The Death Star is nearing completion and the Sith Lords will once again rule the galaxy."
                    }
                  }
                  else if <player.in_group[Emperor]> {
                  - if <global.flag[Darth]||null> == "" {
                    - chat "A new apprentice must be found."
                    }
                    else {
                    - chat "What is your bidding my master?"
                    - wait 1
                    - chat "Has Lord <player.name> proven himself?"
                    }
                  }
                  else if <player.in_group[Darth]> {
                  - if <global.flag[Emperor]||null> == "" {
                    - chat "The Emperor is dead. You must step up and claim his place."
                    - wait 3
                    - chat "Go forth and spread imperial rule, Emperor <player.name>."
                    - flag global 'Emperor:<player.name>'
                    - flag global 'Darth:'
                    - execute as_server "manuadd <player.name> Emperor"
                    - announce "[<dark_red>Announcement<white>]<&co> Long live the new Emperor <player.name>!" 
                    }
                    else {
                    - chat "How may I serve you Lord <player.name>?"
                    - chat "What is the Emperor <global.flag[Emperor]>'s bidding?"
                    }
                  }
                  else if <player.in_group[GrandMoff]> {
                  - chat "Sir, I believe you are needed in the War Room."
                  }
                  else if <player.in_group[Admiral]> {
                  - chat "I believe you are needed on the bridge sir."
                  }
                  else if <player.in_group[Lieutenant]> {
                  - if <global.flag[Darth]||null> == "" {
                    - chat "Come then my young Apprentice. There is much work to be done."
                    - flag global 'Darth:<player.name>'
                    - execute as_server "manuadd <player.name> Darth"
                    - announce "[<dark_red>Announcement<white>]<&co> May the force be with new Lord <player.name>!"
                    }
                    else {
                    - chat "There is much yet for you to learn." 
                    }
                  }
                  else if <player.in_group[Gunner]> {
                  - chat "There is much yet for you to learn." 
                  }
                  else { 
                  - chat "There is much yet for you to learn." 
                  }
                - disengage

            chat trigger:
                'catch-all':
                    trigger: '/REGEX:\w+/'
                    script: 
                    - engage
                    - chat "I'm sorry. I don't know what you're talking about."
                    - disengage