Card Structure - linkanr/UtopiaRises2d GitHub Wiki
Card Structure
Standard fields in a card definition.
Core Fields
Name
– Title of the card.Faction
– One of the predefined factions.Rarity
– Enum (e.g. Common, Rare, Epic).Type
– Unit, Spell, Artifact, etc.Cost
– Resource cost to play.Stats
– For units:Attack
,Health
.
Metadata
Dogma
– Optional doctrine tag.Ideology
– Ideological alignment.Spirituality
– Spiritual alignment.
Gameplay
Abilities
– List of effects defined as trigger + action pairs.- Trigger examples:
@TriggerOnPlayed
,@TriggerOnDeath
- Action examples:
DealDamage
,DrawCard
,Summon
- Trigger examples:
Description
– Supports parser tokens.FlavorText
– Non-mechanical description or lore.