Guys Please HELP T.T

Status
Not open for further replies.

Isabella Ava

Veteran
Veteran
Joined
Sep 13, 2016
Messages
635
Reaction score
756
First Language
English
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 @.@
 

dbchest

Beast Master
Veteran
Joined
Oct 1, 2013
Messages
434
Reaction score
306
First Language
English
Primarily Uses
RMMV
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.
 
Last edited:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
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.
 

Isabella Ava

Veteran
Veteran
Joined
Sep 13, 2016
Messages
635
Reaction score
756
First Language
English
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
 

waynee95

Inactive
Veteran
Joined
Jul 2, 2016
Messages
682
Reaction score
598
First Language
German
Primarily Uses
RMMV
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();
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
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?

[mod]Moving this to JS Plugin Requests[/mod]
 

dbchest

Beast Master
Veteran
Joined
Oct 1, 2013
Messages
434
Reaction score
306
First Language
English
Primarily Uses
RMMV
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.
 

Isabella Ava

Veteran
Veteran
Joined
Sep 13, 2016
Messages
635
Reaction score
756
First Language
English
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)
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
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?
 

Isabella Ava

Veteran
Veteran
Joined
Sep 13, 2016
Messages
635
Reaction score
756
First Language
English
Sure, thank you for the information. Please close this thread, thanks again guys
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,050
Members
137,571
Latest member
grr
Top