Skip to content
tooomm edited this page Sep 17, 2021 · 19 revisions

Welcome to the Magic-Token wiki!

Helpful links:

Documentation:

(First draft, complete file structure not covered yet)

  • The <reverse-related> key connects a card to a certain token. Main Case
    It lists a card or token, which the parent token can be created from - his source.

    That way Cockatrice can pick the information up and displays the correct token in the right click menu of a card and will create a single copy of that token when clicked. This information is placed at the end of the token data and contains card names that create that particular token, as well as information about the created quantity.
    This is the most used case as it allows to link the external cards/token creators to the in this file described token details:
    Token <---(reverse-related)--- Card

    <!-- right clicking the named card will allow you to create the parent token: "Goblin" -->
    <reverse-related>Goblin Instigator</reverse-related>
    • You can adjust the quantity of tokens that are created to match the cards need:
      <!-- no count / one token will be created -->
      <reverse-related>Goblin Instigator</reverse-related>
      
      <!-- count "2" / two tokens will be created -->
      <reverse-related count="2">Goblin Marshal</reverse-related>
      
      <!-- count "x" / dialog box will ask how many -->
      <reverse-related count="x">Goblin Goliath</reverse-related>
      
      <!-- count "x=2" / dialog box will ask how many, 2 pre set as default -->
      <reverse-related count="x=2">Goblin Gathering</reverse-related>
    • Exclude certain token relations from the create All tokens option
      <!-- "exclude" defined / the all token option will only create 2 tokens, not 2+4 -->
      <reverse-related count="2">Grizzly Fate</reverse-related>
      <reverse-related count="4" exclude="exclude">Grizzly Fate</reverse-related>
      In contrast, the option will create 3 different tokens at once for Bestial Menace or Trostani's Summoner as all <reverse-related> entries are not marked for exclusion.
  • The <related> key connects a token to a certain token.
    It lists a token, the parent token can create - his output.

    This is mostly used for edge cases where a token (e.g. an Emblem) creates another token:
    Token ---(related)---> Token

    <!-- right clicking the parent token will allow you to create the named token: "Kraken" -->
    <related>Kraken</related>

    (This is not yet uniformly handled and sometimes reverse-related is still used, or both are used)

Clone this wiki locally