Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --7 Days to Die Score Counter programmed in Lua by ThaWade
- print("How many zombies have you killed?")
- kills = io.read()
- print("How many times have you died?")
- deaths = io.read()
- local reducedTheScore = 0
- local counter = 1
- for i = 1, deaths do
- reducedTheScore = reducedTheScore + 5
- print(counter..") "..reducedTheScore)
- counter = counter + 1
- end
- print("Your starting score was "..kills)
- print("Your score penalty for deaths was "..reducedTheScore)
- finalScore = kills - reducedTheScore
- print("Your final score is "..finalScore)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement