Special use of parallel process (no plugin required)

I'm using Google Translate, so it may be a strange translation.
Please point it out.


I will teach you the ultimate techniques for those who want to reduce the use of plugins, variables, and switches as much as possible.
These techniques are the same as for plugins.
There's no need to use them when you can't think of a use for them.


Preparation
Create a common event like the one below.
JavaScript:
const character = this.character(0);
character._interpreter = null;
character._trigger = null;
1702994806943.png



Parallel process event that runs only once
Execute the parallel process only once immediately after the conditions are met.

procedure:
1. Set the trigger to "Parallel".
2. Enter the events you want to execute.
3. Enter the common event "Remove parallel process" at the end of the contents.

Example: An event where the weather changes depending on the value when a variable is changed.
1702996453348.png1702996784750.png1702996804579.png1702996861981.png


Event that allows other trigger to run after a parallel process runs only once
Use this when you want to prepare for an event that meets the conditions.

procedure:
1. Set the trigger to "Parallel".
2. Create a conditional branch.
JavaScript:
this.character(0)._trigger === 4
3. Enter the commands to use for preparation.
4. Enter the common event "Remove parallel process".
5. Override trigger.
JavaScript:
this.character(0)._trigger = 0;
The numbers on the right side can be 0 to 3, and each corresponds to "Action Button" to "Autorun".
6. Enter "Exit Event Processing."
7. Enter the events to run after preparation.

Example: Translucent person
1702998409661.png


Two triggers
You can create events that can be talked to while running parallel processes.

procedure:
1. Set the trigger to "Parallel".
2. Create a conditional branch.
JavaScript:
this.character(0)._trigger === 4
3. Override trigger.
JavaScript:
this.character(0)._trigger = 0;
The numbers on the right side can be 0 to 3, and each corresponds to "Action Button" to "Autorun".
4. Enter “Loop”.
5. Input the events used for parallel process.
6. Enter “Wait”.
7. Input events without parallel process.

Example: A person who always displays a balloon except when an event is running
1703000277900.png

I've only shown a few simple examples, so there may be many other uses that I can't imagine!
Parallel process event that runs only once
I don't really see the point of this. That's exactly what the Erase Event command does.

Event that allows other trigger to run after a parallel process runs only once
I guess there could be situations where someone would need this? If you're trying to cram a ton of stuff into one event? For most times, it would be easier to just activate a self switch and add another event page.

Two triggers
This seems pretty clever.

I think it's important to note for people reading this that all of these modifications are temporary - the next time the player comes back to the map, all events will run according to their default settings from the editor.
I don't really see the point of this. That's exactly what the Erase Event command does.
If you use "Erase Event", you cannot switch pages.

I guess there could be situations where someone would need this? If you're trying to cram a ton of stuff into one event? For most times, it would be easier to just activate a self switch and add another event page.
When detailed branching is required in the display state, it is easier to see if they are combined into one page.
Also, since you don't have to use a self switch, you can expect to reduce the size of your save file.
If you use "Erase Event", you cannot switch pages.
True, but it's not clear why your example for this has separate pages to begin with. That could easily be implemented by one page that uses a Conditional Branch to check the value of the variable, sets the weather, then does Erase Event.

If the idea is that the weather effects are changing dynamically when something else changes the Weather variable...why not just make that other event call Set Weather Effect?

I guess there must be a usage scenario that I'm not thinking of.

You can easily create a translucent event as shown in the example.
Right, which is a pretty specific/uncommon situation, as I mentioned. I didn't say it was useless. 🙂

Also, completing the processing within one event makes it easier to duplicate events.
Okay, depending on your workflow. It's pretty easy to copy an event, which will copy all of its pages.

Anyway, thanks for sharing your inventive workarounds!
I guess there must be a usage scenario that I'm not thinking of.
That's right.
Examples are just examples.
I don't really see the point of this. That's exactly what the Erase Event command does.


I guess there could be situations where someone would need this? If you're trying to cram a ton of stuff into one event? For most times, it would be easier to just activate a self switch and add another event page.
I have some plugins where you need to run a script on the event page to activate the effect, but if you self switch to a new page the effect is no longer active

Original thread: https://forums.rpgmakerweb.com/threads/special-use-of-parallel-process-no-plugin-required.163989/