Board index
Programs with AI or Rules Enforcement
Magic: The Gathering - Duels of the Planeswalkers
New MTG Cards and Decks (2010, 2012, 2013, 2014, 2015, Magic Duels)
2014




Formal Request Thread
Moderator: CCGHQ Admins
Re: Formal Request Thread
by Xander9009 » 05 Oct 2013, 20:48
Two of them were already done by me earlier in this thread.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
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
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
-
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
by 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... 
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

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>
- Code: Select all
<ACTIVATED_ABILITY linked_ability_group="1">
- 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...
Currently busy with life...
-
thefiremind - Programmer
- Posts: 3515
- Joined: 07 Nov 2011, 10:55
- Has thanked: 118 times
- Been thanked: 722 times
Re: Formal Request Thread
by 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!
@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!
Re: Formal Request Thread
by thefiremind » 05 Oct 2013, 22:15
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.Kieran wrote:someone said Nightveil Specter was impossible to code
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
Currently busy with life...
-
thefiremind - Programmer
- Posts: 3515
- Joined: 07 Nov 2011, 10:55
- Has thanked: 118 times
- Been thanked: 722 times
-
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
by Kieran » 06 Oct 2013, 02:30
Okay. I understand. So, it's the clause that makes it impossible to code correctly.
Re: Formal Request Thread
by RiiakShiNal » 06 Oct 2013, 03:01
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.Kieran wrote:Okay. I understand. So, it's the clause that makes it impossible to code correctly.
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.
Just getting started: Xander9009's DotP 2014 Community Wad
Need a deck builder: DotP 2014 Deck Builder
Problems Modding: DotP 2014 Frequent Modding Mistakes
Need a deck builder: DotP 2014 Deck Builder
Problems Modding: DotP 2014 Frequent Modding Mistakes
- RiiakShiNal
- Programmer
- Posts: 2188
- Joined: 16 May 2011, 21:37
- Has thanked: 75 times
- Been thanked: 497 times
Re: Formal Request Thread
by jacque » 06 Oct 2013, 03:56
Ghor-Clan Rampager is here: viewtopic.php?f=109&t=11010&p=132473&hilit=ghor+clan#p132473Kieran 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
Learn making your own cards today!!!
Click on
if a post/reply helped you.
I stitch old cards together to make new ones...
~ Jacque, the confused
Click on

I stitch old cards together to make new ones...
~ Jacque, the confused
Re: Formal Request Thread
by Kieran » 06 Oct 2013, 04:56
@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.RiiakShiNal wrote: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.Kieran wrote:Okay. I understand. So, it's the clause that makes it impossible to code correctly.
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.

@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.
Re: Formal Request Thread
by 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.
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
by thefiremind » 06 Oct 2013, 12:22
That message was from RiiakShiNal.Kieran wrote:@TFM:

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.fallenangle wrote:Steel Hellkite
- 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...
Currently busy with life...
-
thefiremind - Programmer
- Posts: 3515
- Joined: 07 Nov 2011, 10:55
- Has thanked: 118 times
- Been thanked: 722 times
Re: Formal Request Thread
by 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>
Re: Formal Request Thread
by thefiremind » 06 Oct 2013, 16:45
OK, it's teaching time!

Official cards have all the needed pieces... well, with some tweak here and there.




Official cards have all the needed pieces... well, with some tweak here and there.

- "When <this> enters the battlefield" -> lots of cards
- Code: Select all
<TRIGGER value="ZONECHANGE_END" simple_qualifier="self" to_zone="ZONE_BATTLEFIELD" />
- "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>
- "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 )
- "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>
- "for as long as you control <this>" -> Roil Elemental
- Code: Select all
<DURATION>
return (EffectSource() == nil or EffectSource():GetPlayer() ~= EffectController())
</DURATION>
- "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>

< Former DotP 2012/2013/2014 modder >
Currently busy with life...
Currently busy with life...
-
thefiremind - Programmer
- Posts: 3515
- Joined: 07 Nov 2011, 10:55
- Has thanked: 118 times
- Been thanked: 722 times
Re: Formal Request Thread
by drleg3nd » 06 Oct 2013, 19:44
thank you senseithefiremind wrote:OK, it's teaching time!![]()
![]()
Official cards have all the needed pieces... well, with some tweak here and there.Stitch everything together and you have Tidebinder Mage's ability.
- "When <this> enters the battlefield" -> lots of cards
- Code: Select all
<TRIGGER value="ZONECHANGE_END" simple_qualifier="self" to_zone="ZONE_BATTLEFIELD" />
- "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>- "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:
This goes inside the TARGET_DEFINITION of the previous point.
- Code: Select all
local subfilter = filter:AddSubFilter_Or()
subfilter:Add( FE_COLOUR, OP_IS, COLOUR_RED )
subfilter:Add( FE_COLOUR, OP_IS, COLOUR_GREEN )- "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>- "for as long as you control <this>" -> Roil Elemental
- Code: Select all
<DURATION>
return (EffectSource() == nil or EffectSource():GetPlayer() ~= EffectController())
</DURATION>- "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>

Re: Formal Request Thread
by 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
Who is online
Users browsing this forum: No registered users and 9 guests