2016-12-01 20:01:47 +01:00
|
|
|
-- Random data provider to create random NPCs by Zorman2000
|
|
|
|
|
|
|
|
|
|
|
|
npc.data = {}
|
|
|
|
|
|
|
|
npc.data.DIALOGUES = {
|
2016-12-01 20:37:00 +01:00
|
|
|
female = {},
|
2016-12-01 20:01:47 +01:00
|
|
|
male = {}
|
|
|
|
}
|
|
|
|
|
|
|
|
-- Female dialogue options defined by phase
|
|
|
|
-- Phase 1
|
|
|
|
npc.data.DIALOGUES.female["phase1"] = {
|
2016-12-04 15:30:25 +01:00
|
|
|
[1] = {
|
2016-12-01 20:01:47 +01:00
|
|
|
text = "Hello there!"
|
|
|
|
},
|
2016-12-04 15:30:25 +01:00
|
|
|
[2] = {
|
2016-12-01 20:01:47 +01:00
|
|
|
text = "How are you doing?"
|
|
|
|
},
|
2016-12-04 15:30:25 +01:00
|
|
|
[3] = {
|
2016-12-01 20:01:47 +01:00
|
|
|
text = "Hey, I haven't seen you before!"
|
|
|
|
},
|
2016-12-04 15:30:25 +01:00
|
|
|
[4] = {
|
2016-12-01 20:01:47 +01:00
|
|
|
text = "Just another day..."
|
|
|
|
},
|
2016-12-04 15:30:25 +01:00
|
|
|
[5] = {
|
2016-12-01 20:01:47 +01:00
|
|
|
text = "The weather is nice today"
|
|
|
|
},
|
2016-12-04 15:30:25 +01:00
|
|
|
[6] = {
|
2016-12-01 20:01:47 +01:00
|
|
|
text = "Hello! Have you been to the sea?",
|
|
|
|
responses = {
|
2016-12-04 15:30:25 +01:00
|
|
|
[1] = {
|
2016-12-01 20:01:47 +01:00
|
|
|
text = "No, never before",
|
|
|
|
action_type = "function",
|
2016-12-04 21:00:55 +01:00
|
|
|
action = function(self, player)
|
|
|
|
minetest.chat_send_player(player:get_player_name(), "Oh, never? How come! You should."..
|
2016-12-01 20:37:00 +01:00
|
|
|
"\nHere, take this. It will guide you to the sea...")
|
2016-12-01 20:01:47 +01:00
|
|
|
end
|
|
|
|
},
|
2016-12-04 15:30:25 +01:00
|
|
|
[2] = {
|
2016-12-01 20:01:47 +01:00
|
|
|
text = "Yes, sure",
|
|
|
|
action_type = "dialogue",
|
|
|
|
action = {
|
|
|
|
text = "It's so beautiful, and big, and large, and infinite, and..."
|
|
|
|
}
|
|
|
|
},
|
2016-12-04 15:30:25 +01:00
|
|
|
[3] = {
|
2016-12-01 20:01:47 +01:00
|
|
|
text = "Of course! And to all the seas in the world!",
|
|
|
|
action_type = "dialogue",
|
|
|
|
action = {
|
|
|
|
text = "Awww you are no fun then! Go on then know-it-all!"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-12-04 21:24:32 +01:00
|
|
|
-- Phase 2
|
|
|
|
npc.data.DIALOGUES.female["phase2"] = {
|
|
|
|
[1] = {
|
|
|
|
text = "Hey buddy!"
|
|
|
|
},
|
|
|
|
[2] = {
|
|
|
|
text = "Hey buddy!"
|
|
|
|
},
|
|
|
|
[3] = {
|
|
|
|
text = "Hey buddy!"
|
|
|
|
},
|
|
|
|
[4] = {
|
|
|
|
text = "Hey buddy!"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
-- Phase 3
|
|
|
|
npc.data.DIALOGUES.female["phase3"] = {
|
|
|
|
[1] = {
|
|
|
|
text = "Hi there! Great to see you!"
|
|
|
|
},
|
|
|
|
[2] = {
|
|
|
|
text = "Hi there! Great to see you!"
|
|
|
|
},
|
|
|
|
[3] = {
|
|
|
|
text = "Hi there! Great to see you!"
|
|
|
|
},
|
|
|
|
[4] = {
|
|
|
|
text = "Hi there! Great to see you!"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
-- Phase 4
|
|
|
|
npc.data.DIALOGUES.female["phase4"] = {
|
|
|
|
[1] = {
|
|
|
|
text = "I was honestly looking forward to talk to you!"
|
|
|
|
},
|
|
|
|
[2] = {
|
|
|
|
text = "I was honestly looking forward to talk to you!"
|
|
|
|
},
|
|
|
|
[3] = {
|
|
|
|
text = "I was honestly looking forward to talk to you!"
|
|
|
|
},
|
|
|
|
[4] = {
|
|
|
|
text = "I was honestly looking forward to talk to you!"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
-- Phase 5
|
|
|
|
npc.data.DIALOGUES.female["phase5"] = {
|
|
|
|
[1] = {
|
|
|
|
text = "You are the love of my life"
|
|
|
|
},
|
|
|
|
[2] = {
|
|
|
|
text = "You are the love of my life"
|
|
|
|
},
|
|
|
|
[3] = {
|
|
|
|
text = "You are the love of my life"
|
|
|
|
},
|
|
|
|
[4] = {
|
|
|
|
text = "You are the love of my life"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
-- Phase 6
|
|
|
|
npc.data.DIALOGUES.female["phase6"] = {
|
|
|
|
[1] = {
|
|
|
|
text = "You are the best thing that has happened to me!"
|
|
|
|
},
|
|
|
|
[2] = {
|
|
|
|
text = "You are the best thing that has happened to me!"
|
|
|
|
},
|
|
|
|
[3] = {
|
|
|
|
text = "You are the best thing that has happened to me!"
|
|
|
|
},
|
|
|
|
[4] = {
|
|
|
|
text = "You are the best thing that has happened to me!"
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-12-01 20:01:47 +01:00
|
|
|
-- Male dialogue options defined by phase
|
|
|
|
-- Phase 1
|
|
|
|
npc.data.DIALOGUES.male["phase1"] = {
|
2016-12-04 15:30:25 +01:00
|
|
|
[1] = {
|
2016-12-01 20:01:47 +01:00
|
|
|
text = "Hello!"
|
|
|
|
},
|
2016-12-04 15:30:25 +01:00
|
|
|
[2] = {
|
2016-12-01 20:01:47 +01:00
|
|
|
text = "Welcome to our village, stranger."
|
|
|
|
},
|
2016-12-04 15:30:25 +01:00
|
|
|
[3] = {
|
2016-12-01 20:01:47 +01:00
|
|
|
text = "Just a great day to go to the woods..."
|
|
|
|
},
|
2016-12-04 15:30:25 +01:00
|
|
|
[4] = {
|
2016-12-01 20:01:47 +01:00
|
|
|
text = "Bah, stone! Useless stuff."
|
|
|
|
},
|
2016-12-04 15:30:25 +01:00
|
|
|
[5] = {
|
2016-12-01 20:01:47 +01:00
|
|
|
text = "What do you think of this weather?"
|
|
|
|
},
|
2016-12-04 15:30:25 +01:00
|
|
|
[6] = {
|
2016-12-01 20:01:47 +01:00
|
|
|
text = "Hello! Have you been to the sea?",
|
|
|
|
responses = {
|
2016-12-04 15:30:25 +01:00
|
|
|
[1] = {
|
2016-12-01 20:01:47 +01:00
|
|
|
text = "No, never before",
|
|
|
|
action_type = "function",
|
2016-12-04 21:00:55 +01:00
|
|
|
action = function(npc, player)
|
|
|
|
minetest.chat_send_player(player:get_player_name(), "Then you are not worth my time.")
|
2016-12-01 20:01:47 +01:00
|
|
|
end
|
|
|
|
},
|
2016-12-04 15:30:25 +01:00
|
|
|
[2] = {
|
2016-12-01 20:01:47 +01:00
|
|
|
text = "Yes, sure",
|
|
|
|
action_type = "dialogue",
|
|
|
|
action = {
|
|
|
|
text = "Then you should appreciate it as a great pirate of the seven seas do!"
|
|
|
|
}
|
|
|
|
},
|
2016-12-04 15:30:25 +01:00
|
|
|
[3] = {
|
2016-12-01 20:01:47 +01:00
|
|
|
text = "Of course! And to all the seas in the world!",
|
|
|
|
action_type = "dialogue",
|
|
|
|
action = {
|
|
|
|
text = "No my friend, I don't think so! I have been to all the seas!"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-12-04 21:24:32 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
-- Phase 2
|
|
|
|
npc.data.DIALOGUES.male["phase2"] = {
|
|
|
|
[1] = {
|
|
|
|
text = "Hey buddy!"
|
|
|
|
},
|
|
|
|
[2] = {
|
|
|
|
text = "Hey buddy!"
|
|
|
|
},
|
|
|
|
[3] = {
|
|
|
|
text = "Hey buddy!"
|
|
|
|
},
|
|
|
|
[4] = {
|
|
|
|
text = "Hey buddy!"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
-- Phase 3
|
|
|
|
npc.data.DIALOGUES.male["phase3"] = {
|
|
|
|
[1] = {
|
|
|
|
text = "Hi there! Great to see you!"
|
|
|
|
},
|
|
|
|
[2] = {
|
|
|
|
text = "Hi there! Great to see you!"
|
|
|
|
},
|
|
|
|
[3] = {
|
|
|
|
text = "Hi there! Great to see you!"
|
|
|
|
},
|
|
|
|
[4] = {
|
|
|
|
text = "Hi there! Great to see you!"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
-- Phase 4
|
|
|
|
npc.data.DIALOGUES.male["phase4"] = {
|
|
|
|
[1] = {
|
|
|
|
text = "I was honestly looking forward to talk to you!"
|
|
|
|
},
|
|
|
|
[2] = {
|
|
|
|
text = "I was honestly looking forward to talk to you!"
|
|
|
|
},
|
|
|
|
[3] = {
|
|
|
|
text = "I was honestly looking forward to talk to you!"
|
|
|
|
},
|
|
|
|
[4] = {
|
|
|
|
text = "I was honestly looking forward to talk to you!"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
-- Phase 5
|
|
|
|
npc.data.DIALOGUES.male["phase5"] = {
|
|
|
|
[1] = {
|
|
|
|
text = "You are the love of my life"
|
|
|
|
},
|
|
|
|
[2] = {
|
|
|
|
text = "You are the love of my life"
|
|
|
|
},
|
|
|
|
[3] = {
|
|
|
|
text = "You are the love of my life"
|
|
|
|
},
|
|
|
|
[4] = {
|
|
|
|
text = "You are the love of my life"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
-- Phase 6
|
|
|
|
npc.data.DIALOGUES.male["phase6"] = {
|
|
|
|
[1] = {
|
|
|
|
text = "You are the best thing that has happened to me!"
|
|
|
|
},
|
|
|
|
[2] = {
|
|
|
|
text = "You are the best thing that has happened to me!"
|
|
|
|
},
|
|
|
|
[3] = {
|
|
|
|
text = "You are the best thing that has happened to me!"
|
|
|
|
},
|
|
|
|
[4] = {
|
|
|
|
text = "You are the best thing that has happened to me!"
|
|
|
|
},
|
2016-12-06 02:22:33 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
-- Items
|
|
|
|
-- Favorite items, disliked items lists
|
|
|
|
npc.FAVORITE_ITEMS = {
|
|
|
|
female = {},
|
|
|
|
male = {}
|
|
|
|
}
|
|
|
|
-- Define items by phase
|
|
|
|
-- Female
|
|
|
|
npc.FAVORITE_ITEMS.female["phase1"] = {
|
|
|
|
{item = "default:apple",
|
|
|
|
response = "Hey, I really wanted an apple, thank you!",
|
|
|
|
hint = "I could really do with an apple..."},
|
|
|
|
{item = "farming:bread",
|
|
|
|
response = "Thanks, you didn't have to, but thanks...",
|
|
|
|
hint = "Some fresh bread would be good!"}
|
|
|
|
}
|
|
|
|
npc.FAVORITE_ITEMS.female["phase2"] = {
|
|
|
|
{item = "farming:cotton",
|
|
|
|
response = "This is going to be very helpful, thank you!",
|
|
|
|
hint = "If I just had some cotton lying around..."},
|
|
|
|
{item = "wool:white",
|
|
|
|
response = "Thanks, you didn't have to, but thanks...",
|
|
|
|
hint = "Have you seen a white sheep? I need some wool."}
|
|
|
|
}
|
|
|
|
npc.FAVORITE_ITEMS.female["phase3"] = {
|
|
|
|
{item = "default:apple",
|
|
|
|
response = "Hey, I really wanted an apple, thank you!",
|
|
|
|
hint = "I could really do with an apple..."},
|
|
|
|
{item = "farming:bread",
|
|
|
|
response = "Thanks, you didn't have to, but thanks...",
|
|
|
|
hint = "Some fresh bread would be good!"}
|
|
|
|
}
|
|
|
|
npc.FAVORITE_ITEMS.female["phase4"] = {
|
|
|
|
{item = "default:apple",
|
|
|
|
response = "Hey, I really wanted an apple, thank you!",
|
|
|
|
hint = "I could really do with an apple..."},
|
|
|
|
{item = "farming:bread",
|
|
|
|
response = "Thanks, you didn't have to, but thanks...",
|
|
|
|
hint = "SOme fresh bread would be good!"}
|
|
|
|
}
|
|
|
|
npc.FAVORITE_ITEMS.female["phase5"] = {
|
|
|
|
{item = "default:apple",
|
|
|
|
response = "Hey, I really wanted an apple, thank you!",
|
|
|
|
hint = "I could really do with an apple..."},
|
|
|
|
{item = "farming:bread",
|
|
|
|
response = "Thanks, you didn't have to, but thanks...",
|
|
|
|
hint = "Some fresh bread would be good!"}
|
|
|
|
}
|
|
|
|
npc.FAVORITE_ITEMS.female["phase6"] = {
|
|
|
|
{item = "default:apple",
|
|
|
|
response = "Hey, I really wanted an apple, thank you!",
|
|
|
|
hint = "I could really do with an apple..."},
|
|
|
|
{item = "farming:bread",
|
|
|
|
response = "Thanks, you didn't have to, but thanks...",
|
|
|
|
hint = "Some fresh bread would be good!"}
|
|
|
|
}
|
|
|
|
-- Male
|
|
|
|
npc.FAVORITE_ITEMS.male["phase1"] = {
|
|
|
|
{item = "default:apple",
|
|
|
|
response = "Hey, I really wanted an apple, thank you!",
|
|
|
|
hint = "I could really do with an apple..."},
|
|
|
|
{item = "farming:bread",
|
|
|
|
response = "Thanks, you didn't have to, but thanks...",
|
|
|
|
hint = "Some fresh bread would be good!"}
|
|
|
|
}
|
|
|
|
npc.FAVORITE_ITEMS.male["phase2"] = {
|
|
|
|
{item = "farming:cotton",
|
|
|
|
response = "This is going to be very helpful, thank you!",
|
|
|
|
hint = "If I just had some cotton lying around..."},
|
|
|
|
{item = "wool:white",
|
|
|
|
response = "Thanks, you didn't have to, but thanks...",
|
|
|
|
hint = "Have you seen a white sheep? I need some wool."}
|
|
|
|
}
|
|
|
|
npc.FAVORITE_ITEMS.male["phase3"] = {
|
|
|
|
{item = "default:apple",
|
|
|
|
response = "Hey, I really wanted an apple, thank you!",
|
|
|
|
hint = "I could really do with an apple..."},
|
|
|
|
{item = "farming:bread",
|
|
|
|
response = "Thanks, you didn't have to, but thanks...",
|
|
|
|
hint = "Some fresh bread would be good!"}
|
|
|
|
}
|
|
|
|
npc.FAVORITE_ITEMS.male["phase4"] = {
|
|
|
|
{item = "default:apple",
|
|
|
|
response = "Hey, I really wanted an apple, thank you!",
|
|
|
|
hint = "I could really do with an apple..."},
|
|
|
|
{item = "farming:bread",
|
|
|
|
response = "Thanks, you didn't have to, but thanks...",
|
|
|
|
hint = "SOme fresh bread would be good!"}
|
|
|
|
}
|
|
|
|
npc.FAVORITE_ITEMS.male["phase5"] = {
|
|
|
|
{item = "default:apple",
|
|
|
|
response = "Hey, I really wanted an apple, thank you!",
|
|
|
|
hint = "I could really do with an apple..."},
|
|
|
|
{item = "farming:bread",
|
|
|
|
response = "Thanks, you didn't have to, but thanks...",
|
|
|
|
hint = "Some fresh bread would be good!"}
|
|
|
|
}
|
|
|
|
npc.FAVORITE_ITEMS.male["phase6"] = {
|
|
|
|
{item = "default:apple",
|
|
|
|
response = "Hey, I really wanted an apple, thank you!",
|
|
|
|
hint = "I could really do with an apple..."},
|
|
|
|
{item = "farming:bread",
|
|
|
|
response = "Thanks, you didn't have to, but thanks...",
|
|
|
|
hint = "Some fresh bread would be good!"}
|
|
|
|
}
|
|
|
|
|
|
|
|
-- Disliked items
|
|
|
|
npc.DISLIKED_ITEMS = {
|
|
|
|
female = {
|
|
|
|
{item = "default:stone",
|
|
|
|
response = "Stone, oh... why do you give me this?",
|
|
|
|
hint = "Why would someone want a stone?"},
|
|
|
|
{item = "default:cobble",
|
|
|
|
response = "Cobblestone? No, no, why?",
|
|
|
|
hint = "Anything worst than stone is cobblestone."}
|
|
|
|
},
|
|
|
|
male = {
|
|
|
|
{item = "default:stone",
|
|
|
|
response = "Bah! Stone? I don't need this thing!",
|
|
|
|
hint = "Stones are useless!"},
|
|
|
|
{item = "default:cobble",
|
|
|
|
response = "Cobblestone!? Wow, you sure think a lot before giving a gift...",
|
|
|
|
hint = "If I really hate something, that's cobblestone!"}
|
|
|
|
}
|
2016-12-01 20:01:47 +01:00
|
|
|
}
|