I've just started to make a text-based adventure game and started to make the intro but ran into a problem...
I want to be able to let the player choose their gender (which is pointless but hey why not). So I started to program it in but then encountered a problem.
Here's what I have. So far...
#Date started: 3/13/2018
#Description: text based adventure game
import random
import time
def main():
def displayIntro():
print('It is the end of a 100 year war between good and evil that had
killed more than 80% of the total human population.')
time.sleep(4)
print('The man who will soon be your father was a brave adventurer who
fought for the good and was made famous for his heroism.')
time.sleep(4)
print('One day that brave adventurer meet a beautiful woman who he later
wed and had you.')
time.sleep(4)
gen = ""
while gen != "1" and gen != "2": # input validation
gen = input('Your mother had a [Boy(1) or Girl (2)]: ')
return gen
playname = input('They named you: ')
displayIntro()
main()
I'm also getting the error message:
File "<ipython-input-1-940c72b6cc26>", line 10
def displayIntro():
^
IndentationError: expected an indented block