Advertisement
TroyZ

TroyZ - Critical Skills Mods

Jun 17th, 2013
522
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 2.72 KB | None | 0 0
  1. # ==============================================================================
  2. # ▼▼▼▼▼▼                 TroyZ - Critical Skills Mods                     ▼▼▼▼▼▼
  3. # ==============================================================================
  4. # Script by : Agung Prasetyo(TroyZ)
  5. # Contact me by : - Email agung.endisnear.xyz@gmail.com
  6. #                 - Forum RPGMakerID, username TroyZ
  7. #                 - Handphone 085756289121
  8. # Engine : VXAce
  9. # Level : Easy
  10. # Version : 1.0
  11. # ------------------------------------------------------------------------------
  12. # Change Logs :
  13. # 17 June 2013 : Version 1.0 released
  14. # ------------------------------------------------------------------------------
  15. # How this work :
  16. # This little script will give you an ability to create skills that always
  17. # lands critical hits.
  18. # ------------------------------------------------------------------------------
  19. # How to use :
  20. # Place it between material and main. Put this notetag :
  21. # <always critical>
  22. # Inside skills that you want to always lands critical hits.
  23. # ------------------------------------------------------------------------------
  24. # Compatibility issues :
  25. # I haven't get any compatibility issues actually. This script requires :
  26. # - TheoAllen - Core Damage Result Version 1.0
  27. #   http://pastebin.com/raw.php?i=8S5ZC73V
  28. # That requirement must be put above this script.
  29. # ------------------------------------------------------------------------------
  30. # Who to credit :
  31. # - Allah swt. : For the chance of living that he has given to me.
  32. # - Nabi Muhammad saw. : As a leader and messenger and prophet of Muslim.
  33. #                        I'm proud to be your follower. :)
  34. # - Theo Allen : He gave me the challenge to created this script, and his Core
  35. # Damage Processing helped me a lot. Thanks to him. :)
  36. # - Agung Prasetyo(TroyZ) : Thats me, of course, the ones that made this script. :P
  37. # ------------------------------------------------------------------------------
  38. # License :
  39. # - Free Game : Just credit those three first names above. My name in the credit?
  40. # If you pleased, but if don't, no problem, this was just a simple script actually.
  41. # - Commercial Game : Same as free game's license.
  42. # ------------------------------------------------------------------------------
  43. $imported = {} if $imported.nil?
  44. $imported[:TroyZ_CriticalSkillsMods] = true
  45.  
  46. class RPG::Skill < RPG::UsableItem
  47.   def always_critical?
  48.     self.note.include?("<always critical>")
  49.   end
  50. end
  51.  
  52. class Game_Battler < Game_BattlerBase  
  53.   alias agung_theo_determine_critical   determine_critical
  54.   def determine_critical(user, item)
  55.     agung_theo_determine_critical(user, item)
  56.     @result.critical = true if item.always_critical?
  57.   end
  58. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement