Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Greetings = {
- "Hey, how are you doing?",
- "Man this place is boring.",
- "Something on your mind?"
- }
- local Farewells = {
- "See you around then.",
- "Meh later..",
- "I'll always be here, unfortunately."
- }
- local dialogue = {
- Greetings = Greetings,
- Farewells = Farewells,
- DialogueTree = {
- good = {
- ["Do you need anything?"] = {
- Response = {
- "I suppose, if you can gather me 5 coconuts I'd appreciate that.",
- "I'll give you 15 seashells for your troubles"
- },
- good = {
- ["Sure I'll be back before you know it!"] = {
- Response = "Thank you, see you soon!",
- Trigger = "End"
- }
- },
- bad = {
- ["No, get them yourself, loser!"] = {
- Response = "You'll pay for that. >:(",
- Trigger = "Attack"
- }
- },
- bye = {
- ["Actually, forget I said anything..."] = {
- Response = Farewells[math.random(1, #Farewells)],
- Trigger = "End"
- }
- },
- persuade = {
- ChanceOfSuccess = 0.7,
- ["Only 15 seashells? you know thats worth at least 20"] = {
- Response = {
- "You do have a point, 20 shells it is then, how does that sound?"
- },
- good = {
- ["You've got yourself a deal, I'll be right back!"] = {
- Response = "Thank you! I'll see you soon then.",
- Trigger = "End"
- }
- },
- bad = {
- ["How does pounding sand and getting lost sound?"] = {
- Response = "Hurtful, you don't have to be so mean. :(",
- Trigger = "End"
- }
- },
- bye = {
- ["I just remembered I actually have something else I have to do."] = {
- Response = Farewells[math.random(1,#Farewells)],
- Trigger = "End"
- }
- },
- FailureResponse = {
- Response = "You must take me as a fool. Pound sand loser.",
- Trigger = "End"
- }
- }
- }
- }
- },
- bad = {
- ["You smell bad."] = {
- Response = ":(",
- Trigger = "End"
- }
- },
- bye = {
- ["Nevermind."] = {
- Response = Farewells[math.random(1,#Farewells)],
- Trigger = "End"
- }
- }
- }
- }
- return dialogue
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement