Introduction
In modern interactive storytelling, such as open-world RPGs, the goal is to create narratives that respond dynamically to player choices. However, as world complexity increases, the computational cost of generating and updating these stories in real-time becomes a significant bottleneck. Traditional "story graphs" are too rigid, while standard Partial Order Planners (POPs) often fail to scale. This research introduces two innovations—the Accelerated Partial Order Planner (APOP) and the Dynamic Partial Order Planner (DPOP)—to enable efficient, real-time narrative adaptation.
The Challenge: Scaling Narrative Planning
Traditional POPs define goals and causal links between actions. While flexible, they suffer from a "combinatorial explosion" as the number of objects and possible actions grows. Furthermore, when a player intervenes, most systems must discard the current plan and start over, leading to immersion-breaking delays.
Methods: APOP and DPOP
To address these issues, the authors propose a two-pronged approach:
- Accelerated Partial Order Planner (APOP): This system utilizes a pre-computed Action Relation Map. By mapping conditions directly to the actions that satisfy them, APOP prunes the search space, significantly reducing the time required to find a valid narrative path.
- Dynamic Partial Order Planner (DPOP): Instead of full replanning, DPOP employs "Consistency Propagation" to repair existing plans. It identifies redundant actions (over-consistent) or broken requirements (under-consistent) caused by player behavior.
As shown in Figure 1, if a player performs an action that satisfies a future goal, DPOP can "repair" the plan by removing the now-unnecessary intermediate steps, ensuring a seamless transition without a full system reset.
Experimental Evaluation
The framework was tested in three scenarios of increasing complexity:
- Experiment A: Small scale (4 objects).
- Experiment B: Medium scale (23 objects).
- Experiment C: Large scale (37 objects, ~7,200 plan space).
A user study involving 23 participants was also conducted to evaluate the perceived "seamlessness" of the narrative adjustments.
Key Results
The performance gains were substantial. In the most complex scenario (Experiment C), APOP was nearly twice as fast as standard planners. More importantly, the dynamic repair mechanism in DPOP proved highly efficient.
Quantitative analysis (Figure 2) shows that DPOP achieved a speedup of 3.7 to 3.9 times over conventional planners when handling user interventions. Qualitatively, participants rated the environment changes as highly "seamless," with a majority providing top scores on a 5-point scale. The system's robustness was further demonstrated in a complex "Presidential Assassination" scenario, where it successfully adapted character roles in real-time.
Conclusion and Future Work
By combining pre-computed action relations with local plan repair, this framework makes real-time, high-agency interactive narratives viable for complex virtual worlds. Future research will explore incorporating "narrative tension" into the planning heuristics and moving toward procedurally generated environments.
Reference: Zhang, X., Inampudi, B. C., Badler, N. I., & Kapadia, M. (2017). Dynamic and Accelerated Partial Order Planning for Interactive Narratives. Proceedings of the AIIDE-17 Workshop on Intelligent Narrative Technologies.
Summary updated