Paste #57935: example

Date: 2019/09/07 09:47:43 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


assignment:
    type: assignment
    interact scripts:
    - 10 blacksmith

blacksmith:
    type: interact
    steps:
        1:
            click trigger:
                script:
                - chat "Hello <player.name>, I need your help!"
                - wait 1
                - chat "Can you help me?"
            chat trigger:
                NPC_Blacksmith_1_Yes:
                    trigger: /Yes/, I could spare some time!
                    script:
                    - chat "Wonderful! I need my sword, i left it in the warzone!"
                    - wait 1
                    - chat "Come back when you get it."
                    - zap step:2
                NPC_Blacksmith_2_No:
                    trigger: /No/, I'm  too busy.
                    script:
                    - chat "Oh ok, come back when you have more time!"
        2:
            click trigger:
                script:
                - chat "This is the second step!"