Jump to content
Sign in to follow this  

add Dammage Formulas to Items or Elements

Recommended Posts

Hi, me again.


My question: Is there any possibility to add all Information of Dammage Formulas to Elements or Items? Like adding it to a Weapon, and whenever you use a skill, wearing that weapon it uses the skills formula, but also calculates the dammage of the Formula you added to it?


The things you could do with that were incredible. 10% Lifedrain or Manaburn on a weapon? No problem, apply 10% Elemental dammage and add Drain to that Element. Complicated Formulas which let all your attacks growth based on the number of hits you had inflicted upon your enemys? Or giving each element something spechial? Here is the answer, the List goes on, but i yust dont know how to do that. So please tell me, if there is an solution.

Share this post

Link to post
Share on other sites

Well, don't know if you are still interested but if you have some scripting knowledge, you can.


This code is untested, but should give you an idea... to make more special weapon formulas just append the 'weapon_bonus' method.

class Game_Battler < Game_BattlerBase

  def weapon_bonus(user, target)

    if user.weapons.include?($data_weapons[weapon_id]) # change 'weapon_id' to the id of the weapon in question.

    (user.ATK - target.DEF)






  def make_damage_value(user, item)
    value = item.damage.eval(user, self, $game_variables)
# input formula after me
    value += weapon_bonus(user, self) if user.actor? # chose to add damage before any multipliers has effect
    value *= item_element_rate(user, item)
    value *= pdr if item.physical?
    value *= mdr if item.magical?
    value *= rec if item.damage.recover?
    value = apply_critical(value) if @result.critical
    value = apply_variance(value, item.damage.variance)
    value = apply_guard(value)
# input before me
    @result.make_damage(value.to_i, item)

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.