2017-08-15 03:00:52 -07:00
|
|
|
|
2017-08-15 00:07:51 -07:00
|
|
|
function game_end()
|
|
|
|
while true
|
2017-08-15 04:50:07 -07:00
|
|
|
print("\nYour quest ends here. Or does it?\n\n")
|
2017-08-15 00:07:51 -07:00
|
|
|
|
2017-08-15 04:50:07 -07:00
|
|
|
choice = input("\nWould you like to restart your quest? Y/N: ")
|
2017-08-15 03:00:52 -07:00
|
|
|
|
2017-08-15 00:07:51 -07:00
|
|
|
if choice == "Y"
|
|
|
|
main()
|
|
|
|
elseif choice == "y"
|
|
|
|
main()
|
|
|
|
elseif choice == "N"
|
|
|
|
exit()
|
|
|
|
elseif choice == "n"
|
|
|
|
exit()
|
|
|
|
else
|
|
|
|
print("That was not one of your choices.")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-15 03:00:52 -07:00
|
|
|
|
2017-08-14 23:46:08 -07:00
|
|
|
function dui()
|
|
|
|
|
2017-08-15 04:50:07 -07:00
|
|
|
print("Here are your options. \n\n")
|
2017-08-14 23:46:08 -07:00
|
|
|
print("Option 1 - Go to your local Safeway. \n")
|
2017-08-15 04:50:07 -07:00
|
|
|
print("Option 2 - Go to the closest gas station. \n\n")
|
2017-08-15 03:00:52 -07:00
|
|
|
|
2017-08-14 23:46:08 -07:00
|
|
|
choice = input("Choose an option by pressing its number: ")
|
2017-08-15 03:00:52 -07:00
|
|
|
|
2017-08-14 23:46:08 -07:00
|
|
|
if choice == "1"
|
2017-08-15 03:00:52 -07:00
|
|
|
print(dui_car_option1,"\n")
|
|
|
|
game_end()
|
|
|
|
|
2017-08-14 23:46:08 -07:00
|
|
|
elseif choice == "2"
|
2017-08-15 04:50:07 -07:00
|
|
|
print("\nThe cops pull you over and smell malt liquor on your breath.\n
|
|
|
|
You have gotten a DUI. \n")
|
2017-08-15 03:00:52 -07:00
|
|
|
game_end()
|
|
|
|
|
2017-08-14 23:46:08 -07:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
2017-08-15 03:00:52 -07:00
|
|
|
|
2017-08-14 23:46:08 -07:00
|
|
|
function leavehouse()
|
2017-08-15 04:50:07 -07:00
|
|
|
print("\nYou get in your car to find glass bottled Sun Drop. \n\n")
|
2017-08-14 23:46:08 -07:00
|
|
|
end
|
|
|
|
|