MZ Common Event not calling images. [SOLVED]

Hello! 👋

I've been trying to use a common event to call dialogue balloon tails using a variable-controlled conditional statement. For example, if the variable balloonTail ==2, a side balloon tail would be called onto the screen, and if balloonTail==1, a top balloon tail would be called.

However, when I tried calling that common event (whether through a switch-operated parallel process or directly in another event), the balloon tails never appeared on screen.

Even though I used a plugin in this screenshot (Eli's Picture Manager Plugin), I don't think this is a plugin-related issue, because I tested this in a vanilla RMMZ game and it didn't work.

Here are screenshots of my common event.

pictureplugin_1.PNG
pictureplugin_2.PNG


Thanks for reading! If there's a vanilla or plugin-based solution, please let me know. 😤
I think it's because it's not a nested if statement. An important thing to think about during coding is the logic flow of your programming.

Firstly, It checks if MessageTail is equal to 2, if true then it does the plugin command.
Then it checks if MessageTail is equal to 1, if true then it does the plugin command HOWEVER, if it's false then it erases the picture.

That means if you were trying to get the plugin command from the first if statement, it wouldn't work because it's also checking and activating the if else's in the second if statement.

An easy way to solve this is by putting the second if statement in the if else of the first if statement.
Sorry if this is confusing, I get pretty wordy.

EDIT: OMG I DIDN'T READ IT PROPERLY IGNORE EVERYTHING I SAID
Yea so I tried replicating this with no plugins and it worked perfectly for me. My only guess would be some unnoticed mistake. Have you tried calling the plugin commands without any if statements? If the picture isn't showing there then it might be the arguments you put in. Sry for wasting your time mb
You haven't showed what you tried without the plugin.

I know that event commands that give you a list of events to choose from as the target can't run in certain circumstances. They can't run in battle, obviously, and unless the target is the player, they may be unable to run after a transfer command in the same event. (To be precise, they can't run if the map is different from the one the event started on.) I'm not sure whether they work in parallel or autorun common events; I couldn't see a reason why they wouldn't, but I didn't actually try it.

However, given that your actual code is all based on a plugin, I don't know whether any of the above is relevant. It could be, I just don't have enough information to judge.
You haven't showed what you tried without the plugin.

I know that event commands that give you a list of events to choose from as the target can't run in certain circumstances. They can't run in battle, obviously, and unless the target is the player, they may be unable to run after a transfer command in the same event. (To be precise, they can't run if the map is different from the one the event started on.) I'm not sure whether they work in parallel or autorun common events; I couldn't see a reason why they wouldn't, but I didn't actually try it.

However, given that your actual code is all based on a plugin, I don't know whether any of the above is relevant. It could be, I just don't have enough information to judge.
Right, sorry about that!

So, the vanilla RMMZ project test I mentioned earlier was an error on my end. I forgot to add a switch, and now the image calls work there. However, when I turn off all of my plugins in my main game project, and then try to repeat the same thing with RMMZ's base image calling function, it doesn't work. I also tried moving the image positions around and nothing showed up.

Here's my map, the event that calls the common event, and the vanilla version of the common event I have. I've also included a list of plugins I have in my project.
Okay, so it's just pictures. That should work everywhere no matter what. The only thing I notice is that the vanilla version of the common event is not a parallel event… so, you've called it once only, when it seems like what you really want is for it to be called before each Show Text.
Okay, so it's just pictures. That should work everywhere no matter what. The only thing I notice is that the vanilla version of the common event is not a parallel event… so, you've called it once only, when it seems like what you really want is for it to be called before each Show Text.
Yeah, I forgot to mention that it doesn’t work even as a Parallel Event… I fiddled with that too.
It's possible for parallel event commands to be executed in the middle of other events, but I don't think you can rely on this, as exactly what is executed when can be unpredictable. If I understand correctly, what you really want is for this common event to be executed before every Show Text, is that right?

If it works when you manually insert a call to the Common Event before each Show Text, then we could come up with a way to automatically call it before every Show Text if that's what you want.
Hi there!
Maybe you have another event showing a picture with ID 12(either a map event or a parallel one that is running on the background)?

Can you try testing this without any plugin(like you did before) but also on a brand new map with only the event you use for this?

Did you try changing the picture ID?

Maybe you have two variables with the same name, but different ids, and is using the wrong one on the conditional Branch?

You can also try show a text on each branch of the conditional statements on the common event, to see if the common event is really calling.

If none of that works, you can upload the projects and send me in private message(since there seems to be paid plugins there). I'm curious to take a look.
Morning everyone! I'm more awake now, so I'll give you my current findings with this issue.

So, it seems this issue is caused by two plugins conflicting with my image display system: MultiTweaks and the entire TRP_SkitMZ suite. Both plugins are important to my project (former handles zooms and latter handles my character portrait system), but when I turn them off, the image I called displays again.

That said @Eliaquim I did notice that your PicturesManager plugin did not work with the Common Event I called. I'll DM you with the project file, if that's alright.
Morning everyone! I'm more awake now, so I'll give you my current findings with this issue.

So, it seems this issue is caused by two plugins conflicting with my image display system: MultiTweaks and the entire TRP_SkitMZ suite. Both plugins are important to my project (former handles zooms and latter handles my character portrait system), but when I turn them off, the image I called displays again.

That said @Eliaquim I did notice that your PicturesManager plugin did not work with the Common Event I called. I'll DM you with the project file, if that's alright.
Yes, you can send me the project on pm! ^^
Yes, you can send me the project on pm! ^^
Just DMed you on Discord with the file!
The issue has been solved!

After some tinkering (with @Eliaquim 's help) I found a solution to my message box problem. Below are images of the working Common Event and an explanation, as well as screenshots of the final result.

tailsystem_final.PNG

tailsystem_final_2.PNG

tailsystem_final_3.PNG


What I did was:
  1. Create a conditional branch with a variable, MessageTail.
  2. In each instance of the conditional branch, give a second variable (TailTypeFileName) the filename for an image in images/pictures/. So if MessageTail ==2, TailTypeFileName == "dialogue_box_tail"
  3. Create another conditional branch with the MessageTail variable, and place it below the first branch.
  4. Use Eli's Picture Manager MZ plugin to add coordinates to the tail message image. Note how the filename is \v[47] -- the TailTypeFileName variable.
And your result should be something like this!
(I used a similar Common Event system to manage the special nameboxes in my game, which is why they're there.)

tailsystem_showcase_1.PNG

tailsystem_showcase_2.PNG

tailsystem_showcase_3.PNG


The results have very little flickering, which is nice to look at.

I hope this helps anyone who is looking to add a speech bubble tail to their textboxes! I'm not sure how you'd approach it if you were using a different system from Picture Manager MZ, but the core structure should be the same.

Original thread: https://forums.rpgmakerweb.com/threads/common-event-not-calling-images-solved.182331/