NEED HELP WITH ASSIGNMENT ADVENTURE GAME BY MAY 1ST

def forest(message):

global location

if location == "Forest":

if 'north' in message:

location == "Courtyard"

forest_north_line = "\nIn the midst of standing in the forest with your thoughts, you conclude to travel north.\nYou advance through your Lord's gates, arriving to the front of the manor.\n\nYou're standing in the courtyard looking at the manor in front of you, planning your next step.\nFrom the North of the courtyard lies stairs to the front door leading to the Grand Hall.\nOn the East side of the courtyard is the Lord's Stables.\nBut you can still head back South to the forest.\n\nHow do you approach? (north/east/south/explore):"

return forest_north_line + courtyard()

elif 'south' in message:

return "Im glad, now I don't need to waste my time with you.\nStay in the filth where you belong...\nGame Over..."

elif 'explore' in message:

line2 = "\n\nWell do you flee (south); or go scavenge (north)? Or (explore):"

return "\nAfter standing around and pondering you decide to explore the forest for some odd reason, must be a peasant thing,the trees towering over you look like dark towers covering any moonlight trying to reach the floor.\nAfter wasting some time looking at sticks stones and dirt you refocus back onto your plan." + line2

else:

return "please enter a valid response"

def courtyard():

global location

if 'north' in message:

location == "GrandHall"

courtyard_north_line = "\n:"

return courtyard_north_line + grandhall()

elif 'south' in message:

return "Im glad, now I don't need to waste my time with you.\nStay in the filth where you belong...\nGame Over..."

elif 'explore' in message:

line2 = "\n\nWell do you flee (south); or go scavenge (north)? Or (explore):"

return "\nAfter standing around and pondering you decide to explore the forest for some odd reason, must be a peasant thing,the trees towering over you look like dark towers covering any moonlight trying to reach the floor.\nAfter wasting some time looking at sticks stones and dirt you refocus back onto your plan." + line2

else:

return "please enter a valid response"

def grandhall():

global location

grand_hall_script = "\ntesting"

return grand_hall_script

def check_location(location):

if location == "Forest":

forest += 1

if location == "Courtyard":

courtyard += 1

if location == "GrandHall":

grandhall += 1

/r/learnpython Thread