It is currently 20 Jul 2025, 13:44
   
Text Size

Formal Request Thread

Moderator: CCGHQ Admins

Re: Formal Request Thread

Postby Xander9009 » 05 Oct 2013, 20:48

Kieran wrote:I would like to ask for a few cards I don't have for some requested Gruul decks. Thanks in advance for any contributions.

Ash Zealot
Burning-Tree Emissary
Clan Defiance
Ghor-Clan Rampager
Gruul Charm
Gruul War Chant
Perplex (unrelated, but needed for a different deck)
Polis Crusher
Ruric Thar, the Unbowed
Signal the Clans
Stormbreath Dragon
Zhur-Taa Druid
Two of them were already done by me earlier in this thread.

Burning-Tree Emissary
Zhur-Taa Druid

EDIT: Just to be sure you know, both of these require RSN's mana functions to work.
_______________________________
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 thefiremind » 05 Oct 2013, 21:26

And Perplex is in my mod. Just a heads up: I keep a list of cards in my mod's topic, it's free to browse... :wink:

Here are Polis Crusher and Stormbreaker Dragon: I'm thinking about making a "monstrosity" deck, so I had to code them sooner or later.

EDIT: I forgot linked_ability_group="1" in Stormbreath Dragon, sorry! Substitute
Code: Select all
  <ACTIVATED_ABILITY>
with
Code: Select all
  <ACTIVATED_ABILITY linked_ability_group="1">
to fix it.
Attachments
Dragon & Cyclops.zip
Polis Crusher and Stormbreath Dragon. Unprefixed, untested, illustrations included
(200.57 KiB) Downloaded 249 times
Last edited by thefiremind on 06 Oct 2013, 13:00, edited 2 times in total.
< 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: Formal Request Thread

Postby Kieran » 05 Oct 2013, 21:47

@Xander9009: Thanks! I didn't search the thread for some reason although I usually do. I guess I'm just too in a rush today. And I've taken the RSN mana functions into account. Thanks for pointing it out!

@thefiremind: I grabbed Perplex from you mod already. When I edited the thread I meant to ask for Psychic Intrusion but I'm not sure it's possible considering someone said Nightveil Specter was impossible to code (I think). However, I recently started using the Planeswalker card Ashiok, Nightmare Weaver (it's awesome) and thought their abilities work the same way so I was guessing it would be probable. I'm really unsure. But thanks again for everything!
Kieran
 
Posts: 232
Joined: 03 Nov 2012, 01:09
Has thanked: 21 times
Been thanked: 16 times

Re: Formal Request Thread

Postby thefiremind » 05 Oct 2013, 22:15

Kieran wrote:someone said Nightveil Specter was impossible to code
Nightveil Specter is definitely possible, however Psychic Intrusion has an important difference: "you may spend mana as though it were mana of any color to cast that spell", that's what makes it impossible to code.
< 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: Formal Request Thread

Postby NEMESiS » 06 Oct 2013, 02:30

Does anyone have Guided Passage?
User avatar
NEMESiS
 
Posts: 460
Joined: 03 Jan 2013, 04:02
Location: Pools of Becoming
Has thanked: 70 times
Been thanked: 21 times

Re: Formal Request Thread

Postby Kieran » 06 Oct 2013, 02:30

Okay. I understand. So, it's the clause that makes it impossible to code correctly.
Kieran
 
Posts: 232
Joined: 03 Nov 2012, 01:09
Has thanked: 21 times
Been thanked: 16 times

Re: Formal Request Thread

Postby RiiakShiNal » 06 Oct 2013, 03:01

Kieran wrote:Okay. I understand. So, it's the clause that makes it impossible to code correctly.
Technically, you could code "you may spend mana as though it were mana of any color to cast that spell" for Psychic Intrusion, but it would have problems with hybrid, phyrexian mana costs, and with alternate costs that require coloured mana (of any kind). The way you would code it would be to do a chroma count on a colour, reduce the coloured mana cost by the count and increase the colourless mana cost by the count for each colour which would make the card require only colourless mana, but keep the same CMC that the player would have to pay for the spell. It would, however, work for most cards.

This would only work for this card because it restricts how you can use mana as mana of any colour to only casting the spell.

Trying to do this with abilities is completely impossible (without engine support) so most other cards that say you can use mana as if it were mana of any colour are still impossible to code.
RiiakShiNal
Programmer
 
Posts: 2188
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 497 times

Re: Formal Request Thread

Postby jacque » 06 Oct 2013, 03:56

Kieran wrote:I would like to ask for a few cards I don't have for some requested Gruul decks. Thanks in advance for any contributions.

Ghor-Clan Rampager
Ghor-Clan Rampager is here: viewtopic.php?f=109&t=11010&p=132473&hilit=ghor+clan#p132473
Learn making your own cards today!!!

Click on Image if a post/reply helped you.

I stitch old cards together to make new ones...

~ Jacque, the confused
jacque
 
Posts: 217
Joined: 07 Jun 2013, 20:11
Has thanked: 26 times
Been thanked: 44 times

Re: Formal Request Thread

Postby Kieran » 06 Oct 2013, 04:56

RiiakShiNal wrote:
Kieran wrote:Okay. I understand. So, it's the clause that makes it impossible to code correctly.
Technically, you could code "you may spend mana as though it were mana of any color to cast that spell" for Psychic Intrusion, but it would have problems with hybrid, phyrexian mana costs, and with alternate costs that require coloured mana (of any kind). The way you would code it would be to do a chroma count on a colour, reduce the coloured mana cost by the count and increase the colourless mana cost by the count for each colour which would make the card require only colourless mana, but keep the same CMC that the player would have to pay for the spell. It would, however, work for most cards.

This would only work for this card because it restricts how you can use mana as mana of any colour to only casting the spell.

Trying to do this with abilities is completely impossible (without engine support) so most other cards that say you can use mana as if it were mana of any colour are still impossible to code.
@TFM: Exactly. That's why I wanted to emphasize the word 'correctly'. I'm sure the brilliant minds here have plenty of work-arounds that would make cards possible to implement in underpowered and overpowered conditions. I always find myself marveling @ the sheer effort this community puts into porting cards over to digital format. Likewise, I admire the ingenuity that's on constant display. I'm proud to be a member. :D

@jacque: Thanks for the link. I'll have to start back using the search function. I've been too hasty lately. I think two more gruul cards are needed and that deck should be ready.
Kieran
 
Posts: 232
Joined: 03 Nov 2012, 01:09
Has thanked: 21 times
Been thanked: 16 times

Re: Formal Request Thread

Postby fallenangle » 06 Oct 2013, 11:51

Could I trouble the coding gods to make Steel Hellkite? If so, I would be very grateful.

Thanks for all your help.
fallenangle
 
Posts: 319
Joined: 20 Jul 2013, 02:31
Has thanked: 73 times
Been thanked: 41 times

Re: Formal Request Thread

Postby thefiremind » 06 Oct 2013, 12:22

Kieran wrote:@TFM:
That message was from RiiakShiNal. :mrgreen:

fallenangle wrote:Steel Hellkite
I used the same idea as Archangel of Strife, so it should work, but test it before being sure. Steel Hellkite was in DotP2012 but I didn't use the picture from there because it has an ugly white line at the bottom.
Steel Hellkite (untested) | Open
Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
  <FILENAME text="STEEL_HELLKITE_206351" />
  <CARDNAME text="STEEL_HELLKITE" />
  <TITLE>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Steel Hellkite]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Escouflenfer d’acier]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Engendro de acero]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Stählerner Höllendrache]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Nibbio Infernale d’Acciaio]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[鋼のヘルカイト]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Steel Hellkite]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Стальной Змей]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Dragão Avérneo de Aço]]></LOCALISED_TEXT>
  </TITLE>
  <MULTIVERSEID value="206351" />
  <ARTID value="206351" />
  <ARTIST name="James Paick" />
  <CASTING_COST cost="{6}" />
  <TYPE metaname="Artifact" />
  <TYPE metaname="Creature" />
  <SUB_TYPE metaname="Dragon" />
  <EXPANSION value="SOM" />
  <RARITY metaname="R" />
  <POWER value="5" />
  <TOUGHNESS value="5" />
  <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>
  <ACTIVATED_ABILITY firebreathing="1">
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{2}: Steel Hellkite gets +1/+0 until end of turn.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{2} : L’Escouflenfer d’acier gagne +1/+0 jusqu’à la fin du tour.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{2}: El Engendro de acero obtiene +1/+0 hasta el final del turno.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{2}: Der Stählerne Höllendrache erhält +1/+0 bis zum Ende des Zuges.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{2}: Il Nibbio Infernale d’Acciaio prende +1/+0 fino alla fine del turno.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{2}:鋼のヘルカイトはターン終了時まで+1/+0の修整を受ける。]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{2}: Steel Hellkite gets +1/+0 until end of turn.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{2}: Стальной Змей получает +1/+0 до конца хода.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{2}: Dragão Avérneo de Aço recebe +1/+0 até o final do turno.]]></LOCALISED_TEXT>
    <COST mana_cost="{2}" type="Mana" />
    <CONTINUOUS_ACTION layer="7C">
    if EffectSource() ~= nil then
       EffectSource():GetCurrentCharacteristics():Power_Add(1)
    end
    </CONTINUOUS_ACTION>
    <DURATION simple_duration="UntilEOT" />
    <AI_AVAILABILITY window_step="declare_blockers" type="window" window_in_combat="1" />
    <AUTO_SKIP always="1" />
  </ACTIVATED_ABILITY>
  <TRIGGERED_ABILITY linked_ability_group="1" replacement_effect="1">
    <TRIGGER value="SOURCE_DEALS_DAMAGE_TO_PLAYER" simple_qualifier="self" damage_type="combat" />
    <RESOLUTION_TIME_ACTION>
    if SecondaryPlayer() ~= nil then
       for i=0,MTG():GetNumberOfStartingPlayers()-1 do
          if SecondaryPlayer() == MTG():GetNthStartingPlayer(i) then
             LinkedDC():Set_Int(i, 1)
          end
       end
    end
    </RESOLUTION_TIME_ACTION>
  </TRIGGERED_ABILITY>
  <TRIGGERED_ABILITY linked_ability_group="1" replacement_effect="1">
    <TRIGGER value="BEGINNING_OF_STEP">
    return MTG():GetStep() == STEP_CLEANUP
    </TRIGGER>
    <RESOLUTION_TIME_ACTION>
    for i=0,MTG():GetNumberOfStartingPlayers()-1 do
       LinkedDC():Set_Int(i, 0)
    end
    </RESOLUTION_TIME_ACTION>
  </TRIGGERED_ABILITY>
  <ACTIVATED_ABILITY linked_ability_group="1">
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{X}: Destroy each nonland permanent with converted mana cost X whose controller was dealt combat damage by Steel Hellkite this turn. Activate this ability only once each turn.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{X} : Détruisez chaque permanent non-terrain ayant un coût converti de mana de X dont le contrôleur a subi des blessures de combat par l’Escouflenfer d’acier ce tour-ci. N’activez cette capacité qu’une seule fois par tour.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{X}: Destruye cada permanente que no sea tierra con coste de maná convertido de X cuyo controlador haya recibido daño de combate del Engendro de acero este turno. Activa esta habilidad sólo una vez cada turno.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{X}: Zerstöre jede bleibende Karte mit umgewandelten Manakosten von X außer Ländern, deren Beherrscher in diesem Zug vom Stählernen Höllendrachen Schaden zugefügt wurde. Aktiviere diese Fähigkeit nur einmal pro Zug.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{X}: Distruggi ogni permanente non terra con costo di mana convertito pari a X al cui controllore è stato inflitto danno da combattimento dal Nibbio Infernale d’Acciaio in questo turno. Attiva questa abilità solo una volta per turno.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{X}:このターン、鋼のヘルカイトに戦闘ダメージを与えられたプレイヤーがコントロールする点数で見たマナ・コストがXの土地でない各パーマネントを破壊する。 この能力は、毎ターン1回のみ起動できる。]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{X}: Destroy each nonland permanent with converted mana cost X whose controller was dealt combat damage by Steel Hellkite this turn. Activate this ability only once each turn.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{X}: уничтожьте каждый не являющийся землей перманент с конвертированной мана-стоимостью X, контролирующий игрок которого получил боевые повреждения от Стального Змея в этом ходу. Активируйте эту способность только один раз за ход.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{X}: Destrua cada permanente que não seja terreno com custo de mana convertido igual a X cujo controlador tenha sofrido dano de combate de Dragão Avérneo de Aço neste turno. Ative esta habilidade apenas uma vez a cada turno.]]></LOCALISED_TEXT>
    <AVAILABILITY per_turn_limit="1" />
    <COST mana_cost="{X}" type="Mana" />
    <FILTER filter_id="0">
    local filter = ClearFilter()
    filter:Add(FE_IS_PERMANENT, true) -- invisible tokens are usually indestructible so we can ignore the problem
    filter:Add(FE_TYPE, OP_NOT, CARD_TYPE_LAND)
    filter:Add( FE_CMC, OP_EQUALS, GetEffectX() )
    filter:Add( FE_LUA_CONDITION, 1, EffectController(), EffectDC() )
    </FILTER>
    <FILTER_CONDITION id="1">
    local controller = FilteredCard() and FilteredCard():GetController()
    if controller ~= nil then
       for i=0,MTG():GetNumberOfStartingPlayers()-1 do
          if controller == MTG():GetNthStartingPlayer(i) and LinkedDC():Get_Int(i) == 1 then
             return true
          end
       end
    end
    return false
    </FILTER_CONDITION>
    <RESOLUTION_TIME_ACTION filter_id="0">
    if FilteredCard() ~= nil then
       FilteredCard():Destroy()
    end
    </RESOLUTION_TIME_ACTION>
    <AI_AVAILABILITY window_step="main_2" window_turn="my_turn" type="window" />
    <AI_AVAILABILITY type="in_response" response_source="1" />
    <SFX text="GLOBAL_JUDGEMENT_PLAY" />
  </ACTIVATED_ABILITY>
  <HELP title="MORE_INFO_BADGE_TITLE_10" body="MORE_INFO_BADGE_BODY_10" zone="ZONE_ANY" />
  <SFX text="COMBAT_DRAGON_LARGE_ATTACK" power_boundary_min="4" power_boundary_max="-1" />
  <SFX text="COMBAT_DRAGON_SMALL_ATTACK" power_boundary_min="1" power_boundary_max="3" />
  <AI_BASE_SCORE score="900" zone="ZONE_BATTLEFIELD" />
</CARD_V2>
Attachments
STEEL_HELLKITE_206351.zip
Unprefixed, untested, illustration included
(99.61 KiB) Downloaded 217 times
< 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: Formal Request Thread

Postby drleg3nd » 06 Oct 2013, 16:17

hey guys i was trying this card out but not sure how to do last sentence of ability...
Tidebinder Mage | Open
Code: Select all
<TRIGGERED_ABILITY>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[When Tidebinder Mage enters the battlefield, tap target red or green creature an opponent controls. That creature doesn’t untap during its controller’s untap step for as long as you control Tidebinder Mage.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Quand la Mage ferre-marée arrive sur le champ de bataille, engagez une créature rouge ou verte ciblée qu’un adversaire contrôle. Cette créature ne se dégage pas pendant l’étape de dégagement de son contrôleur tant que vous contrôlez la Mage ferre-marée.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Cuando la Maga enlazamarea entre al campo de batalla, gira la criatura objetivo roja o verde que controle un oponente. Esa criatura no se endereza durante el paso de enderezar de su controlador mientras controles a la Maga enlazamarea.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Wenn der Gezeitenbändiger ins Spiel kommt, tappe eine rote oder grüne Kreatur deiner Wahl, die ein Gegner kontrolliert. Diese Kreatur enttappt nicht während des Enttappsegments ihres Beherrschers, solange du den Gezeitenbändiger kontrollierst.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Quando la Maga Vincolaflusso entra nel campo di battaglia, TAPpa una creatura bersaglio rossa o verde controllata da un avversario. Quella creatura non STAPpa durante lo STAP del suo controllore fintanto che controlli la Maga Vincolaflusso.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[潮縛りの魔道士が戦場に出たとき、対戦相手1人がコントロールする赤か緑のクリーチャー1体を対象とし、それをタップする。そのクリーチャーは、あなたが潮縛りの魔道士をコントロールし続けているかぎり、それのコントローラーのアンタップ・ステップにアンタップしない。]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[파도를 부리는 마도사가 전장에 들어올 때, 상대가 조종하는 적색 또는 녹색 생물 한 개를 목표로 정한다. 그 생물을 탭한다. 그 생물은 당신이 파도를 부리는 마도사를 조종하는 한 그 조종자의 언탭단에 언탭되지 않는다.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Когда Связывающая Приливы выходит на поле битвы, поверните целевое красное или зеленое существо под контролем оппонента. То существо не разворачивается во время шага разворота контролирующего его игрока, пока вы контролируете Связывающую Приливы.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Quando Mago das Amarras Marinhas entrar no campo de batalha, vire a criatura alvo vermelha ou verde que um oponente controla. Aquela criatura não será desvirada durante a etapa de desvirar de seu controlador enquanto você controlar Mago das Amarras Marinhas.]]></LOCALISED_TEXT>
  </TRIGGERED_ABILITY>
drleg3nd
 
Posts: 528
Joined: 14 May 2012, 20:05
Has thanked: 5 times
Been thanked: 30 times

Re: Formal Request Thread

Postby thefiremind » 06 Oct 2013, 16:45

OK, it's teaching time! :lol: :lol: :lol:

Official cards have all the needed pieces... well, with some tweak here and there. :mrgreen:
  1. "When <this> enters the battlefield" -> lots of cards
    Code: Select all
    <TRIGGER value="ZONECHANGE_END" simple_qualifier="self" to_zone="ZONE_BATTLEFIELD" />
  2. "target creature an opponent controls" -> Hands of Binding (it also has the perfect query text)
    Code: Select all
        <TARGET tag="CARD_QUERY_CHOOSE_CREATURE_TAPHOLD" definition="0" compartment="0" count="1" />
        <TARGET_DEFINITION id="0">
        local filter = ClearFilter()
        filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
        filter:Add( FE_TEAM, OP_NOT, EffectController():GetTeam() )
        </TARGET_DEFINITION>
  3. "red or green" -> well, you can't find it exactly in a card, but if you look at the target definition for Archaeomancer you see how "instant or sorcery" is defined, then you search for how any one of the 2 colors is defined, for example in Green Sun's Zenith, and substitute where needed:
    Code: Select all
        local subfilter = filter:AddSubFilter_Or()
           subfilter:Add( FE_COLOUR, OP_IS, COLOUR_RED )
           subfilter:Add( FE_COLOUR, OP_IS, COLOUR_GREEN )
    This goes inside the TARGET_DEFINITION of the previous point.
  4. "tap" -> Master of Diversion
    Code: Select all
        <RESOLUTION_TIME_ACTION>
        local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
        if target ~= nil then
           target:Tap()
        end
        </RESOLUTION_TIME_ACTION>
  5. "for as long as you control <this>" -> Roil Elemental
    Code: Select all
        <DURATION>
        return (EffectSource() == nil or EffectSource():GetPlayer() ~= EffectController())
        </DURATION>
  6. "That creature doesn’t untap during its controller’s untap step" -> Claustrophobia, with the difference that we are acting on our target rather than on enchanted creature:
    Code: Select all
        <CONTINUOUS_ACTION layer="8">
        local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
        if target ~= nil then
           target:GetCurrentCharacteristics():Bool_Set( CHARACTERISTIC_DOESNT_UNTAP, 1 )
        end
        </CONTINUOUS_ACTION>
Stitch everything together and you have Tidebinder Mage's ability. :wink:
< 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: Formal Request Thread

Postby drleg3nd » 06 Oct 2013, 19:44

thefiremind wrote:OK, it's teaching time! :lol: :lol: :lol:

Official cards have all the needed pieces... well, with some tweak here and there. :mrgreen:
  1. "When <this> enters the battlefield" -> lots of cards
    Code: Select all
    <TRIGGER value="ZONECHANGE_END" simple_qualifier="self" to_zone="ZONE_BATTLEFIELD" />
  2. "target creature an opponent controls" -> Hands of Binding (it also has the perfect query text)
    Code: Select all
        <TARGET tag="CARD_QUERY_CHOOSE_CREATURE_TAPHOLD" definition="0" compartment="0" count="1" />
        <TARGET_DEFINITION id="0">
        local filter = ClearFilter()
        filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
        filter:Add( FE_TEAM, OP_NOT, EffectController():GetTeam() )
        </TARGET_DEFINITION>
  3. "red or green" -> well, you can't find it exactly in a card, but if you look at the target definition for Archaeomancer you see how "instant or sorcery" is defined, then you search for how any one of the 2 colors is defined, for example in Green Sun's Zenith, and substitute where needed:
    Code: Select all
        local subfilter = filter:AddSubFilter_Or()
           subfilter:Add( FE_COLOUR, OP_IS, COLOUR_RED )
           subfilter:Add( FE_COLOUR, OP_IS, COLOUR_GREEN )
    This goes inside the TARGET_DEFINITION of the previous point.
  4. "tap" -> Master of Diversion
    Code: Select all
        <RESOLUTION_TIME_ACTION>
        local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
        if target ~= nil then
           target:Tap()
        end
        </RESOLUTION_TIME_ACTION>
  5. "for as long as you control <this>" -> Roil Elemental
    Code: Select all
        <DURATION>
        return (EffectSource() == nil or EffectSource():GetPlayer() ~= EffectController())
        </DURATION>
  6. "That creature doesn’t untap during its controller’s untap step" -> Claustrophobia, with the difference that we are acting on our target rather than on enchanted creature:
    Code: Select all
        <CONTINUOUS_ACTION layer="8">
        local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
        if target ~= nil then
           target:GetCurrentCharacteristics():Bool_Set( CHARACTERISTIC_DOESNT_UNTAP, 1 )
        end
        </CONTINUOUS_ACTION>
Stitch everything together and you have Tidebinder Mage's ability. :wink:
thank you sensei :D
drleg3nd
 
Posts: 528
Joined: 14 May 2012, 20:05
Has thanked: 5 times
Been thanked: 30 times

Re: Formal Request Thread

Postby fallenangle » 07 Oct 2013, 02:04

I have a coding question: suppose I wanted to make a card that combined the abilities of Clone and Fiendhunter. How could I make sure that the target of both abilities is the same card? (I.e., the creature I exile is the creature I copy, or vice versa.)
fallenangle
 
Posts: 319
Joined: 20 Jul 2013, 02:31
Has thanked: 73 times
Been thanked: 41 times

PreviousNext

Return to 2014

Who is online

Users browsing this forum: No registered users and 9 guests

Main Menu

User Menu

Our Partners


Who is online

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

Users browsing this forum: No registered users and 9 guests

Login Form