Paste #57165: Untitled Paste

Date: 2019/08/20 16:12:13 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


CarthageExplorer:
  type: assignment
  actions:
    on assignment:
      - trigger name:chat state:true
      - trigger name:click state:true
  interact scripts:
  - 1 CarthageGatherer

CarthageGatherer:
  type: interact
  steps:
    1:
      click trigger:
        script:
          - if <player.has_flag[npc_engaged]> queue clear
          - flag player npc_engaged
          - engage
            - if <player.has_flag[CarthageForaging]>:
              - narrate format:cchat "I need you to finish foraging the area!"
              - flag player npc_engaged:!
              - disengage
              - queue clear
          - narrate format:cchat "Hello traveler. I'm guessing my associate Umar sent you, welcome to the area."
          - wait 1s
          - narrate format:cchat "I am in the process of cataloguing the native flora. Do you want to help with <&c>foraging<&f>?"
          - flag player npc_engaged:!
          - disengage
          - queue clear
      chat trigger: 
        1:
          trigger: "I want to help with /foraging/."
          script: 
            - flag player CarthageForaging
            - narrate format:cchat "Good to hear. Explore the surrounding area, looking in grass and ferns for any flora native to the region."