Cantrip (C#)'s icon

Cantrip (C#) 0.1.0-preview.2 Scripts 4.6 Community

Submitted by user AGomnes; MIT; 2026-09-21

Write the cards, statuses, relics, enemies and abilities of a turn-based card game as short .cantrip scripts instead of C# classes. Cantrip's rules engine works out how effects interact: events with before, instead and after phases, stacking statuses, layered modifiers, targeting rules, enemy intents and phases. Your game drives battles from GDScript or C#.

The addon adds:
- A CantripRuntime node that runs battles and reports events for your UI to animate
- Player choices, including discover-style offers, answered by your UI
- An importer so content ships in exported builds, with an export check
- An editor dock with problems, the content's own tests, and card text with live numbers

Requirements: the .NET edition of Godot 4.6 and a C# project, even if your game logic is GDScript. After installing, add the rules engine at the same version as the addon, from the folder with your .csproj:
dotnet add package Cantrip.Core --version 0.1.0-preview.2
Then build, and enable Cantrip in Project Settings > Plugins.

This is a preview: the API may change between versions. Quickstart, language reference and Godot guide: https://github.com/AGomnes/Cantrip


View files Download Submit an issue Recent Edits