Paste #43833: Untitled Paste

Date: 2017/08/25 20:29:12 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


InformativeNPC:
    Type: Assignment
    interact scripts:
    - 1 Informative

    actions:
        on assignment:
        - trigger name:proximity toggle:true
        - trigger name:click toggle:true
        - lookclose state:true

"Informative Spawn Script":
    Type: Interact
    Requirements:
        Mode: NONE

    steps:
        1:
            proximity trigger:
                entry:
                    script:
                    - ^random {
                        - ^narrate "New to Pl3x? Right click me to learn more!"
                        - ^narrate "Hey you, <player.name>! I got some information for you!"
                        - ^narrate "They don't call me the Informative for nothing..."
                        - ^narrate "Do you know how claims work?"}

            click trigger:
                script:
                - CHAT "Hello <player.name>, choose from the list of options below to learn more about them (type the number in chat)."

            chat trigger:
                1:
                    trigger: /1/ Information about claiming protected land.
                    script:
                    - CHAT ""
                2:
                    trigger: /2/ Staff information
                    script:
                    - CHAT ""
                3:
                    trigger: /REGEX:.+/
                    script:
                    - CHAT "I don't know what <player.chat_history> is!"