A Graphic Change Script Functional with Symphony + Holder

So, I am in the process of creating a project where two of the big pieces are Battle Engine Symphony, and Holder-style sprites. I am planning to have multiple transformation states, wherein one actor switches to another, gaining new skills, stat boosts, etc. And while I have the mechanical part of that system sorted out the Graphical is...proving difficult.

What I am trying to achieve is having the actor apply a state, and along with all the new skills, stat boosts, etc (which I have figured out) I am unable to change the characters graphic to reflect the change in form within the battle itself.

I have tried a variety of scripts (Victors State Graphics, Neon Black's Graphic Change, and Tsukihime's effect manager + change graphic effect) but I have been unable to produce the needed results (though that could certainly be through my own failure to understand the script instructions, but I've tried my damnedest) and from what I can discern, there seems to be an issue pertaining to the style of the Holder battlers in conjunction with how BES handles where it takes its battle graphics from. I was hoping someone was either aware of a graphic change script that would function properly with BSE and Holder Sprites, or would be able to create one for me.

If any more information is needed that I failed to provide, just ask and I'll answer to the best of my abilities.

Thanks in advance to all.

Cheers.
I made one for classes, I can do it for states!  You want for both actors and enemies right?  And the graphic change is tied to the state/is the same regardless of who the state is on?  The following code was made with that assumption in mind.


#===============================================================================
# Script: Symphony Holder Graphic change by State
# Author: Selchar
# Requestor: Slasherzeta
# Credits: Yami
#===============================================================================
=begin
This is an extention of Yami's Holder Battler addon for Battle Engine Symphony.
It allows for different battlers based on states

#-------------------------------------------------------------------------------
# State
#-------------------------------------------------------------------------------
<state holder battler: filename>

=end
#===============================================================================
# The script
#===============================================================================
$imported ||= {}
unless $imported["BattleSymphony-HB"]
msgbox('Symphony Holder Add-On not detected, exiting')
exit
end

class Game_Actor < Game_Battler
alias :sel_state_holders_name :holders_name
def holders_name
return state_holder_name? if state_holder_name?
return sel_state_holders_name
end

def state_holder_name?
states.each {|i| return i.state_holder_name if i.state_holder_name}
return false
end
end

class Game_Enemy < Game_Battler
alias :sel_state_holders_name :holders_name
def holders_name
return state_holder_name? if state_holder_name?
return sel_state_holders_name
end

def state_holder_name?
states.each {|i| return i.state_holder_name if i.state_holder_name}
return false
end
end

class RPG::State
def state_holder_name
if @state_holder_name.nil?
if self.note =~ /<state[-_ ]?holder[-_ ]?battler:\s*(.*)\s*>/i
@state_holder_name = $1
else
@state_holder_name = false
end
end
@state_holder_name
end
end
#===============================================================================
# End of File
#===============================================================================




Hope it works the way you want it to.
That is absolutely perfect! Just tested it, and works like a charm! I've been fighting this issue for days, so you have no idea how thankful I am right now. Thank you so much!
how does this work?  where do the tags go?  
Sorry to sound idiot, when i get it to test, i get this error 


i did ordering the script from the raw paste Selchar made above.. and i get confused, did i mess up something ?  

Problem 2.png

Problem.png
Here is the detail of upper code 

problem 3.png
I assume that the lines where it says:


return state_holder_name?


Should continue with the next line which is:


if state_holder_name?


So, that two line should be merged into this one:


return state_holder_name? if state_holder_name?


The rest of the code seems okay.
Sixth is correct.  I've edited my saved copy of the script back into my previous post so that it's once again easier to copy, not that one long line it was for some reason.  That begin was also supposed to be =begin, and there was a corresponding =end.
Thanks a bunch guys,  it does work !!  now how do you change the stats, skill, and everything else 


so it appears it is fully changed from actor A to actor B ?? through of it,


i test it combine with Tsukuhime script with Shape shift ability, and there 


is no issue about it, so it do have high compatibilty with it . Nicely work ! I love it 🙂   

Original thread: https://forums.rpgmakerweb.com/threads/a-graphic-change-script-functional-with-symphony-holder.23700/