It is currently 11 Sep 2025, 20:22
   
Text Size

Volrathxp's Custom Dotp 2014 DLC (Last Update: 12/6/2014)

Moderator: CCGHQ Admins

Re: Volrathxp's Custom Dotp 2014 DLC (Last Update: 9/22/2014

Postby NeoAnderson » 24 Sep 2014, 06:05

volrathxp wrote:
NeoAnderson wrote:
volrathxp wrote:@Neo: thanks i will look into that.
Let me know because i am also coding this set, and i already made this card but i have also added an improvement to Firemind code.
His version of Copy Enchantment fails is you copy an Enchantment Aura (enchant type you control) controlled by opponent, my version allows also this condition, it just fail when you copy this kind of enchantment controlled by opponent and apply the copy to a card with color protection.
Can you post your code and I will look at it too.
Ok Volrathxp here you can find my version :
Clever Impersonator Neo Rev 1.0 | Open
Code: Select all
<?xml version="1.0"?>
<CARD_V2 ExportVersion="1">
  <FILENAME text="NEO_KTK_034_CLEVER_IMPERSONATOR_994386506" />
  <CARDNAME text="CLEVER_IMPERSONATOR" />
  <TITLE>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Clever Impersonator]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Imitateur rusé]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Impostor sagaz]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Durchtriebener Nachahmer]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Impostore Scaltro]]></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[Personificador Astuto]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="zh-CN"><![CDATA[机敏冒名客]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="zh-HK"><![CDATA[機敏冒名客]]></LOCALISED_TEXT>
  </TITLE>
  <MULTIVERSEID value="994386506" />
  <ARTID value="994386506" />
  <ARTIST name="Slawomir Maniak" />
  <CASTING_COST cost="{2}{U}{U}" />
  <FLAVOURTEXT>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[“Our own selves are the greatest obstacles to enlightenment.“<br>—Narset, khan of the Jeskai]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[« Nous sommes nous-mêmes le plus grand obstacle à l’illumination. »<br>—Narset, khan des Jeskaï]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[“Nuestro ser es el mayor obstáculo hacia la iluminación”.<br>—Narset, kan de los Jeskai]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[„Das eigene Ich ist das größte Hindernis auf dem Weg zur Erleuchtung.“<br>—Narset, Khan der Jeskai]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[“Il nostro più grande ostacolo nel cammino verso l’illuminazione siamo noi stessi.“<br>—Narset, khan dei Jeskai]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[「自我こそが悟りの境地に至るための最大の障害である。」<br>――ジェスカイのカン、ナーセット]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[“우리 자신이야말로 깨달음을 방해하는 가장 큰 장애물이다.“<br>—제스카이의 칸 나르셋]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[«На пути к просветлению самое большое препятствие — это мы сами».<br>— Нарсет, хан Джеская]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[“Nós somos nosso maior obstáculo no caminho para a iluminação.“<br>— Narset, khan dos Jeskai]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="zh-CN"><![CDATA[「阻挡启悟之道的,正是我们自己。」<br>~洁斯凯可汗娜尔施]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="zh-HK"><![CDATA[「阻擋啟悟之道的,正是我們自己。」<br>~潔斯凱可汗娜爾施]]></LOCALISED_TEXT>
  </FLAVOURTEXT>
  <TYPE metaname="Creature" />
  <SUB_TYPE metaname="Shapeshifter" />
  <EXPANSION value="KTK" />
  <RARITY metaname="M" />
  <POWER value="0" />
  <TOUGHNESS value="0" />
<TRIGGERED_ABILITY replacement_query="1" active_zone="ZONE_TRANSITION">
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[You may have Clever Impersonator enter the battlefield as a copy of any nonland permanent on the battlefield.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Vous pouvez faire que l’Imitateur rusé arrive sur le champ de bataille comme une copie de n’importe quel permanent non-terrain sur le champ de bataille.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Puedes hacer que el Impostor sagaz entre al campo de batalla como una copia de cualquier permanente que no sea tierra en el campo de batalla.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Du kannst den Durchtriebenen Nachahmer als Kopie einer beliebigen bleibenden Karte, die im Spiel ist und die kein Land ist, ins Spiel kommen lassen.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Puoi far entrare l’Impostore Scaltro nel campo di battaglia come una copia di un qualsiasi permanente non terra sul campo di battaglia.]]></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[Você pode fazer com que Personificador Astuto entre no campo de batalha como uma cópia de qualquer permanente que não seja terreno no campo de batalha.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="zh-CN"><![CDATA[你可以使机敏冒名客当成战场上任一非地永久物的复制品来进入战场。]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="zh-HK"><![CDATA[你可以使機敏冒名客當成戰場上任一非地永久物的複製品來進入戰場。]]></LOCALISED_TEXT>
<TRIGGER value="ZONECHANGE_TRANSITION" simple_qualifier="self" to_zone="ZONE_BATTLEFIELD" from_zone="ZONE_ANY" />
      <RESOLUTION_TIME_ACTION>
    local filter = ClearFilter()
    filter:Add( FE_TYPE, OP_NOT, CARD_TYPE_LAND )
    filter:SetZone( ZONE_BATTLEFIELD ) 
    EffectController():ChooseItem( "CARD_QUERY_CHOOSE_CREATURE_TO_CLONE", EffectDC():Make_Targets(0), QUERY_FLAG_MAY )
    </RESOLUTION_TIME_ACTION>
      <RESOLUTION_TIME_ACTION>
    local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
    if ( target ~= nil ) and  ( EffectSource() ~= nil )then   
       target:StoreCopiableValues(EffectDC():Make_Chest(1))   
       EffectSource():UseCopiableValues(EffectDC():Get_Chest(1))
   if target:GetSubType():Test(ENCHANTMENT_TYPE_AURA) then
          local parent_card = target:GetParent()
        local parent_player = target:GetParentPlayer()
           if IsEnchantAuraCreatureYouControl(target) == 1 then
               local filter = ClearFilter()
              filter:Add(FE_CARD_INSTANCE, OP_NOT, EffectSource())
              filter:Add(FE_TYPE, OP_IS, CARD_TYPE_CREATURE)
              filter:Add( FE_CHARACTERISTIC, OP_NOT, CHARACTERISTIC_SHROUD )
              filter:Add(FE_CONTROLLER, OP_IS, EffectController())
           elseif IsEnchantAuraLandYouControl(target) == 1 then
                   local filter = ClearFilter()
                  filter:Add(FE_CARD_INSTANCE, OP_NOT, EffectSource())
                  filter:Add(FE_TYPE, OP_IS, CARD_TYPE_LAND)
             filter:Add( FE_CHARACTERISTIC, OP_NOT, CHARACTERISTIC_SHROUD )
                  filter:Add(FE_CONTROLLER, OP_IS, EffectController())
           else
          MTG():ClearFilterMark()
          local filter = ClearFilter()
          if parent_card ~= nil then
             filter:SetZone( parent_card:GetZone() )
             filter:Add(FE_CARD_INSTANCE, OP_NOT, EffectSource())
             local filter_count = filter:EvaluateObjects()
             for i=0,filter_count-1 do
                local permanent = filter:GetNthEvaluatedObject(i)
                if target:CanAttachTo(permanent) then
                   permanent:MarkForFilter()
                end
             end
             filter:SetMarkedObjectsOnly()
          end
           end
           if parent_player ~= nil then
             filter:SetFilterType(FILTER_TYPE_PLAYERS)
             EffectController():ChooseItem( "CARD_QUERY_CHOOSE_PLAYER_TO_CURSE", EffectDC():Make_Targets(3) )
           elseif parent_card ~= nil then
          EffectController():ChooseItem( "CARD_QUERY_CHOOSE_PERMANENT_TO_ENCHANT", EffectDC():Make_Targets(3) )
           end
       end      
       EffectDC():Protect_CardPtr(COMPARTMENT_ID_EFFECT_SOURCE)
    end
    </RESOLUTION_TIME_ACTION>

      <RESOLUTION_TIME_ACTION>
          local parentDC = EffectDC():Get_Targets(3)
            if parentDC ~= nil then
                 local parent_card = parentDC:Get_CardPtr(0)
            local parent_player = parentDC:Get_PlayerPtr(0)
          if parent_card ~= nil then
             EffectSource():Attach(parent_card)
               elseif parent_player ~= nil then
             EffectSource():AttachToPlayer(parent_player)
               end
            end
       </RESOLUTION_TIME_ACTION>

      <CONTINUOUS_ACTION layer="1">
    if EffectSource() ~= nil and EffectDC():Get_Chest(1) ~= nil then
       EffectSource():UseCopiableValues(EffectDC():Get_Chest(1))
    end
    </CONTINUOUS_ACTION>
      <DURATION>
    return EffectSource() == nil
    </DURATION>
   </TRIGGERED_ABILITY>
   <SEALED_HEURISTICS score_modifier="1300" />
   <SFX text="COMBAT_PLASMA_LARGE_ATTACK" power_boundary_min="4" power_boundary_max="-1" />
   <SFX text="COMBAT_PLASMA_SMALL_ATTACK" power_boundary_min="1" power_boundary_max="3" />
   <AI_BASE_SCORE score="1200" zone="ZONE_HAND" />
</CARD_V2>
To work you also need this 2 custom functions :
CUSTOM FUNCTIONS | Open
Code: Select all
IsEnchantAuraCreatureYouControl = function(oCard)
-- returns 1 if the oCard name is one of this set.
-- else returns 0

if oCard:GetCardName() == "BLOODFIRE_INFUSION" or oCard:GetCardName() == "BREATH_OF_FURY" or oCard:GetCardName() == "CLOAK_OF_CONFUSION" or oCard:GetCardName() == "COALITION_FLAG" or oCard:GetCardName() == "COCOON" or oCard:GetCardName() == "DEMONIC_APPETITE" or oCard:GetCardName() == "DIZZYING_GAZE" or oCard:GetCardName() == "DYING_WISH" or oCard:GetCardName() == "EMBLEM_OF_THE_WARMIND" or oCard:GetCardName() == "FIRE_WHIP" or oCard:GetCardName() == "FLAMESPEAKERS_WILL" or oCard:GetCardName() == "INFERNO_FIST" or oCard:GetCardName() == "MORTAL_OBSTINACY" or oCard:GetCardName() == "MURDER_INVESTIGATION" or oCard:GetCardName() == "NATURES_CHOSEN" or oCard:GetCardName() == "SPIRIT_LOOP" or oCard:GetCardName() == "VETERANS_VOICE" then
    return 1
end
  return 0
end

IsEnchantAuraLandYouControl = function(oCard)
-- returns 1 if the oCard name is one of this set.
-- else returns 0

if oCard:GetCardName() == "CARIBOU_RANGE" or oCard:GetCardName() == "EARTHLORE" or oCard:GetCardName() == "HOT_SPRINGS" or oCard:GetCardName() == "MYSTIC_MIGHT" or oCard:GetCardName() == "TOURACHS_GATE" then
    return 1
end
  return 0
end
NeoAnderson
 
Posts: 914
Joined: 10 Sep 2013, 07:49
Has thanked: 18 times
Been thanked: 139 times

Re: Volrathxp's Custom Dotp 2014 DLC (Last Update: 9/22/2014

Postby Kithkin » 24 Sep 2014, 07:52

Could you please include Mardu Hordechief into the set? What's a Horde without its Chief :?:
Last edited by Kithkin on 26 Sep 2014, 22:12, edited 1 time in total.
User avatar
Kithkin
 
Posts: 456
Joined: 21 Feb 2014, 07:12
Location: Cologne, GERMANY
Has thanked: 11 times
Been thanked: 56 times

Re: Volrathxp's Custom Dotp 2014 DLC (Last Update: 9/22/2014

Postby volrathxp » 24 Sep 2014, 10:53

Kithkin wrote:Could you please include Mardu Hordechief into the set? What's a Horde without his Chief :?:
Yeah I'm working on more cards, just trying to sort out the bugs on these first.
volrathxp
User avatar
volrathxp
 
Posts: 362
Joined: 23 Jul 2014, 17:34
Has thanked: 9 times
Been thanked: 17 times

Re: Volrathxp's Custom Dotp 2014 DLC (Last Update: 9/22/2014

Postby volrathxp » 24 Sep 2014, 11:05

Alright. Here's High Sentinels. I hope someone can help me with this guy cuz he's annoying me. :)

High Sentinels of Arashin | Open
Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
  <FILENAME text="HIGH_SENTINELS_OF_ARASHIN_1000386554" />
  <CARDNAME text="HIGH_SENTINELS_OF_ARASHIN" />
  <TITLE>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[High Sentinels of Arashin]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Hautes sentinelles d’Arashin]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Altos centinelas de Arashin]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Oberste Wache von Arashin]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Alte Sentinelle di Arashin]]></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[Altas Sentinelas de Arashin]]></LOCALISED_TEXT>
  </TITLE>
  <MULTIVERSEID value="1000386554" />
  <ARTID value="1000386554" />
  <ARTIST name="James Ryman" />
  <CASTING_COST cost="{3}{W}" />
  <TYPE metaname="Creature" />
  <SUB_TYPE metaname="Bird" />
  <SUB_TYPE metaname="Soldier" />
  <EXPANSION value="KTK" />
  <RARITY metaname="R" />
  <POWER value="3" />
  <TOUGHNESS value="4" />
  <STATIC_ABILITY>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Flying]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Vol]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Vuela.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Fliegend]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Volare]]></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[Voar]]></LOCALISED_TEXT>
    <INTRINSIC characteristic="CHARACTERISTIC_FLYING" />
  </STATIC_ABILITY>
  <STATIC_ABILITY>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[High Sentinels of Arashin gets +1/+1 for each other creature you control with a +1/+1 counter on it.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Les Hautes sentinelles d’Arashin gagnent +1/+1 pour chaque autre créature que vous contrôlez avec un marqueur +1/+1 sur elle.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Los Altos centinelas de Arashin obtienen +1/+1 por cada otra criatura que controlas con un contador +1/+1 sobre ella.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Die Oberste Wache von Arashin erhält +1/+1 für jede andere Kreatur, die du kontrollierst und auf der mindestens eine +1/+1-Marke liegt.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Le Alte Sentinelle di Arashin prendono +1/+1 per ogni altra creatura con un segnalino +1/+1 che controlli.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[アラシンの上級歩哨は、あなたがコントロールする+1/+1カウンターが置かれている他のクリーチャー1体につき+1/+1の修整を受ける。]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[아라신 정예 보초는 당신이 조종하는 다른 생물 중 +1/+1 카운터를 가진 생물의 수만큼 +1/+1을 받는다.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Высшая Стража Арашина получает +1/+1 за каждое другое существо с жетоном +1/+1 под вашим контролем.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Altas Sentinelas de Arashin recebe +1/+1 para cada outra criatura que você controla com um marcador +1/+1 .]]></LOCALISED_TEXT>
<CONTINUOUS_ACTION layer="7C">
    if EffectSource() ~= nil then
   local filter = ClearFilter()
   filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE  )
       filter:Add( FE_CARD_INSTANCE, OP_NOT, EffectSource())
       filter:Add( FE_CONTROLLER, OP_IS, EffectController())
   if FilteredCard() ~= nil and FilteredCard():CountCounters(MTG():PlusOnePlusOneCounters()) &gt; 0 then
      local bonus = filter:Count()
          local characteristics = EffectSource():GetCurrentCharacteristics()
          characteristics:Power_Add(bonus)
          characteristics:Toughness_Add(bonus)
   end
    end
    </CONTINUOUS_ACTION>
 </STATIC_ABILITY>
  <ACTIVATED_ABILITY>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{3}{W}: Put a +1/+1 counter on target creature.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{3}{W} : Mettez un marqueur +1/+1 sur la créature ciblée.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{3}{W}: Pon un contador +1/+1 sobre la criatura objetivo.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{3}{W}: Lege eine +1/+1-Marke auf eine Kreatur deiner Wahl.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{3}{W}: Metti un segnalino +1/+1 su una creatura bersaglio.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{3}{W}:クリーチャー1体を対象とし、それの上に+1/+1カウンターを1個置く。]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{3}{W}: 생물을 목표로 정한다. 그 생물에 +1/+1 카운터 한 개를 올려놓는다.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{3}{W}: положите один жетон +1/+1 на целевое существо.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{3}{W}: Coloque um marcador +1/+1 na criatura alvo.]]></LOCALISED_TEXT>
 <COST mana_cost="{3}{W}" type="Mana" />
   <TARGET tag="CARD_QUERY_CHOOSE_CREATURE_PLUS1_PLUS1_COUNTERS" 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 then
       target:AddCounters( MTG():PlusOnePlusOneCounters(), 1)
    end
    </RESOLUTION_TIME_ACTION>
 </ACTIVATED_ABILITY>
  <HELP title="MORE_INFO_BADGE_TITLE_10" body="MORE_INFO_BADGE_BODY_10" zone="ZONE_ANY" />
  <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>
volrathxp
User avatar
volrathxp
 
Posts: 362
Joined: 23 Jul 2014, 17:34
Has thanked: 9 times
Been thanked: 17 times

Re: Volrathxp's Custom Dotp 2014 DLC (Last Update: 9/22/2014

Postby volrathxp » 24 Sep 2014, 11:09

NeoAnderson wrote:Let me know because i am also coding this set, and i already made this card but i have also added an improvement to Firemind code.
His version of Copy Enchantment fails is you copy an Enchantment Aura (enchant type you control) controlled by opponent, my version allows also this condition, it just fail when you copy this kind of enchantment controlled by opponent and apply the copy to a card with color protection.
And you said that it only doesn't work on cards with color protection? I'm slightly confused by this. For example: Clever Impersonator comes into play as a copy of Nyx Infusion and you attempt to move it to a creature that has protection from black?

In that case it would be functioning properly because the aura would fall off due to state-based because of the protection. That's kind of how protection works. :)
volrathxp
User avatar
volrathxp
 
Posts: 362
Joined: 23 Jul 2014, 17:34
Has thanked: 9 times
Been thanked: 17 times

Re: Volrathxp's Custom Dotp 2014 DLC (Last Update: 9/22/2014

Postby NeoAnderson » 24 Sep 2014, 11:54

volrathxp wrote:
NeoAnderson wrote:Let me know because i am also coding this set, and i already made this card but i have also added an improvement to Firemind code.
His version of Copy Enchantment fails is you copy an Enchantment Aura (enchant type you control) controlled by opponent, my version allows also this condition, it just fail when you copy this kind of enchantment controlled by opponent and apply the copy to a card with color protection.
And you said that it only doesn't work on cards with color protection? I'm slightly confused by this. For example: Clever Impersonator comes into play as a copy of Nyx Infusion and you attempt to move it to a creature that has protection from black?

In that case it would be functioning properly because the aura would fall off due to state-based because of the protection. That's kind of how protection works. :)
I try to explain better what happens:

1. If you try to cast an Aura from you hand you cannot target creature with protection from colour or kind of the aura spell. So we don't have to face the problem because you cannot target before to attach!

2. using Firemind code approximation for copy enchantment everything work fine but if you target an enchantment aura (that can attach only to object you control, like : Emblem of the Warmind ) and this aura belong to an opponent, you will have a not working situation, because Firemind must use the source aura to retrieve the available targets, but the source not belong to you, so you have a copy that belong to you that should target permanent that belong to the opponent, so the copied aura go to the graveyard.

3. With my modify i have reduced this issue, because i detect this kind of Aura like Spirit Loop and i set the available target to permanent kind you control. The problem now is that we are not able to check if the creature has a protection so you are able to select the creature also if it cannot be enchanted and in this case the Aura go to the graveyard.

As you can understand this is a really limit situation, because the Firemind approximation already fails for few circumstances, with this modify it is reduced near to 0....
NeoAnderson
 
Posts: 914
Joined: 10 Sep 2013, 07:49
Has thanked: 18 times
Been thanked: 139 times

Re: Volrathxp's Custom Dotp 2014 DLC (Last Update: 9/22/2014

Postby thefiremind » 24 Sep 2014, 20:42

volrathxp wrote:Alright. Here's High Sentinels. I hope someone can help me with this guy cuz he's annoying me. :)
You should already be aware that FilteredCard() is used when you have a FILTER block: by doing that, the action that contains FilteredCard will be repeated once for each filtered card. When you use a filter as you did in your card you can't address the filtered cards with FilteredCard, you need to evaluate the filter and address each card with GetNthEvaluatedObject:
Code: Select all
local count = filter:EvaluateObjects()
for i=0,count-1 do
   local card = filter:GetNthEvaluatedObject(i)
   -- do what you want with the card
end
In your card:
Code: Select all
    <CONTINUOUS_ACTION layer="7C">
    if EffectSource() ~= nil then
       local bonus = 0
       local filter = ClearFilter()
       filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
       filter:Add( FE_CARD_INSTANCE, OP_NOT, EffectSource() )
       filter:Add( FE_CONTROLLER, OP_IS, EffectController() )
       local count = filter:EvaluateObjects()
       for i=0,count-1 do
          local card = filter:GetNthEvaluatedObject(i)
          if card ~= nil and card:CountCounters( MTG():PlusOnePlusOneCounters() ) &gt; 0 then
             bonus = bonus + 1
          end
       end
       local characteristics = EffectSource():GetCurrentCharacteristics()
       characteristics:Power_Add(bonus)
       characteristics:Toughness_Add(bonus)
    end
    </CONTINUOUS_ACTION>
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
User avatar
thefiremind
Programmer
 
Posts: 3515
Joined: 07 Nov 2011, 10:55
Has thanked: 118 times
Been thanked: 722 times

Re: Volrathxp's Custom Dotp 2014 DLC (Last Update: 9/22/2014

Postby volrathxp » 25 Sep 2014, 00:21

NeoAnderson wrote:
volrathxp wrote:
NeoAnderson wrote:Let me know because i am also coding this set, and i already made this card but i have also added an improvement to Firemind code.
His version of Copy Enchantment fails is you copy an Enchantment Aura (enchant type you control) controlled by opponent, my version allows also this condition, it just fail when you copy this kind of enchantment controlled by opponent and apply the copy to a card with color protection.
And you said that it only doesn't work on cards with color protection? I'm slightly confused by this. For example: Clever Impersonator comes into play as a copy of Nyx Infusion and you attempt to move it to a creature that has protection from black?

In that case it would be functioning properly because the aura would fall off due to state-based because of the protection. That's kind of how protection works. :)
I try to explain better what happens:

1. If you try to cast an Aura from you hand you cannot target creature with protection from colour or kind of the aura spell. So we don't have to face the problem because you cannot target before to attach!

2. using Firemind code approximation for copy enchantment everything work fine but if you target an enchantment aura (that can attach only to object you control, like : Emblem of the Warmind ) and this aura belong to an opponent, you will have a not working situation, because Firemind must use the source aura to retrieve the available targets, but the source not belong to you, so you have a copy that belong to you that should target permanent that belong to the opponent, so the copied aura go to the graveyard.

3. With my modify i have reduced this issue, because i detect this kind of Aura like Spirit Loop and i set the available target to permanent kind you control. The problem now is that we are not able to check if the creature has a protection so you are able to select the creature also if it cannot be enchanted and in this case the Aura go to the graveyard.

As you can understand this is a really limit situation, because the Firemind approximation already fails for few circumstances, with this modify it is reduced near to 0....
I will perform some testing here and see what I find.
volrathxp
User avatar
volrathxp
 
Posts: 362
Joined: 23 Jul 2014, 17:34
Has thanked: 9 times
Been thanked: 17 times

Re: Volrathxp's Custom Dotp 2014 DLC (Last Update: 9/22/2014

Postby volrathxp » 25 Sep 2014, 00:23

thefiremind wrote:
volrathxp wrote:Alright. Here's High Sentinels. I hope someone can help me with this guy cuz he's annoying me. :)
You should already be aware that FilteredCard() is used when you have a FILTER block: by doing that, the action that contains FilteredCard will be repeated once for each filtered card. When you use a filter as you did in your card you can't address the filtered cards with FilteredCard, you need to evaluate the filter and address each card with GetNthEvaluatedObject:
Code: Select all
local count = filter:EvaluateObjects()
for i=0,count-1 do
   local card = filter:GetNthEvaluatedObject(i)
   -- do what you want with the card
end
In your card:
Code: Select all
    <CONTINUOUS_ACTION layer="7C">
    if EffectSource() ~= nil then
       local bonus = 0
       local filter = ClearFilter()
       filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
       filter:Add( FE_CARD_INSTANCE, OP_NOT, EffectSource() )
       filter:Add( FE_CONTROLLER, OP_IS, EffectController() )
       local count = filter:EvaluateObjects()
       for i=0,count-1 do
          local card = filter:GetNthEvaluatedObject(i)
          if card ~= nil and card:CountCounters( MTG():PlusOnePlusOneCounters() ) &gt; 0 then
             bonus = bonus + 1
          end
       end
       local characteristics = EffectSource():GetCurrentCharacteristics()
       characteristics:Power_Add(bonus)
       characteristics:Toughness_Add(bonus)
    end
    </CONTINUOUS_ACTION>
Thanks! I kind of figured it was me doing something goofy.
volrathxp
User avatar
volrathxp
 
Posts: 362
Joined: 23 Jul 2014, 17:34
Has thanked: 9 times
Been thanked: 17 times

Re: Volrathxp's Custom Dotp 2014 DLC (Last Update: 9/24/2014

Postby volrathxp » 25 Sep 2014, 01:13

Updated the Core Wad, hopefully fixing a lot of the bugs. Keep at it folks and let me know. I will be adding some more stuff from Khans soon!

I also added the five decks to this, one for each clan. Once I have the time to sit down and process all the decklists for all the decks in my DLC, I will add them to the original post.
volrathxp
User avatar
volrathxp
 
Posts: 362
Joined: 23 Jul 2014, 17:34
Has thanked: 9 times
Been thanked: 17 times

Re: Volrathxp's Custom Dotp 2014 DLC (Last Update: 9/24/2014

Postby Chakan » 25 Sep 2014, 02:53

You did a great job with this stuff my man. You completed a lot of the cards I had in my workload, and probably better than I could have, and probably a lot faster. I would've liked to check out some of your decks in game, but they interfere with the decks I've made... Any chance of you uploading the .XML files for the decks in a ZIP or something?
User avatar
Chakan
 
Posts: 166
Joined: 07 Jun 2014, 23:08
Has thanked: 11 times
Been thanked: 10 times

Re: Volrathxp's Custom Dotp 2014 DLC (Last Update: 9/24/2014

Postby RiiakShiNal » 25 Sep 2014, 11:16

Chakan wrote:I would've liked to check out some of your decks in game, but they interfere with the decks I've made... Any chance of you uploading the .XML files for the decks in a ZIP or something?
You could always just extract the WAD to get the XML files (along with the AI personalities, deck box images, etc...), no need for a separate file to be uploaded.
RiiakShiNal
Programmer
 
Posts: 2188
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 497 times

Re: Volrathxp's Custom Dotp 2014 DLC (Last Update: 9/24/2014

Postby Chakan » 25 Sep 2014, 15:56

RiiakShiNal wrote:
Chakan wrote:I would've liked to check out some of your decks in game, but they interfere with the decks I've made... Any chance of you uploading the .XML files for the decks in a ZIP or something?
You could always just extract the WAD to get the XML files (along with the AI personalities, deck box images, etc...), no need for a separate file to be uploaded.
I wouldn't have asked if I knew that you could do that. I wouldn't exactly say it's common knowledge.
User avatar
Chakan
 
Posts: 166
Joined: 07 Jun 2014, 23:08
Has thanked: 11 times
Been thanked: 10 times

Re: Volrathxp's Custom Dotp 2014 DLC (Last Update: 9/24/2014

Postby Sebs92 » 25 Sep 2014, 20:03

Hi there,

I'm a long-time lurker on these forums and I always enjoy trying out new cards. I figured it might be helpful to point out some of the bugs I've run into while playing with the cards in your mod. Bear in mind that I'm not a modder myself so I couldn't tell you what exactly is wrong with the code.

These are the bugs I've noticed as of the 9/24/2014 update:

Force Away - the looting ability that triggers off Ferocious doesn't give you an option to not loot.

Savage Knuckleblade - the activated abilities don't do anything when activated.

If this was helpful, let me know and I'll point out any other bugs I come across. Regardless, keep up the great work!
Sebs92
 
Posts: 8
Joined: 25 Sep 2014, 19:36
Has thanked: 0 time
Been thanked: 1 time

Re: Volrathxp's Custom Dotp 2014 DLC (Last Update: 9/24/2014

Postby volrathxp » 25 Sep 2014, 21:43

Thanks, I will look into those.
volrathxp
User avatar
volrathxp
 
Posts: 362
Joined: 23 Jul 2014, 17:34
Has thanked: 9 times
Been thanked: 17 times

PreviousNext

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 7967 on 09 Sep 2025, 23:08

Users browsing this forum: No registered users and 7 guests

Login Form