Guest User

halp

a guest
Oct 8th, 2015
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. -- TextAdventure: Dark Room.
  2.  
  3. print("Choose Gender.")
  4. print("Type M for male.")
  5. print("Type F for female.")
  6.  
  7. gender = io.read()
  8.  
  9. function male()
  10. if gender == "M" or "m" then
  11. return true
  12. else return false
  13. end
  14. end
  15.  
  16. function female()
  17. if gender == "F" or "f" then
  18. return true
  19. else return false
  20. end
  21. end
  22.  
  23. male()
  24. female()
  25.  
  26. if male == false then
  27. print("False.")
  28. end
  29.  
  30. if female == false then
  31. print("False.")
  32. end
Advertisement
Add Comment
Please, Sign In to add comment