Blue Mage Script help
#4
I've figured it out on my own. adding the following gave me what i was looking for:

Code:
#--------------------------------------------------------------------------
  # ● Aliased item_effect_recover_hp
  #--------------------------------------------------------------------------
  alias bluemagic_item_effect_recover_hp item_effect_recover_hp
  def item_effect_recover_hp(user, item, effect)
    bluemagic_item_effect_recover_hp(user, item, effect)
    if @result.hit? and item.class == RPG::Skill
      if BlueMages.include?(@actor_id) and BlueMagic.include?(item.id)
        i = @skills.size
        learn_skill(item.id)
        if !(i == @skills.size)
          SceneManager.scene.add_text(actor.name + " learns " + item.name + ".")
        end
      end
    end
  end
  
  #--------------------------------------------------------------------------
  # ● Aliased item_effect_recover_mp
  #--------------------------------------------------------------------------
  alias bluemagic_item_effect_recover_mp item_effect_recover_mp
  def item_effect_recover_mp(user, item, effect)
    bluemagic_item_effect_recover_mp(user, item, effect)
    if @result.hit? and item.class == RPG::Skill
      if BlueMages.include?(@actor_id) and BlueMagic.include?(item.id)
        i = @skills.size
        learn_skill(item.id)
        if !(i == @skills.size)
          SceneManager.scene.add_text(actor.name + " learns " + item.name + ".")
        end
      end
    end
  end
  
  #--------------------------------------------------------------------------
  # ● Aliased item_effect_gain_tp
  #--------------------------------------------------------------------------
  alias bluemagic_item_effect_gain_tp item_effect_gain_tp
  def item_effect_gain_tp(user, item, effect)
    bluemagic_item_effect_gain_tp(user, item, effect)
    if @result.hit? and item.class == RPG::Skill
      if BlueMages.include?(@actor_id) and BlueMagic.include?(item.id)
        i = @skills.size
        learn_skill(item.id)
        if !(i == @skills.size)
          SceneManager.scene.add_text(actor.name + " learns " + item.name + ".")
        end
      end
    end
  end
  
  #--------------------------------------------------------------------------
  # ● Aliased item_effect_add_state
  #--------------------------------------------------------------------------
  alias bluemagic_item_effect_add_state item_effect_add_state
  def item_effect_add_state(user, item, effect)
    bluemagic_item_effect_add_state(user, item, effect)
    if @result.hit? and item.class == RPG::Skill
      if BlueMages.include?(@actor_id) and BlueMagic.include?(item.id)
        i = @skills.size
        learn_skill(item.id)
        if !(i == @skills.size)
          SceneManager.scene.add_text(actor.name + " learns " + item.name + ".")
        end
      end
    end
  end
    
  #--------------------------------------------------------------------------
  # ● Aliased item_effect_remove_state
  #--------------------------------------------------------------------------
  alias bluemagic_item_effect_remove_state item_effect_remove_state
  def item_effect_remove_state(user, item, effect)
    bluemagic_item_effect_remove_state(user, item, effect)
    if @result.hit? and item.class == RPG::Skill
      if BlueMages.include?(@actor_id) and BlueMagic.include?(item.id)
        i = @skills.size
        learn_skill(item.id)
        if !(i == @skills.size)
          SceneManager.scene.add_text(actor.name + " learns " + item.name + ".")
        end
      end
    end
  end
  
  #--------------------------------------------------------------------------
  # ● Aliased item_effect_add_buff
  #--------------------------------------------------------------------------
  alias bluemagic_item_effect_add_buff item_effect_add_buff
  def item_effect_add_buff(user, item, effect)
    bluemagic_item_effect_add_buff(user, item, effect)
    if @result.hit? and item.class == RPG::Skill
      if BlueMages.include?(@actor_id) and BlueMagic.include?(item.id)
        i = @skills.size
        learn_skill(item.id)
        if !(i == @skills.size)
          SceneManager.scene.add_text(actor.name + " learns " + item.name + ".")
        end
      end
    end
  end
    
  #--------------------------------------------------------------------------
  # ● Aliased item_effect_add_debuff
  #--------------------------------------------------------------------------
  alias bluemagic_item_effect_add_debuff item_effect_add_debuff
  def item_effect_add_debuff(user, item, effect)
    bluemagic_item_effect_add_debuff(user, item, effect)
    if @result.hit? and item.class == RPG::Skill
      if BlueMages.include?(@actor_id) and BlueMagic.include?(item.id)
        i = @skills.size
        learn_skill(item.id)
        if !(i == @skills.size)
          SceneManager.scene.add_text(actor.name + " learns " + item.name + ".")
        end
      end
    end
  end
Reply }


Messages In This Thread
Blue Mage Script help - by chameleon1333 - 08-20-2013, 06:28 AM
RE: Blue Mage Script help - by chameleon1333 - 08-24-2013, 04:28 AM
RE: Blue Mage Script help - by Ahzoh - 08-24-2013, 04:36 AM
RE: Blue Mage Script help - by chameleon1333 - 08-24-2013, 09:53 AM
RE: Blue Mage Script help - by DerVVulfman - 08-24-2013, 11:39 PM
RE: Blue Mage Script help - by Ahzoh - 08-24-2013, 11:45 PM
RE: Blue Mage Script help - by DerVVulfman - 08-24-2013, 11:57 PM
RE: Blue Mage Script help - by Ahzoh - 08-25-2013, 12:15 AM
RE: Blue Mage Script help - by chameleon1333 - 08-25-2013, 09:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   Plugin or Script help with Item menu, SKill menu, and Equip menu JayRay 2 64 11-20-2024, 03:09 AM
Last Post: JayRay
   Script compatibility help Lord Vectra 3 4,605 07-25-2021, 11:42 PM
Last Post: DerVVulfman
   Adding face script on Cogwheel's RTAB Battle Status rekkatsu 15 15,854 08-25-2020, 03:09 AM
Last Post: DerVVulfman
   "Wait" in the script Whisper 13 16,170 04-28-2020, 04:06 PM
Last Post: Whisper
   Skill Cooldown script Fenriswolf 11 16,449 12-10-2019, 11:10 AM
Last Post: Fenriswolf
   Help iwth script (RGSS Player crash) Whisper 3 8,534 06-17-2017, 05:03 PM
Last Post: Whisper
   Help modifying a script Keeroh 7 10,221 06-11-2017, 04:43 PM
Last Post: DerVVulfman
Question  Mog Menu script: help me stop the crazy picture movement during transitions Zachariad 4 9,858 05-31-2017, 05:10 AM
Last Post: Zachariad
   Actor names in Quest Script jreagan406 5 8,641 03-07-2017, 08:06 AM
Last Post: JayRay
   Bizarre issue with Lanzer counter script. Steel Beast 6Beets 2 7,248 10-04-2016, 11:46 AM
Last Post: Steel Beast 6Beets



Users browsing this thread: 2 Guest(s)