到目前为止我有这个:
print('a skeleton comes into view, the hiker must have been dehydrated.')
print ('he was wearing a Yankees HAT, to the right of his body he set his BACKPACK and WOODEN WALKING STICK next to the wall')
input2 = raw_input ("You may SEARCH____(object),PICK UP____, USE____ ON_____, or GO ON: ")
if input2 == 'PICK UP HAT':
print 'taken'
hat = hat+1
input2 = raw_input ("You may SEARCH____(object),PICK UP____, USE____ ON_____, or GO ON: ")
#
#
#
if input2 == 'SEARCH BACKPACK':
print ("there are OLD CLOTHES in here as well as a TARP")
input2 = raw_input ("You may SEARCH____(object),PICK UP____, USE____ ON_____, or GO ON: ")
elif input2 == 'PICK UP CLOTHES':
print ("tsken")
input2 = raw_input ("You may SEARCH____(object),PICK UP____, USE____ ON_____, or GO ON: ")
elif input2 == 'PICK UP TARP':
print ("taken")
input2 = raw_input ("You may SEARCH____(object),PICK UP____, USE____ ON_____, or GO ON: ")
elif input2 == 'PICK UP BONE':
print ("taken")
input2 = raw_input ("You may SEARCH____(object),PICK UP____, USE____ ON_____, or GO ON: ")
elif input2 == 'PICK UP WOODEN WALKING STICK':
print "Taken"
input2 = raw_input ("You may SEARCH____(object),PICK UP____, USE____ ON_____, or GO ON: ")
elif input2 == 'GO ON':
input3 = raw_input ("left or right: ")
if input3 == 'left':
import module3
elif input3 == 'right':
import module4
我无法理解是否应该在这里创建一个 while 或 for 语句。
例如:我如何做到让玩游戏的人在不搜索背包的情况下不能两次拿起帽子或拿起防水布。