Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function faceDefault()
- face = "(^.^)"
- return face
- end
- function faceHit(power)
- tmp1 = "0"
- if tmp1 == "0" then
- if power == "1" then
- face = "(o.o)"
- tmp1 = "1"
- end
- if power == "2" then
- face = "(O.o)"
- tmp1 = "1"
- end
- if power == "3" then
- face = "(O.O)"
- tmp1 = "1"
- end
- if power == "4" then
- face = "(0.0)"
- tmp1 = "1"
- end
- if power == "5" then
- face = "(-.-)"
- tmp1 = "1"
- end
- if power == "6" then
- face = "(>.<)"
- tmp1 = "1"
- end
- else
- face = "(*.*)"
- end
- return face
- end
- function faceSong(song)
- if song == "Justin Bieber" then
- face = "(( d(+.+)b ))"
- end
- if song == "Antti Tuisku" then
- face = "(-.-)"
- end
- if song == "Avenged Sevenfold" then
- face = "(^,,^)"
- end
- return face
- end
- print(faceDefault())
- io.write "Action: "
- getAction = io.read()
- if getAction == "hit" then
- io.write "Power: "
- getPower = io.read()
- print(faceHit(getPower))
- end
- if getAction == "playmusic" then
- io.write "Song/Artist: "
- getSong = io.read()
- print(faceSong(getSong))
- end
- if getAction == "" then
- io.write "Song/Artist: "
- getSong = io.read()
- print(faceSong(getSong))
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement