here is what I have from a python video
greetings = [‘hola’,‘hello’,‘hi’,‘Hi’,‘hey!’,‘hey’]
random_greeting = random.choice(greetings)
question = [‘How are you?’,‘How are you doing?’]
responses = [‘Okay’,“I’m fine”]
random_response = random.choice (responses)
####raw_input was changed to just input in the new python I found-out
userInput = input(’>>>’)
if userInput in greetings:
elif userInput in question:
print(“I did not understand what you said”)
Rather then printing in a command console I’d like to change Text objects
so I wanted to replace “print” with
cont = bge.logic.getCurrentController()
own = cont.owner
#I would replace print with own.text =
own.text =“The new text I want”
I’m new to programing in python, my game runs but doesn’t respond. Is it running too many times / to fast even if I lowered the games Frame rate as low as it will go?
Please help me out.
I’m trying to make a text only based adventurer game like the old 90’s pc games for the BGMC going on right now.