It is currently 19 Aug 2018, 15:15
   
Text Size

Forge "cards.txt" translation table

Moderators: frwololo, CCGHQ Admins

Forge "cards.txt" translation table

Postby frwololo » 28 Jan 2010, 04:18

This gives a list of abilities recognized by Forge, and how they can be translated into Wagic
See viewtopic.php?f=26&t=701&p=28102#p28102 for the list of keywords recognized by forge
See http://wololo.net/miki/index.php/Wagic/CardCode for the card code syntax of Wagic

Chris H. wrote:Keywords recognized as of MTG Forge 01-26-2010 are:
{cardName} is {color}
color=red
{cost}, Sacrifice {card name}: Draw a card.
auto={cost},{S}:Draw:1
auto={cost},{tap}: add {mana}
auto={cost},{T}:add {mana}
auto={cost},{T}:p/t
auto={cost},{T}:damage:n target({target})
At the beginning of your upkeep, {card name} deals {num} damage to you unless you pay:{cost}
At the beginning of your upkeep, destroy {card name} unless you pay:{cost}
At the beginning of your upkeep, sacrifice {card name} unless you pay:{cost}
Not supported
Cascade
Changeling
Not supported
Comes into play tapped.
auto=tap
Cumulative upkeep:{cost}
Not supported
Cycling:{cost}
autohand={cost}:cycling
Deathtouch
abilities=deathtouch
Defender
abilities=defender
Devour:{magnitude}
Not supported
Double Strike
abilities=double strike
Draw a card.
auto=draw:1
Echo:{cost}
not supported
Enchant creature
target=creature
type=enchantment
subtype=aura
Enchant land
target=land
type=enchantment
subtype=aura
Enchant land you control
target=land|myBattlefield
type=enchantment
subtype=aura
Exalted
Fear
First Strike
Flash
Flying
Forestwalk
Haste
Horsemanship
Indestructible
Intimidate
Islandwalk
abilities=exalted
abilities=flash,hosrmanship
...
Flanking
unsupported
Landfall
@movedTo(land|myBattlefield):{action}
Legendary landwalk
auto=aslongas(land[legendary]|opponentBattlefield) unblockable
abilities=lifelink
Modular
unsupported
Morph:{cost}
unsupported
Mountainwalk
Nonbasic landwalk
Persist
Plainswalk
abilities=...
Protection from {color}
Protection from artifacts
Protection from creatures
Protection from Demons
Protection from Dragons
Protection from enchantments
Protection from Goblins
auto=protection from(*[red])
auto=protection from(creature)
auto=protection from(demon,dragon)
...
Reach
abilities=reach
RegenerateMe:{cost}
auto={cost}:regenerate
Remove three spore counters from this card: Put a 1/1 green Saproling creature token into play.
unsupported
Scry
unsupported
SearchMerc:{cost}
SearchRebel:{cost}
auto={cost}:moveTo(myHand) target(mercenary|myLibrary)
auto={cost}:moveTo(myHand) target(rebel|myLibrary)
Shadow
Shroud
abilities=...
Soulshift
unsupported
auto={cost},{T}:damage:n target([target])
auto={cost},{T}:destroy target([target])
auto={cost},{T}:draw:n
auto={cost},{T}:life:n [controller|opponent|targetController]
auto={cost},{T}:p/t target([target])
auto=moveTo(myHand) target(creature|myGraveyard)
Swampwalk
abilities=swampwalk
tap: add 1
tap: add B
tap: add G
tap: add R
tap: add U
tap: add W
auto={T}:Add {mana}
This card attacks each turn if able.
abilities=mustattack
This card can't be countered.
abilities=nofizzle
This card can't be the target of Aura spells.
unsupported
can be borderline written:
auto=protection from(aura)
This card can't be the target of spells or abilities your opponents control.
abilities=opponentshroud
This card doesn't untap during your untap step.
abilities=doesnotuntap
This creature can block as though it had flying.
abilities=reach
This creature can block creatures with shadow as though they didn't have shadow.
abilities=reachshadow
This creature can block only creatures with flying.
abilities=cloud
This creature can't attack
abilities=cantattack
This creature can't attack or block
abilities=cantblock,cantattack
This creature can't attack unless defending player controls an Island
abilities=cantattack
auto=aslongas(island|opponentBattlefield) -cantattack
This creature can't be blocked except by creatures with flying
auto=cantBeBlockedBy(*[-flying])
This creature cannot block
abilities=cantblock
Trample
abilities=trample
Transmute
unsuported
TypeCycling
autohand={cost},{S(elf|myHand}):cycling
Unblockable
auto=unblockable
Untap:{cost}
auto={cost}:untap
Upkeep:{cost}
unsupported
VanillaEquipment
??
unsupported
abilities=vigilance
When this card comes into play, draw a card.
auto=Draw:1 controller
When this card is put into a graveyard from anywhere, reveal this card and shuffle it into its owner's library instead.
unsupported
When this card is put into a graveyard from the battlefield, return this card to its owner's hand
auto=@movedTo(this|graveyard):moveTo(ownerHand)
When you control no Islands, sacrifice this creature
abilities=islandHome
Whenever a creature dealt damage by this card this turn is put into a graveyard, put a +1/+1 counter on this card.
unsupported
Wither
abilities=wither
frwololo
DEVELOPER
 
Posts: 265
Joined: 21 Jun 2008, 04:33
Has thanked: 0 time
Been thanked: 3 times

Re: Forge "cards.txt" translation table

Postby Chris H. » 28 Jan 2010, 12:21

frwololo wrote:
VanillaEquipment
??
`
If I remember correctly, this keyword gives a power/toughness boost in the first two fields, the equip cost in the third field and can also give up to a maximum of three of the other non-scripted keywords in the last three fields. A "none" in the keyword field signifies less than three keywords are given to the creature.

Two examples from cards.txt:

    Peregrine Mask
    1
    Artifact Equipment
    Equipped creature has defender, flying, and first strike.
    VanillaEquipment:0:0:2:Defender:Flying:First Strike

    Leonin Scimitar
    1
    Artifact Equipment
    Equipped creature gets +1/+1.
    VanillaEquipment:1:1:1:none:none:none
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Re: Forge "cards.txt" translation table

Postby jeffwadsworth » 28 Dec 2010, 22:03

I just noticed this list...wow, perhaps I should lurk a bit more. Thanks.
jeffwadsworth
Super Tester
 
Posts: 1162
Joined: 20 Oct 2010, 04:47
Location: USA
Has thanked: 283 times
Been thanked: 68 times


Return to Wagic (MTG For Android/PSP/Windows/Linux)

Who is online

Users browsing this forum: No registered users and 2 guests


Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 10 minutes)
Most users ever online was 279 on 11 Jul 2013, 22:03

Users browsing this forum: No registered users and 2 guests

Login Form