Galv's Animated Battler Changing Battler on Class

Hi all, I need a scriptlet for galv's animated battler script version 1.3 (http://galvs-scripts.com/galvs-animated-battlers/) that would allow me to change the battler being used when the character changes class (hopefully in battle, as the characters change class depending on what weapons they are currently using). Also I need to find out how to set the other note tags to register via class instead of battlers (such as the melee: x tag). Please take a look for me 🙂

I am no scripter (I "Frankenscript"), but I think the problem lies somewhere on these lines if it helps get anyone started :

236  def setup_animated_battler

237    @pose = 0

238   @move_speed = 0

239    char = actor? ? actor : enemy

240    @animated_battler = $1 if char.note =~ /<battler:[ ](.*)>/i

241  end
I've moved this thread to Script Support. Please be sure to post your threads in the correct forum next time. Thank you.

Scripts is for presenting completed scripts...
I have solved part of the above problem. 
 


 def class_animated

    $data_classes[@class_id]

  end

  

  def setup_animated_battler

    @pose = 0

    @move_speed = 0

    char = actor? ? class_animated : enemy

    @animated_battler = $1 if char.note =~ /<battler:[ ](.*)>/i

  end

and now all of my battlers are registered by class. However this is not updating the class graphic during the weapon equip in battler (which automatically changes the characters class via the following script)

module EQUIP_CLASS

 

  WEAPON_TYPE_ID = {}

  WEAPON_TYPE_ID[1] = 2 # WEAPON_TYPE_ID[Weapon Type ID] = Class ID.

  WEAPON_TYPE_ID[2] = 1

 

end

 

class Game_Actor < Game_Battler

 

 

  

  alias equip_change_equip change_equip

    def change_equip(slot_id, item)

       equip_change_equip(slot_id, item)

          case slot_id

          when 0 

            unless item.nil?

              class_id = EQUIP_CLASS::WEAPON_TYPE_ID[item.wtype_id]

            end

              if class_id != nil

                change_class(class_id, true)

                init_exp

                init_skills

              end

            end

                       

        end

  end

Outside of battle everything is working perfectly, inside not so much. Can somebody please show me how I can have the animated battler graphic update during battle before leaving the equip screen?
You can close this topic now thanks. I have solved the problem, though its in a roundabout and sloppy scripting way.
 

Original thread: https://forums.rpgmakerweb.com/threads/galvs-animated-battler-changing-battler-on-class.42894/