I tried searching the database and all I could find was @tile_id and set_graphic. Set graphic seems to give me errors while tile_id feels like it's for terrain. Can anyone give me an example call snippet for changing the in game graphic for events or player?
What I've tried -
$game_player.set_graphic('1139', 0, 2, 0)
$game_map.events[2].set_graphic('1139', 0, 2, 0)
Thanks.
Why are you trying to do it via script calls? There are commands to do both.
If you MUST use script calls, look at Game_Interpreter and search for the name of the button that changes the actor graphic (so if it's Change Graphic on the button, search for Change Graphic in Game_Interpreter). That will take you to the code that executes when you use that command. Look at Game_Character for the changing of event graphics.
The parameters will be whatever you enter when you use the event commands. First one will be the file name, and I think XP might also add the hue? I'm not sure if that's an array - don't have it with me so can't check. But if you find those commands in Game_Interpreter and Game_Character that'll at least give you the format.
Change graphics.
I'm trying to call the entire thing at this point. I've been trying different things all day just to find the code for "change graphic" for both the player and events.
---What I'm trying now---
move_route = RPG::MoveRoute.new
move_route.repeat = false
move_route.skippable = true
m = RPG::MoveCommand.new
m.code = 41
move_route.list.insert(0,m.clone)
$game_map.events[1].force_move_route("001-Fighter01", 0, 2, 0)
Game Actor
set_graphic(character_name, character_hue, battler_name, battler_hue)
Interpreter
actor.set_graphic(@parameters[1], @parameters[2],
@parameters[3], @parameters[4])
Edit: I've found it
$game_actors[1].set_graphic('001-Fighter01', 0, '001-Fighter01', 6)
$game_player.refresh
for player and for events I'll just do it semi manually with event pages and variables. I've tried everything and the kitchen sink with this stupid engine and it has errored me out every bloody time.
Double-post notice: RoseofCrimson
In fact this is a triple post. If you want to add something, just edit your earlier post and include the additional info/comment.
Okay. I found a solution.