Paste #28893: Untitled Paste

Date: 2016/01/22 00:40:53 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


#####################
# File for NPC Xoar #
#####################

##################################
# Assignment script for NPC Xoar #
##################################
NPC_Banker:
  type: assignment
  actions:
    on assignment:
    - run Assign_Triggers
    - run Esteem_Responses
  interact scripts:
  - 1 NPC_Banker_Interact

############################
# Interact script for Xoar #
############################
NPC_Banker_Interact:
  type: interact
  steps:
      1:
            click trigger:
                script:
                - inject NPC_Banker_Greeting_Event
            chat trigger:
                1:
                      trigger: /Swine/
                      script:
                      - inject NPC_Banker_Rude_Event
                2:
                      trigger: /Greedy pig/
                      script:
                      - inject NPC_Banker_Rude_Event
                3:
                      trigger: /Hi/
                      script:
                      - inject NPC_Banker_Greeting_Event
                4:
                      trigger: /Hello/
                      script:
                      - inject NPC_Banker_Greeting_Event
                5:
                      trigger: /Hullo/
                      script:
                      - inject NPC_Banker_Greeting_Event
                6:
                      trigger: /Sup/?
                      script:
                      - inject NPC_Banker_Greeting_Event
                7:
                      trigger: /What's up/?
                      script:
                      - inject NPC_Banker_Greeting_Event
                8:
                      trigger: /Greeting/s!
                      script:
                      - inject NPC_Banker_Greeting_Event
                9:
                      trigger: /Who are you/?
                      script:
                      - inject NPC_Banker_Who_Event
                10:
                       trigger: What's your /job/?
                       script:
                       - inject NPC_Banker_Who_Event
                11:
                       trigger: What do you /work/ as?
                       script:
                       - inject NPC_Banker_Who_Event
                12:
                       trigger: /What do you/?
                       script:
                       - inject NPC_Banker_Who_Event
                13:
                       trigger: /How are you/ doing?
                       script:
                       - inject NPC_Banker_How_Event
                14:
                       trigger: /How have you been/?
                       script:
                       - inject NPC_Banker_How_Event
                15:
                       trigger: /How has it been/?
                       script:
                       - inject NPC_Banker_How_Event
                16:
                       trigger: /How's life/?
                       script:
                       - inject NPC_Banker_How_Event
                17:
                       trigger: /How has life been/?
                       script:
                       - inject NPC_Banker_How_Event
                18:
                       trigger: /How is life/?
                       script:
                       - inject NPC_Banker_How_Event
                19:
                       trigger: /credits/?
                       script:
                       - narrate format:Talk_Format "Credits: PlanetMinecraft user: Rakqoi http://www.planetminecraft.com/skin/rpg-skin-merchant/"
############################
# Task script for greeting #
############################
NPC_Banker_Greeting_Event:
  type: task
  script:
  - if <proc[Esteem_Determine]> == "liked" {
    - random {
      - narrate format:Talk_Format "Good day sir! We can inveest your money into a money market mutual account....anddddd it's gone!"
      - narrate format:Talk_Format "Great to see you! How may I help you today?"
      - narrate format:Talk_Format "Great to see you <player.name>! Here to deposit your money I suppose?"
      - narrate format:Talk_Format "Hello <player.name>, what brings you here today?"
      - narrate format:Talk_Format "Oh hello <player.name>, I didn't know it was payday today!"
      - narrate format:Talk_Format "Hello <player.name>! What may I help you with?"
      }
    }
    else if <proc[Esteem_Determine]> == "neutral" {
    - random {
      - narrate format:Talk_Format "*Cough* sorry, about that....I've been having a bad cough since this morning."
      - narrate format:Talk_Format "Hey, <player.name>, is it just me or does it smell like sulfur in here?"
      - narrate format:Talk_Format "Hello <player.name>, are you here today to lose.. I man invest some money?"
      - narrate format:Talk_Format "Good to see you <player.name>! How may I help you today?"
      - narrate format:Talk_Format "Don't mind me asing, but does this place smell like sulfur to you? The stench has been here all morning!"
      - narrate format:Talk_Format "Hello <player.name>. Sorry for the smell! I've already called for the plumber to look into the drainage at the back of the bank..."
      }
    }
    else if <proc[Esteem_Determine]> == "disliked" {
    - random {
      - narrate format:Talk_Format "Hello again <player.name>! Unfornuately, your bank account was mysteriously frozen yesterday night for some reason..."
      - narrate format:Talk_Format "Hello <player.name>, may I know when you're going to repay the debt you owe the bank?"
      - narrate format:Talk_Format "May I help you?"
      - narrate format:Talk_Format "Hello. Here to invest your money in the property market?"
      - narrate format:Talk_Format "Hey <player.name>, where's the money you owe the bank?"
      - narrate format:Talk_Format "Hey <player.name>, we invested your life-saving in stocks andddd it's gone."
      }
    }

######################################
# Task script for handling how event #
######################################
NPC_Banker_How_Event:
  type: task
  script:
  - if <proc[Esteem_Determine]> == "liked" {
    - random {
      - narrate format:Talk_Format "I'm doing so good! Thank you!"
      - narrate format:Talk_Format "Good! Good! A healthy bank account is a healthy person after all."
      - narrate format:Talk_Format "Great! Unfornuately I can't the same about the bank account of others."
      - narrate format:Talk_Format "I'm doing pretty well I guess. Maybe it would better if I had taken the money and ran!"
      - narrate format:Talk_Format "Great! Great! Banking is the legalised form of stealing money after all!"
      - narrate format:Talk_Format "I'm doing pretty well. Thanks for asking."
      }
    }
    else if <proc[Esteem_Determine]> == "neutral" {
    - random {
      - narrate format:Talk_Format "I'm doing well...how about you?"
      - narrate format:Talk_Format "I'm doing well! Thank you."
      - narrate format:Talk_Format "Pretty good, my pocket lining is so full!"
      - narrate format:Talk_Format "I'm doing really well, after all the root of all happiness is money!"
      - narrate format:Talk_Format "It's going all fine and dandy!"
      - narrate format:Talk_Format "Not so good, there's this sulfur smell plauging me for the entire morning!"
      }
    }
    else if <proc[Esteem_Determine]> == "disliked" {
    - random {
      - narrate format:Talk_Format "About the same as the economy..."
      - narrate format:Talk_Format "That's none of concern."
      - narrate format:Talk_Format "Good good. Would you like to invest in our bank?"
      - narrate format:Talk_Format "I'm sorry but I'm not allowed to tell bank customers.."
      - narrate format:Talk_Format "It's fine."
      - narrate format:Talk_Format "Doing well."
      }
    }
  - ^run Esteem_Modify def:<npc.flag[modifyPolite]>
######################################
# Task script for handling who event #
######################################

NPC_Banker_Who_Event:
  type: task
  script:
  - if <proc[Esteem_Determine]> == "liked" {
    - random {
      - narrate format:Talk_Format "I'm so sorry but the bank is rather strict on revealing who we are!"
      - narrate format:Talk_Format "I'm sorry but I'm afraid I can't tell you!"
      - narrate format:Talk_Format "I'm sorry but I cannot tell you."
      - narrate format:Talk_Format "The bank does not permit me to reveal my identity"
      - narrate format:Talk_Format "I'm afraid I can't do that"
      - narrate format:Talk_Format "I'm sorry but I'm not allowed to do that."
      }
    }
    else if <proc[Esteem_Determine]> == "neutral" {
    - random {
      - narrate format:Talk_Format "Who am I? Oh! That's a pretty obvious question isn't it?"
      - narrate format:Talk_Format "Oh I'm a Banker!"
      - narrate format:Talk_Format "Hi <player.name>, I'm a banker here!"
      - narrate format:Talk_Format "I work as a banker here."
      - narrate format:Talk_Format "I'm a banker....what where you expecting me to say?"
      - narrate format:Talk_Format "Oh I'm just one of the many bankers here!"
      }
    }
    else if <proc[Esteem_Determine]> == "disliked" {
    - random {
      - narrate format:Talk_Format "Oh I'm afraid I'm not allowed to disclose anything apart from the fact that I'm a banker!"
      - narrate format:Talk_Format "I'm afraid I cannot tell you."
      - narrate format:Talk_Format "I'm a Banker."
      - narrate format:Talk_Format "I'm sorry I'm not allowed to disclose my identity"
      - narrate format:Talk_Format "Unfornuately I cannot reveal who I am as that's agaisnt the bank's policy."
      - narrate format:Talk_Format "I am a Banker here."
      }
    }

########################################
# Task script for handling rude events #
########################################

NPC_Banker_Rude_Event:
  type: task
  script:
  - if <proc[Esteem_Determine]> == "liked" {
    - random {
      - narrate format:Talk_Format "Please show some respect towards the staff."
      - narrate format:Talk_Format "Calm down please."
      - narrate format:Talk_Format "Please stop this."
      - narrate format:Talk_Format "Calm down."
      - narrate format:Talk_Format "How dare you call me that!"
      - narrate format:Talk_Format "Hey!"
      }
    }
    else if <proc[Esteem_Determine]> == "neutral" {
    - random {
      - narrate format:Talk_Format "If you continue to do this, I'm going to have to call security."
      - narrate format:Talk_Format "Pleae show some respect."
      - narrate format:Talk_Format "I'm going to have to ask you to stop being so abusive."
      - narrate format:Talk_Format "Please refrain from abusing me."
      - narrate format:Talk_Format "If you continue I'm going to have to get seucrity to escort you out."
      - narrate format:Talk_Format "Stop it please"
      }
    }
    else if <proc[Esteem_Determine]> == "disliked" {
    - random {
      - narrate format:Talk_Format "I'm sorry but I'll have to call security to escort you out."
      - narrate format:Talk_Format "Security will escort you out of here."
      - narrate format:Talk_Format "I hope you know accidents CAN happen to your bank account."
      - narrate format:Talk_Format "Security will escort you out now."
      - narrate format:Talk_Format "Seucirty is here now."
      - narrate format:Talk_Format "I hope you understand that accounts can be frozen without reason."
      }
    }
  - ^run Esteem_Modify def:<npc.flag[modifyRude]>