LaurierCS / PHI-TextBasedGameEngine

A text based game engine for creating games
4 stars 1 forks source link

Eventing Framework #32

Open jbheard opened 3 years ago

jbheard commented 3 years ago

To give games a reasonable amount of complexity, we should have some kind of event system. At the very least, we need to keep a list of events that have happened. For example, if a user wants to "go back", we should be able to look up what room they came from.

More complicated event systems would be cool as well, we could have timed events, and triggered events. For example: a user kills an NPC. This sets a flag that makes other NPCs treat them poorly later on.

jbheard commented 3 years ago

The latter example would be a bit difficult since it relies on user-defined flags. This gets us pretty close to actual scripting territory. I personally don't really want to develop a whole scripting language for this engine, but if it slowly progresses towards that as we add features, I have no problems with it.