ok so i was recently playing a game called ZORK a lot of older people will know what that is if you dont its a text based rpg that is realy addicting and amuseing so i wanted to attempt to figure out how they could have done something like this, so im getting there slowly but surely
well here is what i have so far and what its doing that i dont like.
items = ['crate', 'rock']
lookwords = ['look', 'examine']
input1 = raw_input(":")
i inputted 'look in the crate'
for word in item:
for word2 in lookwords:
if word and word2 in input1:
print 'you look in the crate and find a map!'
else:
print 'sory you yoused a word i didnt understand'
so what it does is print out both outputs 2 times so its like
you look in the crate and find a map!
sory you yoused a word i didnt understand
you look in the crate and find a map!
sory you yoused a word i didnt understand
and i only want it to print one or the other
all help is greatly appreatated