=begin #============================================================================== ** Effect: Level Bonus Author: Hime Date: Nov 3, 2012 ------------------------------------------------------------------------------ ** Change log Nov 3, 2012 - initial release ------------------------------------------------------------------------------ ** Terms of Use * Free to use in non-commercial projects * Contact me for commercial use * No real support. The script is provided as-is * Will do bug fixes, but no compatibility patches * Features may be requested but no guarantees, especially if it is non-trivial * Preserve this header ------------------------------------------------------------------------------ ** Required -Effect Manager (http://himeworks.com/2012/10/05/effects-manager) ------------------------------------------------------------------------------ This script allows you to receive additional param bonuses when you level up. Tag effect objects with Where param is one of mhp, mmp, atk, def, mat, mdf, agi, luk And x is an integer indicating the amount of bonus. #============================================================================== =end $imported = {} if $imported.nil? $imported["Effect_LevelBonus"] = true #============================================================================== # ** Configuration #============================================================================== module Effects module Level_Bonus Effect_Manager.register_effect(:level_bonus, 2.1) end end #============================================================================== # ** Rest of the script #============================================================================== class RPG::BaseItem def add_effect_level_bonus(code, data_id, args) data_id = Effect_Manager::Param_Table[args[0].downcase] args[1] = args[1].to_i add_effect(code, data_id, args[1]) end end class Game_Battler < Game_BattlerBase def effect_level_bonus_level_up(obj, effect) add_param(effect.data_id, effect.value1) end alias :actor_effect_level_bonus_level_up :effect_level_bonus_level_up alias :class_effect_level_bonus_level_up :effect_level_bonus_level_up alias :weapon_effect_level_bonus_level_up :effect_level_bonus_level_up alias :armor_effect_level_bonus_level_up :effect_level_bonus_level_up alias :state_effect_level_bonus_level_up :effect_level_bonus_level_up end