Paste #21211: Untitled Paste

Date: 2015/10/18 21:17:59 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


DeathAssign: 
    type: assignment 
    interact scripts: 
    - 10 DeathQuest 
InterrogationAssign: 
    type: assignment 
    interact scripts: 
    - 10 Interrogation

chatformat:
    type: format
    format: "<&8><npc.name>: <&7><text>"
tonpc:
    type: format
    format: "<&8>You -> <npc.name>: <&7><text>"
questtip:
    type: format
    format: "<italic><&3><text>"
progress:
    type: format
    format: "<italic><gray><text>"

DeathQuest: 
    type: interact 
    steps: 
        1:
            click trigger:
                script:
                - if <player.has_flag[inChat]> queue clear
                - flag player inChat
                - narrate format:chatformat "<player.name>, come here a moment. I need to speak with you."
                - wait 4
                - narrate format:chatformat "There have been some weird things happening lately."
                - wait 4
                - narrate format:chatformat "Let me take you there to investigate.."
                - wait 2
                - narrate "Would you like to be teleported to the Halloween Event? [Yes/No]"
                - flag player inChat:!
            chat trigger:
                1:
                    trigger: /Yes/, take me there.
                    script:
                    - if <player.has_flag[inChat]> queue clear
                    - flag player inChat
                    - flag player halloweenOrder:|:<li@Zexx|MOSQ|Campolar|Plaid|Kai|Vault.random[9999]>
                    - wait 1
                    - narrate format:chatformat "Here we go."
                    - cast spell:confusion duration:8 power:5
                    - cast blindness power:3 duration:5
                    - wait 2
                    - teleport <player> <l@639,6,224,SEASONAL.with_pose[-6,134]>
                    - wait 2
                    - narrate format:chatformat "Phew, it worked. You're now in Duat, the land of the dead."
                    - wait 3
                    - narrate format:chatformat "Speak with me again and I'll debrief you on the situation."
                    - wait 3
                    - narrate format:questtip "Please note! This event is not as easy as all the previous quests, it will require puzzle solving, note taking, and lots of brainpower! Please be prepared to take some time for this event as some key parts may not be repeatable!"
                    - wait 5
                    - flag player inChat:!
                    - zap step:2
        2: 
            click trigger: 
                script:
                - if <player.has_flag[inChat]> queue clear
                - flag player inChat
                - narrate format:chatformat "Ah, yes I see you're ready." 
                - wait 3
                - narrate format:chatformat "Something horrible has happened, there has been a murder."
                - wait 4
                - narrate format:chatformat "I have come to collect Dylan's soul, but I must find out who caused this atrocity."
                - wait 4
                - narrate format:chatformat "Now listen carefully."
                - wait 3
                - narrate format:chatformat "Follow the path and you will come to a mansion."
                - wait 4
                - narrate format:chatformat "There are only six people that live in that house, and it has to be one of them."
                - wait 5
                - narrate format:chatformat "I need you to interrogate each one of them and figure out who the criminal is."
                - wait 5
                - narrate format:chatformat "Return to me once you've narrowed down your options or figured it out."
                - flag player inInterrogationMode
                - flag player inChat:!
                - zap step:3
        3:
            click trigger:
                script:
                - narrate format:chatformat "Bounced back."
                - zap step:1

Interrogation: 
    type: interact 
    steps: 
        1:
            click trigger:
                script:
                - if !<player.has_flag[inInterrogationMode]> queue clear
                - if <player.has_flag[inChat]> queue clear
                - flag player inChat
                - if <player.flag[halloweenOrder].get[1]>=="<npc.name>" {
                    - narrate format:tonpc "I have some questions for you, <npc.name>."
                    - wait 3
                    - chat "Huh? Oh hello, what is it?"
                    - wait 4
                    - narrate format:tonpc "Where were you last night?"
                    - wait 3
                    - chat "Well last night I was in the library catching up on my studies with <player.flag[halloweenOrder].get[3]>."
                    - wait 5
                    - chat "We were so deep in our books we didn't find out about what happened until this morning."
                    - wait 4
                    - narrate format:tonpc "And did you see or notice anyone in the house last night?"
                    - wait 5
                    - chat "I was pretty focused on my work."
                    - wait 3
                    - chat "I don't recall seeing anyone wandering about, sorry."
                    - wait 3
                } else if <player.flag[halloweenOrder].get[2]>==<npc.name> {
                    - narrate format:tonpc "I have some questions for you, <npc.name>."
                    - wait 3
                    - chat "Hey, of course."
                    - wait 4
                    - narrate format:tonpc "Where were you last night?"
                    - wait 3
                    - chat "Last night? Well I was star gazing in the courtyard all night, I ended up falling asleep out there."
                    - wait 4
                    - chat "It's quite peaceful, you should try it sometime."
                    - wait 4
                    - narrate format:tonpc "And did you see or notice anyone in the house last night?"
                    - wait 5
                    - chat "Yeah, when I was heading outside I saw <player.flag[halloweenOrder].get[1]> and <player.flag[halloweenOrder].get[3]> with their heads in some books."
                    - wait 3
                    - narrate format:tonpc "Okay, thank you <npc.name>."
                    - wait 3
                } else if <player.flag[halloweenOrder].get[3]>==<npc.name> {
                    - narrate format:tonpc "I have some questions for you, <npc.name>."
                    - wait 3
                    - chat "Oh yes hello, certainly."
                    - wait 4
                    - narrate format:tonpc "Where were you last night?"
                    - wait 3
                    - chat "Well you see, I have missed a few days of class so I was in the library catching up on my work with <player.flag[halloweenOrder].get[1]."
                    - wait 5
                    - chat "Why do you ask?"
                    - wait 3
                    - narrate format:tonpc "I was sent to investigate."
                    - wait 3
                    - chat "Ah, okay. Anything else?"
                    - wait 4
                    - narrate format:tonpc "Yes, did you see or notice anyone in the house last night?"
                    - wait 5
                    - chat "I do recall seeing <player.flag[halloweenOrder].get[2]> walk past the library looking suspicious.."
                    - wait 3
                    - chat "Then again, he's always tinkering with something or wandering about."
                    - wait 4
                    - chat "Oh! I also saw <player.flag[halloweenOrder].get[6]> come out of the mine."
                    - wait 5
                    - chat "Wow, I really should've been more focused on my work."
                    - wait 3
                } else if <player.flag[halloweenOrder].get[4]>==<npc.name> {
                    - narrate format:tonpc "I have some questions for you, <npc.name>."
                    - wait 3
                    - chat "What can I do for you?"
                    - wait 4
                    - narrate format:tonpc "I'm investigating the murder, where were you last night?"
                    - wait 3
                    - chat "Oh um, I was in bed all day."
                    - wait 4
                    - chat "I was feeling ill and didn't leave my room too much."
                    - wait 4
                    - chat "I heard about what happened to Dylan, what a horrible thing. I really liked him."
                    - wait 5
                    - narrate format:tonpc "Yes, it is. Did you see or notice anyone in the house last night?"
                    - wait 5
                    - chat "Well I was asleep all night, so no I did not."
                    - wait 3
                    - narrate format:tonpc "Okay, thank you <npc.name>."
                    - wait 3
                    - chat "I hope you catch the one who did it, justice is due."
                    - wait 4
                } else if <player.flag[halloweenOrder].get[5]>=="<npc.name>" {
                    - narrate format:tonpc "I have some questions for you, <npc.name>."
                    - wait 3
                    - chat "What is it? I am busy."
                    - wait 4
                    - narrate format:tonpc "I'm looking into the murder, where were you last night?"
                    - wait 3
                    - chat "I went to town to meet some friends and have a drink."
                    - wait 5
                    - narrate format:tonpc "So you were not in the house then?"
                    - wait 5
                    - chat "Correct."
                    - wait 3
                    - narrate format:tonpc "Okay, thank you <npc.name>."
                    - wait 3
                } else if <player.flag[halloweenOrder].get[6]>==<npc.name> {
                    - narrate format:tonpc "I have some questions for you, <npc.name>."
                    - wait 3
                    - chat "What is wrong? Have I done something?"
                    - wait 4
                    - narrate format:tonpc "I don't know, have you? Where were you last night?"
                    - wait 3
                    - chat "I was busy collecting resources in the mine."
                    - wait 4
                    - chat "We've been running low here so I decided to stock up on coal for the winter."
                    - wait 5
                    - narrate format:tonpc "So you were not in the house then?"
                    - wait 5
                    - chat "No, I got back late and everyone seemed to be asleep."
                    - wait 4
                    - chat "Wait, no I do recall seeing a light on in the library."
                    - wait 3
                    - narrate format:tonpc "Okay, thank you <npc.name>."
                    - wait 3
                } else {
                    - chat "ERROR"
                }
                - narrate format:questtip "You feel like you've gained enough information from <npc.name>, you'd best move on."
                - flag player inChat:!