Specific event problem

Testtubebaby

Wizard of the woods
Veteran
Joined
Oct 31, 2020
Messages
45
Reaction score
23
First Language
English
Primarily Uses
RMVXA
Hello folks, I've got a specific event problem as you might have guessed from the title.

My issue is that I've got an event that runs as a parallel process in the background that runs on a wait condition, but if the player enters a different map while the event is still waiting to complete its wait condition, then the event won't turn off the required variables/switches to reset to its default state, which causes some problems. Namely, the event will begin playing again the moment the original map is entered again, but will play from the beginning of its wait cycle.

If you get what I'm trying to describe, I would love some opinions or feedback on how to get it to reset even while it's going through a "move cycle", if that's possible. I was originally thinking of using "if" arguments, but VX Ace doesn't have that option.
 

gstv87

Veteran
Veteran
Joined
Oct 20, 2015
Messages
2,271
Reaction score
1,291
First Language
Spanish
Primarily Uses
RMVXA
everything runs in series.
nothing is ever really parallel.

if you need to have a watch on something in the background while you change maps, you'll probably need to script it above the scene object (in code terms) so that any scene can read it, and it remains active when you change scenes.
if you can't do that, try making it a set of serial processes: have each individual action have a beginning and an end.
once you manage to have that, running them in a way that feels parallel is just a matter of speeding things up.
 

Testtubebaby

Wizard of the woods
Veteran
Joined
Oct 31, 2020
Messages
45
Reaction score
23
First Language
English
Primarily Uses
RMVXA
Thanks for the idea.

I did find a workaround that involved using variables and manual value handling (which I had to place in every transition point on the map), and that seems to have solved my issue.

On that note, I did find that when I was trying to use a specific switch to control this, it froze my character during the wait process even though the event is a parallel process event, meaning that my character should have been able to move around, but was unable to. The switch in question was switch 40. As for why it caused this issue, I have no idea. I was never previously assigned to anything.

That being said, the event in question uses several layered switches and variables to produce my desired results. So maybe some wires were getting crossed.

Just figured I'd put it out there.
 

gstv87

Veteran
Veteran
Joined
Oct 20, 2015
Messages
2,271
Reaction score
1,291
First Language
Spanish
Primarily Uses
RMVXA
That being said, the event in question uses several layered switches and variables to produce my desired results

there was a procedure called "handshaking" back in the days of the parallel port for PC: the data would only be exchanged between end points, after an exchange of signals had taken place.
kind of like:
A: "Data is up"
B: "Ok, reading....... "
A: "Waiting for clear."
B: "Received. Done."
A: "Ok, next data."

if you have something resembling that, that could work.
 

Latest Threads

Latest Posts

Latest Profile Posts

3am me: So how do you feel about a character inviting their own character portrait to a tea party? =D

3pm me: //facepalms
I turned 17 two months ago and I feel like I've grown (personality-wise) more in this 1 year than all the 16 years I had lived combined.
Ugh, I may have been cumbersomely eventing a bunch of stuff I could have easily done changing the tileset "Passage (4 dir)" and "Ladder" options. Oops :D
I have no idea why some of the program "splash screen" always on top. E.g, RMMZ loading screen stuck on the top blocking anything I want to do until it fully loaded. What is even the purpose?
One of the secret places in the game.

Forum statistics

Threads
107,645
Messages
1,031,110
Members
139,767
Latest member
lincore
Top