SHARE
TWEET

Untitled

a guest Sep 13th, 2017 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function faceDefault()
  2.     face = "(^.^)"
  3.     return face
  4. end
  5. function faceHit(power)
  6.     tmp1 = "0"
  7.     if tmp1 == "0" then
  8.         if power == "1" then
  9.             face = "(o.o)"
  10.             tmp1 = "1"
  11.         end
  12.         if power == "2" then
  13.             face = "(O.o)"
  14.             tmp1 = "1"
  15.         end
  16.         if power == "3" then
  17.             face = "(O.O)"
  18.             tmp1 = "1"
  19.         end
  20.         if power == "4" then
  21.             face = "(0.0)"
  22.             tmp1 = "1"
  23.         end
  24.         if power == "5" then
  25.             face = "(-.-)"
  26.             tmp1 = "1"
  27.         end
  28.         if power == "6" then
  29.             face = "(>.<)"
  30.             tmp1 = "1"
  31.         end
  32.  
  33.         else
  34.             face = "(*.*)"
  35.         end
  36.     return face
  37. end
  38. function faceSong(song)
  39.     if song == "Justin Bieber" then
  40.         face = "(( d(+.+)b ))"
  41.     end
  42.     if song == "Antti Tuisku" then
  43.         face = "(-.-)"
  44.     end
  45.     if song == "Avenged Sevenfold" then
  46.         face = "(^,,^)"
  47.     end
  48.     return face
  49. end
  50.  
  51. print(faceDefault())
  52.  
  53. io.write "Action: "
  54. getAction = io.read()
  55.  
  56. if getAction == "hit" then
  57.     io.write "Power: "
  58.     getPower = io.read()
  59.     print(faceHit(getPower))
  60. end
  61.  
  62. if getAction == "playmusic" then
  63.     io.write "Song/Artist: "
  64.     getSong = io.read()
  65.     print(faceSong(getSong))
  66. end
  67.  
  68. if getAction == "" then
  69.     io.write "Song/Artist: "
  70.     getSong = io.read()
  71.     print(faceSong(getSong))
  72. end
RAW Paste Data
Top