RuleForge — Reactive Gameplay Logic & Rule Engine


RuleForge ships with 7 foundational code samples and 9 interactive playable demo ... 8. Basic Health Demo: Foundational player health testing, reactive watch rules, and overheal/death triggers ...


by Indie World


Price History +

High-performance, zero-allocation reactive rule engine for quests, combat, progression, and state management. Includes flowchart visualizer, live diagnostics, and math parser.

· • Unity Compatibility: Unity 2021.3 LTS, 2022.3 LTS, 2023.x, Unity 6 LTS.

· • Render Pipelines: Standard Built-in, URP, and HDRP supported out of the box.

· • Target Platforms: PC (Windows, macOS, Linux), Mobile (iOS, Android), Consoles (PlayStation, Xbox, Nintendo Switch), WebGL.

· • Quality Assurance: 632 passing automated tests, full XML API documentation, and clean assembly definitions.

· • Documentation: Extensively descriptive ReadMe.pdf, feature manuals, and AI prompting cheatsheet included.

RuleForge is a high-performance, reactive gameplay logic and rule engine engineered for modern Unity games. Build complex quests, combat mechanics, progression trees, and dynamic AI behaviors with zero garbage collection allocations and instant event-driven responsiveness.

Whether you prefer authoring with visual flowcharts in the Rule Visualizer, creating modular ScriptableObjects in the Inspector, or writing programmatic logic via the C# Fluent API, RuleForge adapts to your development style.


⚡ WHY CHOOSE RULEFORGE?

· • Reactive Variable Watching (0ms Idle Overhead): Rules only evaluate when watched variables mutate (OnVariableChanged). Evaluate thousands of rules across hundreds of actors with virtually zero CPU idle overhead.

· • 0 B Zero-Allocation Runtime: The core evaluation engine produces zero heap allocations during gameplay, eliminating GC lag spikes and frame stutters.

· • Built for 2026 AI Workflows: Includes an AI_PROMPTING_GUIDE context cheatsheet. Paste it into Claude, ChatGPT, Cursor, or Copilot to generate 100% syntactically correct RuleForge code without hallucinations!

· • Zero Package Dependencies: The core engine requires no third-party packages to compile and run in a clean project.


🎮 COMPLETE PLAYABLE DEMOS & SAMPLES INCLUDED

RuleForge ships with 7 foundational code samples and 9 interactive playable demo scenes organized neatly under Samples/Demos/:

· 1. Math Expressions Demo: Dynamic algebraic equations (e.g. clamp(($player.str * 2) - $enemy.def, 0, 100)) with live UI slider synchronization via RuleDataBinder.

· 2. Escape Room Adventure: Interactive locked doors, gold bribes, lootable chests, and trigger bridges.

· 3. Logic Flow Demo: Parallel actions, Race actions (interruptible channeling spells), and ForEach multi-strike combos.

· 4. Actor-Scoped Goblin Combat: Instantiated enemy actors each owning isolated health while sharing a single rule asset.

· 5. Dynamic RuleSet Swapping: Hot-swapping weapon RuleSets at runtime (Fire Sword vs. Ice Staff) on live characters.

· 6. Engine Integrations Demo: 3D Physics AddForce, particle spawning, Raycast sensors, and Line of Sight checks.

· 7. Programmatic C# Rules Demo: Dynamic rule registration, execution, and automatic lifecycle disposal purely via C# code.

· 8. Basic Health Demo: Foundational player health testing, reactive watch rules, and overheal/death triggers.

· 9. Demo Rules & Preset Data: Pre-authored rulesets and rule asset library ready for immediate use.


🛠️ FULL VISUAL EDITOR SUITE INCLUDED

· • RuleForge Central Hub (Tools > RuleForge > Central Hub): Project dashboard, global variable explorer/catalog, and live watch & tweak panels.

· • Rule Visualizer (Tools > RuleForge > Rule Visualizer): Flowchart node graph with color-coded nodes and real-time PlayMode execution glow (Green = Passed, Red = Failed, Amber = Running).

· • Rule Validator (Tools > RuleForge > Validation): 1-click issue scanner that auto-fixes missing variables, ID collisions, and dead references.

· • Rule Diff Tool (Tools > RuleForge > Rule Diff): Side-by-side visual comparisons highlighting modified conditions, actions, and variables between rule assets.

· • Rule Data Binder: Zero-code UI binding component for Text, TextMeshPro, Sliders, and Image fill amounts.

· • Bulk Operations Window: Mass variable rename and tag manipulation tool.