Galv's Animated Battler Changing Battler on Class

Omegadragon8

Veteran
Veteran
Joined
Jul 21, 2015
Messages
99
Reaction score
40
First Language
English
Primarily Uses
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
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,669
First Language
German
Primarily Uses
RMMV
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...
 

Omegadragon8

Veteran
Veteran
Joined
Jul 21, 2015
Messages
99
Reaction score
40
First Language
English
Primarily Uses
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?
 

Omegadragon8

Veteran
Veteran
Joined
Jul 21, 2015
Messages
99
Reaction score
40
First Language
English
Primarily Uses
You can close this topic now thanks. I have solved the problem, though its in a roundabout and sloppy scripting way.
 
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,986
Members
137,561
Latest member
visploo100
Top