# starwars.py

Jan 23rd, 2022 (edited)
148
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
1. answer_yes = ["Yes", "Y", "yes", "y"]
2. answer_no = ["No", "N", "no", "n"]
5.
6. print("""
7. A long time ago in a galaxy far, far away....
8.
9. \nYou are standing outside of the jedi temple and you see a sith knight running towards you and asking if you want to join him.
10.
11. Will you join him? (Yes / No)
12. """)
13.
14. while True:
15.     ansa = input(">>")
16.
18.         print("\nAfter 1:20 minutes, the jedi come to your location, and ask you whether or not the sith is in the temple or not. Will you say (Yes / No)\n")
19.         while True:
20.             ansb = input(">>")
21.
23.                 print("\nYou aided a sith knight. The jedi go into the jedi temple and defeat the sith knight. You have turned to the dark side and you lost the game.")
24.                 quit()
25.
27.                 print("\nYou help a sith knight. You have turned to the dark side. GAME OVER")
28.                 quit()
29.
30.             else:
31.                 print("\nWrong input.")
32.                 continue
34.         print("\nNow, the sith knight ignites his flaming sword. Will, you ignite your flaming sword and fight him? (Yes / No)\n")
35.         while True:
36.             ansc = input(">>")
37.
39.                 print("\nYou ignite your flaming sword and fight with the sith knight. The flaming swords clash against each other. You see the sith knight about to use the Force. To use additional Force powers against the sith knight, type fp. To continue using your current fighting technique, type continue.")
40.                 break
41.
43.                 print("\nSorry jedi knight. The sith knight kills you with his flaming sword. GAME OVER")
44.                 quit()
45.
46.             else:
47.                 print("\nWrong input.")
48.                 continue
49.     else:
50.         print("\nWrong input.")
51.         continue
52.     while True:
53.         ansd = input(">>")
54.
56.             print("\nYou use the Force and shoot earth like lightning from the flaming sword which defeats the sith knight. The Force will always be with you through the Voice of the Force! You have won the game!")
57.             quit()
59.             print("\nYou continue using just the flaming sword and no additional Force powers. The sith knight uses dark side lightning with his flaming sword stabbing you causing you to die. The sith knight says to you during the fight: Serpentine Teufel has been avenged! End of transmission. GAME OVER")
60.             quit()
61.         else:
62.             print("nWrong input.")
63.             continue
RAW Paste Data Copied