Change Event Image to Actor Image

Status
Not open for further replies.

Blue001

Veteran
Veteran
Joined
Jan 13, 2014
Messages
231
Reaction score
112
First Language
English
Primarily Uses
RMMV
I think this is a fairly simple request, but I could be mistaken. It could also already be possible through a script call I am unaware of...

Basically I need a single function that lets me set an events graphic to the graphic of an actor via events.

I checked out events, and so far can't find a way to set an event dynamically to the current graphic of an actor in the database.

I am using my actors database to store multiple 'units' and their stats for a on map minigame system.

Something like a script or plugin call "match Y graphic : X" where Y is the event, and X is the actor ID. Y could be set to THIS to work in the event calling the function.

Thanks!
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
Could you tell us why either the Change Actor graphic command in the event command menu or in Set Move Route won't work. That will help us give more precise help.
 

Blue001

Veteran
Veteran
Joined
Jan 13, 2014
Messages
231
Reaction score
112
First Language
English
Primarily Uses
RMMV
Change Actor graphic works for the player and his followers only, which is fine. I plan to use that event function to change each actors graphic as the game progresses to show new outfits and such. But if I change an actors graphic 10-15 times over the course of the game, or let the player choose their graphic, and I want to display that party member somewhere on the map as an event, in a story sequence... without setting up 10-15 variable checks for each possible actor graphic for that one actor and having each page of the event be different, just to make their appearance correct, it becomes convoluted, time consuming and complicated.

Basically, when having an actor show up on a map as an event for story sequences or to give a visual representation of their current location when they are not in the party... being able to just pull and copy the actors graphic and apply it to the event would help greatly.

Set move route only lets you set a specific graphic file directly and not source anything like an actors current graphic. So you would again have to make countless variable checks to do this.

So what I need is a quick way to check an actor's current graphic and change the event to match it. No conditional branches required.

"Set Event Graphic To Match Actor X"
 

Iavra

Veteran
Veteran
Joined
Apr 9, 2015
Messages
1,797
Reaction score
863
First Language
German
Primarily Uses
This should do it:

Code:
var actor = $gameActors.actor(1);  // Or whatever actor you want.var event = $gameMap.event(1);     // Or whatever event you want.event.setImage(actor.characterName(), actor.characterIndex());
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
In Ace, I had a script that allowed you to use a special image that would automatically take on the form of a specific actor, or a specific party member.


It was called Placeholder Graphics, and basically worked like this:





So you had some "dummy" pictures that get replaced during the game.


I can port it over if that works.
 
Last edited by a moderator:

Blue001

Veteran
Veteran
Joined
Jan 13, 2014
Messages
231
Reaction score
112
First Language
English
Primarily Uses
RMMV
This should do it:

var actor = $gameActors.actor(1); // Or whatever actor you want.var event = $gameMap.event(1); // Or whatever event you want.event.setImage(actor.characterName(), actor.characterIndex());
Thanks! This will let me do what I need, until/unless Tsukihime makes her plugin port over.

In Ace, I had a script that allowed you to use a special image that would automatically take on the form of a specific actor, or a specific party member.

It was called Placeholder Graphics, and basically worked like this:

So you had some "dummy" pictures that get replaced during the game.

I can port it over if that works.
That is actually exactly what I need.
 

Tatsumaro

Veteran
Veteran
Joined
Aug 11, 2016
Messages
205
Reaction score
40
First Language
Portugues
Primarily Uses
RMMV
im using SDR to create a character, i was using the EST - ACTOR EVENT to do this but is not compatible whit the SDR code, any suggestions?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
[necro]Tatsumaro[/necro]

Please make your own topic for your own problem
 
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,867
Messages
1,017,062
Members
137,575
Latest member
akekaphol101
Top