Skip to content

Add injectable scripts and events #44

@PlytonRexus

Description

@PlytonRexus
  • We can probably use events to signify when something, say, a variable, changes or a choice is selected or a scene starts. At such times, an event can be fired and used to create changes. Say, the background can be changed or a piece of music can be started, or text can flicker and so on ...
  • On similar lines, we can - later - introduce all these features via if-script syntax. But for now, at least, maybe we can add injectable JS that can carry listeners for the events that we fire. Besides, listeners, these scripts can contain the customisations that the authors may desire. One thought on doing so is to add a function injectible(callback(state)). Authors must pass the callback that will receive the current game state and be executed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions