Paste #29626: aedeaf

Date: 2016/02/03 16:51:59 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


scrolling:
  type: world
  events:
    on scroll command:
    - inventory open d:in@scrolling_inventory_1
    - determine fulfilled

scrolling_inventory_1:
  type: inventory
  title: "Scrolling 1"
  size: 54
  slots:
  - "[] [] [] [] [] [] [] [] [i@no_scroll]"
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [] [i@scroll_2]"

  scrolling_inventory_2:
  type: inventory
  title: "Scrolling 2"
  size: 54
  slots:
  - "[] [] [] [] [] [] [] [] [i@scroll_1]"
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [] [i@scroll_3]"

  scrolling_inventory_3:
  type: inventory
  title: "Scrolling 3"
  size: 54
  slots:
  - "[] [] [] [] [] [] [] [] [i@scroll_2]"
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [] [i@scroll_4]"

scrolling_inventory_4:
  type: inventory
  title: "Scrolling 4"
  size: 54
  slots:
  - "[] [] [] [] [] [] [] [] [i@scroll_3]"
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [] [i@scroll_5]"

  scrolling_inventory_5:
  type: inventory
  title: "Scrolling 5"
  size: 54
  slots:
  - "[] [] [] [] [] [] [] [] [i@scroll_4]"
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [] [i@scroll_6]"

  scrolling_inventory_6:
  type: inventory
  title: "Scrolling 6"
  size: 54
  slots:
  - "[] [] [] [] [] [] [] [] [i@scroll_5]"
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [] []"
  - "[] [] [] [] [] [] [] [] [i@no_scroll]"

scroll_handler:
  type: world
  events:
    on player clicks scroll_1:
    - inventory open d:in@scrolling_inventory_1
    on player clicks scroll_2:
    - inventory open d:in@scrolling_inventory_2
    on player clicks scroll_3:
    - inventory open d:in@scrolling_inventory_3
    on player clicks scroll_4:
    - inventory open d:in@scrolling_inventory_4
    on player clicks scroll_5:
    - inventory open d:in@scrolling_inventory_5
    on player clicks scroll_6:
    - inventory open d:in@scrolling_inventory_6

scroll_1:
  type: item
  material: "1"
  display name: "1"

scroll_2:
  type: item
  material: "1"
  display name: "2"

scroll_3:
  type: item
  material: "2"
  display name: "3"

scroll_4:
  type: item
  material: "1"
  display name: "4"

scroll_5:
  type: item
  material: "1"
  display name: "5"

scroll_6:
  type: item
  material: "1"
  display name: "6"

no_scroll:
  type: item
  material: "166"
  display name: "No Scroll"