Paste #5848: Untitled Paste

Date: 2014/06/27 13:48:59 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


Jaybug:
    Type: Assignment
    Actions:
        on assignment:
        - trigger name:chat toggle:true
        - trigger name:click toggle:true
        #- lookclose state:true
    Interact Scripts:
    - 1 WayOut

WayOut:
    type: Interact
    Requirements:
        Mode: All
        List:
        - -flagged player "SwordIntroDone:true" 
        - -flagged player ArachNOPE:true
    Steps:
        1:                    
            Click Trigger:
                Script:
                - narrate "<red><&co> The Way Out - Quest Completed"
                - wait 1
                - narrate "<&lb><red><npc.name><white><&rb><&co><yellow> Who are you?"
                - wait 1
                - narrate "<&lb><red><npc.name><white><&rb><&co><yellow> Well, it doesn't matter now, you'll have to fight your way through these spiders to get out"
                - wait 2
                - narrate "<&lb><red><npc.name><white><&rb><&co><yellow> You should clear a few out on your way, it will be good practice for you!"
                - wait 1
                - narrate "<red><&co> ArachNOPE - Quest Started"
                - narrate "<red> Kill 5 spiders and exit the tunnel."
                - ^listen kill type:entity target:spider qty:5 script:SpiderQuestCheck
        2:
            Click Trigger:
                Script:
                    - narrate "<&lb><red><npc.name><white><&rb><&co><yellow> Go on, Hurry!"



ZombieQuestCheck:
    Type: task
    script:
    - ^flag player ZombieCount:++
    - ^narrate "<yellow> You have killed <player.flag[SpiderCount].asint>/10 spiders!"
    - ^if <player.flag[SpiderCount].asint> >= 10 {
        - ^run SpiderQuestReward
        } else {
        - ^run SpiderQuestContinue
        }
SpiderQuestContinue:
    type: task
    script:
    - ^listen kill type:entity target:spider qty:5 script:SpiderQuestCheck    
SpiderQuestReward:
   type: task
   script:
   - narrate "<yellow><&co> Go talk to Cyrill at the end of the cave.!"
   - flag player ArachNOPE:true