Advertisement
Legacy

[RGSS3] Alternative EXP Gain

Nov 14th, 2012
1,462
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 5.54 KB | None | 0 0
  1. #≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  2. # :: Alternative EXP Gain                                    [RPG Maker VX Ace]
  3. #    Version 1.00
  4. #------------------------------------------------------------------------------
  5. #  The purpose of this script is to allow the user to change how much EXP
  6. #  is required to level up.
  7. #==============================================================================
  8. # ; Version History
  9. #------------------------------------------------------------------------------
  10. #   Version 1.00 ------------------------------------------------- (14-11-2012)
  11. #     - Initial version
  12. #     - Author: Legacy
  13. #
  14. #==============================================================================
  15. # ; Instructions
  16. #------------------------------------------------------------------------------
  17. #  To instal the script, open you script editor and paste this script on
  18. #  a new section bellow the Materials section.
  19. #==============================================================================
  20. # * Contact
  21. #------------------------------------------------------------------------------
  22. #  Legacy, the author of this script, can be contacted through his
  23. #  website, found at http://legacyscripts.wordpress.com/
  24. #
  25. #  You may also find Legacy at http://www.rpgrevolution.com/
  26. #==============================================================================
  27. # * Usage
  28. #------------------------------------------------------------------------------
  29. #  This script may be used with the following terms and conditions:
  30. #
  31. #    1. This script is free to use in any noncommercial project. If you wish to
  32. #       use this script in a commercial (paid) project, please contact
  33. #       Legacy at his website.
  34. #    2. This script may only be hosted at the following domains:
  35. #         http://www.legacy-studios.org
  36. #         http://www.save-point.org
  37. #         http://www.rpgrevolution.com
  38. #         http://www.rpgmakerweb.com
  39. #    3. If you wish to host this script elsewhere, please contact Legacy.
  40. #    4. If you wish to translate this script, please contact Legacy. He
  41. #       will need the web address that you plan to host the script at, as well
  42. #       as the language this script is being translated to.
  43. #    5. This header must remain intact at all times.
  44. #    6. Legacy remains the sole owner of this code. He may modify or
  45. #       revoke this license at any time, for any reason.
  46. #    7. Any code derived from code within this script is owned by Legacy,
  47. #       and you must have his permission to publish, host, or distribute his
  48. #       code.
  49. #    8. This license applies to all code derived from the code within this
  50. #       script.
  51. #    9. If you use this script within your project, you must include visible
  52. #       credit to Legacy, within reason.
  53. #≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
  54.  
  55. #==============================================================================
  56. # :: RPG::Class
  57. #==============================================================================
  58.  
  59. class RPG::Class < RPG::BaseItem
  60.   def exp_for_level(level)
  61.     #--------------------------------------------------------------------------
  62.     # ; @new_exp_gain = { level => exp_needed_to_level }
  63.     #--------------------------------------------------------------------------
  64.     @new_exp_gain = {
  65.     1 => 0,
  66.     2 => 51,
  67.     3 => 169,
  68.     4 => 386,
  69.     5 => 735,
  70.     6 => 1253,
  71.     7 => 1978,
  72.     8 => 2950,
  73.     9 => 4213,
  74.     10 => 5812,
  75.     11 => 7796,
  76.     12 => 10215,
  77.     13 => 13121,
  78.     14 => 16570,
  79.     15 => 20619,
  80.     16 => 25329,
  81.     17 => 30762,
  82.     18 => 36982,
  83.     19 => 44057,
  84.     20 => 53056,
  85.     21 => 61052,
  86.     22 => 71119,
  87.     23 => 82333,
  88.     24 => 94774,
  89.     25 => 108523,
  90.     26 => 123665,
  91.     27 => 140286,
  92.     28 => 158474,
  93.     29 => 178321,
  94.     30 => 199920,
  95.     31 => 223368,
  96.     32 => 248763,
  97.     33 => 276205,
  98.     34 => 305798,
  99.     35 => 337647,
  100.     36 => 371861,
  101.     37 => 408550,
  102.     38 => 447826,
  103.     39 => 489805,
  104.     40 => 534604,
  105.     41 => 582344,
  106.     42 => 633147,
  107.     43 => 687137,
  108.     44 => 744442,
  109.     45 => 805191,
  110.     46 => 869517,
  111.     47 => 937554,
  112.     48 => 1009438,
  113.     49 => 1085309,
  114.     50 => 1165308,
  115.     51 => 1249580,
  116.     52 => 1338271,
  117.     53 => 1431529,
  118.     54 => 1529506,
  119.     55 => 1632355,
  120.     56 => 1740233,
  121.     57 => 1853298,
  122.     58 => 1971710,
  123.     59 => 2095633,
  124.     60 => 2225232,
  125.     61 => 2360676,
  126.     62 => 2502135,
  127.     63 => 2649781,
  128.     64 => 2803790,
  129.     65 => 2964339,
  130.     66 => 3131609,
  131.     67 => 3305782,
  132.     68 => 3487042,
  133.     69 => 3675577,
  134.     70 => 3871576,
  135.     71 => 4075232,
  136.     72 => 4286739,
  137.     73 => 4506293,
  138.     74 => 4734094,
  139.     75 => 4970343,
  140.     76 => 5215245,
  141.     77 => 5469006,
  142.     78 => 5731834,
  143.     79 => 6003941,
  144.     80 => 6285540,
  145.     81 => 6576848,
  146.     82 => 6878083,
  147.     83 => 7189465,
  148.     84 => 7511218,
  149.     85 => 7843567,
  150.     86 => 8186741,
  151.     87 => 8540970,
  152.     88 => 8906486,
  153.     89 => 9283525,
  154.     90 => 9672324,
  155.     91 => 10073124,
  156.     92 => 10486167,
  157.     93 => 10911697,
  158.     94 => 11349962,
  159.     95 => 11801211,
  160.     96 => 12265697,
  161.     97 => 12743674,
  162.     98 => 13235398,
  163.     99 => 13741129
  164.     }
  165.     return @new_exp_gain[level]
  166.   end
  167. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement