Card files

From Arcmage Wiki
Jump to: navigation, search

WTactics uses the .card format to save cards in textual form for easy management and searching. At some future point it may even be possible to automatically create the image of a card from the textual form.

the general structure is proposed as follows:

  • Each file holds only one card.
  • Each field begins with an @ with the name of the field. After the name comes the content of the field.
  • comments are created with a # to the end of the line
  • More than one Whitespace is insignificant
  • Case is significant
  • The order of fields does not matter.
  • Each field may span any number of lines without an @

I know that the influence-transfer concept is not accepted yet. But I added some fields that work with this concept and it should not be difficult to remove them if necessary.

Example:

@name The name of the card
@fraction rebels #can be more than one fraction
@cost 4
@threshold 00 #two rebels with 0 influence points. If this card requires more units from another fraction (all with no influence points) a whitespace is put between the thresholds: 00 000
@type unit -- elf -- ranger #first comes the type of the card and then further subtypes
@attack 5
@defense 3
@influence 0 #a card may come with influence points on it
@gold 1 #a card may provide you with gold each round
@rule lorem ipsum si dolar amet # The ruletext of the card.
@flavor And this is just another example! #flavor text
@png example.png #name of the image that should be put into the image-frame.


Special symbols (for @rule sections)

(A) Activate as in "mark". This symbol is followed by a rule text that gets executed when the card is activated
(X) or (1) the cost of gold of an ability. After it comes the rule text for the ability
{X} or {1} the number of influence points on a card. The rules after this simbol are followed if the number of influence points matches. Otherwise the unit gets +1/+1

All symbols may use [] instead of () to display a symbol within a rule text itself. To escape {} you can write <>