Conditional Branch event graphic, autorun.

(SOLVED)

RPGMAKER VX Ace

Ok. So i have an event set up that's to change the graphic of the event based on party members, when you enter the area. So, naturally I would think, "autorun", so it just does it automatically. But the problem is, if I do that, it will keep cycling through the event, and keep running it over and over. 

I thought to solve this by making a new event page, but that negates the graphic change from the previous page, and applies only the graphic of that new page (which is empty)..

So.. how do I keep the graphic change of the event, without it autorunning endlessly, or overwriting that graphic with a new page. 

Can I not use a conditional branch, but instead I have to have many many different event pages?

So:

at the end of my page with the conditional branch that sets the graphic,(autorun) I would have "Set selfswitch A: ON"

On the next page, I would have the condition be self switch A is on, (action button, with empty page.) However.. It then uses the graphic of that new page, rather than the graphic that was set from the previous one.

There are multiple possible graphics that can be set. Not just one. So setting the graphic on the next page isn't an option.
Set the new page to have a condition of a self-switch, and then at the end of the autorun, turn that self-switch on to disable the autorun page.
Set the new page to have a condition of a self-switch, and then at the end of the autorun, turn that self-switch on to disable the autorun page.
Yep yep. That's what I was doing, in order to activate the next page. The problem is, that when the next page is triggered, it overwrited the graphic with the graphic set for that page. 

So:

at the end of my page with the conditional branch that sets the graphic,(autorun) I would have "Set selfswitch A: ON"

On the next page, I would have the condition be self switch A is on, (action button, with empty page.) However.. It then uses the graphic of that new page, rather than the graphic that was set from the previous one.

Updated OP
A new page's graphic will overwrite any changed from previous pages. You'd have to set the page's picture to whatever you changed it to in the last page. 
A new page's graphic will overwrite any changed from previous pages. You'd have to set the page's picture to whatever you changed it to in the last page. 
Yeah see that's kinda the issue. I use a conditional branch to set the graphic depending on party members. There are 3 possibilities, so I can't just set the next page to the graphic that meets the conditional branch. Or that would defeat the entire purpose. 

So Is there no way to use a conditional branch for graphics, or do I HAVE to make seperate event pages for each possibility, with their own conditions?'

My idea is simplicity, and less clutter, and I prefer to use conditional branches, rather than multiple event pages. SO is that not possible?

Here, this is what I mean

condbranchgraphic.jpg


The graphic is set on this page. Which is on autorun, to detect those switches.

The next page, loaded at the end of this page, to prevent it from continuously running, is a conditional of switch B, with an empty page.

The issue is, that when the Con: B switch page is loaded, it discards the graphic that was set on this page.
Well, if you're  good with variables, you could store the image name and index in two different variables, and then manually set the image in the new page, but that's a little more advanced. You'd have to store them with a script command, because the default variable control box doesn't let you store anything except for numbers. You'll then have to use another script command on the next page to set the graphic.

To store them, do something similar:

$game_variables[pick a number] = "The picture's name"$game_variables[pick a second number] = the character index (0-7)To set the graphic:

$game_map.events[this event's ID].set_graphic($game_variables[#1], $game_variables[#2])where #1 and #2 are the numbers you chose for the name and index respectively.

I didn't test this myself, so I won't guarantee that it'll work, but it I believe that should be fine.

Edit: the 'Graphic' command tells you what you need to know. The bit in the 's is the bit you put into the first variable, and the number is what goes into the 2nd. Make sure the first one (the picture's name) is in quotes (" ")
I am mainly just wanting to know if my method of using conditional branches for graphics is possible or not.

Not necessarily how to accomplish a certain result overall.

Oh.. if you answered the question on how to make this work, if it initially can't, then I don't know anything about scripting...
From my perspective, having another page would be less complex for me personally. Even the Treasure Chests made with Quick Creation Events (when you right-click in Event Editor Mode) follow what Zalerinian said. Plus, it keeps the graphic as it is if you leave a map and came back to it.
From my perspective, having another page would be less complex for me personally. Even the Treasure Chests made with Quick Creation Events (when you right-click in Event Editor Mode) follow what Zalerinian said. Plus, it keeps the graphic as it is if you leave a map and came back to it.
But that is one single graphic selection... Not a possible several..

I COULD make this work by having 3 seperate pages with 3 seperate conditions yet.. yes. BUT.. I am just wondering if what I am trying to do, with this method is even possible or not. If it isn't, then I will just settle for several different pages.

It's not really about "how can i do this thing", more so, "Will this method work, as opposed to alternatives?"
I only just caught the picture you posted, are you deciding on what happens based on who's with the character or something?
I only just caught the picture you posted, are you deciding on what happens based on who's with the character or something?
Yes. 

At the start, you can select who to take with you, or you can choose to go alone.

Based on that decision, a switch for events is selected.

I want the graphics to be set according to that. 

yes, I can use 3 different duplicate pages with a different graphic. But I am wondering if it is possible to use a conditional branch to do this, or not.
Ah, I understand a little better of what you're doing now. 

I notice you used Set Move Route for changing the current graphic, I usually have a separate event that represents the person/people and have Set Move Route on a different event that controls other events (in terms of appearance and movement). That way, you wouldn't have to worry about the graphic changing when using multiple pages.
Ah, I understand a little better of what you're doing now. 

I notice you used Set Move Route for changing the current graphic, I usually have a separate event that represents the person/people and have Set Move Route on a different event that controls other events (in terms of appearance and movement). That way, you wouldn't have to worry about the graphic changing when using multiple pages.
oh! Very good!

That actually answers a follow up issue I was going to ask about!

I understand how to do that, I just wasn't thinking about it.. Very good answer sir!
Cool! I'm glad I was able to help you!

Original thread: https://forums.rpgmakerweb.com/threads/conditional-branch-event-graphic-autorun.24023/