Started by Simon Greedwell, September 16, 2017, 05:10:30 pm
#============================================================================== # ** [XP] Wecoc's Tips & Tricks Battle Collection #------------------------------------------------------------------------------ # 78. Healing Mail #------------------------------------------------------------------------------ # Armadura que por cada paso que haces por el mapa llevándola, cura un poco # al que la lleva y sube un poco su inteligencia # Nota: El personaje que la lleva tiene que estar vivo #============================================================================== class Game_Party alias healing_mail_steps increase_steps unless $@ def increase_steps healing_mail_steps for actor in @actors next if actor.dead? if actor.armor3_id == 17 # ID de la armadura Healing Mail #-------- Efecto al andar -------------------------------------------- actor.hp += actor.maxhp / 10 if @steps % 10 == 0 actor.int += 1 end #--------------------------------------------------------------------- end end end end
#-------- Efecto al andar -------------------------------------------- actor.hp += actor.maxhp / 10 if @steps % 10 == 0 actor.int += 1 #<<<<<< Why int? end #---------------------------------------------------------------------
module HealMailConfig def self.heal_ability(id) case id #============================================================================== # Configure the HP and SP amounts healed with every step. # Format: # when ARMOR_ID then [HP_HEAL_AMOUNT, SP_HEAL_AMOUNT] #============================================================================== #---------------------------------------------------------------- BEGIN CONFIG when 1 then [1, 0] # Bronze Shield when 16 then [10, 5] # Mythril Armor when 28 then [0, 20] # Ring of Intelligence #---------------------------------------------------------------- END CONFIG else [0, 0] end endendclass Game_Party alias healing_mail_steps increase_steps unless $@ def increase_steps healing_mail_steps for actor in @actors next if actor.dead? [actor.armor1_id, actor.armor2_id, actor.armor3_id, actor.armor4_id].each do |armor_id| next if armor_id.nil? || armor_id == 0 heal = HealMailConfig.heal_ability(armor_id) actor.hp += heal[0] actor.sp += heal[1] end end endend