Paste #17297: Edit of P#17296 - test

Date: 2015/07/02 17:26:10 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


'Quest Master':
  Type: Assignment
  Interact Scripts:
  - 1 list_quests

list_quests:
  type: interact
  Steps:
    'GiveQuestList':
      Chat Trigger:
        1:
          Trigger: /Regex:Hi|Hello|Hey/
          Script:
          - chat "Hello, <PLAYER.NAME>. Would you care to help me with a few <GOLD>quests?"
          - zap 'step:TalkAboutQuests'
    'TalkAboutQuests':
      Chat Trigger:
        1:
          Trigger: /Quest/s?
          Script:
          - chat "Well, there's three things I need done. You could hunt some <GOLD>zombies<GREEN>, chop down some <GOLD>trees<GREEN>, or <GOLD>build<GREEN> a house."
          Trigger: I'll hunt some /zombie/s.
          Script:
          - chat "Alright! Go get 'em, kid! Come back once you've hunted 3 Zombies!"
          - if "<player.flag[questinprogress] || none>" == none run 'ZombieQuest' 
            else chat "You already have the quest <player.flag[questinprogress]>!"
          - flag QuestInProgress:Zombies
          - zap 'GiveQuestList'
        2: 
          Trigger: I'll chop some /tree/s.
          Script:
          - chat "Great! Come back when you have 5 logs!"
          - if "<player.flag[questinprogress] || none>" == none run 'TreeQuest'
            else chat "You already have the quest <player.flag[questinprogress]>!"
          - zap 'step:GiveQuestList'
        3:
          Trigger: I'll build a /house/.
          Script: 
          - chat "Okay! Lay down <GOLD>30<GREEN> cobblestone, planks, or logs!"
          - if "<player.flag[questinprogress] || none>" == none run 'TreeQuest'        
            else chat "You already have the quest <flag.p:questinprogress>!"
          - zap 'GiveQuestList'
'ZombieQuest':
  Type: Task
  Script:
  - flag questinprogress:'Kill Zombies'
  - listen kill 'ID:Kill3Zombies' 'SCRIPT:ZombiesDead' 'type:entity' 'target:creeper' 'qty:10'
'ZombiesDead':
  Type: Task
  Script:
  - flag questinprogress:none
  - narrate "You have been given one iron for completing the quest!
  - give item:265 qty:1
'TreeQuest':
  Type: Task
  Script:
  - flag questinprogress:'Chop Trees'
  - listen block 'id:ChopTrees' 'Script:TreeReward' 'type:break' 'block:log' 'qty:5'
'TreeReward':
  Type: Task
  Script:
  - flag questinprogress:none
  - narrate "You have been given a stone pick for completing the quest!"
  - give item:274 qty:1
'BuildHouse':
  Type: Task
  Script:
  - flag questinprogress:'Build A House'
  - listen block 'id:BuildHouse' 'Script:HouseReward' 'type:build' 'block:log|cobblestone|5' 'qty:30'
'HouseReward':
  Type: Task
  Script:
  - flag questinprogress:none
  - narrate "You have been awarded a furnace for your home!"
  - give item:61 qty:1