Pezna Story Engine: Update 3 – Flowchart, Events, and Internal Variables

Flowchart

The flowchart is a visual representation of your story. Every node represents a statement in your story. The first node is the story object, the next level of nodes are acts, the next are scenes, and each scene has its statements below it. It is still in its beginning stages, and is nowhere near finished. The aim of having a flowchart in PSE is to allow the you to visually see how your story flows. It allows you to see which places have more “substance” than others.

flowchart1

Flowchart prototype of a story.

The edges (connecting lines) are currently not organized, and therefore it looks very ugly in its current state.

Events

Previously, event statements could only take a single value/variable. Now, they can take multiple values separated by commas.

An event that sends multiple values when it is triggered.

An event that sends multiple values when it is triggered.

Internal Variables

Internal variables are variables that are initialized automatically by PSE, not the user. They contain information about the story, and the current position with blocks. Currently, the only internal variables available are:

  • story.name – This variable contains the name of the story
  • act.name – This variable contains the name of the current act.
  • act.label – This variable contains the label of the current act, if it has a label.
  • scene.name – This variable contains the name of the current scene.
  • scene.label – This variable contains the label of the current scene, if it has a label.
  • choice.text – This variable contains the display text of a selected choice. Note that if this is used outside of a choice-block, it will contain the display text of the last selected choice. If no choice has been selected in the entire run of a story, it will be blank.

Only story.name can be used outside of a scene-block. For example, you can initialize a variable to the name of the story, but you cannot initialize it to scene.name because there is no current scene.

Example of internal variables being used.

Example of internal variables being used.


Leave a Reply

Your email address will not be published. Required fields are marked *