Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[VX] Blue Mage

Well RMVX is out now, I don't have much free time for a few days but I wanted to try out RMVX before I go back to coursework and this is what I decided to do. Ok now for the punchline, I'm exceedingly busy so I will not help anyone with this script if you can't follow the instructions, for atleast the next couple of days. Sorry about that but I am very busy.
Anyway the instructions are in the script:

Code:
=begin
Blue Mage
by Fomar0153
Version 1.0.0

Instructions
Ok this is pretty simple, you copy the script and paste it below Materials
in the script editor at which point you need to find the two lines:
  BlueMages = [1, 2, 3, 4]
  BlueMagic = [1, 2, 3, 4, 5, 6, 7, 8]
  BlueMagic = [1, 2, 3, 4, 5, 6, 7, 8]
Which are the lines you need to edit the first line tells the script
who the blue mage/s are, the numbers refer the actor's id in the database
for example:
  BlueMages = [1, 2, 3, 4]
means Ralph, Ulrika, Bennett and Ylva are blue mages
  BlueMages = [4]
means Ylva is the only blue mage
The other line:
    @bluemagic = [1, 2, 3, 4, 5, 6, 7, 8]
Tells the script which skills can be learnt by the blue mage the numbers once
again reference the skill's id in the database.
You can edit the blue mages and the skills they can learn during the course
of the game by using the script event for example to add a mage:
$game_party.bluemages.push(5)
To remove a mage:
$game_party.bluemages.delete(5)
To add magic:
$game_party.bluemagic.push(9)
To remove magic:
$game_party.bluemagic.delete(9)

And that's all my instructions so I hope you found them useful and enjoy using
this script.
=end

class Game_Party < Game_Unit
  
  attr_accessor :bluemages
  attr_accessor :bluemagic
  
  alias blue_mage_initialize initialize
  def initialize
    blue_mage_initialize
    @bluemages = [1, 2, 3, 4]
    @bluemagic = [1, 2, 3, 4, 5, 6, 7, 8]
  end
  
  def blue_mage?(id)
    return @bluemages.include?(id)
  end
  
  def blue_magic?(id)
    return @bluemagic.include?(id)
  end
  
end

class Scene_Battle
  
  alias blue_mage_execute_action_skill execute_action_skill
  def execute_action_skill
    blue_mage_execute_action_skill
    skill = @active_battler.action.skill
    targets = @active_battler.action.make_targets
    for target in targets
      if target.actor?
        if $game_party.blue_mage?(target.id) and $game_party.blue_magic?(skill.id)
          unless target.skill_learn?(skill)
            target.learn_skill(skill.id)
            wait(10)
            @message_window.add_instant_text(target.name + " learns " + skill.name)
            wait(60)
          end
        end
      end
    end
  end
  
end
 

Jason

Awesome Bro

Wow Formar, you were very quick to release this, and it's a great script, I loved BM on XP, and if I ever get into the swing of VX (Using trial at the mo), I'll use this for sure :thumb:
 

Godot

Member

Kraft":1ls3zcn6 said:
What is a blue mage?

I have never heard of that before, and the script didnt help me much...

Traditionally, a Blue Mage is a mage that learns enemy skills. Usually by being attacked by those very skills.
 
Yep, and Blue Mage had various incarnations in how you can take the class/job.

For instance, in FFXI, Blue Mages need to physically see the skill used to learn it, but they also have to defeat the monster, say offensive attacks like Radiant Breath has to be used on the Blue Mages to learn it, but defensive skills like Metallic Body the Blue Mage has to see it to learn it but also will only learn by defeating said mob.

Basically its a "mime" class.
 
I've got a problem with the script. The blue mage can learn any moves, and if I use a move on myself (say, cure), when the mage isn't in the party, the script messes up and I get a debug message..
 
I couldn't get the error, I removed all the blue mages from the party then cast spells on myself and had the enemy cast spells on, both ones the blue mage can learn and not learn. Did I do something different to you?
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top