Paste #32066: Untitled Paste

Date: 2016/03/27 17:22:37 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


Waldo:
    type: assignment
    interact scripts:
    - 10 WheresWaldo
WheresWaldo:
    Type: interact
    steps:
        1.
            proximity trigger:
                entry:
                    script:
                    - chat: "Hello <player.name>, welcome to my shop! Would you like to see my wares?"
                exit:
                    script:
                    - chat: "Goodbye!"
            click trigger:
                script:
                - chat: No need to touch me, stranger... would you like to see what I have to sell?
            chat trigger:
                1. 
                    trigger: /Yes/!
                    script:
                    - chat "Alright, would you like to see weapons or armor?"
                    - zap step:2
                2: 
                    trigger: /No/, thank you.
                    script:
                    - chat "That's fine, come back anytime!"
                    - zap step:1
        2.
            chat trigger:
                1.
                    trigger: /Weapon/s please!
                    script:
                    - chat: "Sounds good! Take a look!"
                    - wait 1
                    - execute as_op "shop_page_open_weapons" 
                    - zap s@Goodbye
                2.
                    trigger: /Armor/ please! 
                    script:
                    - chat: "Fantastic! Have a look-see!"
                    - wait 1
                    - execute as_op "shop_page_open_Armor"
                    - ^zap s@Goodbye
Goodbye:
    type: task
    script: 
        on player closes inventory:
        - chat: "Do come again!"
        - cooldown 20s s:s@WheresWaldo.cool_down<player>