Conditional Branch event graphic, autorun.

Tsaiuki North

Eyes Of Thirteen
Veteran
Joined
Jul 15, 2013
Messages
235
Reaction score
18
First Language
English
Primarily Uses
(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.
 
Last edited by a moderator:

Zalerinian

Jack of all Errors
Veteran
Joined
Dec 17, 2012
Messages
4,696
Reaction score
935
First Language
English
Primarily Uses
N/A
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.
 

Tsaiuki North

Eyes Of Thirteen
Veteran
Joined
Jul 15, 2013
Messages
235
Reaction score
18
First Language
English
Primarily Uses
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
 
Last edited by a moderator:

Zalerinian

Jack of all Errors
Veteran
Joined
Dec 17, 2012
Messages
4,696
Reaction score
935
First Language
English
Primarily Uses
N/A
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. 
 

Tsaiuki North

Eyes Of Thirteen
Veteran
Joined
Jul 15, 2013
Messages
235
Reaction score
18
First Language
English
Primarily Uses
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



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.
 
Last edited by a moderator:

Zalerinian

Jack of all Errors
Veteran
Joined
Dec 17, 2012
Messages
4,696
Reaction score
935
First Language
English
Primarily Uses
N/A
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 (" ")
 
Last edited by a moderator:

Tsaiuki North

Eyes Of Thirteen
Veteran
Joined
Jul 15, 2013
Messages
235
Reaction score
18
First Language
English
Primarily Uses
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...
 
Last edited by a moderator:

MasterLagger

Odder than Odd
Veteran
Joined
Dec 28, 2013
Messages
58
Reaction score
5
First Language
English
Primarily Uses
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.
 

Tsaiuki North

Eyes Of Thirteen
Veteran
Joined
Jul 15, 2013
Messages
235
Reaction score
18
First Language
English
Primarily Uses
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?"
 

MasterLagger

Odder than Odd
Veteran
Joined
Dec 28, 2013
Messages
58
Reaction score
5
First Language
English
Primarily Uses
I only just caught the picture you posted, are you deciding on what happens based on who's with the character or something?
 

Tsaiuki North

Eyes Of Thirteen
Veteran
Joined
Jul 15, 2013
Messages
235
Reaction score
18
First Language
English
Primarily Uses
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.
 

MasterLagger

Odder than Odd
Veteran
Joined
Dec 28, 2013
Messages
58
Reaction score
5
First Language
English
Primarily Uses
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.
 

Tsaiuki North

Eyes Of Thirteen
Veteran
Joined
Jul 15, 2013
Messages
235
Reaction score
18
First Language
English
Primarily Uses
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!
 

MasterLagger

Odder than Odd
Veteran
Joined
Dec 28, 2013
Messages
58
Reaction score
5
First Language
English
Primarily Uses
Cool! I'm glad I was able to help you!
 

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

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
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

Forum statistics

Threads
105,868
Messages
1,017,070
Members
137,577
Latest member
SadaSoda
Top