questMiner = 2;
interactGUI = true
interactScript = "OliverInteract.js" //needs to be this scripts name
talkBackground.addToScreen()
talkInstructions.addToScreen() //instructions appear
if (interactSeq == 0) {
        talkOther0.text = "What are you doing up here?" //other dialog
        talkOther1.text = " "
        talkOther2.text = " "
        talkOption10.text = "1: Sorry for intruding, but what's in there?" //choice 1
        talkOption11.text = " "
        talkOption12.text = " "
        talkOption20.text = "2: Leaving!" //choice 2
        talkOption21.text = " "
        talkOption22.text = " "
        if (questMiner == 2) {  //if the player has finished the quest
        talkOption30.text = "3: The birds out..." //choice 3
        talkOption31.text = " "
        talkOption32.text = " "
        }
        if (interactChoice == 1) {
                interactSeq = 1
                interactChoice = 0
        }
        if (interactChoice == 2) {
                interactSeq = -1 //this will stop the dialogue sequence
                interactChoice = 0
        }
        if (interactChoice == 3 && questMiner == 2) { //if the player has finished the quest
                interactSeq = 2 
                interactChoice = 0
        }
}
if (interactSeq == 1) {
        talkOther0.text = "Jerry, the head miner, told me not to tell" //other dialog
        talkOther1.text = "anyone! ...though I think it's obvious anyway."
        talkOther2.text = " "
        talkOption10.text = "1: Hm..." //choice 1
        talkOption20.text = " " //choice 2
        talkOption30.text = " " //choice 3
        if (interactChoice == 1) {
                interactSeq = -1 //this will stop the dialogue sequence
                interactChoice = 0
        }
}
if (interactSeq == 2) {
        talkOther0.text = "So... Jerry told you the secret code. Enter"
        talkOther1.text = "as you wish!"
        talkOther2.text = " "
        talkOption10.text = "1: Thank you!"  //line 1 of player dialog choice #1
        talkOption20.text = " "  //line 1 of player dialog choice #2
        talkOption30.text = " "  //line 1 of player dialog choice #3
        if (interactChoice == 1) { //when you choose choice #1...
                chat.print("you open the door") //opens the vault door
                interactSeq = -1  //this will stop the dialogue sequence
                interactChoice = 0
        }
}
if (interactSeq == -1) {  //this block should ALWAYS be at the end of the script!
        talkOther0.text = " "
        talkOther1.text = " "
        talkOther2.text = " "
        talkOption10.text = " "
        talkOption11.text = " "
        talkOption12.text = " "
        talkOption20.text = " "
        talkOption21.text = " "
        talkOption22.text = " "
        talkOption30.text = " "
        talkOption31.text = " "
        talkOption32.text = " "
        talkBackground.removeFromScreen();
        talkInstructions.removeFromScreen()
        interactChoice = 0
        interactGUI = false
        interactSeq = 0
}