Advertisement
Dekita

Untitled

Apr 19th, 2014
548
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.51 KB | None | 0 0
  1. if true # << Make true to use this script, false to disable.
  2. #===============================================================================
  3. #
  4. # ☆ $D13x - Gold Tracker
  5. # -- Author : Dekita
  6. # -- Version : 1.0
  7. # -- Level : Easy / Normal
  8. # -- Requires : N/A
  9. # -- Engine : RPG Maker VX Ace.
  10. #
  11. #===============================================================================
  12. # ☆ Import
  13. #-------------------------------------------------------------------------------
  14. $D13x={}if$D13x==nil
  15. $D13x[:Gold_Tracker]=true
  16. #===============================================================================
  17. # ☆ Updates
  18. #-------------------------------------------------------------------------------
  19. # D /M /Y
  20. # 17/o4/2o14 - Started, Finished,
  21. #
  22. #===============================================================================
  23. # ☆ Introduction
  24. #-------------------------------------------------------------------------------
  25. # Simple script to keep track of how much gold the party has earned and spent.
  26. # Doesnt really do anything else.
  27. #
  28. #===============================================================================
  29. # ★☆★☆★☆★☆★☆★☆★☆★ TERMS AND CONDITIONS: ☆★☆★☆★☆★☆★☆★☆★☆★☆
  30. #===============================================================================
  31. # 1. You MUST give credit to "Dekita" !!
  32. # 2. You are NOT allowed to repost this script.(or modified versions)
  33. # 3. You are NOT allowed to convert this script.
  34. # 4. You are NOT allowed to use this script for Commercial games.
  35. # 5. ENJOY!
  36. #
  37. # "FINE PRINT"
  38. # By using this script you hereby agree to the above terms and conditions,
  39. # if any violation of the above terms occurs "legal action" may be taken.
  40. # Not understanding the above terms and conditions does NOT mean that
  41. # they do not apply to you.
  42. # If you wish to discuss the terms and conditions in further detail you can
  43. # contact me at http://dekitarpg.wordpress.com/
  44. #
  45. #===============================================================================
  46. # ☆ Instructions
  47. #-------------------------------------------------------------------------------
  48. # Place Below " ▼ Materials " and Above " ▼ Main " in your script editor.
  49. #
  50. #===============================================================================
  51. # ☆ Script Calls
  52. #-------------------------------------------------------------------------------
  53. # $game_player.gold_earned
  54. # $game_player.gold_spent
  55. #
  56. #===============================================================================
  57. # ☆ Notetags ( default )
  58. #-------------------------------------------------------------------------------
  59. # N/A
  60. #
  61. #===============================================================================
  62. # ☆ HELP
  63. #-------------------------------------------------------------------------------
  64. # N/A
  65. #
  66. #===============================================================================
  67. module Gold_Tracker
  68. #===============================================================================
  69. #-----------------------------------------------------------------------------
  70. # No Customisation Needed
  71. #-----------------------------------------------------------------------------
  72. #####################
  73. # CUSTOMISATION END #
  74. end #####################
  75. #☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★#
  76. # #
  77. # http://dekitarpg.wordpress.com/ #
  78. # #
  79. #★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆#
  80. #===============================================================================#
  81. # ARE YOU MODIFYING BEYOND THIS POINT? \.\. #
  82. # YES?\.\. #
  83. # OMG, REALLY? \| #
  84. # WELL SLAP MY FACE AND CALL ME A DRAGONITE.\..\.. #
  85. # I REALLY DIDN'T THINK YOU HAD IT IN YOU.\..\.. #
  86. #===============================================================================#
  87. class Game_Party < Game_Unit
  88. #===============================================================================
  89. #-----------------------------------------------------------------------------
  90. #
  91. #-----------------------------------------------------------------------------
  92. alias :gain_gold_tracked :gain_gold
  93. #-----------------------------------------------------------------------------
  94. #
  95. #-----------------------------------------------------------------------------
  96. def gain_gold(amount)
  97. $game_player.gold_earned += amount.to_i if amount > 0
  98. $game_player.gold_spent += amount.to_i if amount < 0
  99. gain_gold_tracked(amount)
  100. end
  101. end
  102. #===============================================================================
  103. class Game_Player < Game_Character
  104. #===============================================================================
  105. #-----------------------------------------------------------------------------
  106. #
  107. #-----------------------------------------------------------------------------
  108. attr_accessor :gold_earned
  109. attr_accessor :gold_spent
  110. #-----------------------------------------------------------------------------
  111. #
  112. #-----------------------------------------------------------------------------
  113. alias :init_goldtrack :initialize
  114. #-----------------------------------------------------------------------------
  115. #
  116. #-----------------------------------------------------------------------------
  117. def initialize
  118. init_goldtrack
  119. initialize_goldtrack
  120. end
  121. #-----------------------------------------------------------------------------
  122. #
  123. #-----------------------------------------------------------------------------
  124. def initialize_goldtrack
  125. @gold_earned = 0
  126. @gold_spent = 0
  127. end
  128. end
  129. #==============================================================================#
  130. # http://dekitarpg.wordpress.com/ #
  131. #==============================================================================#
  132. end # if true # << Make true to use this script, false to disable.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement