It is currently 18 Jul 2025, 16:35
   
Text Size

Random Card of the Day

Moderator: CCGHQ Admins

Random Card of the Day

Postby NeoAnderson » 12 Jan 2014, 11:26

Just to have and share fun with my friends, I will post here some cards from the set i am coding.

The card of today is : All Hallow's Eve
Expansion : LEGENDS
Image
All Hallow's Eve | Open
Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
  <FILENAME text="ALL_HALLOWS_EVE_201119" />
  <CARDNAME text="ALL_HALLOWS_EVE" />
  <TITLE>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[All Hallow’s Eve]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Veille de Halloween]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[La víspera de Halloween]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Halloween-Vorabend]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Vigilia di Halloween]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[ハロウィンイブ]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[할로윈 이브]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Накануне Хэллоуина]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Véspera do Dia das Bruxas]]></LOCALISED_TEXT>
  </TITLE>
  <MULTIVERSEID value="201119" />
  <ARTID value="201119" />
  <ARTIST name="Christopher Rush" />
  <CASTING_COST cost="{2}{B}{B}" />
  <TYPE metaname="Sorcery" />
  <EXPANSION value="LE" />
  <RARITY metaname="R" />
  <SPELL_ABILITY>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Exile All Hallow’s Eve with two scream counters on it.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Exilez veille de Halloween avec deux compteurs scream sur elle.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Exiliada la víspera de Halloween, con dos contadores grito en él.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Exil am Vorabend von Halloween, mit zwei Zählern Schrei auf sie.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Esilia la Vigilia di Halloween con due segnalini urlo su di essa.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[その上に2悲鳴カウンターに亡命ハロウィンイブ。]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[상에 두 개의 비명 카운터를 추방 할로윈 이브.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Изгнание Хэллоуин Ева с двумя крика жетонами на ней.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Exile véspera de Halloween com dois contadores grito sobre ele.]]></LOCALISED_TEXT>
    <COUNTER_REGISTRATION name="Scream" proliferate="11" />
    <RESOLUTION_TIME_ACTION>
      if EffectSource() ~= nil then
          EffectDC():Protect_CardPtr(COMPARTMENT_ID_EFFECT_SOURCE)
          local delayDC = EffectDC():Make_Chest(1)
         delayDC:Set_CardPtr(0, EffectSource())
          delayDC:Protect_CardPtr(0)
         MTG():CreateDelayedTrigger(1, delayDC)
      end
    </RESOLUTION_TIME_ACTION>
    <RESOLUTION_TIME_ACTION>
        EffectSource():Exile()
    </RESOLUTION_TIME_ACTION>
  </SPELL_ABILITY>

<TRIGGERED_ABILITY resource_id="1" replacement_effect="1">
   <TRIGGER value="ZONECHANGE_END" simple_qualifier="self" to_zone="ZONE_EXILE" />
    <COUNTER_REGISTRATION name="Scream" proliferate="11" />
 <CLEANUP fire_once="1" />
    <RESOLUTION_TIME_ACTION>
      local source = EffectDC():Get_CardPtr(0)
      if source ~= nil then
       source:AddCounters( MTG():GetCountersType("Scream"), 2 )
      end
    </RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>

<TRIGGERED_ABILITY active_zone="ZONE_EXILE">
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[At the beginning of your upkeep, if All Hallow’s Eve is exiled with a scream counter on it, remove a scream counter from it. If there are no more scream counters on it, put it into your graveyard and each player returns all creature cards from his or her graveyard to the battlefield.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Au début de votre entretien, si la veille de Halloween est exilé avec un compteur de cri sur elle, retirez un marqueur de cri de celui-ci. S'il n'y a pas plus crier compteurs sur, le mettre dans votre cimetière et chaque joueur renvoie toutes les cartes de créature de son cimetière au champ de bataille.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Al comienzo de tu mantenimiento, si la víspera de Halloween es exiliado con un contador de grito sobre él, remueve un contador de grito de ella. Si ya no hay más gritar contadores sobre ella, ponerla en tu cementerio y cada jugador devuelve todas las cartas de criatura de su cementerio al campo de batalla.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Zu Beginn deines Versorgungssegments Alle Halloween-Vorabend wird mit einem Schrei Marke auf sie verbannt, entfernen Sie einen Schrei Marke von ihr. Wenn es nicht mehr schreien Marken auf sie, legte sie auf deinen Friedhof und jeder Spieler gibt alle Kreaturenkarten aus seinem Friedhof ins Spiel.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[All’inizio del tuo mantenimento, se la Vigilia di Halloween è esiliata e ha almeno un segnalino urlo, rimuovi un segnalino urlo da essa. Se non ci sono più segnalini urlo sulla Vigilia di Halloween, mettila nel tuo cimitero e ogni giocatore rimette tutte le carte creatura dal proprio cimitero sul campo di battaglia.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[ハロウィーンの前夜は、それに悲鳴カウンターで追放されている場合、あなたのアップキープの開始時に、それから悲鳴カウンターを1個取り除く。何があるかどうかより、その上にカウンターを叫ぶんそれをあなたの墓地に置き、各プレイヤーは戦場に自分の墓地からすべてのクリーチャー·カードを返します。]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[할로윈 이브가 그것에 비명 카운터 추방 된 경우에는 보수의 시작 부분에서, 그것에서 비명 카운터를 제거합니다. 더있을 경우 더 많은, 거기에 카운터를 지르고 자신의 묘지에 넣어 각 플레이어는 전장에 자신의 묘지에 존재하는 모든 생물 카드를 반환합니다.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[할로윈 이브가 그것에 비명 카운터 추방 된 경우에는 보수의 시작 부분에서, 그것에서 비명 카운터를 제거합니다. 더있을 경우 더 많은, 거기에 카운터를 지르고 자신의 묘지에 넣어 각 플레이어는 전장에 자신의 묘지에 존재하는 모든 생물 카드를 반환합니다.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[No início de sua manutenção, se véspera do Dia das Bruxas é exilado com um contador grito nele, remova um marcador grito dele. Se não existem mais gritar contadores sobre ele, colocá-lo em seu cemitério e cada jogador devolve todos os cards de criatura de seu cemitério para o jogo.]]></LOCALISED_TEXT>
<TRIGGER value="BEGINNING_OF_PLAYERS_STEP" simple_qualifier="controller">
 return MTG():GetStep() == STEP_UPKEEP
</TRIGGER>
      <INTERVENING_IF>
    return EffectSourceLKI():CountCounters( MTG():GetCountersType("Scream") ) &gt; 0
    </INTERVENING_IF>

     <FILTER filter_id="0">
      local filter = ClearFilter()
      filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
      filter:SetZone( ZONE_GRAVEYARD )
    </FILTER>

      <RESOLUTION_TIME_ACTION>
    if EffectSource() ~= nil then
       EffectSource():RemoveCounters( MTG():GetCountersType("Scream"), 1 )   
    end
    </RESOLUTION_TIME_ACTION>
     <RESOLUTION_TIME_ACTION filter_id="0">
    if EffectSource() ~= nil and (EffectSourceLKI():CountCounters( MTG():GetCountersType("Scream") ) == 0) then
       EffectDC():Protect_CardPtr(COMPARTMENT_ID_EFFECT_SOURCE)
       EffectSource():QueueZoneChange( ZONE_GRAVEYARD, EffectController() )
        if FilteredCard() ~= nil then
             FilteredCard():PutOntoBattlefield(FilteredCard():GetPlayer())
        end 
    end
    </RESOLUTION_TIME_ACTION>
   </TRIGGERED_ABILITY>
</CARD_V2>
ALL_HALLOWS_EVE_201119.ZIP
CARD XML + TDX
(300.72 KiB) Downloaded 231 times
NeoAnderson
 
Posts: 914
Joined: 10 Sep 2013, 07:49
Has thanked: 18 times
Been thanked: 139 times

Re: Random Card of the Day

Postby NeoAnderson » 13 Jan 2014, 16:10

Secon Random Card of the Day, from Antiquities set

The card of today is : Tawnos's Coffin
Expansion : ANTIQUITIES
Image
Tawnos's Coffin | Open
Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
  <FILENAME text="TAWNOSS_COFFIN_159120" />
  <CARDNAME text="TAWNOSS_COFFIN" />
  <TITLE>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Tawnos’s Coffin]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Tawnos’s Coffin]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Tawnos’s Coffin]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Tawnos’s Coffin]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Sarcofago di Tawnos]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Tawnos’s Coffin]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Tawnos’s Coffin]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Tawnos’s Coffin]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Tawnos’s Coffin]]></LOCALISED_TEXT>
  </TITLE>
  <MULTIVERSEID value="159120" />
  <ARTID value="159120" />
  <ARTIST name="Christopher Rush" />
  <CASTING_COST cost="{4}" />
  <TYPE metaname="Artifact" />
  <EXPANSION value="AQ" />
  <RARITY metaname="R" />
<TRIGGERED_ABILITY replacement_query="1" linked_ability_group="1">
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[You may choose not to untap Tawnos’s Coffin during your untap step.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[You may choose not to untap Tawnos’s Coffin during your untap step.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[You may choose not to untap Tawnos’s Coffin during your untap step.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[You may choose not to untap Tawnos’s Coffin during your untap step.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Puoi scegliere di non STAPpare il Sarcofago di Tawnos durante il tuo STAP.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[You may choose not to untap Tawnos’s Coffin during your untap step.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[You may choose not to untap Tawnos’s Coffin during your untap step.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[You may choose not to untap Tawnos’s Coffin during your untap step.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[You may choose not to untap Tawnos’s Coffin during your untap step.]]></LOCALISED_TEXT>
<TRIGGER value="BECAME_UNTAPPED" simple_qualifier="self" pre_trigger="1">
    local index_count = LinkedDC():Get_Int(0)
    local card = LinkedDC():Get_CardPtr(index_count+1)
    if ( card ~= nil ) and ( LinkedDC():Get_Int(1000) ~= 1 ) then
      LinkedDC():Set_Int(1000, 1)
      MTG():OverrideEvent()
      return true
    end
    return false
    </TRIGGER>
    <CLEANUP fire_once="1" />
<RESOLUTION_TIME_ACTION>
   if MTG():GetStep() == STEP_UNTAP and EffectController():MyTurn() then
    local index_count = LinkedDC():Get_Int(0)
    local card = LinkedDC():Get_CardPtr(index_count+1)
    local player = EffectController()
    if EffectSource() ~= nil and card ~= nil then
      player:BeginNewMultipleChoice()   
      player:AddMultipleChoiceAnswer( "CARD_QUERY_UNTAP_THIS_CARD" )
      player:AddMultipleChoiceAnswer( "CARD_QUERY_KEEP_TAPPED_THIS_CARD" )
      player:AskMultipleChoiceQuestion( "CARD_QUERY_ASHNODS_BATTLE_GEAR", EffectSource() )
    end
   else
     EffectSource():Untap()
   end
</RESOLUTION_TIME_ACTION>
      
  <RESOLUTION_TIME_ACTION>
   if MTG():GetStep() == STEP_UNTAP and EffectController():MyTurn() then
    local index_count = LinkedDC():Get_Int(0)
    local card = LinkedDC():Get_CardPtr(index_count+1)
    if EffectSource() ~= nil and card ~= nil then
      local result = EffectController():GetMultipleChoiceResult()
      if result == 0 then
         EffectSource():Untap()
      end
    end
   end
    </RESOLUTION_TIME_ACTION>

     <RESOLUTION_TIME_ACTION>
    if EffectSource() ~= nil then
      if EffectSource():IsTapped() then
        LinkedDC():Set_Int(1000, 0)
      end
    end
    </RESOLUTION_TIME_ACTION>
   </TRIGGERED_ABILITY>

  <ACTIVATED_ABILITY linked_ability_group="1">
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{3}, {T}: Exile target creature and all Auras attached to it. Note the number and kind of counters that were on that creature. When Tawnos’s Coffin leaves the battlefield or becomes untapped, return that exiled card to the battlefield under its owner’s control tapped with the noted number and kind of counters on it. If you do, return the other exiled cards to the battlefield under their owner’s control attached to that permanent.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{3}, {T}: Exile target creature and all Auras attached to it. Note the number and kind of counters that were on that creature. When Tawnos’s Coffin leaves the battlefield or becomes untapped, return that exiled card to the battlefield under its owner’s control tapped with the noted number and kind of counters on it. If you do, return the other exiled cards to the battlefield under their owner’s control attached to that permanent.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{3}, {T}: Exile target creature and all Auras attached to it. Note the number and kind of counters that were on that creature. When Tawnos’s Coffin leaves the battlefield or becomes untapped, return that exiled card to the battlefield under its owner’s control tapped with the noted number and kind of counters on it. If you do, return the other exiled cards to the battlefield under their owner’s control attached to that permanent.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{3}, {T}: Exile target creature and all Auras attached to it. Note the number and kind of counters that were on that creature. When Tawnos’s Coffin leaves the battlefield or becomes untapped, return that exiled card to the battlefield under its owner’s control tapped with the noted number and kind of counters on it. If you do, return the other exiled cards to the battlefield under their owner’s control attached to that permanent.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{3}, {T}: Esilia una creatura bersaglio e tutte le Aura ad essa assegnate. Prendi nota del numero e del tipo di segnalini che erano su quella creatura. Quando il Sarcofago di Tawnos lascia il campo di battaglia o diventa STAPpato, rimetti quella carta esiliata sul campo di battaglia sotto il controllo del suo proprietario, TAPpata e con il numero e il tipo di segnalini annotati. Se lo fai, rimetti sul campo di battaglia le altre carte esiliate sotto il controllo del loro proprietario assegnate a quel permanente.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{3}, {T}: Exile target creature and all Auras attached to it. Note the number and kind of counters that were on that creature. When Tawnos’s Coffin leaves the battlefield or becomes untapped, return that exiled card to the battlefield under its owner’s control tapped with the noted number and kind of counters on it. If you do, return the other exiled cards to the battlefield under their owner’s control attached to that permanent.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{3}, {T}: Exile target creature and all Auras attached to it. Note the number and kind of counters that were on that creature. When Tawnos’s Coffin leaves the battlefield or becomes untapped, return that exiled card to the battlefield under its owner’s control tapped with the noted number and kind of counters on it. If you do, return the other exiled cards to the battlefield under their owner’s control attached to that permanent.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{3}, {T}: Exile target creature and all Auras attached to it. Note the number and kind of counters that were on that creature. When Tawnos’s Coffin leaves the battlefield or becomes untapped, return that exiled card to the battlefield under its owner’s control tapped with the noted number and kind of counters on it. If you do, return the other exiled cards to the battlefield under their owner’s control attached to that permanent.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{3}, {T}: Exile target creature and all Auras attached to it. Note the number and kind of counters that were on that creature. When Tawnos’s Coffin leaves the battlefield or becomes untapped, return that exiled card to the battlefield under its owner’s control tapped with the noted number and kind of counters on it. If you do, return the other exiled cards to the battlefield under their owner’s control attached to that permanent.]]></LOCALISED_TEXT>
<COST mana_cost="{2}" type="Mana" />
<COST type="TapSelf" />
<TARGET tag="CARD_QUERY_CHOOSE_CREATURE_TO_EXILE" definition="0" compartment="0" count="1" />
    <TARGET_DEFINITION id="0">
    local filter = ClearFilter()
    filter:Add(FE_TYPE, OP_IS, CARD_TYPE_CREATURE)
    </TARGET_DEFINITION>

<RESOLUTION_TIME_ACTION>
 local source = EffectSource()
 local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
 if target ~= nil then
    if EffectSource() ~= nil then
        local chest = MTG():DuelDataChest():Get_Chest(888)
   local i = 0
        local j = 1
       if chest ~= nil then
          local index = chest:Get_Int(i)
          while index ~= 0 do
             local amount = target:CountCounters(index)
             if amount &gt; 0 then
            LinkedDC():Set_Int(j, index)
             LinkedDC():Set_Int(j+1, amount)
                                j = j+2                               
             end
             i = i+1
             index = chest:Get_Int(i)
          end
       end
       LinkedDC():Set_Int(0, j-1)
       local filter = ClearFilter()
       filter:SetZone( ZONE_BATTLEFIELD )
       filter:Add( FE_SUBTYPE, OP_IS, ENCHANTMENT_TYPE_AURA )
       filter:Add( FE_PARENT_CARD, OP_IS, target )
       local filter_count = filter:EvaluateObjects()
       local shifter = j+1
       LinkedDC():Set_Int(shifter, filter_count)
       if filter_count &gt; 0 then
          for i=1,filter_count do
             local card = filter:GetNthEvaluatedObject(i-1)
             LinkedDC():Set_CardPtr(shifter+i, card)
             LinkedDC():Protect_CardPtr(shifter+i)
             card:Exile()
          end
       end
       LinkedDC():Set_CardPtr(j, target)
       LinkedDC():Protect_CardPtr(j)
   else
       local filter = ClearFilter()
       filter:SetZone( ZONE_BATTLEFIELD )
       filter:Add( FE_SUBTYPE, OP_IS, ENCHANTMENT_TYPE_AURA )
       filter:Add( FE_PARENT_CARD, OP_IS, target )
       local filter_count = filter:EvaluateObjects()
       if filter_count &gt; 0 then
          for i=1,filter_count do
             local card = filter:GetNthEvaluatedObject(i-1)
             card:Exile()
          end
       end
  end
       target:Exile()
 end

</RESOLUTION_TIME_ACTION>

    <RESOLUTION_TIME_ACTION>
       if EffectSource() ~= nil then
           local source = EffectSource()
           local index_count = LinkedDC():Get_Int(0)
           local card = LinkedDC():Get_CardPtr(index_count+1)
           if card ~= nil then
              card:NailOnto(source)
           end
           local shifter = index_count+2
           local aura_count = LinkedDC():Get_Int(shifter)
           for i=1,aura_count do
               local card = LinkedDC():Get_CardPtr(shifter+i)
               if card ~= nil then
                  card:NailOnto(source)
               end
           end
        end
    </RESOLUTION_TIME_ACTION>
  </ACTIVATED_ABILITY>



<TRIGGERED_ABILITY linked_ability_group="1">
<TRIGGER value="ZONECHANGE_BEGIN" simple_qualifier="self" to_zone="ZONE_ANY" from_zone="ZONE_BATTLEFIELD" />
<TRIGGER value="BECAME_UNTAPPED" simple_qualifier="self">
    local index_count = LinkedDC():Get_Int(0)
    local card = LinkedDC():Get_CardPtr(index_count+1)
    if ( card ~= nil ) and ( LinkedDC():Get_Int(1000) == 1 ) then
      return true
    end
    return false
</TRIGGER>
    <CLEANUP fire_once="1" />
    <PLAY_TIME_ACTION>
    local index_count = LinkedDC():Get_Int(0)
    local card = LinkedDC():Get_CardPtr(index_count+1)
    if card ~= nil then
       LinkedDC():Protect_CardPtr(index_count+1)
       card:PutOntoBattlefieldTapped( card:GetOwner() )
    end
    </PLAY_TIME_ACTION>
    <PLAY_TIME_ACTION>
    local index_count = LinkedDC():Get_Int(0)
    if index_count &gt; 0 then
       local card = LinkedDC():Get_CardPtr(index_count+1)
       if card ~= nil and card:GetZone() == ZONE_BATTLEFIELD then
          local index = 0
          local amount = 0
          local i = 1
          while i &lt; index_count do
             index = LinkedDC():Get_Int(i)
             amount = LinkedDC():Get_Int(i+1)
             card:AddCounters(index, amount)
             i=i+2 
          end
       end
    end
    </PLAY_TIME_ACTION>

    <RESOLUTION_TIME_ACTION>
    local index_count = LinkedDC():Get_Int(0)
    local shifter = index_count+2
    local aura_count = LinkedDC():Get_Int(shifter)
    if aura_count &gt; 0 then
       local parent = LinkedDC():Get_CardPtr(index_count+1)
       if parent ~= nil and parent:GetZone() == ZONE_BATTLEFIELD then
          for i=1,aura_count do
             local card = LinkedDC():Get_CardPtr(shifter+i)
             if card ~= nil and card:CanAttachTo(parent) then
                card:PutOntoBattlefieldAttachedTo( card:GetOwner(), parent )
             end
          end
       end
    end
    </RESOLUTION_TIME_ACTION>
  </TRIGGERED_ABILITY>

<TRIGGERED_ABILITY replacement_effect="1" active_zone="ZONE_ANY">
<TRIGGER value="COUNTERS_CHANGED" />
    <RESOLUTION_TIME_ACTION>
    local current_index = CounterTypeIndex()
    local i = 0
    local chest = MTG():DuelDataChest():Get_Chest(888)
   if chest == nil then
      chest = MTG():DuelDataChest():Make_Chest(888)
        else
       local index = chest:Get_Int(0)
       while index ~= 0 do
          if index == current_index then
             return
          end
          i = i+1
          index = chest:Get_Int(i)
       end
    end
    chest:Set_Int(i, current_index)
    </RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
</CARD_V2>
Attachments
TAWNOSS_COFFIN_159120.zip
CARD XML + TDX
(503.28 KiB) Downloaded 211 times
NeoAnderson
 
Posts: 914
Joined: 10 Sep 2013, 07:49
Has thanked: 18 times
Been thanked: 139 times

Re: Random Card of the Day

Postby NeoAnderson » 14 Jan 2014, 13:44

Random Card of the Day, from Legends set

The card of today is : Dream Coat
Expansion : LEGENDS
Image
Dream Coat | Open
Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
  <FILENAME text="DREAM_COAT_1477" />
  <CARDNAME text="DREAM_COAT" />
  <TITLE>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Dream Coat]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Dream Coat]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Dream Coat]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Dream Coat]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Manto Onirico]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Dream Coat]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Dream Coat]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Dream Coat]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Dream Coat]]></LOCALISED_TEXT>
  </TITLE>
  <MULTIVERSEID value="1477" />
  <ARTID value="1477" />
  <ARTIST name="Anthony Waters" />
  <CASTING_COST cost="{U}" />
  <FLAVOURTEXT>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[“Adopt the character of the twisting octopus, which takes on the appearance of the nearby rock. Now follow in this direction, now turn a different hue.”Theognis, Elegies 1, 215]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[“Adopt the character of the twisting octopus, which takes on the appearance of the nearby rock. Now follow in this direction, now turn a different hue.”Theognis, Elegies 1, 215]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[“Adopt the character of the twisting octopus, which takes on the appearance of the nearby rock. Now follow in this direction, now turn a different hue.”Theognis, Elegies 1, 215]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[“Adopt the character of the twisting octopus, which takes on the appearance of the nearby rock. Now follow in this direction, now turn a different hue.”Theognis, Elegies 1, 215]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[“Adopt the character of the twisting octopus, which takes on the appearance of the nearby rock. Now follow in this direction, now turn a different hue.”Theognis, Elegies 1, 215]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[“Adopt the character of the twisting octopus, which takes on the appearance of the nearby rock. Now follow in this direction, now turn a different hue.”Theognis, Elegies 1, 215]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[“Adopt the character of the twisting octopus, which takes on the appearance of the nearby rock. Now follow in this direction, now turn a different hue.”Theognis, Elegies 1, 215]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[“Adopt the character of the twisting octopus, which takes on the appearance of the nearby rock. Now follow in this direction, now turn a different hue.”Theognis, Elegies 1, 215]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[“Adopt the character of the twisting octopus, which takes on the appearance of the nearby rock. Now follow in this direction, now turn a different hue.”Theognis, Elegies 1, 215]]></LOCALISED_TEXT>
  </FLAVOURTEXT>
  <TYPE metaname="Enchantment" />
  <SUB_TYPE metaname="Aura" />
  <EXPANSION value="LE" />
  <RARITY metaname="U" />
  <SPELL_ABILITY attach_definition="0">
      <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Enchant creature]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Enchanter : créature]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Encantar criatura.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Verzaubert eine Kreatur]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Incanta creatura]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[エンチャント(クリーチャー)]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[생물에게 부여]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Зачаровать существо]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Encantar criatura]]></LOCALISED_TEXT>
      <TARGET tag="CARD_QUERY_CHOOSE_CREATURE_TO_ENCHANT" definition="0" compartment="0" count="1" />
      <TARGET_DEFINITION id="0">
    local filter = ClearFilter()
    filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
    </TARGET_DEFINITION>

    <RESOLUTION_TIME_ACTION>
    local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
    if (target ~= nil and EffectSource() ~= nil) then
       EffectSource():Attach( target )
    end
    </RESOLUTION_TIME_ACTION>

   <AI_SIMPLIFIED_TARGETING compartment="0" hint="HINT_NEUTRAL" />
</SPELL_ABILITY>
  <ACTIVATED_ABILITY>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{0}: Enchanted creature becomes the color or colors of your choice. Activate this ability only once each turn.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{0}: Enchanted creature becomes the color or colors of your choice. Activate this ability only once each turn.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{0}: Enchanted creature becomes the color or colors of your choice. Activate this ability only once each turn.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{0}: Enchanted creature becomes the color or colors of your choice. Activate this ability only once each turn.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{0}: La creatura incantata diventa del colore o dei colori a tua scelta. Attiva questa abilità solo una volta per turno.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{0}: Enchanted creature becomes the color or colors of your choice. Activate this ability only once each turn.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{0}: Enchanted creature becomes the color or colors of your choice. Activate this ability only once each turn.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{0}: Enchanted creature becomes the color or colors of your choice. Activate this ability only once each turn.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{0}: Enchanted creature becomes the color or colors of your choice. Activate this ability only once each turn.]]></LOCALISED_TEXT>
    <COST mana_cost="{0}" type="Mana" />
    <AVAILABILITY per_turn_limit="1" />
<RESOLUTION_TIME_ACTION>
  for i = 0, 4 do
        EffectDC():Set_Int(i, 0)
    end
</RESOLUTION_TIME_ACTION>
 <RESOLUTION_TIME_ACTION repeating="1">
  local player = EffectController()
  local n = MTG():GetActionRepCount()
  local parity = n % 2
    if parity == 0  then
      player:BeginNewMultipleChoice()
      player:AddMultipleChoiceAnswer( "CARD_QUERY_OPTION_WHITE", (EffectDC():Get_Int(0) == 0) )
      player:AddMultipleChoiceAnswer( "CARD_QUERY_OPTION_BLUE", (EffectDC():Get_Int(1) == 0) )
      player:AddMultipleChoiceAnswer( "CARD_QUERY_OPTION_BLACK", (EffectDC():Get_Int(2) == 0) )
      player:AddMultipleChoiceAnswer( "CARD_QUERY_OPTION_RED", (EffectDC():Get_Int(3) == 0) )
      player:AddMultipleChoiceAnswer( "CARD_QUERY_OPTION_GREEN", (EffectDC():Get_Int(4) == 0) )
      player:AddMultipleChoiceAnswer( "CARD_QUERY_OPTION_DONE" )
      player:AskMultipleChoiceQuestion( "CARD_QUERY_DREAM_COAT", EffectSource():GetParent() )
    elseif parity == 1  then
    local result = player:GetMultipleChoiceResult()
      if result &lt; 5 then
       EffectDC():Set_Int(result, 1)
       return true
      else
       EffectDC():Set_Int(result, 1)
       return false   
      end
   end
  return true
</RESOLUTION_TIME_ACTION>

    <CONTINUOUS_ACTION layer="5">
          local target = EffectSource():GetParent()
          if target ~= nil and (EffectDC():Get_Int(5) == 1) then
             target:GetCurrentCharacteristics():Colour_Set( COLOUR_COLOURLESS )
             if (EffectDC():Get_Int(0) == 1) then
                target:GetCurrentCharacteristics():Colour_Add(COLOUR_WHITE)
             end
             if (EffectDC():Get_Int(1) == 1) then
                target:GetCurrentCharacteristics():Colour_Add(COLOUR_BLUE)
             end               
             if (EffectDC():Get_Int(2) == 1) then
                target:GetCurrentCharacteristics():Colour_Add(COLOUR_BLACK)
             end         
             if (EffectDC():Get_Int(3) == 1) then
                target:GetCurrentCharacteristics():Colour_Add(COLOUR_RED)
             end         
             if (EffectDC():Get_Int(4) == 1) then
                target:GetCurrentCharacteristics():Colour_Add(COLOUR_GREEN)
             end         
     end
    </CONTINUOUS_ACTION>
   <DURATION>
     return (EffectSource() == nil)
   </DURATION>
  </ACTIVATED_ABILITY>
</CARD_V2>
Just remember to use the file CARD_UI_TEXT LGDS.XML into folder \DATA_DLC_DECK_BUILDER_CUSTOM\DATA_ALL_PLATFORMS\TEXT_PERMANENT to have the right queries text displayed.
Attachments
DREAM_COAT_1477.zip
CARD XML + TDX + CARD QUERIES FILE
(482.77 KiB) Downloaded 221 times
NeoAnderson
 
Posts: 914
Joined: 10 Sep 2013, 07:49
Has thanked: 18 times
Been thanked: 139 times

Re: Random Card of the Day

Postby NeoAnderson » 15 Jan 2014, 09:07

Random Card of the Day, from Legends set

The card of today is : The Wretched
Expansion : LEGENDS
Image
The Wretched | Open
Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
  <FILENAME text="THE_WRETCHED_201168" />
  <CARDNAME text="THE_WRETCHED" />
  <TITLE>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[The Wretched]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[The Wretched]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[The Wretched]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[The Wretched]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Il Corruttore]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[The Wretched]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[The Wretched]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[The Wretched]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[The Wretched]]></LOCALISED_TEXT>
  </TITLE>
  <MULTIVERSEID value="201168" />
  <ARTID value="201168" />
  <ARTIST name="Christopher Rush" />
  <CASTING_COST cost="{3}{B}{B}" />
  <TYPE metaname="Creature" />
  <SUB_TYPE metaname="Demon" />
  <EXPANSION value="LE" />
  <RARITY metaname="R" />
  <POWER value="2" />
  <TOUGHNESS value="5" />
     <TRIGGERED_ABILITY replacement_effect="1">
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[At end of combat, gain control of all creatures blocking The Wretched for as long as you control The Wretched.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[At end of combat, gain control of all creatures blocking The Wretched for as long as you control The Wretched.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[At end of combat, gain control of all creatures blocking The Wretched for as long as you control The Wretched.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[At end of combat, gain control of all creatures blocking The Wretched for as long as you control The Wretched.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Alla fine del combattimento, guadagni il controllo di tutte le creature che stanno bloccando Il Corruttore fintanto che controlli Il Corruttore.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[At end of combat, gain control of all creatures blocking The Wretched for as long as you control The Wretched.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[At end of combat, gain control of all creatures blocking The Wretched for as long as you control The Wretched.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[At end of combat, gain control of all creatures blocking The Wretched for as long as you control The Wretched.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[At end of combat, gain control of all creatures blocking The Wretched for as long as you control The Wretched.]]></LOCALISED_TEXT>
    <TRIGGER value="WAS_BLOCKED_BY_A_CREATURE" simple_qualifier="self" />
     <RESOLUTION_TIME_ACTION>
      local creature = SecondaryObject()
        if creature ~= nil then
         local delayDC = EffectDC():Make_Chest(1)
         delayDC:Set_CardPtr(0, creature)
         MTG():CreateDelayedTrigger(1, delayDC)
        end
    </RESOLUTION_TIME_ACTION>
      <AI_MODIFIERS worthless="1" />
   </TRIGGERED_ABILITY>

<TRIGGERED_ABILITY resource_id="1">
 <TRIGGER value="BEGINNING_OF_STEP">
  if  MTG():GetStep() == STEP_END_OF_COMBAT then
      local target_creature = EffectDC():Get_CardPtr(0)
      if target_creature ~= nil then
       local interrogation = MTG():ClearInterrogationQuery()
       interrogation:SetObject(target_creature)
       if target_creature:IsBlocking() == true then
          return true
       end
      end
  else
    return false
  end
</TRIGGER>
 <CLEANUP simple_cleanup="EndOfTurn" />
    <CONTINUOUS_ACTION layer="2">
      local card = EffectDC():Get_CardPtr(0)
      if card ~= nil then
         card:SetController(EffectController())
      end
    </CONTINUOUS_ACTION>
     <DURATION>
      return (EffectSource() == nil or EffectSource():GetPlayer() ~= EffectController())
    </DURATION>
   </TRIGGERED_ABILITY>
  <SFX text="COMBAT_BLUNT_LARGE_ATTACK" power_boundary_min="4" power_boundary_max="-1" />
  <SFX text="COMBAT_BLUNT_SMALL_ATTACK" power_boundary_min="1" power_boundary_max="3" />
</CARD_V2>
Attachments
THE_WRETCHED_201168.zip
CARD XML + TDX
(416.44 KiB) Downloaded 218 times
NeoAnderson
 
Posts: 914
Joined: 10 Sep 2013, 07:49
Has thanked: 18 times
Been thanked: 139 times


Return to 2014

Who is online

Users browsing this forum: No registered users and 7 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 7 users online :: 0 registered, 0 hidden and 7 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 7 guests

Login Form