Blue Mage Script help
#1
So i'm trying to create a blue mage character. I've got a script for that allows me to choose the id numbers for blue magic and choose the ids of the sctors that are blue mages. The blue mage will learn a skill when attacked only. To get around the issue of enemy's not using helping skills on the mage (such as white wind from final fantasy) i have a script for a skill that controls the enemy (actually they just become an ally and can't be controlled) and they will use the healling skill, but the Blue Mage wont learn it even though it's working on them. Looking at the blue mage script it looks like it only set up to learn on a "hit", but i don't know how to add it for other skills like healling or status changing ones. Here the script im using

Code:
=begin
Fomar0153's Blue Mages Script

Changle Log
----------------------
1.0 -> 1.1 : Added notification when learning a new Skill
----------------------
Known bugs
----------------------
None
=end

class Game_Actor < Game_Battler

  # Edit to include the actor (character) id
  BlueMages = [1]
  # Edit to include all the skill ids of the skills you want your
  # blue mages to learn
  BlueMagic = [23, 26]

  #--------------------------------------------------------------------------
  # ● Aliased make_damage_value
  #--------------------------------------------------------------------------
  alias bluemagic_make_damage_value make_damage_value
  def make_damage_value(user, item)
    bluemagic_make_damage_value(user, item)
    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
end

class Scene_Battle < Scene_Base
  #--------------------------------------------------------------------------
  # ● New method add_text
  #--------------------------------------------------------------------------
  def add_text(text)
    @log_window.add_text(text)
  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 62 Yesterday, 03:09 AM
Last Post: JayRay
   Script compatibility help Lord Vectra 3 4,603 07-25-2021, 11:42 PM
Last Post: DerVVulfman
   Adding face script on Cogwheel's RTAB Battle Status rekkatsu 15 15,839 08-25-2020, 03:09 AM
Last Post: DerVVulfman
   "Wait" in the script Whisper 13 16,160 04-28-2020, 04:06 PM
Last Post: Whisper
   Skill Cooldown script Fenriswolf 11 16,438 12-10-2019, 11:10 AM
Last Post: Fenriswolf
   Help iwth script (RGSS Player crash) Whisper 3 8,532 06-17-2017, 05:03 PM
Last Post: Whisper
   Help modifying a script Keeroh 7 10,213 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,855 05-31-2017, 05:10 AM
Last Post: Zachariad
   Actor names in Quest Script jreagan406 5 8,638 03-07-2017, 08:06 AM
Last Post: JayRay
   Bizarre issue with Lanzer counter script. Steel Beast 6Beets 2 7,247 10-04-2016, 11:46 AM
Last Post: Steel Beast 6Beets



Users browsing this thread: 1 Guest(s)