Paste #48958: Untitled Paste

Date: 2018/08/11 11:50:07 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


questlogworld:
  type: world
  events:
    on player right clicks queststatsi in inventory:
    - inventory close
    - narrate "Completed Quests: <player.quests.completed.add[<player.flag[completedquests]>].round>"
    - wait 3
    - queue clear
    on player right clicks completedquestsi in inventory:
    - inventory close
    - inventory open d:in@<player.uuid>completedquests
    on player right clicks activequestsi in inventory:
    - inventory close
    - inventory open d:in@<player.uuid>questjournal
    on player logs in:
    - if <player.has_flag[questjournal].not> {
      - note in@QuestJournalMenu as:<player.uuid>questjournal
      - note in@questcompletemenu as:<player.uuid>completedquests
      - flag player questjournal
      }
questlog:
  type: command
  name: questlog
  usage: /questlog
  script:
  - if <player.has_flag[questjournal].not> {
    - note in@QuestJournalMenu as:<player.uuid>questjournal
    - note in@questcompletemenu as:<player.uuid>completedquests
    - flag player questjournal
    }
  - inventory open d:in@<player.uuid>questjournal
questcompletemenu:
  type: inventory
  inventory: chest
  title: Completed Quests
  size: 45
  slots:
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [i@queststatsi] [i@activequestsi]"
QuestJournalMenu:
  type: inventory
  title: Quest Journal
  size: 45
  slots:
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [] [i@completedquestsi]"

completedquestsi:
  type: item
  material: book
  display name: Quest Stats
  lore:
  - "Click here to view your completed quests."
queststatsi:
  type: item
  material: book
  display name: Quest Stats
  lore:
  - "Click here to view your quest stats."

activequestsi:
  type: item
  material: book
  display name: Active Quests.
  lore:
  - "Click here to access information."
  - "about your active quests."