Guys Please HELP T.T

Hi there, i need help with scripts to change party leader (#1 member in party) 's walking graphic into the same walking graphic as another event/current event, plz
Thanks guys @.@
are you performing this via event command? if so:
Code:
var event = $gameMap.event(this._eventId);
$gameParty.leader().setCharacterImage(event.characterName(), event.characterIndex());
the first line grabs the instance of Game_Event which is currently processing the interpreter.
the second line matches the graphics.

**you can explicitly specify any event id when defining the event variable to match that event's graphics.
Just a recommendation for the future - everyone posting in the Support areas of the forum needs help. Please give a more descriptive title to your topics so that people have an idea of what the issue is before opening the thread. This also helps anyone in the future who has a similar query to find answers.

As for your actual query - Plugin Support is for when you have a query with an existing plugin. This sounds like you are requesting one. Is that right? Because if so, I shall have to move this.

But - do you even need a plugin? Have you tried the 'change actor images' (3rd tab of the event command menu) and if you have, why does it not meet your needs? We need more details of what you are trying to do if we are to give precise advice.
Sorry but it doesn't work @dbchest . After i talked to the Event NPC character graphic didn't change along
upload_2017-12-2_2-36-13.png


@Kes Sorry for didn't make it clear. I don't mean to setup change graphic event manually but automatically for every events that player is talking to
You need to add $gamePlayer.refresh();

So the whole thing would look like this:
Code:
var event = $gameMap.event(this._eventId);
$gameParty.leader().setCharacterImage(event.characterName(), event.characterIndex());
$gamePlayer.refresh();
This definitely sounds like it's a Request, so I shall move the thread.

However, you explanation raises more questions - is sounds as if what you mean is that you want the actor graphic to change into the same graphic as the NPC that the actor is talking to. So if he's talking to a man with green hair and a blue robe, he will be wearing a blue robe and have green hair. Or if he's talking to a young girl, he becomes a young girl. Is that what you mean? If not, please give a couple of examples of what you do mean. And you want this to happen automatically, not individually coded for each NPC. Is that right?

Moderator note: Moving this to JS Plugin Requests
i apologize. this is what you want:
Code:
var event = $gameMap.event(this._eventId);
var actor = $gameParty.leader();
actor.setCharacterImage(event.characterName(), event.characterIndex());
$gamePlayer.refresh();

edit
they beat me to it.
Awesome, thanks @dbchest & @waynee95 🙂 you guys ROCK!
Thanks @Kes i definitely will post in correct section next time, but i think for a few lines of scripts like this won't it be more properly to post this in Javascript support? (i supposed this shouldn't take too much lines of script from start :| but you're right i have made it too unclear to tell 🙁 sorry)
It cannot be in Javascript Support if you don't have the coding already. You are asking for it, so it goes in Requests.

Can this be closed now?
Sure, thank you for the information. Please close this thread, thanks again guys
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/guys-please-help-t-t.87961/