Is there a custom script that changes what pictures certain events can call on?

mkrudesign

Villager
Member
Joined
Jun 11, 2019
Messages
7
Reaction score
0
First Language
English
Primarily Uses
RMMV
In my RPG, I use character portraits as pictures during cutscenes. in these events, I use "show picture" to display the character(s) on screen. What I want to know is, if there is a custom script or a plugin or something that would change what pictures those premade events call on.

As an example: Let's say I created an event that uses Show Picture: "character1Happy.png" in past events. I run a script that would instead make all events that use "character1Happy.png" call upon "character1ALTHappy.png" instead.

I want to see if I can make an event that changes a character's outfit and have that new outfit display in the events I've already made, without having to redo it one by one.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
39,402
Reaction score
12,939
First Language
English
Primarily Uses
RMMV
You could put the image name (without the .png) into a variable, then use a script call to show the picture rather than the Show Picture command, using the variable to provide the picture name.

So your event will change the character's outfit AND the variable with the picture name.

Your Show Picture command in each event will be replaced with a script call, but I can't give you the exact script call without seeing a screenshot of your Show Picture command, as the parameters passed in the script call would depend on what settings you use with the Show Picture.
 

mkrudesign

Villager
Member
Joined
Jun 11, 2019
Messages
7
Reaction score
0
First Language
English
Primarily Uses
RMMV
You could put the image name (without the .png) into a variable, then use a script call to show the picture rather than the Show Picture command, using the variable to provide the picture name.

So your event will change the character's outfit AND the variable with the picture name.

Your Show Picture command in each event will be replaced with a script call, but I can't give you the exact script call without seeing a screenshot of your Show Picture command, as the parameters passed in the script call would depend on what settings you use with the Show Picture.
Untitled-1.jpg
This is an example of one of my events. All of the events I've made are essentially done this same way. In this example, I would want this event to call on a different image for "Mila Default" and "Mila Frown" I have hundreds of events already written at this point so changing each event one by one is out of the question.

You mentioned putting the picture name into a variable. Would I still name to manually edit the event in this instance?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
39,402
Reaction score
12,939
First Language
English
Primarily Uses
RMMV
Yes, you would.

But if you already have hundreds of events and don't want to go back and change them now, you're better off seeing if someone can write a plugin that will intercept the Show Picture command and search for a "current substitute" for that picture.

I notice you have spaces in the name of a couple of your pictures there. That's going to cause you problems if you want to deploy to a non-Windows machine (mobile device or online, for instance).
 

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

Latest Threads

Latest Posts

Latest Profile Posts

The more I look at the QPlugins... The more I am amazed at what they can do. Which I'm not going to lie is pretty awkward, because I already consider them far and away the best plugins MV has to offer. :kaoback:
spending a week trying to figure out what was wrong with my font has me DED
504 threads to go upon the time of this post until the forum reaches 100k threads. Thread Dead Redemption. Thready Van Halen. Thread Zeppelin. Doesn't have to be a band or a game
Random thought: Looks like putting in effort in learning a language is like a taboo for most people. :kaoswt2:
Not sure about RPG Maker MZ ; We see a lot of things, but they could have enhanced a lot of things in MV first... We're at the era of updates nowadays, not new products over and over and over :/

Forum statistics

Threads
99,500
Messages
966,123
Members
131,132
Latest member
KaylaO
Top