set_graphic is defined for
Game_Actor objects.
$game_player is a subclass of Game_Character, so it does not have access to that method. You could get around this by accessing
$game_party.actors or
$game_actors[ID] instead, but that gets pretty messy. Not to mention events (
Game_Event objects) aren't even Game_Actors, so you'd be screwed there.
There really is no easy script call to do this. So you will need to add this somewhere
class Game_Character
def set_graphic(character_name, character_hue)
@character_name = character_name
@character_hue = character_hue
end
end
which allows you to do the following script calls:
$game_player.set_graphic('001-Fighter01', 0)
$game_map.events[1].set_graphic('002-Fighter02', 180)
Granted with some line breaks in between since RMXP likes tiny textareas.