Custom Spell Cards Course - Monster-Train-2-Modding-Group/Trainworks-Reloaded GitHub Wiki

Welcome to the Custom Spell Cards tutorial series for Trainworks Reloaded! Rather than tackling every card feature at once, this guide is split into modular, recipe-style lessons. Each tutorial walks through building one complete, playable card while highlighting a distinct mechanic.

This series introduces cards, and everything presented here can apply to cards of other types.


Tutorial Path

Part Card Name Core Concepts Introduced
Part 1: Basic Damaging Spell Not Horn Break JSON schema validation, basic card anatomy, traits, targeted damage, text placeholders, sprite & art loading.
Part 2: Applying Status Effects Give Everyone Armor Applying status effects, room-wide targeting.
Part 3: Applying Unit Upgrades Not Razorsharp Edge Applying CardUpgrades to units, upgrade lifetimes (temporary, transient, permanent), reading upgrade values in card text.
Part 4: Dynamic Scaling Play Other Cards Stat-tracking Traits, Scaling upgrades.
Part 5: Card Triggers Pyre Sharpener Unplayable cards, CardTriggers, Pyre targeting.
Part 6: Conditional Effects & Card Pools Hymnist Recruit Adding Cards, Conditional effect execution, spending gold, custom CardPools and pull weighting.

Prerequisites

Before beginning:

  • Ensure your modding environment is set up with BepInEx, Trainworks Reloaded, and Conductor installed.
  • Open your project in an editor that supports JSON schemas (such as VS Code) to get real-time validation and autocomplete.

Ready to begin? Head to Part 1: Basic Damaging Spell (Not Horn Break).