=begin #============================================================================== ** Effect: Rare Candy Author: Hime Date: Oct 4, 2012 ------------------------------------------------------------------------------ ** Change log Oct 4, 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://www.rpgmakervxace.net/topic/7395-effect-manager/) ------------------------------------------------------------------------------ This script adds 'rare candy' effect to an item/skill, which will increase your level by 1 when used. Just tag your item with For some integer n that determines how many times your level will increase #============================================================================== =end $imported = {} if $imported.nil? $imported["Effect_RareCandy"] = true #============================================================================== # ** Configuration #============================================================================== module Effect module Rare_Candy Effect_Manager.register_effect(:rare_candy) end end #============================================================================== # ** Rest of the script #============================================================================== module RPG class UsableItem def add_effect_rare_candy(code, data_id, args) args[0] = args[0].to_i add_effect(code, data_id, args) end end end class Game_Battler def item_effect_rare_candy(user, item, effect) # stub end end class Game_Actor def item_effect_rare_candy(user, item, effect) level_times = effect.value1[0] change_level(@level + level_times, false) @result.success = true end end