Advertisement
Guest User

Texting with a digital girlfriend

a guest
Apr 7th, 2015
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.25 KB | None | 0 0
  1. -- texting
  2.  
  3. -- Use this function to perform your initial setup
  4. function setup()
  5.     girls = {
  6.     "Trisha",
  7.     "Maria",
  8.     "Stacy",
  9.     "Piper"
  10.     }
  11.     messages = {
  12.     "Let's break up.",
  13.     "Come over to my house, i'm having a party.",
  14.     "Don't keep a secret from me, I watch you sleep at night."
  15.     }
  16.     
  17.     girl_chosen = girls[math.random(1,3)]
  18.     print("Now chatting with: " ..girl_chosen)
  19.     you = false
  20.    parameter.action("Send a message", function() messager() end) 
  21.     parameter.action("Ditch girl", function() ditch() end)
  22. girlMessage = "Hey, babe"
  23. print("" ..girlMessage)
  24. end
  25.  
  26. -- This function gets called once every frame
  27. function draw()
  28.     -- This sets a dark background color 
  29.     background(40, 40, 50)
  30. end
  31.  
  32. function messager()
  33. you = true
  34. if you == true then
  35.     message = messages[math.random(1,3)]
  36. print("You:" ..message)
  37. if message == messages[1] then
  38. girlMessage = "Ok, I understand. 😭"
  39. end
  40. if message == messages[2] then
  41. girlMessage = "Sure, i'll come around 6."
  42. end
  43. if message == messages[3] then
  44. girlMessage = "Thats kind of creepy... 😳"
  45.     end
  46.     print("Girl: " ..girlMessage)
  47. you = false
  48.     end
  49. end
  50. function ditch()
  51. restart()
  52.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement