It is currently 11 Sep 2025, 17:15
   
Text Size

Formal Request Thread

Moderator: CCGHQ Admins

Re: Request for Thopter Spy Network

Postby Xander9009 » 06 Aug 2015, 11:59

Finnical wrote:
Misplay wrote:
Finnical wrote:Thopter Spy Network
Misplay wrote: I couldn't code the second ability... The condition "one or more creatures deal combat damage" is too complicate for me. :(
Dude, your quick response and work is amazing, no need for a frowny. I will try to figure the second ability out myself if I can. Thanks so much!

Misplay wrote:And when you play Thopter Spy Network, you also want to play Hangarback Walker. :wink:
Didn't even think of that. I don't own the card in real life. I would love to brew with it, thanks!
Thopter Spy Network is done.

Thopter Spy Network | Open
Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
   <FILENAME text="THOPTER_SPY_NETWORK_CW_398519" />
   <CARDNAME text="THOPTER_SPY_NETWORK" />
   <TITLE>
      <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Thopter Spy Network]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Réseau de mécanoptères espions]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Red de espionaje tóptera]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Thopter-Spionagenetz]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Rete di Totteri Spia]]></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[Rede de Espionagem de Tópteros]]></LOCALISED_TEXT>
   </TITLE>
   <MULTIVERSEID value="398519" />
   <ARTID value="CW398519" />
   <ARTIST name="Jung Park" />
   <CASTING_COST cost="{2}{U}{U}" />
   <TYPE metaname="Enchantment" />
   <EXPANSION value="ORI" />
   <RARITY metaname="R" />
   <TRIGGERED_ABILITY>
      <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[At the beginning of your upkeep, if you control an artifact, put a 1/1 colorless Thopter artifact creature token with flying onto the battlefield.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Au début de votre entretien, si vous contrôlez un artefact, mettez sur le champ de bataille un jeton de créature-artefact 1/1 incolore Mécanoptère avec le vol.À chaque fois qu’au moins une créature-artefact que vous contrôlez inflige des blessures de combat à un joueur, piochez une carte.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Al comienzo de tu mantenimiento, si controlas un artefacto, pon en el campo de batalla una ficha de criatura artefacto Tóptero incolora 1/1 con la habilidad de volar.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Falls du zu Beginn deines Versorgungssegments ein Artefakt kontrollierst, bringe einen 1/1 farblosen Thopter-Artefaktkreaturenspielstein mit Flugfähigkeit ins Spiel.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[All’inizio del tuo mantenimento, se controlli un artefatto, metti sul campo di battaglia una pedina creatura artefatto Tottero 1/1 incolore con volare.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[あなたのアップキープの開始時に、あなたがアーティファクトをコントロールしている場合、飛行を持つ無色の1/1の飛行機械・アーティファクト・クリーチャー・トークンを1体戦場に出す。あなたがコントロールする1体以上のアーティファクト・クリーチャーがプレイヤー1人に戦闘ダメージを与えるたび、カードを1枚引く。]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[당신의 유지단 시작에, 당신이 마법물체를 조종한다면, 비행을 가진 1/1 무색 날틀 마법물체 생물 토큰 한 개를 전장에 놓는다.당신이 조종하는 하나 이상의 마법물체 생물이 플레이어에게 전투피해를 줄 때마다, 카드 한 장을 뽑는다.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[В начале вашего шага поддержки, если под вашим контролем есть артефакт, положите на поле битвы одну фишку артефакта существа 1/1 бесцветный Топтер с Полетом.Каждый раз, когда один или более артефактов существ под вашим контролем наносят боевые повреждения игроку, возьмите карту.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[No início de sua manutenção, se você controlar um artefato, coloque no campo de batalha uma ficha de criatura artefato incolor 1/1 do tipo Tóptero com voar.]]></LOCALISED_TEXT>
      <TRIGGER value="BEGINNING_OF_PLAYERS_STEP" simple_qualifier="controller">
         return MTG():GetStep() == STEP_UPKEEP
      </TRIGGER>
      <INTERVENING_IF>
         local filter = ClearFilter()
         filter:Add( FE_TYPE, OP_IS, CARD_TYPE_ARTIFACT )
         filter:Add( FE_CONTROLLER, OP_IS, EffectController())
         local total = filter:Count()
         if total &gt; 0 then
            return true
         else
            return false
         end
      </INTERVENING_IF>
      <RESOLUTION_TIME_ACTION>
         MTG():PutTokensOntoBattlefield( "TOKEN_THOPTER_AC_1_1_C_F_CW_1", 1, EffectController() )
      </RESOLUTION_TIME_ACTION>
   </TRIGGERED_ABILITY>
   <TRIGGERED_ABILITY linked_ability_group="1">
      <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Whenever one or more artifact creatures you control deal combat damage to a player, draw a card.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Whenever one or more artifact creatures you control deal combat damage to a player, draw a card.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Siempre que una o más criaturas artefacto que controlas hagan daño de combate a un jugador, roba una carta.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Immer wenn eine oder mehrere Artefaktkreaturen, die du kontrollierst, einem Spieler Kampfschaden zufügen, ziehe eine Karte.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Ogniqualvolta una o più creature artefatto che controlli infliggono danno da combattimento a un giocatore, pesca una carta.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Whenever one or more artifact creatures you control deal combat damage to a player, draw a card.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Whenever one or more artifact creatures you control deal combat damage to a player, draw a card.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Whenever one or more artifact creatures you control deal combat damage to a player, draw a card.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Toda vez que uma ou mais criaturas artefato que você controla causarem dano de combate a um jogador, compre um card.]]></LOCALISED_TEXT>
      <TRIGGER value="SOURCE_DEALS_DAMAGE_TO_PLAYER" simple_qualifier="objectyoucontrol" damage_type="combat">
         local filter = ClearFilter()
         filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
         filter:Add( FE_TYPE, OP_IS, CARD_TYPE_ARTIFACT )
         filter:Add(FE_IS_ATTACKING, true)
         filter:Add(FE_CONTROLLER, OP_IS, EffectController())
         local number = filter:Count()
         if number &gt;= 1 and LinkedDC():Get_Int(0) == 0 then
            LinkedDC():Set_Int(0, 1) -- disable this trigger
            return true
         end
         return false
      </TRIGGER>
      <RESOLUTION_TIME_ACTION>
         EffectController():DrawCards(1)
      </RESOLUTION_TIME_ACTION>
   </TRIGGERED_ABILITY>
   <TRIGGERED_ABILITY replacement_effect="1" linked_ability_group="1">
      <TRIGGER value="STACK_PUSHED" />
      <RESOLUTION_TIME_ACTION>
         LinkedDC():Set_Int(0, 0) -- re-enable the other trigger
      </RESOLUTION_TIME_ACTION>
   </TRIGGERED_ABILITY>   
   <TOKEN_REGISTRATION reservation="1" type="TOKEN_THOPTER_AC_1_1_C_F_CW_1" />
   <AUTHOR><![CDATA[Misplay, fallenangle]]></AUTHOR>
   <EDITORS><![CDATA[Misplay, fallenangle, Armodeus]]></EDITORS>
   <DATE><![CDATA[04-08-15, 04-08-15, 05-08-15]]></DATE>
</CARD_V2>
fallenangle finished the second ability a couple of days ago. Armodeus apparently fixed something, too.
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
User avatar
Xander9009
Programmer
 
Posts: 2905
Joined: 29 Jun 2013, 07:44
Location: Indiana, United States
Has thanked: 121 times
Been thanked: 445 times

Re: Request for Thopter Spy Network

Postby Armodeus » 06 Aug 2015, 15:19

Xander9009 wrote:Thopter Spy Network is done.

Thopter Spy Network | Open
Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
   <FILENAME text="THOPTER_SPY_NETWORK_CW_398519" />
   <CARDNAME text="THOPTER_SPY_NETWORK" />
   <TITLE>
      <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Thopter Spy Network]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Réseau de mécanoptères espions]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Red de espionaje tóptera]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Thopter-Spionagenetz]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Rete di Totteri Spia]]></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[Rede de Espionagem de Tópteros]]></LOCALISED_TEXT>
   </TITLE>
   <MULTIVERSEID value="398519" />
   <ARTID value="CW398519" />
   <ARTIST name="Jung Park" />
   <CASTING_COST cost="{2}{U}{U}" />
   <TYPE metaname="Enchantment" />
   <EXPANSION value="ORI" />
   <RARITY metaname="R" />
   <TRIGGERED_ABILITY>
      <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[At the beginning of your upkeep, if you control an artifact, put a 1/1 colorless Thopter artifact creature token with flying onto the battlefield.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Au début de votre entretien, si vous contrôlez un artefact, mettez sur le champ de bataille un jeton de créature-artefact 1/1 incolore Mécanoptère avec le vol.À chaque fois qu’au moins une créature-artefact que vous contrôlez inflige des blessures de combat à un joueur, piochez une carte.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Al comienzo de tu mantenimiento, si controlas un artefacto, pon en el campo de batalla una ficha de criatura artefacto Tóptero incolora 1/1 con la habilidad de volar.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Falls du zu Beginn deines Versorgungssegments ein Artefakt kontrollierst, bringe einen 1/1 farblosen Thopter-Artefaktkreaturenspielstein mit Flugfähigkeit ins Spiel.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[All’inizio del tuo mantenimento, se controlli un artefatto, metti sul campo di battaglia una pedina creatura artefatto Tottero 1/1 incolore con volare.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[あなたのアップキープの開始時に、あなたがアーティファクトをコントロールしている場合、飛行を持つ無色の1/1の飛行機械・アーティファクト・クリーチャー・トークンを1体戦場に出す。あなたがコントロールする1体以上のアーティファクト・クリーチャーがプレイヤー1人に戦闘ダメージを与えるたび、カードを1枚引く。]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[당신의 유지단 시작에, 당신이 마법물체를 조종한다면, 비행을 가진 1/1 무색 날틀 마법물체 생물 토큰 한 개를 전장에 놓는다.당신이 조종하는 하나 이상의 마법물체 생물이 플레이어에게 전투피해를 줄 때마다, 카드 한 장을 뽑는다.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[В начале вашего шага поддержки, если под вашим контролем есть артефакт, положите на поле битвы одну фишку артефакта существа 1/1 бесцветный Топтер с Полетом.Каждый раз, когда один или более артефактов существ под вашим контролем наносят боевые повреждения игроку, возьмите карту.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[No início de sua manutenção, se você controlar um artefato, coloque no campo de batalha uma ficha de criatura artefato incolor 1/1 do tipo Tóptero com voar.]]></LOCALISED_TEXT>
      <TRIGGER value="BEGINNING_OF_PLAYERS_STEP" simple_qualifier="controller">
         return MTG():GetStep() == STEP_UPKEEP
      </TRIGGER>
      <INTERVENING_IF>
         local filter = ClearFilter()
         filter:Add( FE_TYPE, OP_IS, CARD_TYPE_ARTIFACT )
         filter:Add( FE_CONTROLLER, OP_IS, EffectController())
         local total = filter:Count()
         if total &gt; 0 then
            return true
         else
            return false
         end
      </INTERVENING_IF>
      <RESOLUTION_TIME_ACTION>
         MTG():PutTokensOntoBattlefield( "TOKEN_THOPTER_AC_1_1_C_F_CW_1", 1, EffectController() )
      </RESOLUTION_TIME_ACTION>
   </TRIGGERED_ABILITY>
   <TRIGGERED_ABILITY linked_ability_group="1">
      <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Whenever one or more artifact creatures you control deal combat damage to a player, draw a card.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Whenever one or more artifact creatures you control deal combat damage to a player, draw a card.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Siempre que una o más criaturas artefacto que controlas hagan daño de combate a un jugador, roba una carta.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Immer wenn eine oder mehrere Artefaktkreaturen, die du kontrollierst, einem Spieler Kampfschaden zufügen, ziehe eine Karte.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Ogniqualvolta una o più creature artefatto che controlli infliggono danno da combattimento a un giocatore, pesca una carta.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Whenever one or more artifact creatures you control deal combat damage to a player, draw a card.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Whenever one or more artifact creatures you control deal combat damage to a player, draw a card.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Whenever one or more artifact creatures you control deal combat damage to a player, draw a card.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Toda vez que uma ou mais criaturas artefato que você controla causarem dano de combate a um jogador, compre um card.]]></LOCALISED_TEXT>
      <TRIGGER value="SOURCE_DEALS_DAMAGE_TO_PLAYER" simple_qualifier="objectyoucontrol" damage_type="combat">
         local filter = ClearFilter()
         filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
         filter:Add( FE_TYPE, OP_IS, CARD_TYPE_ARTIFACT )
         filter:Add(FE_IS_ATTACKING, true)
         filter:Add(FE_CONTROLLER, OP_IS, EffectController())
         local number = filter:Count()
         if number &gt;= 1 and LinkedDC():Get_Int(0) == 0 then
            LinkedDC():Set_Int(0, 1) -- disable this trigger
            return true
         end
         return false
      </TRIGGER>
      <RESOLUTION_TIME_ACTION>
         EffectController():DrawCards(1)
      </RESOLUTION_TIME_ACTION>
   </TRIGGERED_ABILITY>
   <TRIGGERED_ABILITY replacement_effect="1" linked_ability_group="1">
      <TRIGGER value="STACK_PUSHED" />
      <RESOLUTION_TIME_ACTION>
         LinkedDC():Set_Int(0, 0) -- re-enable the other trigger
      </RESOLUTION_TIME_ACTION>
   </TRIGGERED_ABILITY>   
   <TOKEN_REGISTRATION reservation="1" type="TOKEN_THOPTER_AC_1_1_C_F_CW_1" />
   <AUTHOR><![CDATA[Misplay, fallenangle]]></AUTHOR>
   <EDITORS><![CDATA[Misplay, fallenangle, Armodeus]]></EDITORS>
   <DATE><![CDATA[04-08-15, 04-08-15, 05-08-15]]></DATE>
</CARD_V2>
fallenangle finished the second ability a couple of days ago. Armodeus apparently fixed something, too.
Yes the card was not working correctly:
1st ability: 2 artifacts on the BF were required to trigger.
2nd ability: was just drawing a card for each creature that dealt damage, and not considering first strike or double strike conditions at all.

Now the card is working accordingly to the rules:

22/06/2015 Thopter Spy Network’s first ability has an “intervening ‘if’ clause.” That means (1) the ability won’t trigger at all unless you control an artifact as your upkeep begins, and (2) the ability will do nothing if you don’t control an artifact as it resolves.
22/06/2015 The last ability will trigger, at most, once per combat damage step. However, if at least one artifact creature you control has first strike and others don’t, or if an artifact creature you control has double strike, the ability could trigger twice per combat: once in each combat damage step.

I also fixed Hangarback Walker, and added some other Thopter cards.
User avatar
Armodeus
 
Posts: 21
Joined: 26 Dec 2014, 17:18
Has thanked: 2 times
Been thanked: 4 times

Re: Formal Request Thread

Postby Tejahn » 06 Aug 2015, 19:49

I have a request.

Disarm
Fulgent Distraction
Tejahn
 
Posts: 430
Joined: 14 May 2013, 01:35
Has thanked: 25 times
Been thanked: 25 times

Re: Request for Thopter Spy Network

Postby Misplay » 06 Aug 2015, 22:41

@ Armodeus: Thx for the Thopter Spy Network! Where do you find all the traductions for the text of the cards?

Armodeus wrote:I also fixed Hangarback Walker, and added some other Thopter cards.
Just curious, what's wrong with my code?
Misplay
 
Posts: 92
Joined: 29 Aug 2013, 08:26
Has thanked: 50 times
Been thanked: 10 times

Re: Formal Request Thread

Postby Misplay » 10 Aug 2015, 12:47

I tried to code Starfield of Nyx and... The second ability doesn't work.

Here's the code:
Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
  <FILENAME text="STARFIELD_OF_NYX_666123104" />
  <CARDNAME text="STARFIELD_OF_NYX" />
  <TITLE>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Starfield of Nyx]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Starfield of Nyx]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Starfield of Nyx]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Starfield of Nyx]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Starfield of Nyx]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Starfield of Nyx]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Starfield of Nyx]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Starfield of Nyx]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Starfield of Nyx]]></LOCALISED_TEXT>
  </TITLE>
  <MULTIVERSEID value="666123104" />
  <ARTID value="666123104" />
  <ARTIST name="Tyler Jacobson" />
  <CASTING_COST cost="{4}{W}" />
  <TYPE metaname="Enchantment" />
  <EXPANSION value="ZEN" />
  <RARITY metaname="M" />
   <TRIGGERED_ABILITY>
      <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[At the beginning of your upkeep, you may return target enchantment card from your graveyard to the battlefield.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[At the beginning of your upkeep, you may return target enchantment card from your graveyard to the battlefield.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[At the beginning of your upkeep, you may return target enchantment card from your graveyard to the battlefield.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[At the beginning of your upkeep, you may return target enchantment card from your graveyard to the battlefield.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[At the beginning of your upkeep, you may return target enchantment card from your graveyard to the battlefield.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[At the beginning of your upkeep, you may return target enchantment card from your graveyard to the battlefield.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[At the beginning of your upkeep, you may return target enchantment card from your graveyard to the battlefield.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[At the beginning of your upkeep, you may return target enchantment card from your graveyard to the battlefield.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[At the beginning of your upkeep, you may return target enchantment card from your graveyard to the battlefield.]]></LOCALISED_TEXT>
      <TRIGGER value="BEGINNING_OF_PLAYERS_STEP" simple_qualifier="controller">
         return MTG():GetStep() == STEP_UPKEEP
      </TRIGGER>
      <TARGET tag="CARD_QUERY_CHOOSE_ENCHANTMENT_RETURN_TO_BATTLEFIELD" definition="0" compartment="0" count="1" />
      <TARGET_DEFINITION id="0">
         local filter = ClearFilter()
         filter:Add( FE_TYPE, OP_IS, CARD_TYPE_ENCHANTMENT )
         filter:SetZone( ZONE_GRAVEYARD, EffectController() )
      </TARGET_DEFINITION>
      <RESOLUTION_TIME_ACTION>
      local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
      if  target ~= nil then
         target:PutOntoBattlefield( EffectController() )
      end
   </RESOLUTION_TIME_ACTION>
   </TRIGGERED_ABILITY>
   <STATIC_ABILITY>
      <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[As long as you control five or more enchantments, each other non-Aura enchantment you control is a creature in addition to its other types and has base power and base toughness each equal to its converted mana cost.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[As long as you control five or more enchantments, each other non-Aura enchantment you control is a creature in addition to its other types and has base power and base toughness each equal to its converted mana cost.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[As long as you control five or more enchantments, each other non-Aura enchantment you control is a creature in addition to its other types and has base power and base toughness each equal to its converted mana cost.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[As long as you control five or more enchantments, each other non-Aura enchantment you control is a creature in addition to its other types and has base power and base toughness each equal to its converted mana cost.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[As long as you control five or more enchantments, each other non-Aura enchantment you control is a creature in addition to its other types and has base power and base toughness each equal to its converted mana cost.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[As long as you control five or more enchantments, each other non-Aura enchantment you control is a creature in addition to its other types and has base power and base toughness each equal to its converted mana cost.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[As long as you control five or more enchantments, each other non-Aura enchantment you control is a creature in addition to its other types and has base power and base toughness each equal to its converted mana cost.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[As long as you control five or more enchantments, each other non-Aura enchantment you control is a creature in addition to its other types and has base power and base toughness each equal to its converted mana cost.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[As long as you control five or more enchantments, each other non-Aura enchantment you control is a creature in addition to its other types and has base power and base toughness each equal to its converted mana cost.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="zh-CN"><![CDATA[As long as you control five or more enchantments, each other non-Aura enchantment you control is a creature in addition to its other types and has base power and base toughness each equal to its converted mana cost.]]></LOCALISED_TEXT>
      <LOCALISED_TEXT LanguageCode="zh-HK"><![CDATA[As long as you control five or more enchantments, each other non-Aura enchantment you control is a creature in addition to its other types and has base power and base toughness each equal to its converted mana cost.]]></LOCALISED_TEXT>
    <FILTER filter_id="0">
    local filter = ClearFilter()
    filter:Add( FE_SUBTYPE, OP_NOT, ENCHANTMENT_TYPE_AURA )
    filter:Add( FE_TYPE, OP_IS, CARD_TYPE_ENCHANTMENT )
    filter:Add (FE_CARD_INSTANCE, OP_NOT, EffectSource() )
    filter:Add( FE_CONTROLLER, OP_IS, EffectController() )
    </FILTER>
    <CONTINUOUS_ACTION layer="4" filter_id="0">
    if EffectSource() ~= nil then
       local filter = ClearFilter()
       filter:Add( FE_TYPE, OP_IS, CARD_TYPE_ECHANTMENT )
       filter:Add( FE_CONTROLLER, OP_IS, EffectController() )
       local total = filter:Count()
       if (filter:CountStopAt( 5 ) == 5) then
          if FilteredCard() ~= nil then
             local characteristics = FilteredCard():GetCurrentCharacteristics()
            characteristics:CardType_GetWritable():Add( CARD_TYPE_CREATURE)
          end
       end
    end
    </CONTINUOUS_ACTION>
    <CONTINUOUS_ACTION layer="7B" filter_id="0">
    if EffectSource() ~= nil then
       local filter = ClearFilter()
       filter:Add( FE_TYPE, OP_IS, CARD_TYPE_ECHANTMENT )
       filter:Add( FE_CONTROLLER, OP_IS, EffectController() )
       local total = filter:Count()
       if (filter:CountStopAt( 5 ) == 5) then
          if FilteredCard() ~= nil then
             local characteristics = FilteredCard():GetCurrentCharacteristics()
            local PT_value = FilteredCard():GetConvertedManaCost()
            characteristics:Power_Set( PT_value )
            characteristics:Toughness_Set( PT_value )
          end
       end
    end
    </CONTINUOUS_ACTION>
  </STATIC_ABILITY>
  <AI_BASE_SCORE score="600" zone="ZONE_BATTLEFIELD" />
</CARD_V2>
Any idea?!
Misplay
 
Posts: 92
Joined: 29 Aug 2013, 08:26
Has thanked: 50 times
Been thanked: 10 times

Re: Formal Request Thread

Postby Xander9009 » 10 Aug 2015, 17:12

I'm working on getting that working now, Misplay.

Has anyone encountered replacement_effect="1" having no effect? As in, all of my manual mana abilities, my test card, and various other cards have a response time and aren't skipping properly...

EDIT: You misspelled ENCHANTMENT. It says CARD_TYPE_ECHANTMENT instead of CARD_TYPE_ENCHANTMENT (missed the N). I tested it and it works now, so I went ahead and added it to the CW since you already sent me a few other cards for that purpose. Hope that's okay. (I also changed the MultiverseID to the English version's ID so the art shows up, and I made a few other VERY minor changes that make it cleaner in my opinion. But that one change is all that's needed.
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
User avatar
Xander9009
Programmer
 
Posts: 2905
Joined: 29 Jun 2013, 07:44
Location: Indiana, United States
Has thanked: 121 times
Been thanked: 445 times

Re: Formal Request Thread

Postby RiiakShiNal » 11 Aug 2015, 11:24

Xander9009 wrote:Has anyone encountered replacement_effect="1" having no effect? As in, all of my manual mana abilities, my test card, and various other cards have a response time and aren't skipping properly...
I don't believe that the replacement_* attributes work for ACTIVATED_ABILITYs. They are intended for TRIGGERED_ABILITYs. To make ACTIVATED_ABILITYs skip use forced_skip="1".
RiiakShiNal
Programmer
 
Posts: 2188
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 497 times

Re: Formal Request Thread

Postby Xander9009 » 11 Aug 2015, 13:53

Alright. I'll switch to that. I'm just confused because it was working before. It stopped when I upgraded to Windows 10 (but the upgrade obviously involved reinstalling the game, too, so it easily could be completely unrelated to the upgrade).

EDIT: My apologies. I was pretty sure I'd used replacement_effect, but no, they're all already set to forced_skip="1"...
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
User avatar
Xander9009
Programmer
 
Posts: 2905
Joined: 29 Jun 2013, 07:44
Location: Indiana, United States
Has thanked: 121 times
Been thanked: 445 times

Re: Formal Request Thread

Postby Misplay » 11 Aug 2015, 16:05

Xander9009 wrote:Hope that's okay.
I put the code on a public forum, you found the mistakes in it and made it work... And you still ask for my permission? :)

And thx for your help on Starfield of Nyx. This is the first card I make for the WAD. Only 1804 more cards to do, and Migookman will be second at the Modder's rank... :mrgreen:
Misplay
 
Posts: 92
Joined: 29 Aug 2013, 08:26
Has thanked: 50 times
Been thanked: 10 times

Re: Formal Request Thread

Postby Xander9009 » 11 Aug 2015, 16:35

Misplay wrote:
Xander9009 wrote:Hope that's okay.
I put the code on a public forum, you found the mistakes in it and made it work... And you still ask for my permission? :)

And thx for your help on Starfield of Nyx. This is the first card I make for the WAD. Only 1804 more cards to do, and Migookman will be second at the Modder's rank... :mrgreen:
3761 more cards to go, actually. I haven't updated the count in awhile... I'll go do that haha.
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
User avatar
Xander9009
Programmer
 
Posts: 2905
Joined: 29 Jun 2013, 07:44
Location: Indiana, United States
Has thanked: 121 times
Been thanked: 445 times

Re: Formal Request Thread

Postby Misplay » 11 Aug 2015, 17:48

Xander9009 wrote:Migookman - 3761 cards
... And has been thanked only once. Modding doesn't pay a lot!
Misplay
 
Posts: 92
Joined: 29 Aug 2013, 08:26
Has thanked: 50 times
Been thanked: 10 times

Re: Formal Request Thread

Postby loookaz » 12 Aug 2015, 18:20

I would like to kindly request:

Demonic Pact and Kothophed, Soul Hoarder

those are the only 2 cards that I need for my Origins Control dect:)
loookaz
 
Posts: 131
Joined: 01 Dec 2012, 10:56
Location: Warsaw, Poland
Has thanked: 22 times
Been thanked: 2 times

Re: Formal Request Thread

Postby Xander9009 » 12 Aug 2015, 18:36

Misplay wrote:
Xander9009 wrote:Migookman - 3761 cards
... And has been thanked only once. Modding doesn't pay a lot!
Well, he has 3761 new cards to play with :P But yeah, that's largely because he spends most of his time making cards rather than conversing on the boards. You don't get many thanks unless you're directly helping someone with a problem (and even then, if the problem spans many posts, they may simply not think of it; I certainly usually don't unless it's a succinct answer to my question in a single post). I do have a thank you to him at the top of the main post, but it's a bit more narrow than it deserves at this point.



Speaking of questions, problems, answers, and help: I still haven't found a solution to the problem I posted a few days ago. I've verified through the integrity through steam and everything checked out (that's what I expected, but I was hoping at least). I've checked the exact same code on another computer and it did in fact work, so it's definitely not the code. I've tried compatibility mode for Windows 8, but that didn't affect it at all. I'll try reinstalling, but given that everything checked out, I doubt it'll do any good. If anyone has any ideas, let me know. I'd love to hear them.

Could someone please see if they can get Containment Priest to work? It uses a pre_trigger replacement_effect and no matter how I set it up, it doesn't work. The only way I manage to make it work was to move the exiling to an RTA, remove the override, remove the pre_trigger and replacement_effect attributes, and change it to ZONECHANGE_END trigger. I don't mean any of those would fix it, but only making all of those changes. But my system isn't processing replacement_effect and forced_skip attributes correctly, so I can't tell if it's just something seriously messed up on my computer...

EDIT: So, it seems WasCast() always returns true? Can someone test that and let me know the results? It's not used often, but it is used often enough that it should have been noticed before if that's the case...
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
User avatar
Xander9009
Programmer
 
Posts: 2905
Joined: 29 Jun 2013, 07:44
Location: Indiana, United States
Has thanked: 121 times
Been thanked: 445 times

Re: Formal Request Thread

Postby nivmizzet1 » 13 Aug 2015, 07:22

I did a search but couldn't find anything -- is it possible to code spell mastery abilities in DOTP2014?
nivmizzet1
 
Posts: 617
Joined: 21 Mar 2013, 10:10
Has thanked: 100 times
Been thanked: 25 times

Re: Formal Request Thread

Postby Xander9009 » 13 Aug 2015, 11:26

nivmizzet1 wrote:I did a search but couldn't find anything -- is it possible to code spell mastery abilities in DOTP2014?
Of course. It's just a different effect if your graveyard has enough valid cards.

Spell Mastery | Open
Code: Select all
local filter = ClearFilter()
filter:SetZone(ZONE_GRAVEYARD, EffectController())
local subfilter = filter:AddSubFilter_Or()
subfilter:Add(FE_TYPE, OP_IS, CARD_TYPE_INSTANT)
subfilter:Add(FE_TYPE, OP_IS, CARD_TYPE_SORCERY)
if filter:CountStopAt(2) ~= 2 then
   <!--Normal effect-->
else
   <!--Spell mastery effect-->
end
Since it's now a keyword, for the sake of convenience, there's now a function in the CW you can call for this to check the current spell mastery status: CW_General_SpellMastery(oPlayer). oPlayer is optional. If it's omitted, it'll default to EffectController(), so the majority of the time, you won't need it.
CW_General_SpellMastery | Open
Code: Select all
--Returns true or false based on oPlayer's current Spell Mastery fullfilment.
--Input: Player (default: EffectController())
--Output: Bool
CW_General_SpellMastery = function( oPlayer )
   if oPlayer == nil then
      oPlayer = EffectController()
   end
   local iCount = oPlayer:Graveyard_Count()
   local iSpellCount = 0
   if iCount >= 2 then
      for i=0,iCount-1 do
         local oCard = oPlayer:Graveyard_GetNth(i)
         if oCard ~= nil and ( oCard:GetCardType():Test( CARD_TYPE_INSTANT ) or oCard:GetCardType():Test( CARD_TYPE_SORCERY ) ) then
            iSpellCount = iSpellCount+1
            if iSpellCount >= 2 then
               return true
            end
         end
      end
   end
   return false
end
I haven't tested it, yet, but I'll do that later today when I get a chance. It'll be available in the next repack, or you can force it to update by copying the file CW_General.LOL to your game directory from GD. (Note that I did it without a filter to avoid problems if someone calls it as part of a filter. The result is the same.)
Last edited by Xander9009 on 13 Aug 2015, 21:01, edited 1 time in total.
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
User avatar
Xander9009
Programmer
 
Posts: 2905
Joined: 29 Jun 2013, 07:44
Location: Indiana, United States
Has thanked: 121 times
Been thanked: 445 times

PreviousNext

Return to 2014

Who is online

Users browsing this forum: No registered users and 19 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 19 users online :: 0 registered, 0 hidden and 19 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 19 guests

Login Form