Paste #928: Starter

Date: 2014/01/02 10:11:48 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


Starter:
    type: assignment

    Interact scripts:
    - 10 Welcome
    - 10 TalkToPriest
    - 10 Crystal2

    actions:
        on assignment:
        - TRIGGER name:click state:true 
        - TRIGGER name:chat state:true      

Welcome:
    type: interact
    steps:
        1:
            click trigger:
                script:
                - chat "Welcome To the World of Archan Choose the Quest you want" 
                - chat "Your Choices are"
                - chat "<&f>Talk To Quests Priest, Warrior, or Mage"
                - chat "<&B>Hunter-Get the Magic Crystal"
                - zap 2 duration:10
        2:
            Chat trigger:
                1:                   
                    trigger: I to go talk to the /Priest/
                    script:
                    - chat "Ok he's in the church across the path"
                    - run TalkToPriest
                2: 
                    trigger: I want to go talk to the /Warrior/
                    script:
                    - chat "Ok he's most likely fighting or in the inn"
                    - run TalkToWarrior
                3: 
                    trigger: I want to go talk to the /Mage/
                    script:
                    - chat "Ok if you can find his tower send him my respects"
                    - run TalkToMage
                4: 
                    trigger: I want to go /hunt/ing
                    script:
                    - chat "Ok go kill 10 cows, 5 pigs, and 5 zombies"
                    - run Hunter
                5: 
                    trigger: I want to go get the magic /crystal/
                    script:
                    - chat "Ok i will teleport you to the house overrun by enemies you will have to battle your way through to the chest containing the crystal"
                    - run script Crystal
                6:
                    trigger: /No/ i don't want to go on a quest
                    script:
                      - zap 1
                      - chat "Ok come back later if you want a quest"

Crystal:
    type: task
    script:
        - teleport <player> l@-5,64,146,Moirae
        - narrate "<&3>You get Teleported to room"
        - run step Crystal2
Crystal2:
    type: interact
    script:
        - if diamond = 1 {
        - take diamond qty:1
        - give player money 100
        - narrate "You have gotten the crystal"
        - chat "Thanks for helping come back tommorow to redo quest"
        - run Come Again Tommorow
        - run script WaitADay
        } else {
        - chat "<&b>Your Not Done!"
        }
WaitADay:
    type: task
    script:
    - wait 86400
    - zap Starter