Advertisement
Dekita

$D13x - Minimum Damage

Nov 18th, 2013
851
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.03 KB | None | 0 0
  1. if true # Make false to disable script.
  2. #===============================================================================
  3. #
  4. # ☆ $D13x - Minimum Damage
  5. # -- Author : Dekita
  6. # -- Version : 1.0
  7. # -- Level : Easy
  8. # -- Requires : N/A
  9. # -- Engine : RPG Maker VX Ace.
  10. #
  11. #===============================================================================
  12. # ☆ Import
  13. #-------------------------------------------------------------------------------
  14. $D13x={}if$D13x==nil
  15. $D13x[:Min_DMG]=true
  16. #===============================================================================
  17. # ☆ Updates
  18. #-------------------------------------------------------------------------------
  19. # D /M /Y
  20. # 13/o6/2o13 - Started, Finished
  21. #
  22. #===============================================================================
  23. # ☆ Introduction
  24. #-------------------------------------------------------------------------------
  25. # This script basically makes a minimum damage value.
  26. # eg. if an item/skill should deal hp damage, but does 0 damage
  27. # it will instead do 1 damage. (unless damage is below 1 ie, absorbed)
  28. # Missed / Evaded hits will still deal 0 damage.
  29. #
  30. #===============================================================================
  31. # ★☆★☆★☆★☆★☆★☆★☆★ TERMS AND CONDITIONS: ☆★☆★☆★☆★☆★☆★☆★☆★☆
  32. #===============================================================================
  33. # 1. You MUST give credit to "Dekita" !!
  34. # 2. You are NOT allowed to repost this script.(or modified versions)
  35. # 3. You are NOT allowed to convert this script.
  36. # 4. You are NOT allowed to use this script for Commercial games.
  37. # 5. ENJOY!
  38. #
  39. # "FINE PRINT"
  40. # By using this script you hereby agree to the above terms and conditions,
  41. # if any violation of the above terms occurs "legal action" may be taken.
  42. # Not understanding the above terms and conditions does NOT mean that
  43. # they do not apply to you.
  44. # If you wish to discuss the terms and conditions in further detail you can
  45. # contact me at http://dekitarpg.wordpress.com/
  46. #
  47. #===============================================================================
  48. # ☆ Instructions
  49. #-------------------------------------------------------------------------------
  50. # Place Below " ▼ Materials " and Above " ▼ Main " in your script editor.
  51. #
  52. #===============================================================================
  53. module Min_DMG
  54. #===============================================================================
  55.  
  56. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  57. # ☆ General Settings
  58. #-----------------------------------------------------------------------------
  59. # Make false to disable script.
  60. Use_Script = true
  61. #-----------------------------------------------------------------------------
  62. # Minimum Damage Value for HP
  63. HP_Min = 1
  64. #-----------------------------------------------------------------------------
  65. # Minimum Damage Value for MP
  66. MP_Min = 1
  67.  
  68. end #####################
  69. # CUSTOMISATION END #
  70. #####################
  71. #☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★#
  72. # #
  73. # http://dekitarpg.wordpress.com/ #
  74. # #
  75. #★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆#
  76. #===============================================================================#
  77. # ARE YOU MODIFYING BEYOND THIS POINT? \.\. #
  78. # YES?\.\. #
  79. # OMG, REALLY? \| #
  80. # WELL SLAP MY FACE AND CALL ME A DRAGONITE.\..\.. #
  81. # I REALLY DIDN'T THINK YOU HAD IT IN YOU.\..\.. #
  82. #===============================================================================#
  83. if Min_DMG::Use_Script
  84. class Game_ActionResult
  85. #===============================================================================#
  86. #---------------------------------------------------------------------------
  87. # Create Damage
  88. #---------------------------------------------------------------------------
  89. alias :md_vi :make_damage
  90. def make_damage(value, item)
  91. value = Min_DMG::HP_Min if item.damage.to_hp? && value == 0
  92. value = Min_DMG::MP_Min if item.damage.to_mp? && value == 0
  93. md_vi(value, item)
  94. end
  95. end
  96. end
  97.  
  98. #===============================================================================
  99. # http://dekitarpg.wordpress.com/
  100. #===============================================================================
  101. end # if true # Make false to disable script.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement