local Dates = {
["John"] = {
["Gender"] = "Male",
["From"] = "USA",
["RelationShip"] = "Single",
["Age"] = "20",
["RelationShip"] = "Gamming",
["Bank"] = 1000,
},
["Emran"] = {
["Gender"] = "Male",
["From"] = "Saudi",
["RelationShip"] = "Taken",
["Age"] = "25",
["Hobby"] = "Oil Drilling",
["Bank"] = 1000000,
},
["Anton"] = {
["Gender"] = "Male",
["From"] = "Spain",
["RelationShip"] = "Single",
["Age"] = "24",
["Hobby"] = "Football",
["Bank"] = 100000,
},
["Harry"] = {
["Gender"] = "Male",
["From"] = "UK",
["RelationShip"] = "Taken",
["Age"] = "28",
["Hobby"] = "Drinking Tea",
["Bank"] = 10000,
},
["Mohammed"] = {
["Gender"] = "Male",
["From"] = "Iraq",
["RelationShip"] = "Single",
["Age"] = "19",
["Hobby"] = "Programming",
["Bank"] = 100000,
},
}
function ChooseDate(Girl)
local DateOptions = Girl[Options]
local currentdate, currentpoint, finaloption
local point = 0
if DateOptions == nil then print("What kind of boy does the girl want??") return end
for boy, info in pairs(Dates) do
for optioni, optionv in pairs(DateOptions) do
if optionv == "Any" then continue end
if tonumber(info[optioni]) ~= nil then
if info[optioni] >= optionv then print("Rich man very nice!") point++ end
continue
end
if info[optioni] == "Taken" then print("You are taken thoe Wanna cheat ;)") end
if info[optioni] == optionv then print("impressive!") point++ end
end
if currentdate then
if point > currentpoint then
print("Found a better date! sorry "..currentdate)
currentpoint = point
currentdate = boy
point = 0
continue
end
print("ill keep my old date!")
continue
end
currentdate = boy
currentpoint = point
point = 0
end
finaloption = currentdate
print("I choose "..finaloption.." he got "..currentpoint.." ill see u tonight ;)")
end
local Girl = {
["Lisa"] = {
["Gender"] = "Female",
["From"] = "Germany",
["RelationShip"] = "Single",
["Age"] = "18",
["Hobby"] = "Exploring",
["Bank"] = 1000,
},
["Options"] = {
["Gender"] = "Male",
["From"] = "Any",
["RelationShip"] = "Single",
["Age"] = "18",
["Hobby"] = "Any",
["Bank"] = 10000,
},
}