Skip to main content

Registering the Event

Here I show you how to register your event, so the game is able to call the event and integrate it into it's systems.

On the last page we created the Event event_label.

Now before registering, we need to decide, where the Event will be stored.

For that the game uses a class called EventStorage. This class registers the events and also provides them when called.
Currently there are 3 types of EventStorage, the EventStorage, the TempEventStorage and the FragmentStorage.
We'll ignore the FragmentStorage for now.

A more detailed explanation of the EventStorages follows in a later chapter.

Now back to the question where we want to register the Event. Tha game has multiple locations, for example the school building, the courtyard and so on. Now each of those locations has two EventStorages. a normal one and a TempEventStorage. The differenc between those two, is that Events registered in the TempEventStorage will only be shown once and then never again in the playthrough, while Events stored in the normal EventStorage can be shown repeatedly.

In this example, I will register the event for the courtyard, and as it should be shown repeatedly, we use the normal Storage.
So the registration will look like this: