For example, you have the following configuration:
The reason why I make such a separation between events is to make them easier to debug (less lines to check, execution of a specific task). But also to allow me to reuse some common events that are not triggered in other circumstances. If I take the example above, CE3 would allow me to execute a Game Over via CE1's parallel process, but could just as easily be called as the "defeat" branch of a battle command.
So I am particularly interested in your opinion. Thanks for your feedbacks.
Edit: Here is a summary of some of the recommendations received from @Andar and @Shaz present in this thread.
- Common Event 1: a parallel process that must launch Common Event 2 if certain conditions are met (e.g. regular party status check).
- Common Event 2: an untriggered event that performs certain tasks and launches Common Event 3 under certain conditions (e.g. updating an actor PVs according to a particular state).
- Common Event 3: another untriggered event that performs certain tasks (e.g. launching a cutscene before displaying Game Over).
A. To use the "Call Event" command in each event?
B. To use a global switch that triggers the event? And in this case, should CE2 and CE3 be parallel or automatic processes?
C. A mix between them, depending of the context.
The reason why I make such a separation between events is to make them easier to debug (less lines to check, execution of a specific task). But also to allow me to reuse some common events that are not triggered in other circumstances. If I take the example above, CE3 would allow me to execute a Game Over via CE1's parallel process, but could just as easily be called as the "defeat" branch of a battle command.
So I am particularly interested in your opinion. Thanks for your feedbacks.
Edit: Here is a summary of some of the recommendations received from @Andar and @Shaz present in this thread.
Common events: autorun
- Avoid them as much as possible, unless specifically triggered by a global switch and that this one is deactivated at the end of the execution of the event, for a unique execution and thus not to block the game with an "infinite loop".
- Do not use them with the "Call event" command.
- Can only manage the global context data of the game.
- Use cases as example: cutscene between map switches, ...
- Limit them as much as possible (in general, one global parallel event should be enough to manage a simple game).
- Ideally, trigger them with a global switch, which would allow them to be activated/deactivated according to the context of the game (for example, deactivate the event before a battle, and reactivate it after).
- Use a "Wait frame" command to skip executing this event for x frames, unless a user action is expected, such as a key press or a mouse click.
- Do not use them with the "Call event" command.
- Can only manage the global context data of the game.
- Use cases as example: master event that controls the global gameplay, timer or countdown event, processing of user input actions, ...
- Use them as much as necessary.
- Do not use a trigger with them.
- Call them by the "Call event" command in other common events or in map events, or use them as common events attached to skills.
- Can manage the global context data of the game, but also the specific data of the calling event in the current map, like self switches.
- Use cases as example: any specific data processing that needs to be run only once depending on the current context (process after level-up, post-combat process, background or sound management, before/after map transfer, skill event, ...)