/tg/ Station 13 - Modules - TypesVar Details - Proc Details

Coder

Vars

cardsubtypeAn extra descriptor for the card. Combined with the cardtype for a larger card descriptor, i.e. Creature- Xenomorph, Spell- Instant, that sort of thing. For creatures, this has no effect, for spells, this is important.
cardtypeUsed to define the behaviour the card uses during the game.
factionSomeone please come up with a ruleset so I can comment this
idUnique ID, for use in lookups and (eventually) for persistence. MAKE SURE THIS IS UNIQUE FOR EACH CARD IN AS SERIES, OR THE ENTIRE SYSTEM WILL BREAK, AND I WILL BE VERY DISAPPOINTED.
powerHow hard this card hits (by default)
rarityThe rarity of this card, determines how much (or little) it shows up in packs. Rarities are common, uncommon, rare, epic, legendary and misprint.
resolveHow hard this card can get hit (by default)
rulesThis handles any extra rules for the card, i.e. extra attributes, special effects, etc. If you've played any other card game, you know how this works.
seriesDefines the series that the card originates from, this is very important for spawning the cards via packs.
summoncostWhat it costs to summon this card to the battlefield.

Procs

applyFor each var that the card datum and the json entry share, we set the datum var to the json entry
applyTemplatesApplies a json file to a card datum

Var Details

cardsubtype

An extra descriptor for the card. Combined with the cardtype for a larger card descriptor, i.e. Creature- Xenomorph, Spell- Instant, that sort of thing. For creatures, this has no effect, for spells, this is important.

cardtype

Used to define the behaviour the card uses during the game.

faction

Someone please come up with a ruleset so I can comment this

id

Unique ID, for use in lookups and (eventually) for persistence. MAKE SURE THIS IS UNIQUE FOR EACH CARD IN AS SERIES, OR THE ENTIRE SYSTEM WILL BREAK, AND I WILL BE VERY DISAPPOINTED.

power

How hard this card hits (by default)

rarity

The rarity of this card, determines how much (or little) it shows up in packs. Rarities are common, uncommon, rare, epic, legendary and misprint.

resolve

How hard this card can get hit (by default)

rules

This handles any extra rules for the card, i.e. extra attributes, special effects, etc. If you've played any other card game, you know how this works.

series

Defines the series that the card originates from, this is very important for spawning the cards via packs.

summoncost

What it costs to summon this card to the battlefield.

Proc Details

apply

For each var that the card datum and the json entry share, we set the datum var to the json entry

applyTemplates

Applies a json file to a card datum