It is currently 23 Apr 2024, 20:04
   
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: 12/6/2014

Postby AngelLestat » 23 Feb 2015, 21:16

I'm not sure if anyone is maintaining or not this mod.

But I found 2 cards that are not working well:

Act of Authority (the opponent does not get control after we use it by second time)

| Open
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<CARD_V2 ExportVersion="1">
   <FILENAME text="ACT_OF_AUTHORITY_1000376238" />
   <CARDNAME text="ACT_OF_AUTHORITY" />
   <TITLE>
      <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Act of Authority]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Acte d’autorité]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Acto de autoridad]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Kraft der Autorität]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Atto di Autorità]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[権威の行動]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Act of Authority]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Act of Authority]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Act of Authority]]></LOCALISED_TEXT>
   </TITLE>
   <MULTIVERSEID value="1000376238" />
   <ARTID value="1000376238" />
   <ARTIST name="Véronique Meignaud" />
   <CASTING_COST cost="{1}{W}{W}" />
   <TYPE metaname="Enchantment" />
   <EXPANSION value="C13" />
   <RARITY metaname="R" />
   <TRIGGERED_ABILITY>
      <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[When Act of Authority enters the battlefield, you may exile target artifact or enchantment.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Quand l’Acte d’autorité arrive sur le champ de bataille, vous pouvez exiler l’artefact ou l’enchantement ciblé.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Cuando el Acto de autoridad entre al campo de batalla, puedes exiliar el encantamiento o artefacto objetivo.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Wenn die Kraft der Autorität ins Spiel kommt, kannst du ein Artefakt oder eine Verzauberung deiner Wahl ins Exil schicken.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Quando l’Atto di Autorità entra nel campo di battaglia, puoi esiliare un artefatto o un incantesimo bersaglio.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[権威の行動が戦場に出たとき、アーティファクト1つかエンチャント1つを対象とする。あなたはそれを追放してもよい。あなたのアップキープの開始時に、アーティファクト1つかエンチャント1つを対象とする。あなたはそれを追放してもよい。そうしたなら、それのコントローラーは権威の行動のコントロールを得る。]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[When Act of Authority enters the battlefield, you may exile target artifact or enchantment.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[When Act of Authority enters the battlefield, you may exile target artifact or enchantment.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[When Act of Authority enters the battlefield, you may exile target artifact or enchantment.]]></LOCALISED_TEXT>
      <TRIGGER value="ZONECHANGE_END" simple_qualifier="self" to_zone="ZONE_BATTLEFIELD" />
      <TARGET tag="CARD_QUERY_CHOOSE_ARTIFACT_OR_ENCHANTMENT_TO_EXILE" definition="0" compartment="0" count="1" />
      <TARGET_DEFINITION id="0">
    local filter = ClearFilter()
    local subfilter = filter:AddSubFilter_Or()
       subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_ARTIFACT )
       subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_ENCHANTMENT)
    </TARGET_DEFINITION>
      <RESOLUTION_TIME_ACTION>
    local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
    if target ~= nil then
       target:Exile()
    end
</RESOLUTION_TIME_ACTION>
      <MAY />
      <AI_SIMPLIFIED_TARGETING compartment="0" hint="HINT_ENEMY_ONLY" />
      <AUTO_SKIP>
    local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
    if target ~= nil then
       return false
    else
       return true
    end
</AUTO_SKIP>
   </TRIGGERED_ABILITY>
   <TRIGGERED_ABILITY>
      <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Au début de votre entretien, vous pouvez exiler l’artefact ou l’enchantement ciblé. Si vous faites ainsi, son contrôleur acquiert le contrôle de l’Acte d’autorité.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Al comienzo de tu mantenimiento, puedes exiliar el artefacto o encantamiento objetivo. Si lo haces, su controlador gana el control del Acto de autoridad.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Zu Beginn deines Versorgungssegments kannst du ein Artefakt oder eine Verzauberung deiner Wahl ins Exil schicken. Falls du dies tust, übernimmt sein bzw. ihr Beherrscher die Kontrolle über die Kraft der Autorität.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[All’inizio del tuo mantenimento, puoi esiliare un artefatto o un incantesimo bersaglio. Se lo fai, il suo controllore prende il controllo dell’Atto di Autorità.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
      <TRIGGER value="BEGINNING_OF_PLAYERS_STEP" simple_qualifier="controller">
        return MTG():GetStep() == STEP_UPKEEP
        </TRIGGER>
      <TARGET tag="CARD_QUERY_CHOOSE_ARTIFACT_OR_ENCHANTMENT_TO_EXILE" definition="0" compartment="0" count="1" />
      <TARGET_DEFINITION id="0">
    local filter = ClearFilter()
    local subfilter = filter:AddSubFilter_Or()
       subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_ARTIFACT )
       subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_ENCHANTMENT)
    </TARGET_DEFINITION>
      <RESOLUTION_TIME_ACTION>
    local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
    if target ~= nil then
   EffectDC():Set_CardPtr(0, target)
   EffectDC():Protect_CardPtr(0)
       target:Exile()
    end
</RESOLUTION_TIME_ACTION>
      <RESOLUTION_TIME_ACTION>

   local target = EffectDC():Get_CardPtr(0)

   if target:GetController() ~= nil then

      EffectSource():SetController( target:GetController() )

   end

</RESOLUTION_TIME_ACTION>
      <MAY />
      <AI_SIMPLIFIED_TARGETING compartment="0" hint="HINT_ENEMY_ONLY" />
      <AUTO_SKIP>
    local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
    if target ~= nil then
       return false
    else
       return true
    end
</AUTO_SKIP>
   </TRIGGERED_ABILITY>
   <AI_BASE_SCORE score="600" zone="ZONE_BATTLEFIELD" />
</CARD_V2>
Dictate of Heliod (it was took as a creature by the Veilstone Amulet "official 2014 pack 3")

| Open
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<CARD_V2 ExportVersion="1">
   <FILENAME text="DICTATE_OF_HELIOD_1000380400" />
   <CARDNAME text="DICTATE_OF_HELIOD" />
   <TITLE>
      <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Dictate of Heliod]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Précepte d’Héliode]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Mandato de Heliod]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Gebot des Heliod]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Dettami di Eliod]]></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[Decreto de Heliode]]></LOCALISED_TEXT>
   </TITLE>
   <MULTIVERSEID value="1000380400" />
   <ARTID value="1000380400" />
   <ARTIST name="Terese Nielsen" />
   <CASTING_COST cost="{3}{W}{W}" />
   <FLAVOURTEXT>
      <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[“In our war Heliod gave mortals some favor, yet other times he withheld aid. Are we still no more than game pieces to him?”
—Polyxene the Doubter]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[« Dans notre guerre, Héliode a accordé des faveurs aux mortels, et pourtant cela n’a pas toujours été le cas. Ne sommes-nous rien de plus que des pions pour lui ? »
—Polyxène le sceptique]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[“En nuestra guerra, Heliod concedió ciertos favores a los mortales; pero en otras ocasiones no prestó su ayuda. ¿Acaso seguimos siendo meras piezas de un juego a sus ojos?”
—Polixene, la Escéptica]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[„In unserem Krieg hat Heliod uns Sterblichen manchmal seine Gunst zuteilwerden lassen, doch an anderen Tagen verweigerte er seine Hilfe. Sind wir nichts als Schachfiguren für ihn?”
—Polyxene die Zweiflerin]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[“Nella nostra guerra, Eliod talvolta ha concesso la sua benedizione ai mortali, ma altre volte non è venuto in nostro aiuto. Non siamo forse altro che pedine, per lui?”
—Polissena la Scettica]]></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[“Em nossa guerra, Heliode deu aos mortais algumas dádivas. Porém, em outros momentos, ele se negou a ajudar. Será que ainda somos apenas peças de um jogo para ele?”
— Polixena, a Questionadora]]></LOCALISED_TEXT>
   </FLAVOURTEXT>
   <TYPE metaname="Enchantment" />
   <EXPANSION value="JOU" />
   <RARITY metaname="R" />
   <STATIC_ABILITY>
      <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Flash]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Flash]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Destello.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Aufblitzen]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Lampo]]></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[Lampejo]]></LOCALISED_TEXT>
      <INTRINSIC characteristic="CHARACTERISTIC_FLASH" />
   </STATIC_ABILITY>
   <STATIC_ABILITY>
      <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Creatures you control get +2/+2.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Les créatures que vous contrôlez gagnent +2/+2.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Las criaturas que controlas obtienen +2/+2.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Kreaturen, die du kontrollierst, erhalten +2/+2.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Le creature che controlli prendono +2/+2.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[あなたがコントロールするクリーチャーは+2/+2の修整を受ける。]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[당신이 조종하는 생물들은 +2/+2를 받는다.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Существа под вашим контролем получают +2/+2.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[As criaturas que você controla recebem +2/+2.]]></LOCALISED_TEXT>
      <FILTER filter_id="0">
    local filter = ClearFilter()
    filter:Add(FE_TYPE, OP_IS, CARD_TYPE_CREATURE)
    filter:Add( FE_CONTROLLER, OP_IS, EffectController() )
    </FILTER>
      <CONTINUOUS_ACTION layer="7C" filter_id="0">
    if FilteredCard() ~= nil then
       local characteristics = FilteredCard():GetCurrentCharacteristics()
       characteristics:Power_Add(2)
       characteristics:Toughness_Add(2)
    end
    </CONTINUOUS_ACTION>
   </STATIC_ABILITY>
   <HELP title="MORE_INFO_BADGE_TITLE_12" body="MORE_INFO_BADGE_BODY_12" zone="ZONE_ANY" />
   <AI_BASE_SCORE score="600" zone="ZONE_BATTLEFIELD" />
</CARD_V2>
I dont know about coding, so not sure what may be wrong.
AngelLestat
 
Posts: 66
Joined: 02 Sep 2012, 23:09
Has thanked: 1 time
Been thanked: 0 time

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

Postby RiiakShiNal » 23 Feb 2015, 23:37

AngelLestat wrote:Act of Authority (the opponent does not get control after we use it by second time)

| Open
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<CARD_V2 ExportVersion="1">
   <FILENAME text="ACT_OF_AUTHORITY_1000376238" />
   <CARDNAME text="ACT_OF_AUTHORITY" />
   <TITLE>
      <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Act of Authority]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Acte d’autorité]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Acto de autoridad]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Kraft der Autorität]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Atto di Autorità]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[権威の行動]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Act of Authority]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Act of Authority]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Act of Authority]]></LOCALISED_TEXT>
   </TITLE>
   <MULTIVERSEID value="1000376238" />
   <ARTID value="1000376238" />
   <ARTIST name="Véronique Meignaud" />
   <CASTING_COST cost="{1}{W}{W}" />
   <TYPE metaname="Enchantment" />
   <EXPANSION value="C13" />
   <RARITY metaname="R" />
   <TRIGGERED_ABILITY>
      <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[When Act of Authority enters the battlefield, you may exile target artifact or enchantment.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Quand l’Acte d’autorité arrive sur le champ de bataille, vous pouvez exiler l’artefact ou l’enchantement ciblé.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Cuando el Acto de autoridad entre al campo de batalla, puedes exiliar el encantamiento o artefacto objetivo.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Wenn die Kraft der Autorität ins Spiel kommt, kannst du ein Artefakt oder eine Verzauberung deiner Wahl ins Exil schicken.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Quando l’Atto di Autorità entra nel campo di battaglia, puoi esiliare un artefatto o un incantesimo bersaglio.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[権威の行動が戦場に出たとき、アーティファクト1つかエンチャント1つを対象とする。あなたはそれを追放してもよい。あなたのアップキープの開始時に、アーティファクト1つかエンチャント1つを対象とする。あなたはそれを追放してもよい。そうしたなら、それのコントローラーは権威の行動のコントロールを得る。]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[When Act of Authority enters the battlefield, you may exile target artifact or enchantment.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[When Act of Authority enters the battlefield, you may exile target artifact or enchantment.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[When Act of Authority enters the battlefield, you may exile target artifact or enchantment.]]></LOCALISED_TEXT>
      <TRIGGER value="ZONECHANGE_END" simple_qualifier="self" to_zone="ZONE_BATTLEFIELD" />
      <TARGET tag="CARD_QUERY_CHOOSE_ARTIFACT_OR_ENCHANTMENT_TO_EXILE" definition="0" compartment="0" count="1" />
      <TARGET_DEFINITION id="0">
    local filter = ClearFilter()
    local subfilter = filter:AddSubFilter_Or()
       subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_ARTIFACT )
       subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_ENCHANTMENT)
    </TARGET_DEFINITION>
      <RESOLUTION_TIME_ACTION>
    local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
    if target ~= nil then
       target:Exile()
    end
</RESOLUTION_TIME_ACTION>
      <MAY />
      <AI_SIMPLIFIED_TARGETING compartment="0" hint="HINT_ENEMY_ONLY" />
      <AUTO_SKIP>
    local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
    if target ~= nil then
       return false
    else
       return true
    end
</AUTO_SKIP>
   </TRIGGERED_ABILITY>
   <TRIGGERED_ABILITY>
      <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Au début de votre entretien, vous pouvez exiler l’artefact ou l’enchantement ciblé. Si vous faites ainsi, son contrôleur acquiert le contrôle de l’Acte d’autorité.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Al comienzo de tu mantenimiento, puedes exiliar el artefacto o encantamiento objetivo. Si lo haces, su controlador gana el control del Acto de autoridad.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Zu Beginn deines Versorgungssegments kannst du ein Artefakt oder eine Verzauberung deiner Wahl ins Exil schicken. Falls du dies tust, übernimmt sein bzw. ihr Beherrscher die Kontrolle über die Kraft der Autorität.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[All’inizio del tuo mantenimento, puoi esiliare un artefatto o un incantesimo bersaglio. Se lo fai, il suo controllore prende il controllo dell’Atto di Autorità.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
      <TRIGGER value="BEGINNING_OF_PLAYERS_STEP" simple_qualifier="controller">
        return MTG():GetStep() == STEP_UPKEEP
        </TRIGGER>
      <TARGET tag="CARD_QUERY_CHOOSE_ARTIFACT_OR_ENCHANTMENT_TO_EXILE" definition="0" compartment="0" count="1" />
      <TARGET_DEFINITION id="0">
    local filter = ClearFilter()
    local subfilter = filter:AddSubFilter_Or()
       subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_ARTIFACT )
       subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_ENCHANTMENT)
    </TARGET_DEFINITION>
      <RESOLUTION_TIME_ACTION>
    local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
    if target ~= nil then
   EffectDC():Set_CardPtr(0, target)
   EffectDC():Protect_CardPtr(0)
       target:Exile()
    end
</RESOLUTION_TIME_ACTION>
      <RESOLUTION_TIME_ACTION>

   local target = EffectDC():Get_CardPtr(0)

   if target:GetController() ~= nil then

      EffectSource():SetController( target:GetController() )

   end

</RESOLUTION_TIME_ACTION>
      <MAY />
      <AI_SIMPLIFIED_TARGETING compartment="0" hint="HINT_ENEMY_ONLY" />
      <AUTO_SKIP>
    local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
    if target ~= nil then
       return false
    else
       return true
    end
</AUTO_SKIP>
   </TRIGGERED_ABILITY>
   <AI_BASE_SCORE score="600" zone="ZONE_BATTLEFIELD" />
</CARD_V2>
Act of Authority has a couple of problems with the second ability. First it needs to store off the controller of the target before exiling the target (otherwise it may get the wrong player if it gets one at all). Secondly it uses SetController() which has to be called constantly to work (but it's in a RESOLUTION_TIME_ACTION so it will only be called once), it would be better to use SetBaseController() so that it only needs to be called once and you don't need to worry about setting up proper durations or other tricks.
Corrected Second Ability | Open
Code: Select all
   <TRIGGERED_ABILITY>
      <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Au début de votre entretien, vous pouvez exiler l’artefact ou l’enchantement ciblé. Si vous faites ainsi, son contrôleur acquiert le contrôle de l’Acte d’autorité.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Al comienzo de tu mantenimiento, puedes exiliar el artefacto o encantamiento objetivo. Si lo haces, su controlador gana el control del Acto de autoridad.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Zu Beginn deines Versorgungssegments kannst du ein Artefakt oder eine Verzauberung deiner Wahl ins Exil schicken. Falls du dies tust, übernimmt sein bzw. ihr Beherrscher die Kontrolle über die Kraft der Autorität.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[All’inizio del tuo mantenimento, puoi esiliare un artefatto o un incantesimo bersaglio. Se lo fai, il suo controllore prende il controllo dell’Atto di Autorità.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
      <TRIGGER value="BEGINNING_OF_PLAYERS_STEP" simple_qualifier="controller">
        return MTG():GetStep() == STEP_UPKEEP
        </TRIGGER>
      <TARGET tag="CARD_QUERY_CHOOSE_ARTIFACT_OR_ENCHANTMENT_TO_EXILE" definition="0" compartment="0" count="1" />
      <TARGET_DEFINITION id="0">
    local filter = ClearFilter()
    local subfilter = filter:AddSubFilter_Or()
       subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_ARTIFACT )
       subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_ENCHANTMENT)
    </TARGET_DEFINITION>
      <RESOLUTION_TIME_ACTION>
    local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
    if target ~= nil then
   EffectDC():Set_PlayerPtr(0, target:GetController())
       target:Exile()
    end
</RESOLUTION_TIME_ACTION>
      <RESOLUTION_TIME_ACTION>

   local newController = EffectDC():Get_PlayerPtr(0)

   if newController ~= nil then

      EffectSource():SetBaseController( newController )

   end

</RESOLUTION_TIME_ACTION>
      <MAY />
      <AI_SIMPLIFIED_TARGETING compartment="0" hint="HINT_ENEMY_ONLY" />
      <AUTO_SKIP>
    local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
    if target ~= nil then
       return false
    else
       return true
    end
</AUTO_SKIP>
   </TRIGGERED_ABILITY>
AngelLestat wrote:Dictate of Heliod (it was took as a creature by the Veilstone Amulet "official 2014 pack 3")
I don't know what you are trying to say here. Are you trying to say that because of Veilstone Amulet that whenever you cast a spell Dictate of Heliod gets hexproof until end of turn? Or that when you cast Dictate of Heliod, creatures you control get hexproof until end of turn?

AngelLestat wrote:
| Open
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<CARD_V2 ExportVersion="1">
   <FILENAME text="DICTATE_OF_HELIOD_1000380400" />
   <CARDNAME text="DICTATE_OF_HELIOD" />
   <TITLE>
      <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Dictate of Heliod]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Précepte d’Héliode]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Mandato de Heliod]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Gebot des Heliod]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Dettami di Eliod]]></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[Decreto de Heliode]]></LOCALISED_TEXT>
   </TITLE>
   <MULTIVERSEID value="1000380400" />
   <ARTID value="1000380400" />
   <ARTIST name="Terese Nielsen" />
   <CASTING_COST cost="{3}{W}{W}" />
   <FLAVOURTEXT>
      <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[“In our war Heliod gave mortals some favor, yet other times he withheld aid. Are we still no more than game pieces to him?”
—Polyxene the Doubter]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[« Dans notre guerre, Héliode a accordé des faveurs aux mortels, et pourtant cela n’a pas toujours été le cas. Ne sommes-nous rien de plus que des pions pour lui ? »
—Polyxène le sceptique]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[“En nuestra guerra, Heliod concedió ciertos favores a los mortales; pero en otras ocasiones no prestó su ayuda. ¿Acaso seguimos siendo meras piezas de un juego a sus ojos?”
—Polixene, la Escéptica]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[„In unserem Krieg hat Heliod uns Sterblichen manchmal seine Gunst zuteilwerden lassen, doch an anderen Tagen verweigerte er seine Hilfe. Sind wir nichts als Schachfiguren für ihn?”
—Polyxene die Zweiflerin]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[“Nella nostra guerra, Eliod talvolta ha concesso la sua benedizione ai mortali, ma altre volte non è venuto in nostro aiuto. Non siamo forse altro che pedine, per lui?”
—Polissena la Scettica]]></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[“Em nossa guerra, Heliode deu aos mortais algumas dádivas. Porém, em outros momentos, ele se negou a ajudar. Será que ainda somos apenas peças de um jogo para ele?”
— Polixena, a Questionadora]]></LOCALISED_TEXT>
   </FLAVOURTEXT>
   <TYPE metaname="Enchantment" />
   <EXPANSION value="JOU" />
   <RARITY metaname="R" />
   <STATIC_ABILITY>
      <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Flash]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Flash]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Destello.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Aufblitzen]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Lampo]]></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[Lampejo]]></LOCALISED_TEXT>
      <INTRINSIC characteristic="CHARACTERISTIC_FLASH" />
   </STATIC_ABILITY>
   <STATIC_ABILITY>
      <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Creatures you control get +2/+2.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Les créatures que vous contrôlez gagnent +2/+2.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Las criaturas que controlas obtienen +2/+2.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Kreaturen, die du kontrollierst, erhalten +2/+2.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Le creature che controlli prendono +2/+2.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[あなたがコントロールするクリーチャーは+2/+2の修整を受ける。]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[당신이 조종하는 생물들은 +2/+2를 받는다.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Существа под вашим контролем получают +2/+2.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[As criaturas que você controla recebem +2/+2.]]></LOCALISED_TEXT>
      <FILTER filter_id="0">
    local filter = ClearFilter()
    filter:Add(FE_TYPE, OP_IS, CARD_TYPE_CREATURE)
    filter:Add( FE_CONTROLLER, OP_IS, EffectController() )
    </FILTER>
      <CONTINUOUS_ACTION layer="7C" filter_id="0">
    if FilteredCard() ~= nil then
       local characteristics = FilteredCard():GetCurrentCharacteristics()
       characteristics:Power_Add(2)
       characteristics:Toughness_Add(2)
    end
    </CONTINUOUS_ACTION>
   </STATIC_ABILITY>
   <HELP title="MORE_INFO_BADGE_TITLE_12" body="MORE_INFO_BADGE_BODY_12" zone="ZONE_ANY" />
   <AI_BASE_SCORE score="600" zone="ZONE_BATTLEFIELD" />
</CARD_V2>
I'm not seeing anything wrong with this card at the moment (it's pretty straightforward).
RiiakShiNal
Programmer
 
Posts: 2185
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 497 times

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

Postby AngelLestat » 24 Feb 2015, 23:26

Thanks a lot riiak shinal to answer.
Sorry if I made 2 post, but after write here I thoght that maybe I was wrong in resurrect this topic.
More if Volrathxp is busy with more serious things.

Ok I will test it just like you fix it. But if set the controllers this means that if you exile it, it would not go back to the owner?

Well never mind, I will test it.

About dictate of heliod what I notice that if someone try to kill it, if I cast something with veilstone Amulet in the battlefield, it also gets hexproff (the encant)
I dint notice the same with other kind of permanents as artifacts.. So I guess the enchant counts as a creature.. In the code said somethings about creature.

filter:Add(FE_TYPE, OP_IS, CARD_TYPE_CREATURE)
Or maybe that was only for the effect? Yeah, my code skills is that bad.
AngelLestat
 
Posts: 66
Joined: 02 Sep 2012, 23:09
Has thanked: 1 time
Been thanked: 0 time

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

Postby AngelLestat » 25 Feb 2015, 03:26

Ok, I test Act of Authority with the new changes.

The change of controller after use it in the upkeep is successful, that part is fix it, I could not test it if it backs to me in case the opponent use it in his upkeep, but I think it will work. Also I dont know what happen in case if I exiled (restore) in opponent control.

But now there is another thing that is not working, when enters in the battlefield it needs to trigger the enchant effect, but it does not do it, instead at the begining of the upkeep activate the effect 2 times.

This is the code after I include your corrections, maybe I did something wrong:

| Open
Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
  <FILENAME text="ACT_OF_AUTHORITY_1000376238" />
  <CARDNAME text="ACT_OF_AUTHORITY" />
  <TITLE>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Act of Authority]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Acte d’autorité]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Acto de autoridad]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Kraft der Autorität]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Atto di Autorità]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[権威の行動]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Act of Authority]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Act of Authority]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Act of Authority]]></LOCALISED_TEXT>
  </TITLE>
  <MULTIVERSEID value="1000376238" />
  <ARTID value="1000376238" />
  <ARTIST name="Véronique Meignaud" />
  <CASTING_COST cost="{1}{W}{W}" />
  <TYPE metaname="Enchantment" />
  <EXPANSION value="C13" />
  <RARITY metaname="R" />
<TRIGGERED_ABILITY>
      <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Au début de votre entretien, vous pouvez exiler l’artefact ou l’enchantement ciblé. Si vous faites ainsi, son contrôleur acquiert le contrôle de l’Acte d’autorité.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Al comienzo de tu mantenimiento, puedes exiliar el artefacto o encantamiento objetivo. Si lo haces, su controlador gana el control del Acto de autoridad.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Zu Beginn deines Versorgungssegments kannst du ein Artefakt oder eine Verzauberung deiner Wahl ins Exil schicken. Falls du dies tust, übernimmt sein bzw. ihr Beherrscher die Kontrolle über die Kraft der Autorität.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[All’inizio del tuo mantenimento, puoi esiliare un artefatto o un incantesimo bersaglio. Se lo fai, il suo controllore prende il controllo dell’Atto di Autorità.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
      <TRIGGER value="BEGINNING_OF_PLAYERS_STEP" simple_qualifier="controller">
        return MTG():GetStep() == STEP_UPKEEP
        </TRIGGER>
      <TARGET tag="CARD_QUERY_CHOOSE_ARTIFACT_OR_ENCHANTMENT_TO_EXILE" definition="0" compartment="0" count="1" />
      <TARGET_DEFINITION id="0">
    local filter = ClearFilter()
    local subfilter = filter:AddSubFilter_Or()
       subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_ARTIFACT )
       subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_ENCHANTMENT)
    </TARGET_DEFINITION>
      <RESOLUTION_TIME_ACTION>
    local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
    if target ~= nil then
   EffectDC():Set_PlayerPtr(0, target:GetController())
       target:Exile()
    end
</RESOLUTION_TIME_ACTION>
      <RESOLUTION_TIME_ACTION>

   local newController = EffectDC():Get_PlayerPtr(0)

   if newController ~= nil then

      EffectSource():SetBaseController( newController )

   end

</RESOLUTION_TIME_ACTION>
      <MAY />
      <AI_SIMPLIFIED_TARGETING compartment="0" hint="HINT_ENEMY_ONLY" />
      <AUTO_SKIP>
    local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
    if target ~= nil then
       return false
    else
       return true
    end
</AUTO_SKIP>
   </TRIGGERED_ABILITY>
  <TRIGGERED_ABILITY>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Au début de votre entretien, vous pouvez exiler l’artefact ou l’enchantement ciblé. Si vous faites ainsi, son contrôleur acquiert le contrôle de l’Acte d’autorité.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Al comienzo de tu mantenimiento, puedes exiliar el artefacto o encantamiento objetivo. Si lo haces, su controlador gana el control del Acto de autoridad.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Zu Beginn deines Versorgungssegments kannst du ein Artefakt oder eine Verzauberung deiner Wahl ins Exil schicken. Falls du dies tust, übernimmt sein bzw. ihr Beherrscher die Kontrolle über die Kraft der Autorität.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[All’inizio del tuo mantenimento, puoi esiliare un artefatto o un incantesimo bersaglio. Se lo fai, il suo controllore prende il controllo dell’Atto di Autorità.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
<TRIGGER value="BEGINNING_OF_PLAYERS_STEP" simple_qualifier="controller">
        return MTG():GetStep() == STEP_UPKEEP
        </TRIGGER>
   <TARGET tag="CARD_QUERY_CHOOSE_ARTIFACT_OR_ENCHANTMENT_TO_EXILE" definition="0" compartment="0" count="1" />
<TARGET_DEFINITION id="0">
    local filter = ClearFilter()
    local subfilter = filter:AddSubFilter_Or()
       subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_ARTIFACT )
       subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_ENCHANTMENT)
    </TARGET_DEFINITION>
<RESOLUTION_TIME_ACTION>
    local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
    if target ~= nil then
   EffectDC():Set_CardPtr(0, target)
   EffectDC():Protect_CardPtr(0)
       target:Exile()
    end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>

   local target = EffectDC():Get_CardPtr(0)

   if target:GetController() ~= nil then

      EffectSource():SetController( target:GetController() )

   end

</RESOLUTION_TIME_ACTION>
<MAY />
<AI_SIMPLIFIED_TARGETING compartment="0" hint="HINT_ENEMY_ONLY" />
<AUTO_SKIP>
    local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
    if target ~= nil then
       return false
    else
       return true
    end
</AUTO_SKIP>
 </TRIGGERED_ABILITY>
   <AI_BASE_SCORE score="600" zone="ZONE_BATTLEFIELD" />
</CARD_V2>
AngelLestat
 
Posts: 66
Joined: 02 Sep 2012, 23:09
Has thanked: 1 time
Been thanked: 0 time

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

Postby RiiakShiNal » 25 Feb 2015, 11:52

AngelLestat wrote:Thanks a lot riiak shinal to answer.
Sorry if I made 2 post, but after write here I thoght that maybe I was wrong in resurrect this topic.
More if Volrathxp is busy with more serious things.
As far as I know VolrathXP has stopped modding DotP 2014 (at the very least he has not answered questions or made responses in a few months) so I don't see any problem in posing questions or asking for fixes for his cards in this thread.

AngelLestat wrote:Ok I will test it just like you fix it. But if set the controllers this means that if you exile it, it would not go back to the owner?
SetBaseController() will change the permanent controller of the card on the battlefield, it does not change the owner. As such if the card is destroyed it will go to the owner's graveyard (the player who started the game with it) also if it is exiled and returned to the battlefield under owner's control then it would be exiled on the original player's side of the board and return to the owner's control (being the original player who started the game with it).

Controller and Owner are two different concepts and are treated properly in DotP. The controller is the player who currently "controls" the card and its effects while the owner is the player who actually "owns" the card.

AngelLestat wrote:About dictate of heliod what I notice that if someone try to kill it, if I cast something with veilstone Amulet in the battlefield, it also gets hexproff (the encant)
I dint notice the same with other kind of permanents as artifacts.. So I guess the enchant counts as a creature.. In the code said somethings about creature.

filter:Add(FE_TYPE, OP_IS, CARD_TYPE_CREATURE)
Or maybe that was only for the effect? Yeah, my code skills is that bad.
The filter is just to determine which objects to apply the effect to and does not have any effect on the type of card. If Dictate of Heliod is becoming a target of the effect from Veilstone Amulet then the problem is more likely with Veilstone Amulet (at least in this case).

AngelLestat wrote:But now there is another thing that is not working, when enters in the battlefield it needs to trigger the enchant effect, but it does not do it, instead at the begining of the upkeep activate the effect 2 times.

This is the code after I include your corrections, maybe I did something wrong:

| Open
Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
  <FILENAME text="ACT_OF_AUTHORITY_1000376238" />
  <CARDNAME text="ACT_OF_AUTHORITY" />
  <TITLE>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Act of Authority]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Acte d’autorité]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Acto de autoridad]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Kraft der Autorität]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Atto di Autorità]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[権威の行動]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Act of Authority]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Act of Authority]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Act of Authority]]></LOCALISED_TEXT>
  </TITLE>
  <MULTIVERSEID value="1000376238" />
  <ARTID value="1000376238" />
  <ARTIST name="Véronique Meignaud" />
  <CASTING_COST cost="{1}{W}{W}" />
  <TYPE metaname="Enchantment" />
  <EXPANSION value="C13" />
  <RARITY metaname="R" />
<TRIGGERED_ABILITY>
      <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Au début de votre entretien, vous pouvez exiler l’artefact ou l’enchantement ciblé. Si vous faites ainsi, son contrôleur acquiert le contrôle de l’Acte d’autorité.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Al comienzo de tu mantenimiento, puedes exiliar el artefacto o encantamiento objetivo. Si lo haces, su controlador gana el control del Acto de autoridad.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Zu Beginn deines Versorgungssegments kannst du ein Artefakt oder eine Verzauberung deiner Wahl ins Exil schicken. Falls du dies tust, übernimmt sein bzw. ihr Beherrscher die Kontrolle über die Kraft der Autorität.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[All’inizio del tuo mantenimento, puoi esiliare un artefatto o un incantesimo bersaglio. Se lo fai, il suo controllore prende il controllo dell’Atto di Autorità.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
      <TRIGGER value="BEGINNING_OF_PLAYERS_STEP" simple_qualifier="controller">
        return MTG():GetStep() == STEP_UPKEEP
        </TRIGGER>
      <TARGET tag="CARD_QUERY_CHOOSE_ARTIFACT_OR_ENCHANTMENT_TO_EXILE" definition="0" compartment="0" count="1" />
      <TARGET_DEFINITION id="0">
    local filter = ClearFilter()
    local subfilter = filter:AddSubFilter_Or()
       subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_ARTIFACT )
       subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_ENCHANTMENT)
    </TARGET_DEFINITION>
      <RESOLUTION_TIME_ACTION>
    local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
    if target ~= nil then
   EffectDC():Set_PlayerPtr(0, target:GetController())
       target:Exile()
    end
</RESOLUTION_TIME_ACTION>
      <RESOLUTION_TIME_ACTION>

   local newController = EffectDC():Get_PlayerPtr(0)

   if newController ~= nil then

      EffectSource():SetBaseController( newController )

   end

</RESOLUTION_TIME_ACTION>
      <MAY />
      <AI_SIMPLIFIED_TARGETING compartment="0" hint="HINT_ENEMY_ONLY" />
      <AUTO_SKIP>
    local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
    if target ~= nil then
       return false
    else
       return true
    end
</AUTO_SKIP>
   </TRIGGERED_ABILITY>
  <TRIGGERED_ABILITY>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Au début de votre entretien, vous pouvez exiler l’artefact ou l’enchantement ciblé. Si vous faites ainsi, son contrôleur acquiert le contrôle de l’Acte d’autorité.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Al comienzo de tu mantenimiento, puedes exiliar el artefacto o encantamiento objetivo. Si lo haces, su controlador gana el control del Acto de autoridad.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Zu Beginn deines Versorgungssegments kannst du ein Artefakt oder eine Verzauberung deiner Wahl ins Exil schicken. Falls du dies tust, übernimmt sein bzw. ihr Beherrscher die Kontrolle über die Kraft der Autorität.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[All’inizio del tuo mantenimento, puoi esiliare un artefatto o un incantesimo bersaglio. Se lo fai, il suo controllore prende il controllo dell’Atto di Autorità.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[At the beginning of your upkeep, you may exile target artifact or enchantment. If you do, its controller gains control of Act of Authority.]]></LOCALISED_TEXT>
<TRIGGER value="BEGINNING_OF_PLAYERS_STEP" simple_qualifier="controller">
        return MTG():GetStep() == STEP_UPKEEP
        </TRIGGER>
   <TARGET tag="CARD_QUERY_CHOOSE_ARTIFACT_OR_ENCHANTMENT_TO_EXILE" definition="0" compartment="0" count="1" />
<TARGET_DEFINITION id="0">
    local filter = ClearFilter()
    local subfilter = filter:AddSubFilter_Or()
       subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_ARTIFACT )
       subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_ENCHANTMENT)
    </TARGET_DEFINITION>
<RESOLUTION_TIME_ACTION>
    local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
    if target ~= nil then
   EffectDC():Set_CardPtr(0, target)
   EffectDC():Protect_CardPtr(0)
       target:Exile()
    end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>

   local target = EffectDC():Get_CardPtr(0)

   if target:GetController() ~= nil then

      EffectSource():SetController( target:GetController() )

   end

</RESOLUTION_TIME_ACTION>
<MAY />
<AI_SIMPLIFIED_TARGETING compartment="0" hint="HINT_ENEMY_ONLY" />
<AUTO_SKIP>
    local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
    if target ~= nil then
       return false
    else
       return true
    end
</AUTO_SKIP>
 </TRIGGERED_ABILITY>
   <AI_BASE_SCORE score="600" zone="ZONE_BATTLEFIELD" />
</CARD_V2>
You replaced the wrong ability. You replaced the first ability instead of the second ability (which is why now both say "At the beginning of your upkeep, you may exile target artifact or enchantment." instead of just one).
RiiakShiNal
Programmer
 
Posts: 2185
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 497 times

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

Postby AngelLestat » 25 Feb 2015, 14:15

ok it works perfect XD

yeah my failure, I cant even make a copy-paste right :)
AngelLestat
 
Posts: 66
Joined: 02 Sep 2012, 23:09
Has thanked: 1 time
Been thanked: 0 time

Previous

Return to 2014

Who is online

Users browsing this forum: Seo-Ul-ten and 25 guests


Who is online

In total there are 26 users online :: 1 registered, 0 hidden and 25 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: Seo-Ul-ten and 25 guests

Login Form