0
How do I make a string not show under certain circumstances?
I've been trying to make a story game where if you die, the rest of the game's story doesn't show. How do I do this?
5 Réponses
+ 1
if *statement*:
print("yout text")
0
I'd simply use an if statement!
0
It didn't work when i used it like this:
def d5():
if dead == 0:
print()
print('Day Five')
print('§------§')
print()
print('Your journey')
print('is almost done')
print()
print('You see something')
print('in the distance')
enc()
d5()
0
print ("your story starts here")
alive=True
## your first chapter
print("you're walking in the woods and you die")
alive=False
##your second chapter
if alive==True:
##content of chapter 2
0
if(d=!notdead){
//show what t
you want show
}
else{
//dont show
}