I am working on a game called Orb Quest (Here is the link to the published version, although the game isn't important for my question: https://www.construct.net/en/free-online-games/orb-quest-71504/play?via=mn)
There are some things, such as death, that occur multiple times in different ways, but they all have the same events at some point, and I mean a LOT of events.
I'm just wondering if there is something that you can create that is essentially a function. You have one piece of code that is basically "A function named 'Example' means..." then insert a bunch of events. Later, you can call back the function, for example, "On start of layout -> 'Example'"
I know that most text-based coding languages have something like this, so does Construct have anything like this too? Thank you in advance!