@@ -31,9 +31,14 @@ func objInteraction(selected): # when an object is used on it
...
@@ -31,9 +31,14 @@ func objInteraction(selected): # when an object is used on it
# dont have all equipment yet
# dont have all equipment yet
dialogueBox.text = "I don't think I have all my equipment for this yet."
dialogueBox.text = "I don't think I have all my equipment for this yet."
dialogueBox.playText()
dialogueBox.playText()
elif inventory.get_item_text(selected) == "Pot" or inventory.get_item_text(selected) == "Shovel" or inventory.get_item_text(selected) == "Tabo with water":
if inventory.hasItem("Pot") != -1 and inventory.hasItem("Shovel") != -1 and inventory.hasItem("Tabo with water") != -1:
dialogueBox.text = "I have everything I need, but I don't know how to start this..."
else:
dialogueBox.text = "I don't think I have all my equipment for this yet."
elif typeof(flavor) != 0: #checks if there's coded flavor text for this interaction
elif typeof(flavor) != 0: #checks if there's coded flavor text for this interaction
dialogueBox.text = flavor
dialogueBox.text = flavor
dialogueBox.playText()
dialogueBox.playText()
else:
else:
dialogueBox.text = "No flavor text found" #can replace this later!
dialogueBox.text = "I'm not putting that in my plant, it's been through enough!" #can replace this later!