When making a game, I got an idea to use a Common Event to have the Event contents be cleaner (by reducing the amount of commands for indivitual Events/Characters, only needing to adjust a variable and a switch for the indivitual), and this gave me an idea...
What other event thingies are more practical to be converted into a Common Event and why?
Consider a common event to be:
Something that is being called frequently (i.e. an event that is common for the player to come across)
A folder for other commands.
Some use cases might be:
A chest that contains common items (like a potion)
A common set of variables/switches/show pictures that happen at the start or end of every cutscene
A set of parameters or effects that happen at the start of every combat encounter.
An effect that happens at the end of battle (such as win or loss conditions)
Basically:
Use the common event as you see fit. It's a tool at your disposal.
Whenever I see redundant eventing, I use common events instead. So, if there are segments, that are always the same (despite some variable values), I'll "outsource" that part of code into a common event.
E.g. all beds you can rest in, all lights you can switch on and off, all characters that perform a general menu / animation / text when interacted with, fast travel, menues of all kind, toggle hero / toggle party stuff, autosave, animations, a lot of battle system stuff ... The use cases will be very different from game to game, but I'm sure there's potential everywhere.
The "why" is easy - you just have to do it once. It's always consistent.
Sometimes I use common event as functions to calculate something. But it is very rare because most can be down using script more efficiently.
Hi. I'm thinking of using Common Event to produce procedural(is that a correct word?) achieving
pseudo-level-over-99, with branches
MV Systems Global Event Command Center (as named in my mind haha):
I use it:
- If I need something that is similar and/or occurs more than twice (with functions/variables that allow me to take care of small variations so I don't take up another common event slot)
- If I need to invoke another interpreter to run at the same time as the event(s)
- when it is required (skills, etc.)
- when I need it for more than one map
- for monitoring main aspects of the game before deferring it to a plugin (if needed)
- when I need to run something during the menu or another scene (where I wrote the interpreter into SceneManager to allow the common event to function during any scene based on a notetag)
- if I know it is going to be used often
- for storing certain commands that I can just reference with a switch or call so I don't have to make another event
- when I want to use wait commands/other wait methods that have specific timings where it is easier and more efficient to use instead of a plugin
- and for testing to see if it would be better as a plugin or if it is easier to tie it to the timing of the interpreter
I'm sure there are many other uses - these are just what I can think of at the moment.
If you have a number of events that use a slice of the commands, it makes sense to put most of it in a common event. Not only is it easier to do similar new events, but, if you need to change things in a few months you can just edit the common event. I use common events for my random but player-level influenced random treasure chest loot, the sleep function, making the party happy using ATT_Turan's approval ratings plugin, setting the tint and switch to make the (evented) time and daylight system not affect dungeons, saving and restoring party order when events disrupt party order, for instance.