[Suggestion] Flow Control: Run once

Description of the Feature:
Under 'Flow Control' there could be an option to create a section in which commands are run once as if they would turn ON a self switch afterwards.

Mockup:
Run once.png


Why is this feature good?
This feature is great because it's convenient, saves time and doesn't require a self switch.

Possible issues with this feature?
I can't think of any. 🙂
I would say yes but not important. But there is no option for that, so I vote no.
I can't think of any. 🙂
What if you have "Run once" and have multiple pages?

For example
Page 1 you have a run once flag
Page 2 with different page condition

Page 1 is executed, then it will never be executed again later.
Then it switched to page 2 because the condition meets.

Will it run the second page or never?
If it goes back to page 1, will it run or never again?
No...

Switch and self switch is a global variable and saved inside the system. We have control over them. That's what makes them flexible.

If that "Run Once" check is saved permanently to the system like switch / self switch, it will be really hard to track especially we don't have control over it.

If that "Run Once" check is temporary (reset when the event page change, map change, or erased), that just killing the purpose.
@Theo: It would behave as if you would have used a 'Self Switch X' for that section. So a 'Run once' further down the page or on another page would still run.

@Kuro: What do you mean by 'dumps'? In terms of data?
Suppose there are 5 "Run Once" in a single event page.
Play the game and trigger all of them.
Save the game and quit.
Edit the event.
Clear the event page, then create new 2 "Run Once".
Play and load the game.

How the game shall behave at this point?
Does this new 2 "Run Once" considered true (already triggered) because of the old save?
I mean, how the game supposed to know that this 2 "Run Once" should be treated as a new one?

Problem: They don't have ID.
If they don't have ID, then each new "Run Once" is newly generated every time the game run.
What happens if they are saved to the system? You create dumps.

Suppose they do have ID, then they are basically just an inferior version of self-switch which purpose is just turned on once permanently.
You're right. Maybe you could name them like labels in order to identify them — which does take a second, though, and thus diminishes the time-saving purpose of the function, of course. I still think it would be useful from a developer's perspective, but I see that it's difficult to implement.
In theory, useful & doable, standard fare in most engines, but it's not gonna be implemented, for the reasons listed by others.

Not because they can't be dealt with, they can, but it requires a lot more work on the editor, and the devs won't do a medium effort for a small-time gain. They're not unity or unreal.

Ways to mitigate the above issues are relatively simple:
- You can have every entry on a page receive an automatic index and a page index. These can be gathered and listed in an object, and can be accessed via a command.

So if you use Event Command: "Change Flow Event State" you'd be shown, by default a list of all flow events within the current page of the current event of the current map, as well as a short glance at the code that follows so you easily know what you're referencing.

You can switch to a different map, event or page, giving you absolute control over the state of flow events across the entire game.
You can use "untriggered/triggered/switch" to change the state of the flow event in question.

For Debug purposes, you could even add a debug menu that allows that (you could even have a more complex & powerful debug menu like some plugins give you).

But all of the above is a lot of effort & work for a small engine where most people are perfectly fine with unoptimized code & tedious work-processes that any industry-standard engine would never dare do at the risk of a developer rebellion, burning buildings and, possibly, the end of all modern civilization.

It's a good idea though. Would be an improvement, lower the number of variables & switches that need to be used in complex games preventing variable&switch clutter, but unlikely to be implemented.

Original thread: https://forums.rpgmakerweb.com/threads/suggestion-flow-control-run-once.125941/