Paste #56637: Murder Mystery

Date: 2019/08/10 12:34:44 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


dexter_start:
    type: assignment
    actions:
        on assignment:
        - trigger name:proximity state:true radius:5
    interact scripts:
    - 10 dexter_help


cdexter:
    type: format
    format: "<&5>> <&6><Dexter> <&7>--> <&e><text>"

cnarrator:
    type: format
    format: "<&5>> <&7><You> <&7>--> <&7><&0><text>"

cguide:
    type: format
    format: "<&5>Make A Choice:<&e>"


dexter_help:
    type: interact
    steps:
        1:
            proximity trigger:
                entry:
                    script:
                    - ^narrate format:cdexter "<&l>Hey! <&e>I need help!"
                    - playsound <player> sound:ENTITY_EXPERIENCE_ORB_PICKUP pitch:1
                    - wait 1
                    - ^narrate format:cdexter "Can you help me? My friend Rogger was murdered! Can you help me?"
                    - playsound <player> sound:ENTITY_EXPERIENCE_ORB_PICKUP pitch:1
                    - wait 1.5
                    - ^narrate "<&5><&l>Make A Choice:<&e> Type <&2><&l>Yes <&e>to help or type <&4><&l>No<&e> to refuse"
                    - playsound <player> sound:ENTITY_EXPERIENCE_ORB_PICKUP pitch:0.4
                    - zap 2
        2:
            chat trigger:
                1:
                    trigger: /Yes/ I accept to help!
                    script:
                    - ^narrate format:cdexter "Thank you!"
                    - playsound <player> sound:AMBIENT_CAVE pitch:2
                    - title "title:<green>Quest Started!" "subtitle:<gold>Murder Mystery"
                    - zap 1

                2:
                    trigger: /No/ I refuse to help you.
                    script:
                    - ^narrate format:cdexter "Screw off then!"
                    - playsound <player> sound:ENTITY_VILLAGER_NO pitch:1
                    - zap 3
        3:
            click trigger:
                script:
                - ^narrate format:cdexter "Did you want to help me now?"
                - playsound <player> sound:ENTITY_EXPERIENCE_ORB_PICKUP pitch:1
                - wait 1
                - ^narrate format:cdexter "I need to know who killed my friend!"
                - playsound <player> sound:ENTITY_EXPERIENCE_ORB_PICKUP pitch:1
                - wait 1.5
                - ^narrate "<&5><&l>Make A Choice:<&e> Type <&2><&l>Yes <&e>to help or type <&4><&l>No<&e> to refuse"
                - playsound <player> sound:ENTITY_EXPERIENCE_ORB_PICKUP pitch:0.4
                - zap 2