I have a question regarding this part of the default script:
#-------------------------------------------------------------------------- # * Calculate Damage #-------------------------------------------------------------------------- def make_damage_value(user, item) value = item.damage.eval(user, self, $game_variables) 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) @result.make_damage(value.to_i, item) endWhat if I want to know if its the game enemy or the actor who's attacking? From my past thread, it was indicated that self only works to the one who that attack is being applied to, not the one attacking.
Say for example I want to change the damage given according to either its the actor or the enemy, how can I determine if they are? Can I access their parameters as well?
#-------------------------------------------------------------------------- # * Calculate Damage #-------------------------------------------------------------------------- def make_damage_value(user, item) value = item.damage.eval(user, self, $game_variables) 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) @result.make_damage(value.to_i, item) endWhat if I want to know if its the game enemy or the actor who's attacking? From my past thread, it was indicated that self only works to the one who that attack is being applied to, not the one attacking.
Say for example I want to change the damage given according to either its the actor or the enemy, how can I determine if they are? Can I access their parameters as well?