Story Designer: Towards a Mixed-Initiative Tool to Create Narrative Structures

Alberto Alvarez, José M. Font, Julian Togelius

Abstract

Narratives are a predominant part of games, and their design poses challenges when identifying, encoding, interpreting, evaluating, and generating them. One way to address this would be to approach narrative design in a more abstract layer, such as narrative structures. This paper presents Story Designer, a mixed-initiative co-creative narrative structure tool built on top of the Evolutionary Dungeon Designer (EDD) that uses tropes, narrative conventions found across many media types, to design these structures. Story Designer uses tropes as building blocks for narrative designers to compose complete narrative structures by interconnecting them in graph structures called narrative graphs. Our mixed-initiative approach lets designers manually create their narrative graphs and feeds an underlying evolutionary algorithm with those, creating quality-diverse suggestions using MAP-Elites. Suggestions are visually represented for designers to compare and evaluate and can then be incorporated into the design for further manual editions. At the same time, we use the levels designed within EDD as constraints for the narrative structure, intertwining both level design and narrative. We evaluate the impact of these constraints and the system's adaptability and expressiveness, resulting in a potential tool to create narrative structures combining level design aspects with narrative.

Introduction

Narrative design in games is notoriously difficult to formalize and generate. Often, the "story" and the "level design" are treated as separate silos, leading to ludonarrative dissonance—where the plot says one thing, but the gameplay says another. This research addresses two main challenges: moving narrative design toward high-level "narrative structures" (graphs of story beats) and intertwining narrative generation with level design constraints.

Methods: Trope-Based Mixed-Initiative Design

Story Designer is built on top of the Evolutionary Dungeon Designer (EDD) and utilizes several key components to facilitate co-creation.

Trope-Based Narrative Graphs

The tool uses "tropes"—common narrative conventions like the "Hero," "Big Bad," or "MacGuffin"—as nodes in a narrative graph. By treating these as modular building blocks, designers can focus on the high-level flow of the story.

Interactive Constrained MAP-Elites (IC MAP-Elites)

The core "suggestion engine" uses IC MAP-Elites, a quality-diversity evolutionary algorithm. Instead of finding a single optimal story, it populates a grid of diverse, high-quality suggestions. These are organized along behavioral dimensions like "Interestingness" (semantic variation) and "Step" (the Levenshtein distance from the user's current design).

The Story Designer interface, featuring the manual graph editor (left), the MAP-Elites suggestion grid (top right), and specific AI-generated suggestions (bottom right).

Level-Narrative Intertwining

A unique feature of Story Designer is its use of level design as a hard constraint. The tool checks the dungeon's contents (NPCs, items, enemies) and uses them to filter narrative suggestions. If a designer has only placed two enemies in a level, the system is forbidden from suggesting a story structure that requires three villains. This ensures that any AI-suggested narrative is actually playable within the current level design.

Evaluation and Results

The system was evaluated by modeling target narrative graphs after iconic games like Super Mario Bros. and The Legend of Zelda to test its ability to replicate and expand upon known structures.

  • Adaptability: The system successfully adapted to designer changes in real-time. As the user's graph became more complex, the AI's suggestions followed suit in "interestingness."
  • Constraint Impact: Using level design constraints reduced the total number of unique suggestions but significantly improved the stability and focus of the search, guiding the AI toward valid content.
  • Search Space Coverage: When using all seven behavioral dimensions (Diversity, Conflict, Plot Points, etc.), the system generated a wide variety of unique individuals (averaging 1257.8 in Experiment 1), providing a rich palette for designers.
An example of a complex narrative graph structure generated within the tool, demonstrating the interconnection of various tropes.

Conclusion

Story Designer demonstrates a potential path forward for integrated game design tools. By combining human creativity with quality-diverse evolutionary algorithms and physical level constraints, it helps bridge the gap between story and play. Future work will include formal user studies and exploring bi-directional feedback, where narrative choices could automatically trigger changes in the level generator.

Summary updated

BibTeX
@inproceedings{alvarez2022story,
  author = {Alberto Alvarez and José M. Font and Julian Togelius},
  title = {{Story Designer: Towards a Mixed-Initiative Tool to Create Narrative Structures}},
  booktitle = {FDG},
  year = {2022},
  doi = {10.1145/3555858.3555929},
}
Figure