Advertisement
KodingKid

Basic Room-Interaction Game (Work-in-Progress)

Aug 1st, 2021
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.50 KB | None | 0 0
  1. room1 = [knife, gasoline, hammer, engine, small-wheels, wooden-slab, pipe, ham]
  2. room2 = [black-powder, train-tracks, four-wheeled-wheelbarrow, pipe, beer, lighter]
  3. print("Do you want to enter room one or room two?")
  4. room_enter = input()
  5. if room_enter == "room 1" or "Room 1" or "room one" or "Room one" or "Room One" or "room One":
  6.     print("You enter room one")
  7.     print("There are many objects, there is a" +room1)
  8.     print("What do you interact with")
  9.     interact = input()
  10.     if interact == "Knife" or "knife":
  11.         print("You pick up the knife, it is good for defense and as a tool")
  12.     if interact == "Gasoline" or "gasoline":
  13.         print("You fill up the engine with gasoline")
  14.     if interact == "Hammer" or "hammer":
  15.         print("You pick up the hammer, it is good for defense and as a tool")
  16.     if interact == "Engine" or "engine":
  17.         print("You turn on the engine")
  18.     if interact == "Small-Wheels" or "Small-wheels" or "small-Wheels" or "small-wheels":
  19.         print("You put the wheels on the wooden slab")
  20.     if interact == "Wooden-Slab" or "Wooden-slab" or "wooden-Slab" or "wooden-slab":
  21.         print("You get on the wooden slab")
  22.     if interact == "Pipe" or "pipe":
  23.         print("You connect the pipe to the engine")
  24.     if interact == "Ham" or "ham":
  25.         print("You eat the ham")
  26. if room_enter == "room 2" or "Room 2" or "room two" or "Room two" or "Room Two" or "room Two":
  27.     print("You enter room two")
  28.     print("There are few objects, there is some" +room2)
  29.     print("What do you interact with")
  30.     interact2 = input()
  31.     if interact2 == "Black-powder" or "black-powder" or "Black-Powder" or "black-Powder":
  32.         print("This is very explosive and can be used for many purposes")
  33.     if interact2 == "Train-tracks" or "train-tracks" or "Train-Tracks" or "train-Tracks":
  34.         print("These seem to lead to something")
  35.     if interact2 == "Four-Wheeled-Wheelbarrow" or "Four-wheeled-wheelbarrow" or "four-wheeled-wheelbarrow":
  36.         print("This could be part of a train")
  37.     if interact2 == "Pipe" or "pipe":
  38.         print("This is likely part of an engine for a train")
  39.     if interact2 == "Beer" or "beer":
  40.         print("You're now drunk, don't go driving")
  41.     if interact2 == "Lighter" or "lighter":
  42.         print("This could be used with the black-powder")
  43. #i'll probably extend this some time
  44. #by the way i have really got into python so i'll just focus on this for a while but every now and then there may be some other scripts so watch out for them
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement