Guest User

Full Code - Oraes (Incremental)

a guest
Jun 18th, 2023
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 28.25 KB | None | 0 0
  1. from time import sleep
  2. from random import randint
  3.  
  4. pregameloop = True
  5. game = False
  6.  
  7. purchasefailure = False
  8.  
  9. rgain = 0
  10.  
  11. PStone = 0
  12. PWood = 0
  13. PFeather = 0
  14. PCoal = 0
  15. PCopper = 0
  16.  
  17. PCell = 0
  18.  
  19. PPickLevel = 1
  20. PAxeLevel = 1
  21.  
  22. UUnlockAxes = False
  23. URollingLog = 0
  24. URLCounter = 0
  25. UBirdSnare = 0
  26. FeatherChance = 0
  27. UFeatherAxe = False
  28. UDepositSearch = False
  29. URLCostT2 = 60
  30. UTradingPost = False
  31. UBeggarHat = 0
  32. UCoalVeins = False
  33. UPickT2 = False
  34. UAxeT2 = False
  35. UForge = False
  36. UForgeStatus = 'Inactive'
  37. UForgeCoalCount = 0
  38. UOverchargeForge = 0
  39. UStrongerSnares = False
  40. BirdSnareChance = 0
  41. UCopperRod = 0
  42. UMiningExchange = False
  43. UWoodcutExchange = False
  44. UCopperScout = False
  45. ScoutValue = 0
  46.  
  47. TFeatherPile = False
  48. TCoalStack = False
  49. TFPBuildUp = 0
  50. TFPBoost = 0
  51. TCSBuildUp = 0
  52. TCSBoost = 0
  53.  
  54. IOUUnlockAxes = False
  55. IOURollingLog = False
  56. IOURollingLog2 = False
  57. IOUBirdSnare = False
  58. IOUFeatherAxe = False
  59. IOUDepositSearch = False
  60. IOUTradingPost = False
  61. IOUBeggarHat = False
  62. IOUCoalVeins = False
  63. IOUPickT2 = False
  64. IOUAxeT2 = False
  65. IOUForge = False
  66. IOUStrongerSnares = False
  67. IOUCopperRod = False
  68. IOUMiningExchange = False
  69. IOUWoodcutExchange = False
  70. IOUCopperScout = False
  71.  
  72. IOTFeatherPile = False
  73. IOTCoalStack = False
  74.  
  75. IPickInput = '>0'
  76. IAxeInput = '!`'
  77. IScoutInput = 'oo'
  78. ISnareDisplay = '[_]'
  79. IForgeDisplay = '(=)'
  80.  
  81. def newscreen():
  82.     print("")
  83.     print("")
  84.     print("")
  85.     print("")
  86.     print("")
  87.     print("")
  88.  
  89. def refreshscreen():
  90.     newscreen()
  91.     print("")
  92.     print("")
  93.     print("")
  94.  
  95. def printscreen():
  96.     refreshscreen()
  97.     screenrendersize = 6
  98.    
  99.     if UCopperScout == True:
  100.         print("[Mine(", ScoutValue, "): '", IPickInput,"'] [Woodcut: '", IAxeInput, "'] [Scout: '", IScoutInput, "']   { Upgrades: '&' } { Trading: '$' }", sep='')
  101.         print("_____________________________________________   ----------------------------------")
  102.     elif UTradingPost == True:
  103.         print("[Mine: '", IPickInput,"'] [Woodcut: '", IAxeInput, "']   { Upgrades: '&' } { Trading: '$' }", sep='')
  104.         print("____________________________   ----------------------------------")
  105.     elif UUnlockAxes == True:
  106.         print("[Mine: '", IPickInput, "'] [Woodcut: '", IAxeInput, "']   { Upgrades: '&' }", sep='')
  107.         print("_____________________________  -----------------")
  108.     else:
  109.         print("[Mine: '", IPickInput, "']   { Upgrades: '&' }", sep='')
  110.         print("____________   -----------------")
  111.    
  112.     if PCopper >= 1:
  113.         print("[ Stone:", PStone, "] [ Wood:", PWood, "] [ Feather:", PFeather, "] [ Coal:", PCoal, "] [ Copper:", PCopper, "]")
  114.     elif PCoal >= 1:
  115.         print("[ Stone:", PStone, "] [ Wood:", PWood, "] [ Feather:", PFeather, "] [ Coal:", PCoal, "]")
  116.     elif PFeather >= 1:
  117.         print("[ Stone:", PStone, "] [ Wood:", PWood, "] [ Feather:", PFeather, "]")
  118.     elif PWood >= 1:
  119.         print("[ Stone:", PStone, "] [ Wood:", PWood, "]")
  120.     else:
  121.         print("[ Stone:", PStone, "]")
  122.    
  123.     if PCell >= 1:
  124.         print("{ Cell:", PCell, "}")
  125.         screenrendersize -= 1
  126.    
  127.     if UCopperRod >= 1:
  128.         print("0==) x", URollingLog, "   ", ISnareDisplay, "x", UBirdSnare, "    (_) x", UBeggarHat, "    _i_ x", UCopperRod)
  129.         screenrendersize -= 1
  130.     elif UBeggarHat >= 1:
  131.         print("0==) x", URollingLog, "   ", ISnareDisplay, "x", UBirdSnare, "    (_) x", UBeggarHat)
  132.         screenrendersize -= 1
  133.     elif UBirdSnare >= 1:
  134.         print("0==) x", URollingLog, "   ", ISnareDisplay, "x", UBirdSnare)
  135.         screenrendersize -= 1
  136.     elif URollingLog >= 1:
  137.         print("0==) x", URollingLog)
  138.         screenrendersize -= 1
  139.    
  140.     if UForge == True:
  141.         print("'", IForgeDisplay, "' ", UForgeStatus, sep='')
  142.         screenrendersize -= 1
  143.    
  144.     for i in range(0, screenrendersize):
  145.         print("")
  146.  
  147. def upgradescreen():
  148.     global PStone, PWood, PFeather, PCoal, PCopper, PCell
  149.     global UUnlockAxes, URollingLog, UBirdSnare, UFeatherAxe, UDepositSearch, UTradingPost, UBeggarHat, UCoalVeins, UPickT2, UAxeT2, UForge, UOverchargeForge, UStrongerSnares, UCopperRod, UMiningExchange, UWoodcutExchange, UCopperScout
  150.     global TFeatherPile, TCoalStack
  151.     global IAxeInput, IPickInput, purchasefailure, URLCostT2, BirdSnareChance, PAxeLevel, PPickLevel, ISnareDisplay, IForgeDisplay
  152.     global IOUUnlockAxes, IOURollingLog, IOURollingLog2, IOUBirdSnare, IOUFeatherAxe, IOUDepositSearch, IOUTradingPost, IOUBeggarHat, IOUCoalVeins, IOUPickT2, IOUAxeT2, IOUForge
  153.     global IOUStrongerSnares, IOUCopperRod, IOUMiningExchange, IOUWoodcutExchange, IOUCopperScout
  154.     global IOTFeatherPile, IOTCoalStack
  155.    
  156.     UpgradeCheck = 0
  157.     refreshscreen()
  158.  
  159.     if purchasefailure == True:
  160.         purchasefailure = False
  161.         print("* Purchase Failed *")
  162.         print("")
  163.  
  164.     if UUnlockAxes == False and PStone >= 10 or IOUUnlockAxes == True:
  165.         print("[Unlock Axes] Allow Woodcutting")
  166.         print(" '!`'              Cost: 25 Stone")
  167.         IOUUnlockAxes = True
  168.         UpgradeCheck += 1
  169.     if URollingLog == 0 and PWood >= 15 or IOURollingLog == True:
  170.         print("[Rolling Log] Set a massive log down a hill to passively gather wood as you take actions")
  171.         print(" '0==)'            Cost: 40 Wood")
  172.         IOURollingLog = True
  173.         UpgradeCheck += 1
  174.     if UBirdSnare < 10 and URollingLog >= 1 or IOUBirdSnare == True:
  175.         print("[Bird Snare] Prepare a snare which has a chance to produce feathers as you act. Max: 10")
  176.         print(" '[_]'             Cost: 15 Stone, 20 Wood           Current Snares:", UBirdSnare)
  177.         IOUBirdSnare = True
  178.         UpgradeCheck += 1
  179.     if UFeatherAxe == False and UUnlockAxes == True and PFeather >= 1 or UFeatherAxe == False and UDepositSearch == True or IOUFeatherAxe == True:
  180.         print("[Feather Axe] Upgrade your axe to be swung faster")
  181.         print(" '!^'              Cost: 20 Stone, 5 Feather")
  182.         IOUFeatherAxe = True
  183.         UpgradeCheck += 1
  184.     if UDepositSearch == False and UBirdSnare >= 1 and PFeather >= 3 or UDepositSearch == False and UFeatherAxe == True or IOUDepositSearch == True:
  185.         print("[Deposit Search] Search for better deposits, which can be mined easier")
  186.         print(" '>('              Cost: 50 Wood, 3 Feather")
  187.         IOUDepositSearch = True
  188.         UpgradeCheck += 1
  189.     if UDepositSearch == True and UFeatherAxe == True and URollingLog < 3 or IOURollingLog2 == True:
  190.         print("[Rolling Logs] Produce up to two more massive logs to gather wood as you act")
  191.         print(" '0==)'            Cost:", URLCostT2, "Wood                     Current Logs:", URollingLog)
  192.         IOURollingLog2 = True
  193.         UpgradeCheck += 1
  194.     if UTradingPost == False and PStone >= 100 and PWood >= 100 or IOUTradingPost == True:
  195.         print("[Trading Outpost] Allows for the development of communications")
  196.         print(" '[$]'             Cost: 100 Stone, 125 Wood")
  197.         IOUTradingPost = True
  198.         UpgradeCheck += 1
  199.     if TFeatherPile == False and UTradingPost == True and UBirdSnare >= 5 and PFeather >= 15 or IOTFeatherPile == True:
  200.         print("[Feather Stockpile] Has a chance to attract a feline trader")
  201.         print(" '.,-,'            Cost: 40 Feather")
  202.         IOTFeatherPile = True
  203.         UpgradeCheck += 1
  204.     if UBeggarHat < 4 and UDepositSearch == True and PStone <= 30 or UBeggarHat < 4 and UDepositSearch == True and PStone >= 100 or IOUBeggarHat == True:
  205.         print("[Beggar's Hat] Put out a hat for passersby to toss in stones, as you act. Max: 4")
  206.         print(" '(_)'             Cost: 80 Wood, 10 Feather          Current Hats:", UBeggarHat)
  207.         IOUBeggarHat = True
  208.         UpgradeCheck += 1
  209.     if UCoalVeins == False and UBeggarHat >= 2 and PStone >= 50 or IOUCoalVeins == True:
  210.         print("[Coal Veins] Take greater care in mining stone, gaining a chance to get coal")
  211.         print(" '.o'              Cost: 100 Stone, 90 Wood, 5 Feather")
  212.         IOUCoalVeins = True
  213.         UpgradeCheck += 1
  214.     if UPickT2 == False and UCoalVeins == True and PCoal >= 5 or IOUPickT2 == True:
  215.         print("[Tempered Pickaxe] Use coal and wood to improve your pickaxe, gaining two stone for each usage")
  216.         print("                                        Each pick level increases coal chance. (+1 Pick Level)")
  217.         print(" '-('              Cost: 120 Wood, 15 Coal")
  218.         IOUPickT2 = True
  219.         UpgradeCheck += 1
  220.     if UAxeT2 == False and UCoalVeins == True and PCoal >= 5 or IOUAxeT2 == True:
  221.         print("[Sharpened Axe] Use coal and stone to sharpen your axe, gaining two wood for each usage")
  222.         print("                                Each axe level increases feather chance. (+1 Axe Level)")
  223.         print(" '!-'              Cost: 120 Stone, 15 Coal")
  224.         IOUAxeT2 = True
  225.         UpgradeCheck += 1
  226.     if UForge == False and UPickT2 == True or UForge == False and UAxeT2 == True or IOUForge == True:
  227.         print("[Coal Forge] Create a furnace which consumes 5 stone and 5 wood an action for 1 coal every two")
  228.         print(" '(=)'             Cost: 150 Stone, 80 Wood")
  229.         IOUForge = True
  230.         UpgradeCheck += 1
  231.     if UOverchargeForge == 0 and UForge == True and PCell >= 1:
  232.         print("[Overcharge Forge] Temporarily quadruple the output of the coal forge for 40 turns")
  233.         print(" '(*)'             Cost: 1 Cell")
  234.         UpgradeCheck += 1
  235.     if TCoalStack == False and UTradingPost == True and PCoal >= 10 or IOTCoalStack == True:
  236.         print("[Coal Stack] Has a chance to attract a fiery barterer")
  237.         print(" '.o0*'            Cost: 50 Coal")
  238.         IOTCoalStack = True
  239.         UpgradeCheck += 1
  240.     if UStrongerSnares == False and UBirdSnare >= 10 and PCopper >= 1 or IOUStrongerSnares == True:
  241.         print("[Shiny Snares] Improve the chance of snares producing feathers by 100%")
  242.         print(" '#_#'             Cost: 30 Stone, 60 Wood, 15 Copper")
  243.         IOUStrongerSnares = True
  244.         UpgradeCheck += 1
  245.     if UCopperRod < 2 and PCopper >= 1 or IOUCopperRod == True:
  246.         print("[Lightning Rod] Create lightning rods with a low chance to produce cells. Max: 2")
  247.         print(" '_i_'             Cost: 40 Copper                    Current Rods:", UCopperRod)
  248.         IOUCopperRod = True
  249.         UpgradeCheck += 1
  250.     if UMiningExchange == False and PCopper >= 1 or IOUMiningExchange == True:
  251.         print("[Stone Transmutation] Channel the mysticism of copper to have a chance at finding wood while mining")
  252.         print(" '-['              Cost: 150 Wood, 15 Feather, 20 Copper       Each pick level increases this bonus")
  253.         IOUMiningExchange = True
  254.         UpgradeCheck += 1
  255.     if UWoodcutExchange == False and PCopper >= 1 or IOUWoodcutExchange == True:
  256.         print("[Wood Transmutation] Channel the oddities of copper to have a chance at finding stone while woodcutting")
  257.         print(" '[`'              Cost: 150 Stone, 15 Feather, 20 Copper           Each axe level increases this bonus")
  258.         IOUWoodcutExchange = True
  259.         UpgradeCheck += 1
  260.     if UCopperScout == False and UWoodcutExchange == True or UCopperScout == False and UMiningExchange == True or IOUCopperScout == True:
  261.         print("[Scouting] Unlock the scout action, which allows mining following a scouting mission to gain copper")
  262.         print(" 'oo'              Cost: 100 Stone, 100 Wood, 30 Feather, 20 Coal, 30 Copper")
  263.         IOUCopperScout = True
  264.         UpgradeCheck += 1
  265.        
  266.         # later improve scouting copper by pick level
  267.         # copper T2 derivative stone wood coal copper New trap for fur
  268.             # fur progression
  269.         # copper T2 derivative stone wood coal copper Buff old traps
  270.             # new trap cap on each
  271.    
  272.     if UpgradeCheck == 0:
  273.         print("NO UPGRADES AVAILABLE")
  274.         if UUnlockAxes == False:
  275.             print("* Come back with more stone *")
  276.         elif URollingLog == 0:
  277.             print("* This wood seems neat... *")
  278.         elif UFeatherAxe == False:
  279.             print("* Be patient and the birds will come *")
  280.         elif UDepositSearch == False:
  281.             print("* Be patient and the birds will come with new lands *")
  282.         elif UTradingPost == False:
  283.             print("* Come on, put those tools to work! *")
  284.         elif TFeatherPile == False:
  285.             print("* Someone seems to be rather interested in those feathers of yours... *")
  286.         elif UBeggarHat == 0:
  287.             print("* You don't seem to be in need of more stone... *") # Because the player only gets this if they're stacked
  288.         elif UPickT2 == False or UAxeT2 == False:
  289.             print("* Try gather some coal *")
  290.         elif TCoalStack == False:
  291.             print(" * Someone seems fascinated with your coal... * ")
  292.         elif UStrongerSnares == False: # Copper Lot
  293.             print(" * The flamespeople carry exotic goods * ")
  294.         print("Press [Enter] to Exit")
  295.  
  296.     pinput = input("")
  297.  
  298.     if pinput == "":
  299.         print("")
  300.         newscreen()
  301.         printscreen()
  302.         pinput = ""
  303.     elif IOUUnlockAxes == True and UUnlockAxes == False and PStone >= 25 and pinput == '!`':
  304.         PStone -= 25
  305.         UUnlockAxes = True
  306.         IOUUnlockAxes = False
  307.     elif IOURollingLog == True and URollingLog == 0 and PWood >= 40 and pinput == '0==)':
  308.         PWood -= 40
  309.         URollingLog += 1
  310.         if URollingLog >= 1:
  311.             IOURollingLog = False
  312.         upgradescreen()
  313.     elif IOUBirdSnare == True and UBirdSnare < 10 and URollingLog >= 1 and PStone >= 15 and PWood >= 20 and pinput == '[_]':
  314.         PStone -= 15
  315.         PWood -= 20
  316.         UBirdSnare += 1
  317.         BirdSnareChance += 1
  318.         if UBirdSnare >= 10:
  319.             IOUBirdSnare = False
  320.         upgradescreen()
  321.     elif IOUFeatherAxe == True and UFeatherAxe == False and UUnlockAxes == True and PStone >= 20 and PFeather >= 5 and pinput == '!^':
  322.         PStone -= 20
  323.         PFeather -= 5
  324.         UFeatherAxe = True
  325.         IAxeInput = '!^'
  326.         IOUFeatherAxe = False
  327.         upgradescreen()
  328.     elif IOUDepositSearch == True and UDepositSearch == False and UBirdSnare >= 1 and PWood >= 50 and PFeather >= 3 and pinput == '>(':
  329.         PWood -= 50
  330.         PFeather -= 3
  331.         UDepositSearch = True
  332.         IPickInput = '>('
  333.         IOUDepositSearch = False
  334.         upgradescreen()
  335.     elif IOURollingLog2 == True and URollingLog >= 1 and URollingLog < 3 and UFeatherAxe == True and UDepositSearch == True and PWood >= URLCostT2 and pinput == '0==)':
  336.         PWood -= URLCostT2
  337.         URLCostT2 += 30
  338.         URollingLog += 1
  339.         if URollingLog >= 3:
  340.             IOURollingLog2 = False
  341.         upgradescreen()
  342.     elif IOUTradingPost == True and UTradingPost == False and PStone >= 100 and PWood >= 125 and pinput == '[$]':
  343.         PStone -= 100
  344.         PWood -= 125
  345.         UTradingPost = True
  346.         IOUTradingPost = False
  347.         upgradescreen()
  348.     elif IOTFeatherPile == True and TFeatherPile == False and UTradingPost == True and PFeather >= 40 and pinput == '.,-,':
  349.         PFeather -= 40
  350.         TFeatherPile = True
  351.         IOTFeatherPile = False
  352.         upgradescreen()
  353.     elif IOUBeggarHat == True and UBeggarHat < 4 and UDepositSearch == True and PWood >= 80 and PFeather >= 10 and pinput == '(_)':
  354.         PWood -= 80
  355.         PFeather -= 10
  356.         UBeggarHat += 1
  357.         if UBeggarHat >= 4:
  358.             IOUBeggarHat = False
  359.         upgradescreen()
  360.     elif IOUCoalVeins == True and UCoalVeins == False and PStone >= 100 and PWood >= 90 and PFeather >= 5 and pinput == '.o':
  361.         PStone -= 100
  362.         PWood -= 90
  363.         PFeather -= 5
  364.         UCoalVeins = True
  365.         IOUCoalVeins = False
  366.         upgradescreen()
  367.     elif IOUPickT2 == True and UPickT2 == False and PWood >= 120 and PCoal >= 15 and pinput == '-(':
  368.         PWood -= 120
  369.         PCoal -= 15
  370.         UPickT2 = True
  371.         IOUPickT2 = False
  372.         PPickLevel += 1
  373.         IPickInput = '-('
  374.         upgradescreen()
  375.     elif IOUAxeT2 == True and UAxeT2 == False and PStone >= 120 and PCoal >= 15 and pinput == '!-':
  376.         PStone -= 120
  377.         PCoal -= 15
  378.         UAxeT2 = True
  379.         IOUAxeT2 = False
  380.         PAxeLevel += 1
  381.         IAxeInput = '!-'
  382.         upgradescreen()
  383.     elif IOUForge == True and UForge == False and PStone >= 150 and PWood >= 80 and pinput == '(=)':
  384.         PStone -= 150
  385.         PWood -= 80
  386.         UForge = True
  387.         IOUForge = False
  388.         upgradescreen()
  389.     elif UOverchargeForge == 0 and UForge == True and PCell >= 1 and pinput == '(*)':
  390.         PCell -= 1
  391.         UOverchargeForge += 40
  392.         IForgeDisplay = '(*)'
  393.         upgradescreen()
  394.     elif IOTCoalStack == True and TCoalStack == False and PCoal >= 50 and pinput == '.o0*':
  395.         PCoal -= 50
  396.         TCoalStack = True
  397.         IOTCoalStack = False
  398.         upgradescreen()
  399.     elif IOUStrongerSnares == True and UStrongerSnares == False and PStone >= 30 and PWood >= 60 and PCopper >= 15 and pinput == '#_#':
  400.         PStone -= 30
  401.         PWood -= 60
  402.         PCopper -= 15
  403.         UStrongerSnares = True
  404.         IOUStrongerSnares = False
  405.         BirdSnareChance = BirdSnareChance*2
  406.         ISnareDisplay = '#_#'
  407.         upgradescreen()
  408.     elif IOUCopperRod == True and UCopperRod < 2 and PCopper >= 40 and pinput == '_i_':
  409.         PCopper -= 40
  410.         UCopperRod += 1
  411.         if UCopperRod >= 2:
  412.             IOUCopperRod = False
  413.         upgradescreen()
  414.     elif IOUMiningExchange == True and UMiningExchange == False and PWood >= 150 and PFeather >= 15 and PCopper >= 20 and pinput == '-[':
  415.         PWood -= 150
  416.         PFeather -= 15
  417.         PCopper -= 20
  418.         UMiningExchange = True
  419.         IOUMiningExchange = False
  420.         IPickInput = '-['
  421.         upgradescreen()
  422.     elif IOUWoodcutExchange == True and UWoodcutExchange == False and PStone >= 150 and PFeather >= 15 and PCopper >= 20 and pinput == '[`':
  423.         PStone -= 150
  424.         PFeather -= 15
  425.         PCopper -= 20
  426.         UWoodcutExchange = True
  427.         IOUWoodcutExchange = False
  428.         IAxeInput = '[`'
  429.         upgradescreen()
  430.     elif IOUCopperScout == True and UCopperScout == False and PStone >= 100 and PWood >= 100 and PFeather >= 30 and PCoal >= 20 and PCopper >= 30 and pinput == 'oo':
  431.         PStone -= 100
  432.         PWood -= 100
  433.         PFeather -= 30
  434.         PCoal -= 20
  435.         PCopper -= 30
  436.         UCopperScout = True
  437.         IOUCopperScout = False
  438.         upgradescreen()
  439.     else:
  440.         purchasefailure = True
  441.         upgradescreen()
  442.  
  443. def tradingscreen():
  444.     global PStone, PWood, PFeather, PCoal, PCopper
  445.     global PPickLevel, PAxeLevel
  446.     global UTradingPost, UOverchargeForge
  447.     global TFeatherPile, TCoalStack
  448.     global TFPProc, TFPTakeFeather, TFPGiveStone, TFPBuildUp, TFPBoost
  449.     global TCSProc, TCSTakeWood, TCSTakeCoal, TCSGiveCopper, TCSBuildUp, TCSBoost
  450.     global tradingnotify
  451.     refreshscreen()
  452.     screenprintsize = 5
  453.    
  454.     TradersPresent = 0
  455.    
  456.     print("- Trading Outpost -")
  457.     print("")
  458.     if TFeatherPile == True:
  459.         screenprintsize -= 1
  460.         if TFPProc == 3:
  461.             TradersPresent += 1
  462.             if PFeather >= TFPTakeFeather:
  463.                 print(".,-, '<o>'  My offer to you... I will give ", TFPGiveStone, " Stone... for ", TFPTakeFeather, " Feather  [✓]", sep='')
  464.             else:
  465.                 print(".,-, '<o>'  My offer to you... I will give ", TFPGiveStone, " Stone... for ", TFPTakeFeather, " Feather  [✗]", sep='')
  466.         else:
  467.             print(".,-,")
  468.     if TCoalStack == True:
  469.         screenprintsize -= 1
  470.         if TCSProc == 5:
  471.             TradersPresent += 1
  472.             if PWood >= TCSTakeWood and PCoal >= TCSTakeCoal:
  473.                 print(".o0* '{0}'  I'll take ", TCSTakeCoal, " Coal, and aboutttt ", TCSTakeWood, " Wood for ", TCSGiveCopper, " Copper!  [✓]", sep='')
  474.             else:
  475.                 print(".o0* '{0}'  I'll take ", TCSTakeCoal, " Coal, and aboutttt ", TCSTakeWood, " Wood for ", TCSGiveCopper, " Copper!  [✗]", sep='')
  476.         else:
  477.             print(".o0*")
  478.    
  479.     if TradersPresent == 0:
  480.         screenprintsize -= 1
  481.     for i in range(0, screenprintsize):
  482.         print("")
  483.     if TradersPresent == 0:
  484.         print("There seems to be nobody here right now")
  485.     print(tradingnotify)
  486.     print("Press [Enter] to Exit")
  487.     tradingnotify = ''
  488.    
  489.     pinput = input("")
  490.  
  491.     if pinput == '<o>' and TFPProc == 3 and PFeather >= TFPTakeFeather:
  492.         PFeather -= TFPTakeFeather
  493.         PStone += TFPGiveStone
  494.         TFPProc = 0
  495.         print("")
  496.         tradingnotify = 'The kittens appreciate your feathers!'
  497.         TFPBuildUp += 1
  498.         if TFPBuildUp == 4 and TFPBoost < 4:
  499.             TFPBuildUp = 0
  500.             TFPBoost += 1
  501.         newscreen()
  502.         tradingscreen()
  503.     elif pinput == '<o>' and TFPProc == 3 and PFeather < TFPTakeFeather:
  504.         TFPProc = 0
  505.         print("")
  506.         tradingnotify = 'Your trade with the kittens failed'
  507.         newscreen()
  508.         tradingscreen()
  509.     elif pinput == '{0}' and TCSProc == 5 and PCoal >= TCSTakeCoal and PWood >= TCSTakeWood:
  510.         PCoal -= TCSTakeCoal
  511.         PWood -= TCSTakeWood
  512.         PCopper += TCSGiveCopper
  513.         TCSProc = 0
  514.         print("")
  515.         tradingnotify = 'The flamespeople take your Wood and Coal'
  516.         TCSBuildUp += 1
  517.         if TCSBuildUp == 4 and TCSBoost < 6:
  518.             TCSBuildUp = 0
  519.             TCSBoost += 1
  520.         newscreen()
  521.         tradingscreen()
  522.     elif pinput == '{0}' and TCSProc == 5 and PCoal < TCSTakeCoal or pinput == '{0}' and TCSProc == 5 and PWood < TCSTakeWood:
  523.         TCSProc = 0
  524.         print("")
  525.         tradingnotify = 'Your trade with the flamespeople failed'
  526.         newscreen()
  527.         tradingscreen()
  528.     elif pinput == '':
  529.         print("")
  530.         newscreen()
  531.         printscreen()
  532.     else:
  533.         print("")
  534.         newscreen()
  535.         tradingscreen()
  536.  
  537.  
  538. while pregameloop == True:
  539.     refreshscreen()
  540.     ayrfail = 0
  541.     print("                                                  'Begin'")
  542.     newscreen()
  543.     begingame = input("                                                   ")
  544.     while begingame == 'Begin':
  545.         refreshscreen()
  546.         print("                                     'Type the text in the quotations'")
  547.         newscreen()
  548.         typethetextgame = input("                                      ")
  549.         while typethetextgame == 'Type the text in the quotations':
  550.             refreshscreen()
  551.             print("                                             'Are you ready?'")
  552.             newscreen()
  553.             areyoureadygame = input("                                              ")
  554.             if areyoureadygame == 'Are you ready?':
  555.                 begingame = '2813190166737074'
  556.                 typethetextgame = '2813190166737074'
  557.                 areyoureadygame = '2813190166737074'
  558.                 pregameloop = False
  559.                 game = True
  560.                 break
  561.             else:
  562.                 refreshscreen()
  563.                 print("                                             * Input Failure *")
  564.                 ayrfail += 1
  565.                 newscreen()
  566.                 sleep(0.5)
  567.                 if ayrfail >= 5:
  568.                     refreshscreen()
  569.                     print("                                       Type * Are you ready? *")
  570.                     newscreen()
  571.                     sleep(2)
  572.         if typethetextgame == '2813190166737074':
  573.             break
  574.         else:
  575.             refreshscreen()
  576.             print("                                              * Input Failure *")
  577.             newscreen()
  578.             sleep(0.5)
  579.     if begingame == '2813190166737074':
  580.         break
  581.     else:
  582.         refreshscreen()
  583.         print("                                              * Input Failure *")
  584.         newscreen()
  585.         sleep(0.5)
  586.    
  587. refreshscreen()
  588. print("                                            * Begin Experience *")
  589. newscreen()
  590. sleep(1)
  591.  
  592.  
  593. while game == True:
  594.     printscreen()
  595.     pinput = input("")
  596.  
  597.     if pinput == IPickInput:
  598.         PStone += PPickLevel
  599.         if UCoalVeins == True:
  600.             if randint(PPickLevel, 9) == 9:
  601.                 PCoal += 1
  602.         if UMiningExchange == True:
  603.             if randint(PPickLevel, 5) == 5:
  604.                 PWood += 1
  605.         if ScoutValue > 0:
  606.             PCopper += 1 #*(PPickLevel-1)
  607.             ScoutValue -= 1
  608.        
  609.     elif UUnlockAxes == True and pinput == IAxeInput:
  610.         PWood += PAxeLevel
  611.         if UWoodcutExchange == True:
  612.             if randint(PAxeLevel, 5) == 5:
  613.                 PStone += 1
  614.        
  615.     elif UCopperScout == True and pinput == IScoutInput:
  616.         ScoutValue += randint(0, 2)
  617.        
  618.     elif pinput == '101s':
  619.         rgain = int(input(""))
  620.         PStone += rgain
  621.        
  622.     elif pinput == '102w':
  623.         rgain = int(input(""))
  624.         PWood += rgain
  625.        
  626.     elif pinput == '103f':
  627.         rgain = int(input(""))
  628.         PFeather += rgain
  629.        
  630.     elif pinput == '104c':
  631.         rgain = int(input(""))
  632.         PCoal += rgain
  633.        
  634.     elif pinput == '105c':
  635.         rgain = int(input(""))
  636.         PCopper += rgain
  637.        
  638.     elif pinput == '201c':
  639.         rgain = int(input(""))
  640.         PCell += rgain
  641.        
  642.     elif pinput == '&':
  643.         upgradescreen()
  644.        
  645.     elif UTradingPost == True and pinput == '$':
  646.         tradingnotify = ''
  647.         TFPProc = randint(TFPBoost, 4)
  648.         TFPTakeFeather = randint(3, 8)
  649.         TFPGiveStone = TFPTakeFeather*2 + randint(5, 11) + PPickLevel*2 + PAxeLevel*2 + TFPBoost*2
  650.         TCSProc = randint(TCSBoost, 6)
  651.         TCSTakeCoal = randint(5, 10)
  652.         TCSTakeWood = randint(18, 41)
  653.         TCSGiveCopper = randint(3, 6) - PPickLevel + PAxeLevel + TCSBoost*2
  654.         tradingscreen()
  655.        
  656.     elif pinput == 'activateAll':
  657.         UUnlockAxes = True
  658.         URollingLog = 3
  659.         UBirdSnare = 10
  660.         UFeatherAxe = True
  661.         UDepositSearch = True
  662.         UTradingPost = True
  663.         UBeggarHat = 4
  664.         UCoalVeins = True
  665.         UForge = True
  666.         UForgeStatus = 'Inactive'
  667.         UStrongerSnares = True
  668.         UCopperRod = 2
  669.         UMiningExchange = True
  670.         UWoodcutExchange = True
  671.         UCopperScout = True
  672.        
  673.         TFeatherPile = True
  674.         TCoalStack = True
  675.        
  676.         PPickLevel = 2
  677.         PAxeLevel = 2
  678.        
  679.     elif UForge == True and pinput == IForgeDisplay:
  680.         if UForgeStatus == 'Inactive':
  681.             UForgeStatus = 'Active'
  682.         else:
  683.             UForgeStatus = 'Inactive'
  684.        
  685.     else:
  686.         printscreen()
  687.    
  688.     #endturnproc()
  689.     BHProcChance = 0
  690.    
  691.     if pinput == IPickInput or pinput == IAxeInput or pinput == IScoutInput:
  692.         if URollingLog >= 1:
  693.             URLCounter += 1
  694.             if URLCounter == 3:
  695.                 PWood += URollingLog
  696.                 URLCounter = 0
  697.                 print("* Rolling Log * (+", URollingLog, " Wood)", sep='')
  698.                 print("")
  699.         if UBirdSnare >= 1:
  700.             if BirdSnareChance + PAxeLevel - 1 >= randint(1, 100):
  701.                 PFeather += 1
  702.         if UBeggarHat >= 1:
  703.             for i in range(0, UBeggarHat):
  704.                 BHProcChance = randint(1, 3)
  705.                 if BHProcChance == 1:
  706.                     PStone += 1
  707.                     print("* Beggar's Hat * (+1 Stone)")
  708.                     print("")
  709.         if UCopperRod >= 1:
  710.             if randint(UCopperRod, 400) == 400:
  711.                 PCell += 1
  712.                 print("* Lightning Rod * (+1 Cell)")
  713.         if UForge == True:
  714.             if UForgeStatus == 'Active':
  715.                 if PStone >= 5+PPickLevel and PWood >= 5+PAxeLevel and IForgeDisplay == '(*)':
  716.                     PStone -= 5
  717.                     PWood -= 5
  718.                     PCoal += 2
  719.                     UOverchargeForge -= 1
  720.                 elif PStone >= 5+PPickLevel and PWood >= 5+PAxeLevel:
  721.                     UForgeCoalCount += 1
  722.                     PStone -= 5
  723.                     PWood -= 5
  724.                     if UForgeCoalCount == 2:
  725.                         UForgeCoalCount = 0
  726.                         PCoal += 1
  727.                 else:
  728.                     UForgeStatus = 'Out of Resources - Reverting to Inactive'
  729.             elif UForgeStatus == 'Out of Resources - Reverting to Inactive':
  730.                 UForgeStatus = 'Inactive'
  731.     if UForge == True and IForgeDisplay == '(*)' and UOverchargeForge == 0:
  732.         IForgeDisplay = '(=)'
Advertisement
Add Comment
Please, Sign In to add comment