Event pages and NPC move routes on RPG maps; rpg action schemas; walk test passes the RPG Plus prologue

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
cthangoverandClaude Opus 5.5 committed 2026-10-24 10:01:10 +02:00
1 parent e1b733ea01
commit afc49a16e0
18 files changed
+550 -15

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
using System.Collections.Generic;
namespace Cthangover.Mods.Rpg
{
/// <summary>
/// Autonomous movement of an event (RPG Maker's "move route" / "autonomous movement"):
/// <c>"Route": { "Steps": ["left", "left", "wait", "right", "right"], "Every": 0.8 }</c>.
/// Steps: <c>up</c>, <c>down</c>, <c>left</c>, <c>right</c>, <c>random</c> (a random
/// direction), <c>toward</c> / <c>away</c> (relative to the player), <c>wait</c>, and
/// <c>face_up</c> … <c>face_right</c> (turn without moving). A step into a blocked cell is
/// skipped (the event turns that way). The route pauses while a dialog runs or the player
/// cannot walk; positions are not saved, so an event starts from its cell on every visit.
/// </summary>
public class RpgMoveRoute
{
/// <summary>The steps, repeated from the start when <see cref="Repeat"/> is set.</summary>
public List<string> Steps { get; set; } = new();
/// <summary>Seconds between steps.</summary>
public double Every { get; set; } = 1.0;
/// <summary>Whether the route starts over after the last step.</summary>
public bool Repeat { get; set; } = true;
}
}