Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #imports
- #variables
- mentalHealth = 10.0
- alive = True
- #functions
- def elektrostop():
- global mentalHealth
- mentalHealth -= 3.7
- def tellStats():
- global mentalHealth, alive
- if mentalHealth == 10:
- print('alex har det godt')
- elif mentalHealth >= 8.2:
- print('alex har det Ok')
- elif mentalHealth >= 6:
- print('alex har det lidt dårligt...')
- elif mentalHealth >= 4:
- print('alex har selvmords-tanker')
- elif mentalHealth >= 2:
- print('alex vil dø')
- alive = False
- #main loop
- while alive == True:
- playerInput = input('>>>')
- playerInput = playerInput.upper()
- if playerInput == 'ELEKTROSTOP':
- elektrostop()
- tellStats()
- print('alex begik selvmord og du døede af deppression')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement