I searched the forum and checked the master script list and I didn't find anything. I'm looking for a way to set an event to use the same Sprite as a set actor. That way if the Actor sprite changes the event uses the new sprite. I know this can be easily evented im most cases, but I need several events to look like sevaral differant actors each with sevaral possible sprites. I can event this if I have to, but it would take forever. If anyone knows of a script or another simple way to acomplish this I would apreaciate the info. If nothing exists, but you know a way to script this I would really apreaciate the help. Thank you for taking the time to read this.
Replace event Graphic with Actor Graphic
RGSS3 Script RequestsYou can change an event's graphic by calling the set_graphic method and passing the character name and character index.
So, to change an event's graphic to the same as one of your actors, you could do this in a move route:
Set Move Route (EV001): Script: set_graphic($game_actors[id].character_name, $game_actors[id].character_index)Or in a Call Script event command (not in the move route):
and use any of the following to reference the actor:
$game_player
$game_actors[id]
$game_party.leader
$game_party.members[index] (0 is leader)
$game_party.followers[index] (0 is first follower, 3 is last follower)
So, to change an event's graphic to the same as one of your actors, you could do this in a move route:
Set Move Route (EV001): Script: set_graphic($game_actors[id].character_name, $game_actors[id].character_index)Or in a Call Script event command (not in the move route):
Code:
Call Script: $game_map.events[event_id].set_graphic($game_actors[id].character_name, $game_actors[id].character_index)
$game_player
$game_actors[id]
$game_party.leader
$game_party.members[index] (0 is leader)
$game_party.followers[index] (0 is first follower, 3 is last follower)
Thank's thats exactly what I was looking for.
Now that is some valuable information
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/replace-event-graphic-with-actor-graphic.19137/