Specific event problem

Testtubebaby

Wizard of the woods
Veteran
Joined
Oct 31, 2020
Messages
45
Reaction score
24
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,272
Reaction score
1,297
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
24
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,272
Reaction score
1,297
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

Stream will be live shortly! I will be beginning a play-through of Resident Evil 4! Feel free to drop by!

1st iteration on castle interior in Tiled.
I've started up Pillars of Eternity. It's interesting how the game does a "select choice" cutscene using still image art for dramatic flair. I wonder if that might work for my RPGMaker project.
The self-righteous indignation of family when you expect them to pay back money you've leant to them never ceases to amaze me.
Gamedev for relaxing? yes or no?

Forum statistics

Threads
107,744
Messages
1,031,803
Members
139,882
Latest member
MoBard
Top