Paste #5916: thiefInitQuest

Date: 2014/06/28 13:30:20 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


thiefInitQuest:
    type: assignment
    actions:
        on assignment:
        - trigger name:chat toggle:true
        - trigger name:click toggle:true
    interact scripts:
    - 10 thiefInitStart
thiefInitStart:
    type: interact
    steps:
        1:
            click trigger:
                script:
                - narrate "James: <dark_Green> *Cough*<dark_Purple> Oh <dark_Green>*Cough* <dark_Purple>hello!"
                - wait 2
                - narrate "<yellow> The Man seems to be Dying"
                - wait 2
                - narrate "James: <dark_Purple>Hey. Sorry to bother you, but could you get me some <dark_Green>*Cough*"
                - narrate "<gold>Cocoa Beans?"
                - wait 2
                - zap step:2
        2:
            click trigger:
                script:
                - wait 3
                - narrate "James:<dark_Purple> I think <blue>Bella<dark_Purple> Might have some... but she says she needs them..."
                - flag player thiefInit_1
                - zap step:3
        3:
            click trigger:
                script:
                - if <player.flag[bellaCocoa_1]>{
                    - narrate "James: <dark_Purple>Dang, I need those Cocoa Beans..."
                    - wait 2
                    - narrate "James: <dark_Purple>Maybe you could...Steal... Them for me? <green>Y<dark_Purple>/<red>N"
                    - zap step:4
                    } else {
                    - narrate "James: <dark_Purple>Did you Talk to bella?"
                    }
        4:
            chat trigger:
                1:
                    trigger: /Y/eah, sure, if you want them that badly...
                    script:
                    - wait 2
                    - narrate "James: <dark_Purple>Really!? Thanks! I'm sorry you had to do this."
                    - zap step:5
                2:
                    trigger: /N/o! i'd never steal.
                    script:
                    - narrate "James: <dark_Purple>Okay, Just talk to me if you change your mind."
        5:
             click trigger:
                script:
                - if <player.inventory.contains[COCOA].qty[1]> {
                        - ^take COCOA qty:1
                        - narrate "James: <dark_Purple> Glad you made it back!... A bit of a confession... Im not actually sick!"
                        - wait 1
                        - narrate "James: <dark_Purple> I'm actually a Recruiter For the Thieves Guild! Would you like to join? <green>Y<white>/<red>N"
                        - zap step:6
                        } else {
                        - narrate "James: <dark_Purple> Do you have the Cocoa Beans Yet?"
                        }
        6:
            chat trigger:
                1:
                    trigger: /Y/eah, sure.
                    script:
                    - narrate "James: <dark_Purple>This is Great! Go talk to <blue>Scythe<dark_Purple> in the Cave Southeast of town!"
                    - flag player thiefInit_2
                    - zap step:7 

                2:
                    trigger: /N/o, You lied to me!
                    script:
                    - narrate "James: <dark_Purple> Aww, Just dont tell the Gaurds!"
        7:
            click trigger:
                script:
                - narrate "James: <dark_Purple> I said go talk to <blue>Scythe<dark_Purple>!"