Is it possible to change the battler graphic and the charset graphic independently of each-other wit

I'm working on a project right now, and I was thinking of creating an event system where the player would be able to chose their charset and their battler graphic. However, it seems that the only battler changing event there is, is one that changes both the battler graphic and the charset graphic at the same time. This is a problem, for I would like the player to be able to chose their own combination. Is it possible to change the battler graphic and the charset graphic independently of each-other with events? Thanks in advance.
You can change the graphic in the event command. It's the third tab at the bottom of the list called Change Actor Graphic and you can change them independently for each actor. As for the letting the player change them you'll need a plugin for that.
This can be done via script calls in events.


https://docs.google.com/spreadsheets/d/1-Oa0cRGpjC8L5JO8vdMwOaYMKO75dtfKDOetnvh7OHs/edit#gid=0


See cell number 126.

Thanks! This ought to help me noicely ^_^


edit: actually, wait a minute, these are for MV, not XP... sorry about that! I need to know how to do this in rpgmaker xp.
Ah, whoops. Sorry! I should've read the maker version.


Hang on, finding...


edit @SWAMPFOOT9000:


Add this snippet somewhere:


class Game_Actor
def set_sprite(character_name)
@character_name = character_name
end
def set_battler(battler_name)
@battler_name = battler_name
end
end


Then use this to change character sprite:


$game_actors[ID].set_sprite("characterset_filename")
$game_player.refresh


and $game_actors[ID].set_battler("filename") to set battler images.
Ah, whoops. Sorry! I should've read the maker version.


Hang on, finding...


edit @SWAMPFOOT9000:


Add this snippet somewhere:



class Game_Actor
def set_sprite(character_name)
@character_name = character_name
end
def set_battler(battler_name)
@battler_name = battler_name
end
end


Then use this to change character sprite:



$game_actors[ID].set_sprite("characterset_filename")
$game_player.refresh


and $game_actors[ID].set_battler("filename") to set battler images.

Thanks! (But what exactly am I supposed to put in place of the "ID", I tried "1" and it said I have a wrong number of arguments.)
I borrowed that from Ace's script call collection, so I'm not too sure how that will work with XP. It seems that there is a problem, though, so I'll look into it more tomorrow.


Try searching a bit for how to reference to an actor via script in XP.
Try $game_actor instead of game_actors. Not sure if this will work, can't test right now.
Try $game_actor instead of game_actors. Not sure if this will work, can't test right now.

Its says that "[]" is an undefined method for NilClass 🙁
Tested, confirmed works:


In event, script, do this:


actor = $game_actors[1]
actor.set_sprite("018-Thief03.png")
$game_player.refresh()


or use set_battler to do the other thing.


edit: so generally it would be this:

Code:
actor = $game_actors[ID]
actor.set_sprite("IMAGE.png")
$game_player.refresh()

Original thread: https://forums.rpgmakerweb.com/threads/is-it-possible-to-change-the-battler-graphic-and-the-charset-graphic-independently-of-each-other-wit.58900/