[SOLVED] Adding character to a map upon meeting a condition - parallel eventing?

The reason why my game crashed on pc was due to bad eventing with parallel events, which I fixed thanks to this communities' input/help! I'm doing a new event that adds a character to the sanctuary map after meeting them in an entirely different map, using the variable "Add Tenebris".
I got it to work right using parallel events, ensuring that Tenebris isn't visible without that variable set to 1.
I just need to know if I'm using this kind of parallel correctly and/or is there a better way at accomplishing this?

Screen Shot 2021-05-27 at 9.07.14 PM.png

Screen Shot 2021-05-27 at 9.07.29 PM.png


My computer is old and heats up quickly at the faintest sign of stress, but it never crashes, so it's hard for me to tell if it's bad eventing or my cpu being a drama queen.

Also do you think I could use this same method to add the sprites/bodies of defeated bosses after a battle win to the boss room map, or would that immediately light my processor on fire?
there is no reason for this event to be this way. all you need is a normal switch or variable for the page 2's condition. page 1 has no reason to exist because it is literally just doing a condition check.

you would only need a new page 2 if Tenebris will disappear at some point (variable "add tenebris" = 2) and come back again later on (variable = 1 again or another page for variable = 3).
all just handled through the page conditions
when the variable = 0 no page conditions are met so its just an empty space until you unlock them.
if that variable is only ever 0 or 1, just use a normal switch (0 is off, 1 is on)
Moved to: MV Support

What you are doing is eventing, not scripting. There is no javascript in your screenshots.


Delete page 1, then on page 2, set the Variable condition (on the left side, above the sprite) to Add Tenebris >= 1. Get rid of the self switch condition. No need for a parallel trigger at all.

Why are you using a variable for that? If it can only have values 0 (don't add) or 1 (add), then use a switch instead. And in that case you would use the Switch condition rather than the Variable condition.


If this is the sort of thing you're using parallel processing events for, and you have many of them, it is no surprise to me that it's causing issues on ANY computer, especially an older one. ALWAYS look for ways of doing things without using parallel events, and if you HAVE to use them, either do an Erase Event (for those where you want to do something just when the map is loaded), or add Waits (for those that don't need to check the thing 60 times a second - or 30 in MV's case). The only reason I can think of to have a parallel event that doesn't erase itself and doesn't have a wait, is an event that needs to monitor for button presses.
Why are you using a variable for that? If it can only have values 0 (don't add) or 1 (add), then use a switch instead. And in that case you would use the Switch condition rather than the Variable condition.
I didn't really look into switches yet, just variables. I've been using variables as a way to control any kind of conditional branch, because their simple logic made sense to my monkey brain. Would it really be more efficient to use switches instead of variables? I thought they followed the exact same logic, but I could be horribly wrong.
a switch is just a variable that only have the option for 0 and 1.
use a variable instead of switch for longer progression chains,
like 0 = havent started quest yet, 1 = started a multi part quest,
2 = finished part 1 of a quest but its still not over, 3 = quest completion

basically variables are better for progress tracking, while switches are better for completion tracking.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-adding-character-to-a-map-upon-meeting-a-condition-parallel-eventing.136904/