BDR Elements

BDR Elements Version: 1.0 for RMVX
By: Fustel

Introduction
This is just a small script I use to use. But as it will appear in some soon-to-be-release demos, I decided to 'officially' present it first.
As you may have guessed, thie script slightly modifies the way the element_max_rate is calculated.

Features
  • allows to ignore some of the elemnts in the list (some elements may exists for other scripting purpose)
  • combines both the best damaging (A-E) with the regenerating (F) effects

Screenshots
None worth it Spoiler


Demo
None worth it Spoiler


Script
  1. #==============================================================================
  2. # ** BDR Elements
  3. #------------------------------------------------------------------------------
  4. #  © Fustel, 2010
  5. #  02/04/10
  6. #  Version 1.0
  7. #------------------------------------------------------------------------------
  8. #  VERSION HISTORY:
  9. #   - 1.0 (02/04/10), Initial release
  10. #------------------------------------------------------------------------------
  11. #  INSTRUCTIONS:
  12. #   - Place this script above Main
  13. #------------------------------------------------------------------------------
  14. # NOTES
  15. #   - allows the exclusion of some elements in computiing elemental damage
  16. #   - combine the best damaging with regenerating elemental effects
  17. #
  18. #------------------------------------------------------------------------------
  19. module BDR
  20.   module Elements
  21.     # array of elements ID to ignore
  22.     #-------------------------------
  23.     IGNORE = []
  24.   end
  25. end
  26.  
  27. class Game_Battler
  28.   def elements_max_rate(element_set)
  29.     rate_list = []
  30.     for i in element_set
  31.       rate_list.push( element_rate( i)) unless BDR::Elements::IGNORE.include?( i)
  32.     end
  33.     return 100 if rate_list.empty?                # If there is no element
  34.     result = rate_list.max
  35.     result = 100 if result < 0
  36.     result += rate_list.min * 2 if rate_list.min < 0
  37.     return result
  38.   end
  39. end
Expand to see the code.


Instructions
  • Copy the script in the 'Materials' section

FAQ

Compatibility
No issue known

Credits and Thanks
All done by myself

Author's Notes

Terms and Conditions
You may NOT use this in a commercial game without my explicit permission.
You may NOT post this script anywhere without my explict permission.
You *MUST* give me credit.

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=70412