Jump to content
Sign in to follow this  
HugeGranolaBar

Need a script that makes minimum damage 1

Recommended Posts

I couldn't find a working or running script that does this and any solutions that don't require scripts haven't worked. If anybody has a script for this, i need it.

The reason i need it is because i just like that sorta thing, and there's a certain character in my game with abysmal stats (45 MHP, 3 ATK, 5 DEF, etc.) but a low target rate and 3 actions.

Share this post


Link to post
Share on other sites

I'm surprised you did not find any. There are several pages when I search google.

Your google search in google needs to be "rpg maker vx ace 'function' script"

So in this case 'rpg maker vx ace minimal damage script'

 

But in this case I see that they are all garbage links.

 

Here are some...

Spoiler

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 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
      p "DMG After Min DMG = #{value.to_i}"
      md_vi(value, item)
    end
  end
end

#===============================================================================
#                      http://dekitarpg.wordpress.com/
#===============================================================================
end # if true # Make false to disable script.

 

Spoiler

# To ensure that at least 1HP damage occurs
# by Sixth

class RPG::BaseItem

attr_accessor :no_min_dmg

def no_min_dmg
init_no_min_dmg if @no_min_dmg.nil?
return @no_min_dmg
end

def init_no_min_dmg
@no_min_dmg = @note =~ /<no min dmg>/i ? true : false
end

end

class Game_ActionResult

alias add_min_dmg6681 make_damage
def make_damage(value, item)
if value == 0 && !item.no_min_dmg
value = item.damage.recover? ? -1 : 1
end
add_min_dmg6681(value, item)
end

end

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×