Paste #108023: Chatbutton

Date: 2023/03/28 11:06:54 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


ChatButtonTestAssignment:
  type: assignment
  actions:
    on assignment:
      - trigger name:proximity state:true radius:7
  interact scripts:
  - ChatButtonTest

ChatButtonTest:
  Type: interact
  Steps:
    1:

      proximity trigger:
        exit:
          script:
            - chat "<&e>Come back any time you need help ^^"
            - zap 1
        entry:
          script:
          - random:
            - chat "<&e>Hi there <player.name>!"
            - chat "<&e>Hey <player.name> come talk to me!"
            - chat "<&e>Hello <player.name>, wanna talk?"
            - zap 1

      Click Trigger:
        Script:
        - narrate "You can <element[click here].click_chat[hello]> to say hello to an NPC's interact script!"
        - zap 2
    2:

      proximity trigger:
        exit:
          script:
            - chat "<&e>Come back any time you need help ^^"
            - zap 1

      Chat Trigger:
        1:
          trigger: /hello/ there
          script:
          - narrate "howdy partner"
          - zap 1