Paste #55981: Untitled Paste

Date: 2019/07/24 08:16:04 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


NPCVoucher:
  type: item
  material: emerald
  display name: Test Voucher

NPCVoucherController:
  type: world
  events:
    on player right clicks with NPCVoucher:
      - create player "TestDummy" <player.location> save:temp
      - adjust <entry[temp].created_npc> lookclose:TRUE
      - adjust <entry[temp].created_npc> set_sneaking:TRUE
      - adjust <entry[temp].created_npc> invulnerable:TRUE
      - adjust <entry[temp].created_npc> skin:HeroicKnight -p
      - adjust <entry[temp].created_npc> set_assignment:NPCVoucherAssignment

NPCVoucherAssignment:
  type: assignment
  actions:
    on assignment:
      - narrate "Assignment Set!"
  interact scripts:
    - 1 NPCVoucherInteract
NPCVoucherInteract:
  type: interact
  steps:
    1:
      chat trigger:
          trigger: "Hello"
            script:
            - chat "Hello"
          trigger: "Goodbye"
            script:
            - chat "Goodbye"