Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if true # Make false to disable script.
- #===============================================================================
- #
- # ☆ $D13x - Minimum Damage
- # -- Author : Dekita
- # -- Version : 1.0
- # -- Level : Easy
- # -- Requires : N/A
- # -- Engine : RPG Maker VX Ace.
- #
- #===============================================================================
- # ☆ Import
- #-------------------------------------------------------------------------------
- $D13x={}if$D13x==nil
- $D13x[:Min_DMG]=true
- #===============================================================================
- # ☆ Updates
- #-------------------------------------------------------------------------------
- # D /M /Y
- # 13/o6/2o13 - Started, Finished
- #
- #===============================================================================
- # ☆ Introduction
- #-------------------------------------------------------------------------------
- # This script basically makes a minimum damage value.
- # eg. if an item/skill should deal hp damage, but does 0 damage
- # it will instead do 1 damage. (unless damage is below 1 ie, absorbed)
- # Missed / Evaded hits will still deal 0 damage.
- #
- #===============================================================================
- # ★☆★☆★☆★☆★☆★☆★☆★ TERMS AND CONDITIONS: ☆★☆★☆★☆★☆★☆★☆★☆★☆
- #===============================================================================
- # 1. You MUST give credit to "Dekita" !!
- # 2. You are NOT allowed to repost this script.(or modified versions)
- # 3. You are NOT allowed to convert this script.
- # 4. You are NOT allowed to use this script for Commercial games.
- # 5. ENJOY!
- #
- # "FINE PRINT"
- # By using this script you hereby agree to the above terms and conditions,
- # if any violation of the above terms occurs "legal action" may be taken.
- # Not understanding the above terms and conditions does NOT mean that
- # they do not apply to you.
- # If you wish to discuss the terms and conditions in further detail you can
- # contact me at http://dekitarpg.wordpress.com/
- #
- #===============================================================================
- # ☆ Instructions
- #-------------------------------------------------------------------------------
- # Place Below " ▼ Materials " and Above " ▼ Main " in your script editor.
- #
- #===============================================================================
- module Min_DMG
- #===============================================================================
- #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- # ☆ General Settings
- #-----------------------------------------------------------------------------
- # Make false to disable script.
- Use_Script = true
- #-----------------------------------------------------------------------------
- # Minimum Damage Value for HP
- HP_Min = 1
- #-----------------------------------------------------------------------------
- # Minimum Damage Value for MP
- MP_Min = 1
- end #####################
- # CUSTOMISATION END #
- #####################
- #☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★#
- # #
- # http://dekitarpg.wordpress.com/ #
- # #
- #★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆#
- #===============================================================================#
- # ARE YOU MODIFYING BEYOND THIS POINT? \.\. #
- # YES?\.\. #
- # OMG, REALLY? \| #
- # WELL SLAP MY FACE AND CALL ME A DRAGONITE.\..\.. #
- # I REALLY DIDN'T THINK YOU HAD IT IN YOU.\..\.. #
- #===============================================================================#
- if Min_DMG::Use_Script
- class Game_ActionResult
- #===============================================================================#
- #---------------------------------------------------------------------------
- # Create Damage
- #---------------------------------------------------------------------------
- alias :md_vi :make_damage
- def make_damage(value, item)
- value = Min_DMG::HP_Min if item.damage.to_hp? && value == 0
- value = Min_DMG::MP_Min if item.damage.to_mp? && value == 0
- md_vi(value, item)
- end
- end
- end
- #===============================================================================
- # http://dekitarpg.wordpress.com/
- #===============================================================================
- end # if true # Make false to disable script.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement