All skills
thedivergentai avatar

/godot-turn-system

@9d6e91e

Expert blueprint for turn-based combat with turn order, action points, phase management, and timeline systems for strategy/RPG games. Covers speed-based initiative, interrupts, and simultaneous turns. Use when implementing turn-based combat OR tactical systems. Keywords turn-based, initiative, action points, phase, round, turn order, combat.

Use this Skill: https://skilld.dev/gh/thedivergentai/gd-agentic-skills/godot-turn-system

This session only. Nothing lands on disk.

referenceselite-turn-patterns.md

≈344 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Elite turn-based patterns

Full queue math lives in MANDATORY scripts — these are expert deltas agents miss.

ATB gauge fill

Per-actor gauges advance in _process(delta) by speed; pause combat when any gauge hits 100 — active_time_battle.gd.

func _process(delta: float) -> void:
    if not is_combat_active:
        return
    for actor in combatants:
        if actor.atb_gauge < 100.0:
            actor.atb_gauge += actor.speed * delta
            if actor.atb_gauge >= 100.0:
                actor.atb_gauge = 100.0
                is_combat_active = false
                turn_ready.emit(actor)
                break

Timeline prediction (UI)

Simulate gauge ticks in a copied array to preview next N actors — MANDATORY turn_predictor.gd (pairs with timeline_turn_manager.gd).

Combat prediction helper

MANDATORY combat_stats_resource.gd — get_expected_damage(target) for hover previews; deterministic attack - defense, clamped ≥ 0.

TurnManager contract

Keep Autoload thin — signals only; implement sort/AP in turn_system_patterns.gd.

[!CAUTION] Recalculate initiative only when speed stats change, not every action.

Source: SKILL.md on GitHub

1 warning17d4 checks · Risk SAFE
  • Gen Agent Trust Hub17d

    The skill provides expert blueprints and scripts for implementing turn-based combat systems in Godot. No security vulnerabilities, malicious code, or suspicious patterns were identified during the analysis.

  • Socket17d

    No alerts

  • Snyk17d

    Risk: LOW · No issues

  • Runlayer7mo

    3/3 files flagged

Signed by skilld at 9d6e91e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 weeks ago.

Activeupdated 2 months ago

README badge

README badge for thedivergentai/gd-agentic-skills/godot-turn-system