[ create a new paste ] login | about

Link: http://codepad.org/kT8szBb2    [ raw code | output | fork ]

Python, pasted on Jan 7:
def weaponsel():
	print "What weapon would you like to use?"
	if weapondict["s1"] == None:
		print "Error #1: No weapons in the backpack. Contact me (Karatepig) at /hashed out for security/ and make me aware of this error."
		print "I can return you to the beginning of this checkpoint or I can end the game. Type /return/ to return or /end/ to end."
		er1=raw_input()
		if er1.lower() == "end":
			import sys
			sys.exit()
		elif er1.lower() == "return":
			return None
		else: 
			print "Sorry, I don't understand."
			er1d()
		if weapondict["s2"] == None:
			print "The",
			print weapondict["s1"],
			print "is available."
			if weapondict["s3"] == None:
				print "The",
				print weapondict["s1"],
				print "and the",
				print weapondict["s2"],
				print "are available."
				if weapondict["s4"] == None:
					print "The",
					print weapondict["s1"],
					print ",",
					print weapondict["s2"],
					print ", and the",
					print weapondict["s3"],
					print "are available."
					if weapondict["s5"] == None:
						print "The",
						print weapondict["s1"],
						print ",",
						print weapondict["s2"],
						print ",",
						print weapondict["s3"],
						print ", and the",
						print weapondict["s4"],
						print "are available."
						if weapondict["s6"] == None:
							print "The",
							print weapondict["s1"],
							print ",",
							print weapondict["s2"],
							print ",",
							print weapondict["s3"],
							print ",",
							print weapondict["s4"],
							print ", and the",
							print weapondict["s5"],
							print "are available."
							if weapondict["s7"] == None:
								print "The",
								print weapondict["s1"],
								print ",",
								print weapondict["s2"],
								print ",",
								print weapondict["s3"],
								print ",",
								print weapondict["s4"],
								print ",",
								print weapondict["s5"],
								print ",",
								print weapondict["s6"],
								print "are available."
								if weapondict["s8"] == None:
									print "The",
									print weapondict["s1"],
									print ",",
									print weapondict["s2"],
									print ",",
									print weapondict["s3"],
									print ",",
									print weapondict["s4"],
									print ",",
									print weapondict["s5"],
									print ",",
									print weapondict["s6"],
									print ", and the",
									print weapondict["s7"],
									print "are available."
									if weapondict["s8"] != None:
										print "The",
										print weapondict["s1"],
										print ",",
										print weapondict["s2"],
										print ",",
										print weapondict["s3"],
										print ",",
										print weapondict["s4"],
										print ",",
										print weapondict["s5"],
										print ",",
										print weapondict["s6"],
										print ",",
										print weapondict["s7"],
										print ", and the",
										print weapondict["s8"]
										print "are available."
					
	weapon=raw_input()
	if weapon.lower() != weapondict["s1"]:
		if True:
			if True:
				if weapon.lower() != weapondict["s2"]:
					if True:
						if weapon.lower() != weapondict["s3"]:
							if True:
								if True:
									if weapon.lower() != weapondict["s4"]:
										if True:
											if True:
												if weapon.lower() != weapondict["s5"]:
													if True:
														if True:
															if weapon.lower() != weapondict["s6"]:
																if True:
																	if True:
																		if weapon.lower() != weapondict["s7"]:
																			if True:
																				if True:
																					if weapon.lower() != weapondict["s8"]:
																						print "Sorry, I don't understand that."
																						weaponsel()
									
	elif weapon.lower() == weapondict["s1"]:
		print "You have selected the"
		print weapondict["s1"]
		print "."
		print "Is that what you want?"
		swepd1=raw_input()
		if swepd1.lower() == "yes":
			print "Great!"
			swep = weapondict["s6"]
		elif swepd1.lower() == "no":
			weaponsel()
		else:
			weaponseld1()
				elif weapon.lower() == weapondict["s2"]:
				print "You have selected the"
				print weapondict["s2"]
				print "."
				print "Is that what you want?"
				swepd1=raw_input()
				if swepd1.lower() == "yes":
					print "Great!"
					swep = weapondict["s6"]
				elif swepd1.lower() == "no":
					weaponsel()
				else:
					weaponseld1()
						elif weapon.lower() == weapondict["s3"]:
							print "You have selected the"
							print weapondict["s3"]
							print "."
							print "Is that what you want?"
							swepd1=raw_input()
							if swepd1.lower() == "yes":
								print "Great!"
								swep = weapondict["s3"]
							elif swepd1.lower() == "no":
								weaponsel()
							else:
								weaponseld1()	
									elif weapon.lower() == weapondict["s4"]:
										print "You have selected the"
										print weapondict["s4"]
										print "."
										print "Is that what you want?"
										swepd1=raw_input()
										if swepd1.lower() == "yes":
											print "Great!"
											swep = weapondict["s4"]
										elif swepd1.lower() == "no":
											weaponsel()
										else:
											weaponseld1()
												elif weapon.lower() == weapondict["s5"]:
													print "You have selected the"
													print weapondict["s5"]
													print "."
													print "Is that what you want?"
													swepd1=raw_input()
													if swepd1.lower() == "yes":
														print "Great!"
														swep = weapondict["s5"]
													elif swepd1.lower() == "no":
														weaponsel()
													else:
														weaponseld1()
															elif weapon.lower() == weapondict["s6"]:
																print "You have selected the"
																print weapondict["s6"]
																print "."
																print "Is that what you want?"
																swepd1=raw_input()
																if swepd1.lower() == "yes":
																	print "Great!"
																	swep = weapondict["s6"]
																elif swepd1.lower() == "no":
																	weaponsel()
																else:
																	weaponseld1()
																		elif weapon.lower() == weapondict["s7"]:
																		print "You have selected the"
																		print weapondict["s7"]
																		print "."
																		print "Is that what you want?"
																		swepd1=raw_input()
																		if swepd1.lower() == "yes":
																			print "Great!"
																			swep = weapondict["s7"]
																		elif swepd1.lower() == "no":
																			weaponsel()
																		else:
																			weaponseld1()
																				elif weapon.lower() == weapondict["s8"]:
																				print "You have selected the"
																				print weapondict["s8"]
																				print "."
																				print "Is that what you want?"
																				swepd1=raw_input()
																				if swepd1.lower() == "yes":
																					print "Great!"
																					swep = weapondict["s8"]
																				elif swepd1.lower() == "no":
																					weaponsel()
																				else:
																					weaponseld1()


Output:
1
2
3
4
  Line 142
    elif weapon.lower() == weapondict["s2"]:
    ^
IndentationError: unexpected indent


Create a new paste based on this one


Comments: