Paste #14296: Pasta

Date: 2015/03/06 09:23:28 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


# TimePositionScript:
    #    type: world
    #    events:
    #        on time changes in w@Genesis:
    #        - if <context.time> == "w@7:00" {
    #          - run NPCLeaveHouse
    #          }
    #
    NPCMoveTest:
        type: assignment
        interact scripts:
        - 1 NPCOnClick

    NPCOnClick:
        type: interact
        steps:
            1:
                click trigger:
                script:
                - chat "I got clicked!"
                - wait 1 
                - run s@NPCLeaveHouse

    NPCLeaveHouse:
        type: task
        script:
        - anchor add l@114,53,260,Genesis id:insideblacksmith
        - anchor walkto i:insideblacksmith