Advertisement
clockworkpc

Tech Support RPG Concept

May 7th, 2011
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.62 KB | None | 0 0
  1. #!/usr/bin/python
  2. #/home/clockworkpcasus/Documents/bin/supportRPG.py
  3.  
  4. # Released under a GPLv3 Licence by Clockwork PC 2011  
  5. #
  6. # www.clockworkpc.com.au
  7. #
  8. # You are entitled to the following four freedoms:
  9. # Freedom 0: To run this program for any purpose
  10. # Freedom 1: To study how this program works and change it to make it do what you wish
  11. # Freedom 2: To redistribute copies so you can help your neighbour
  12. # Freedom 3: To distribute copies of your modified version to others
  13.  
  14. from bisect import bisect
  15. cut_points = [100, 200, 300, 400, 500, 600, 700, 800, 900, 1000, 1250, 1500, 1750, 2000, 2500, 3000, 3500, 4000, 4500, 5000, 6000, 7000, 8000, 9000, 10000]
  16. lvl = ["Level 1", "Level 2", "Level 3", "Level 4", "Level 5", "Level 6", "Level 7", "Level 8", "Level 9", "Level 10", "Level 11", "Level 12", "Level 13", "Level 14", "Level 15", "Level 16", "Level 17", "Level 18", "Level 19", "Level 20", "Level 21", "Level 22", "Level 23", "Level 24", "Level 25", "Level 26"]
  17.  
  18. # Read list of all completed missions to date
  19. # Read current total experience points from database/spreadsheet
  20.  
  21. exp = int(raw_input('How many experience points does the database say you have accumulated? '))
  22.  
  23. # Just as an example, if according to the database you have earned 5500 points, the breakdown of your completed missions might look like this:
  24.  
  25. missions = """You have completed the following missions:
  26. Customer = X, Problem = Y, Solution = Z, Points = 2000
  27. Customer = A, Problem = B, Solution = C, Points = 2500
  28. Customer = D, Problem = E, Solution = F, Points = 500
  29. """
  30.  
  31. rank = lvl[bisect(cut_points, exp)]
  32. print "You are", rank
  33. print missions
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement