Paste #20819: Untitled Paste

Date: 2015/10/12 13:17:16 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


##################
# WELCOME Guide
#
# This AI is for the initial welcome guide
#
# LAST:
#       *G* (2015/10/15) - initial creation of script
#
#
welcomer:
    Type: assignment
    Actions:
        on assignment:
        - trigger name:Proximity state:true radius:5
        - trigger name:Chat state:true radius:6
    Interact scripts:
    - 0 welcomer_interact


##################
# Chat Definition
#
# This section defines the actual "chat" dialog as wel as the actions
# for any NPC that is assigned to this script.
#
welcomer_interact:
    type: interact
    debug: true
    steps:
        1:
            Proximity Trigger:
                entry:
                    script:
                        - engage
                        - narrate format:chat "Welcome to YetiCraft!"
                        - wait 5t
                        - narrate format:chat "When you are ready to proceed, just tell me."
                        - disengage
                exit:
                    script:
                        - engage
                        - narrate format:chat "Take a look around.  There are some interesting things here.  When you are done, come back and I will send you onward."
                        - disengage
            Chat Trigger:
                1:
                    Trigger: /proceed/, I would like to proceed.
                    Script:
                        - engage
                        - narrate format:chat "Good!"
                        - wait 5t
                        - narrate format:chat "Let's get you started!  Sending you on to the path that will take you to playable areas."
                        - wait 1
                        - narrate format:chat "Just walk up to the next NPC and they will start talking!"
                        - teleport <player> 26,85,48,2,-26,Welcome
                        - flag player welcometutorialstart
                        - disengage