Advertisement
YaBoiStutter

InfiRPG

Nov 17th, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.81 KB | None | 0 0
  1. #InfiRPG
  2.  
  3. #External
  4. import time
  5. import random
  6.  
  7. #Global Vars
  8. global player_gender
  9. global player_name
  10. global player_gender_display
  11. global player_health
  12.  
  13. #Consants
  14. ver = "0.0.1"
  15. ver_type = "Alpha"
  16. Time_Loop_Control = 1
  17. Game_Loop_1 = 1
  18.  
  19.  
  20. #Loading Intro
  21.  
  22. def Intro():
  23.     print()
  24.     print("Welcome To InfiRPG!")
  25.     print("Version", ver, ver_type)
  26.     print()
  27.     print()
  28.     Dead_Var_1 = input("Press Any Key To Continue...  ")
  29.     print()
  30.    
  31. #Main Menu
  32. def menu():
  33.     print()
  34.     print("Press 1 to Start a New Game")
  35.     print("Press 2 to Continue", "(Coming Soon)")
  36.     print()
  37.     print("Type the number of what you want to do.")
  38.     Menu_Decision = input(": ")
  39.    
  40.     if Menu_Decision == "MARK":
  41.         mark_loop_timer = 0
  42.         Mark_Loop = 1
  43.         while Mark_Loop == 1:
  44.             mark_loop_timer = mark_loop_timer + 1
  45.             print()
  46.             print("Super")
  47.             print()
  48.             time.sleep(1)
  49.             print("Super")
  50.             print()
  51.             time.sleep(1)
  52.             print()
  53.             print("Super Mark Feely")
  54.             print()
  55.             time.sleep(0.5)
  56.             if mark_loop_timer == 50:
  57.                 Mark_Loop = 0
  58.    
  59.  
  60. ##################################################################################
  61.  
  62. #Game Intro
  63. #
  64. #Gives Player Info
  65. def Game_Intro():
  66.    
  67.     print()
  68.     print("First, Whats Your Name?")
  69.     player_name = input(": ")
  70.     player_name_ref = player_name.upper()
  71.     if player_name_ref == "MARK":
  72.         print("MARKKK!!!! HAVE YOU GOT YOUR SCRAP!!!!!!!!!")
  73.         print()
  74.  
  75.    
  76.     time.sleep(1)
  77.     print("Hello,", player_name)
  78.     print()
  79.     time.sleep(1)
  80.     print()
  81.  
  82.     #Gender System
  83.     player_gender_loop = 1
  84.     while player_gender_loop == 1:
  85.         print("Are You Male or Female.")
  86.         player_gender_inp = input(": ")
  87.         player_gender_inp = player_gender_inp.upper()
  88.        
  89.         if player_gender_inp == "BOY" or player_gender_inp == "MALE" or player_gender_inp == "M":
  90.             player_gender = "MALE"
  91.             player_gender_display = "Male"
  92.  
  93.             player_gender_loop = 0
  94.            
  95.         elif player_gender_inp == "FEMALE" or player_gender_inp == "GIRL" or player_gender_inp == "F":
  96.             player_gender = "FEMALE"
  97.             player_gender_display = "Female"
  98.  
  99.             player_gender_loop = 0
  100.            
  101.         else:
  102.             print()
  103.             print("Error - Try Again, Make Sure to input Male or Female")
  104.             print()
  105.             player_gender_loop = 1
  106.     print()
  107.    
  108.  
  109.    
  110.  
  111. #Intro In Woods    
  112. def Game_Intro_Woods():
  113.     print()
  114.     print("You Wake...")
  115.     time.sleep(1)
  116.     print(".")
  117.     time.sleep(1)
  118.     print("..")
  119.     time.sleep(1)
  120.     print("...")
  121.     time.sleep(1)
  122.     print()
  123.     print("Your Memory seems hazy.")
  124.     print()
  125.     time.sleep(2)
  126.     print()
  127.     print("You see trees rustling in the wind.")
  128.  
  129. def decison():
  130.     decison = random.randint(1, 2)
  131.    
  132. def level_one_choice():
  133.     if decison == 1:
  134.         print()
  135.         print("You Trip on a tree...")
  136.         time.sleep(1)
  137.         print()
  138.         print("You graze your legs")
  139.         player_health = player_health - random.randint(10,20)
  140.         print()
  141.         print("You lose", player_health, "Hp")
  142.  
  143.     elif decison == 2:
  144.  
  145.         print("You Walk On")
  146.    
  147. ###################################################################################
  148. player_level = 1
  149. player_health = 500
  150.  
  151. def game():
  152.     Game_Intro()
  153.     Game_Intro_Woods()
  154.     #Main Game
  155.     while Game_Loop_1 == 1:
  156.         print()
  157.         if player_level == 1:
  158.             print()
  159.             decison()
  160.             level_one_choice()
  161.    
  162. while Time_Loop_Control == 1:
  163.     #Intro sections...
  164.     Intro()
  165.     menu()
  166.     if Menu_Decision == "1":
  167.         game()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement