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
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 BloodReyvyn » 14 Aug 2013, 03:13
I have minor issues with a few cards, and after days of toiling with them on my own, I figured I'd break down and ask for some help;
I think that covers current problems (though I always seem to find more bugfs to fix lol).
- Desecration Demon | Open
- Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
<FILENAME text="DESECRATION_DEMON_270959" />
<CARDNAME text="DESECRATION_DEMON" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Desecration Demon]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Démon de profanation]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Demonio de profanación]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Entweihender Dämon]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Demone della Profanazione]]></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[Demônio da Profanação]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="270959" />
<ARTID value="270959" />
<ARTIST name="Jason Chan" />
<CASTING_COST cost="{2}{B}{B}" />
<TYPE metaname="Creature" />
<SUB_TYPE metaname="Demon" />
<EXPANSION value="RTR" />
<RARITY metaname="R" />
<POWER value="6" />
<TOUGHNESS value="6" />
<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>
<TRIGGERED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[At the beginning of each combat, any opponent may sacrifice a creature. If a player does, tap Desecration Demon and put a +1/+1 counter on it.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Au début de chaque combat, n’importe quel adversaire peut sacrifier une créature. Si un joueur fait ainsi, engagez le Démon de profanation et mettez un marqueur +1/+1 sur lui.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Al comienzo de cada combate, cualquier oponente puede sacrificar una criatura. Si un jugador lo hace, gira el Demonio de profanación y pon un contador +1/+1 sobre él.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Zu Beginn jedes Kampfes kann jeder Gegner eine Kreatur opfern. Falls ein Spieler das tut, tappe den Entweihenden Dämon und lege eine +1/+1-Marke auf ihn.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[All’inizio di ogni combattimento, qualsiasi avversario può sacrificare una creatura. Se un giocatore lo fa, TAPpa il Demone della Profanazione e metti un segnalino +1/+1 su di esso.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[各戦闘の開始時に、どの対戦相手でもクリーチャー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 cada combate, qualquer oponente pode sacrificar uma criatura. Se um jogador fizer isso, vire Demônio da Profanação e coloque um marcador +1/+1 nele.]]></LOCALISED_TEXT>
<TRIGGER value="BEGINNING_OF_STEP">
return MTG():GetStep() == STEP_BEGIN_COMBAT
</TRIGGER>
<RESOLUTION_TIME_ACTION repeating="1">
local n = MTG():GetActionRepCount()
local num_players = MTG():GetNumberOfPlayers()
local playerindex = n/2
local parity = n % 2
local player = MTG():GetNthPlayer(playerindex)
if player ~= nil and n < num_players*2 then
if player:GetTeam() ~= EffectController():GetTeam() then
if parity == 0 then
player:BeginNewMultipleChoice()
player:AddMultipleChoiceAnswer( "CARD_QUERY_SACRIFICE_A_CREATURE" )
player:AddMultipleChoiceAnswer( "CARD_QUERY_DO_NOTHING" )
player:AskMultipleChoiceQuestion( "CARD_QUERY_DESECRATION_DEMON" )
else
if player:GetMultipleChoiceResult() == 0 then
local filter = ClearFilter()
filter:Add(FE_TYPE, OP_IS, CARD_TYPE_CREATURE)
filter:Add(FE_CONTROLLER, OP_IS, player)
if filter:CountStopAt(1) == 1 then
player:ChooseItem( "CHOOSE_A_CREATURE_TO_SACRIFICE", EffectDC():Make_Targets(0) )
end
local creature = EffectDC():Get_Targets(0):Get_CardPtr(0)
if creature ~= nil then
player:Sacrifice(creature)
end
EffectSource():Tap()
EffectSource():AddCounters( MTG():PlusOnePlusOneCounters(), 1 )
return false
end
end
end
return true
else
return false
end
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
<HELP title="MORE_INFO_BADGE_TITLE_10" body="MORE_INFO_BADGE_BODY_10" zone="ZONE_ANY" />
<SFX text="COMBAT_CLAW_LARGE_ATTACK" power_boundary_min="4" power_boundary_max="-1" />
<SFX text="COMBAT_CLAW_SMALL_ATTACK" power_boundary_min="1" power_boundary_max="3" />
</CARD_V2>
- Worldpurge | Open
- Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
<FILENAME text="WORLDPURGE_141991" />
<CARDNAME text="WORLDPURGE" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Worldpurge]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Purgemonde]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Purgar el mundo]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Weltreinigung]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Purificazione dei Mondi]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[世界粛清]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Worldpurge]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Мироочищение]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Expurga-Mundo]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="141991" />
<ARTID value="141991" />
<ARTIST name="Chippy" />
<CASTING_COST cost="{4}{W/U}{W/U}{W/U}{W/U}" />
<FLAVOURTEXT>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[The Aurora is not the only magic capable of remaking a world.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[L’Aurore n’est pas la seule magie à pouvoir refaire le monde.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[La Aurora Celeste no es la única magia capaz de reconstruir el mundo.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Die Aurora ist nicht das einzige magische Ereignis, das eine Welt neu erschaffen kann.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[La Luminaria non è l’unica magia capace di ricostruire un mondo.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[世界を作り直すことのできる魔法はオーロラだけではなかった。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[The Aurora is not the only magic capable of remaking a world.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Аврора не единственная магия, способная переделать мир.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[A Aurora não é a única mágica capaz de refazer o mundo.]]></LOCALISED_TEXT>
</FLAVOURTEXT>
<TYPE metaname="Sorcery" />
<EXPANSION value="SHM" />
<RARITY metaname="R" />
<SPELL_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Return all permanents to their owners’ hands. Each player chooses up to seven cards in his or her hand, then shuffles the rest into his or her library. Empty all mana pools.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Renvoyez tous les permanents dans les mains de leurs propriétaires. Chaque joueur choisit jusqu’à sept cartes dans sa main, et il mélange ensuite le reste dans sa bibliothèque. Videz toutes les réserves de mana.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Regresa todos los permanentes a las manos de sus propietarios. Cada jugador elige hasta siete cartas de su mano, luego baraja el resto en su biblioteca. Vacía todas las reservas de maná.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Bringe alle bleibenden Karten auf die Hand ihrer Besitzer zurück. Jeder Spieler bestimmt bis zu sieben der Karten auf seiner Hand und mischt den Rest dann in seine Bibliothek. Entleere alle Manavorräte.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[I proprietari riprendono in mano tutti i loro permanenti. Ogni giocatore sceglie fino a sette carte nella propria mano, poi rimescola le altre nel proprio grimorio. Vuota tutte le riserve di mana.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[すべてのパーマネントをオーナーの手札に戻す。 各プレイヤーは自分の手札にあるカードを最大7枚まで選び、その後残りを自分のライブラリーに加えて切り直す。 すべてのマナ・プールを空にする。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Return all permanents to their owners’ hands. Each player chooses up to seven cards in his or her hand, then shuffles the rest into his or her library. Empty all mana pools.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Верните все перманенты в руки их владельцев. Каждый игрок выбирает не более семи карт из своей руки, затем втасовывает остальные в свою библиотеку. Опустошите все хранилища маны.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Devolva todas as permanentes para as mãos de seus donos. Cada jogador escolhe até sete cards de sua própria mão e embaralha o restante em seu próprio grimório. Esvazie todas as reservas de mana.]]></LOCALISED_TEXT>
<TARGET_DEFINITION filter_id="0">
local filter = ClearFilter()
filter:SetZone( ZONE_BATTLEFIELD )
</TARGET_DEFINITION>
<RESOLUTION_TIME_ACTION filter_id="0">
local target = FilteredCard()
if target ~= nil then
target:PutInHand()
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local num_players = MTG():GetNumberOfPlayers()
for pn = 0, (num_players - 1) do
local player = MTG():GetNthPlayer(pn)
if player ~= nil then
local filter = ClearFilter()
filter:SetZone( ZONE_HAND, player )
local handcount = filter:EvaluateObjects()
for i = 0, 6 do
player:SetItemPrompt(i, "CARD_QUERY_CHOOSE_CARD_TO_KEEP_IN_HAND" )
player:ChooseItems( EffectDC():Make_Targets(i), QUERY_FLAG_UP_TO )
end
for i = 0, (handcount - 1) do
local matchcards = 0
local checkcard = filter:GetNthEvaluatedObject(i)
if checkcard ~= nil then
for j = 0, 6 do
local savedcard = EffectDC():Get_Targets(0):Get_CardPtr(j)
if savedcard ~= nil then
if savedcard == checkcard then
matchcards = 1
end
else
matchcards = 0
end
end
if matchcards == 0 then
checkcard:PutOnTopOfLibrary()
end
end
end
end
player:ShuffleLibrary()
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
RSN_ClearProducedMana()
</RESOLUTION_TIME_ACTION>
</SPELL_ABILITY>
</CARD_V2>
- Gift of Estates | Open
- Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
<FILENAME text="GIFT_OF_ESTATES_84504" />
<CARDNAME text="GIFT_OF_ESTATES" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Gift of Estates]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Don de domaines]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Regalo de fincas]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Landschenkung]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Dono dell’Estate]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[土地の寄進]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Gift of Estates]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Дарованные земли]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Presente de Propriedades]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="84504" />
<ARTID value="84504" />
<ARTIST name="Hugh Jamieson" />
<CASTING_COST cost="{1}{W}" />
<TYPE metaname="Sorcery" />
<EXPANSION value="9ED" />
<RARITY metaname="U" />
<SPELL_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[If an opponent controls more lands than you, search your library for up to three Plains cards, reveal them, and put them into your hand. Then shuffle your library.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Si un adversaire a plus de terrains que vous, cherchez dans votre bibliothèque jusqu’à trois cartes de plaine, révélez-les et mettez-les dans votre main. Mélangez ensuite votre bibliothèque.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Si un oponente tiene más tierras que tú, busca en tu biblioteca hasta tres cartas de llanura, muéstralas y ponlas en tu mano. Luego baraja tu biblioteca.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Hat ein Gegner mehr Länder als du, durchsuche deine Bibliothek nach bis zu drei Ebenen, zeige sie offen vor und nimm sie auf deine Hand. Mische danach deine Bibliothek.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Se un avversario ha sul campo di battaglia più terre di te, passa in rassegna il tuo grimorio per un massimo di tre carte Pianura, rivelale e aggiungile alla tua mano. Poi rimescola il tuo grimorio.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[いずれかの対戦相手があなたより多くの土地をコントロールしている場合、あなたのライブラリーから平地カードを最大3枚まで探し、それらを公開してあなたの手札に加えてもよい。 その後、あなたのライブラリーを切り直す。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[If an opponent controls more lands than you, search your library for up to three Plains cards, reveal them, and put them into your hand. Then shuffle your library.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Если у вашего оппонента больше земель, чем у вас, выберите из библиотеки три карты Равнин, откройте их и поместите в руку. Затем перетасуйте библиотеку.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Se um oponente tem mais terrenos que você, procure em seu grimório por até três cards de Planície, revele-os, e coloque-os em sua mão. Depois, embaralhe seu grimório.]]></LOCALISED_TEXT>
<RESOLUTION_TIME_ACTION>
local isavail = 0
local filter = ClearFilter()
filter:Add(FE_CONTROLLER, OP_IS, EffectController())
filter:Add(FE_TYPE, OP_IS, CARD_TYPE_LAND)
local myland = filter:Count()
local opponentland = 0
for i=0,MTG():GetNumberOfPlayers()-1 do
local player = MTG():GetNthPlayer(i)
if player ~= nil then
if ( player:GetTeam() ~= EffectController():GetTeam() ) and ( isavail ~= 1 ) then
opponentland = 0
filter = ClearFilter()
filter:Add(FE_CONTROLLER, OP_NOT, EffectController())
filter:Add(FE_TYPE, OP_IS, CARD_TYPE_LAND)
opponentland = filter:Count()
if opponentland > myland then
isavail = 1
end
end
end
end
EffectDC():Set_Int( 0, isavail )
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local isavail = EffectDC():Get_Int( 0 )
if isavail == 1 then
local effectController = EffectController()
local filter = ClearFilter()
filter:Add( FE_TYPE, OP_IS, CARD_TYPE_LAND )
filter:Add( FE_SUBTYPE, OP_IS, LAND_TYPE_PLAINS )
filter:SetZone( ZONE_LIBRARY, effectController)
effectController:SetItemCount( 3 )
effectController:SetItemPrompt( 0, "CARD_QUERY_CHOOSE_LAND_TO_PUT_INTO_HAND" )
effectController:SetItemPrompt( 1, "CARD_QUERY_CHOOSE_LAND_TO_PUT_INTO_HAND" )
effectController:SetItemPrompt( 2, "CARD_QUERY_CHOOSE_LAND_TO_PUT_INTO_HAND" )
effectController:ChooseItems( EffectDC():Make_Targets(0), QUERY_FLAG_UP_TO )
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
for i = 0, 2 do
local target_card = EffectDC():Get_Targets(0):Get_CardPtr(i)
if target_card ~= nil then
target_card:Reveal()
target_card:PutInHand()
end
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local isavail = EffectDC():Get_Int( 0 )
if isavail == 1 then
EffectController():ShuffleLibrary()
end
</RESOLUTION_TIME_ACTION>
</SPELL_ABILITY>
</CARD_V2>
- Promise of Power | Open
- Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
<FILENAME text="PROMISE_OF_POWER_197026" />
<CARDNAME text="PROMISE_OF_POWER" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Promise of Power]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Promise of Power]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Promise of Power]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Promise of Power]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Promise of Power]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Promise of Power]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Promise of Power]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Promise of Power]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Promise of Power]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="197026" />
<ARTID value="197026" />
<ARTIST name="Kev Walker" />
<CASTING_COST cost="{2}{B}{B}{B}" />
<TYPE metaname="Sorcery" />
<EXPANSION value="DDC" />
<RARITY metaname="R" />
<SPELL_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Choose one — You draw five cards and you lose 5 life; or put an X/X black Demon creature token with flying onto the battlefield, where X is the number of cards in your hand as the token enters the battlefield.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Choose one — You draw five cards and you lose 5 life; or put an X/X black Demon creature token with flying onto the battlefield, where X is the number of cards in your hand as the token enters the battlefield.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Choose one — You draw five cards and you lose 5 life; or put an X/X black Demon creature token with flying onto the battlefield, where X is the number of cards in your hand as the token enters the battlefield.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Choose one — You draw five cards and you lose 5 life; or put an X/X black Demon creature token with flying onto the battlefield, where X is the number of cards in your hand as the token enters the battlefield.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Scegli una — Pesca cinque carte e perdi 5 punti vita; oppure metti sul campo di battaglia una pedina creatura Demone X/X nera con volare, dove X è il numero di carte nella tua mano mentre la pedina entra nel campo di battaglia.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Choose one — You draw five cards and you lose 5 life; or put an X/X black Demon creature token with flying onto the battlefield, where X is the number of cards in your hand as the token enters the battlefield.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Choose one — You draw five cards and you lose 5 life; or put an X/X black Demon creature token with flying onto the battlefield, where X is the number of cards in your hand as the token enters the battlefield.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Choose one — You draw five cards and you lose 5 life; or put an X/X black Demon creature token with flying onto the battlefield, where X is the number of cards in your hand as the token enters the battlefield.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Choose one — You draw five cards and you lose 5 life; or put an X/X black Demon creature token with flying onto the battlefield, where X is the number of cards in your hand as the token enters the battlefield.]]></LOCALISED_TEXT>
<MODE_SELECT tag="MODE_CHOOSE_ONE">
<MODE tag="CARD_QUERY_MODE_PROMISE_OF_POWER_DRAW" index="1" />
<MODE tag="CARD_QUERY_MODE_PROMISE_OF_POWER_TOKEN" index="2" />
</MODE_SELECT>
<RESOLUTION_TIME_ACTION mode="1">
if ( EffectController() ~= nil ) then
EffectController():DrawCards( 5 )
EffectController():LoseLife( 5 )
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION mode="2">
MTG():PutTokensOntoBattlefield( "TOKEN_DEMON_S_S_F_972028", 1, EffectController() )
</RESOLUTION_TIME_ACTION>
</SPELL_ABILITY>
<UTILITY_ABILITY qualifier="Entwine">
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Entwine {4}]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Entwine {4}]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Entwine {4}]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Entwine {4}]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Intrecciare {4}]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Entwine {4}]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Entwine {4}]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Entwine {4}]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Entwine {4}]]></LOCALISED_TEXT>
<COST mana_cost="{4}" type="Mana" />
<ABILITY_TEXT tag="CARD_QUERY_ENTWINE_FOUR_COLOURLESS_MANA" />
</UTILITY_ABILITY>
<TOKEN_REGISTRATION reservation="1" type="TOKEN_DEMON_S_S_F_972028" />
<HELP title="MORE_INFO_TITLE_ENTWINE" body="MORE_INFO_BODY_ENTWINE" zone="ZONE_ANY" />
<AI_BASE_SCORE score="1800" zone="ZONE_HAND" />
</CARD_V2>
I think that covers current problems (though I always seem to find more bugfs to fix lol).
"There's an experience worse than blindness - it's the certainty that your vision is perfect and the horror that there's no world around you to see."
-

BloodReyvyn - Posts: 421
- Joined: 19 May 2013, 13:29
- Has thanked: 53 times
- Been thanked: 40 times
Re: Formal Request Thread
by sumomole » 14 Aug 2013, 03:41
The delay triggered ability certainly gives effect controller, don't need following code, you can use EffectController() in the delay triggered ability.MC Brodie wrote:
- Duskmantle Guildmage | Open
- Code: Select all
- Code: Select all
delayDC:Set_PlayerPtr(0, EffectController() )
- Code: Select all
TriggerObject():GetOwner():GetTeam() ~= EffectController():GetTeam()
- Code: Select all
TriggerObject():IsToken() == false
You can't put Make_Targets and Get_Targets together, you can try this.BloodReyvyn wrote:Everything seems to trigger fine, but the demon gets tapped and gets a counter, but the creature never gets sacrificed.
- Desecration Demon | Open
- Code: Select all
<TRIGGERED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[At the beginning of each combat, any opponent may sacrifice a creature. If a player does, tap Desecration Demon and put a +1/+1 counter on it.]]></LOCALISED_TEXT>
<TRIGGER value="BEGINNING_OF_STEP">
return MTG():GetStep() == STEP_BEGIN_COMBAT
</TRIGGER>
<RESOLUTION_TIME_ACTION repeating="1">
local n = MTG():GetActionRepCount()
local parity = n%2
if parity == 0 then
local player = MTG():GetNthPlayer(n/2)
if player ~= nil then
if player:GetTeam() ~= EffectController():GetTeam() then
local filter = ClearFilter()
filter:Add( FE_CONTROLLER, OP_IS, player )
filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
player:BeginNewMultipleChoice()
player:AddMultipleChoiceAnswer( "CARD_QUERY_SACRIFICE_A_CREATURE", filter:CountStopAt(1) == 1 )
player:AddMultipleChoiceAnswer( "CARD_QUERY_DO_NOTHING" )
player:AskMultipleChoiceQuestion( "CARD_QUERY_DESECRATION_DEMON" )
end
return true
else
return false
end
elseif parity == 1 then
local player = MTG():GetNthPlayer((n-1)/2)
if player:GetTeam() ~= EffectController():GetTeam() then
local result = player:GetMultipleChoiceResult()
if result == 0 then
EffectDC():Make_Targets(0):Set_PlayerPtr(0, player)
return false
end
end
return true
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local target = EffectDC():Get_Targets(0):Get_PlayerPtr(0)
if target ~= nil then
local filter = ClearFilter()
filter:Add( FE_CONTROLLER, OP_IS, target )
filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
target:ChooseItem( "CARD_QUERY_CHOOSE_CREATURE_TO_SACRIFICE", EffectDC():Make_Targets(1) )
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local target = EffectDC():Get_Targets(0):Get_PlayerPtr(0)
if target ~= nil then
local creature = EffectDC():Get_Targets(1):Get_CardPtr(0)
if creature ~= nil then
target:Sacrifice( creature )
if EffectSource() ~= nil then
EffectSource():Tap()
EffectSource():AddCounters( MTG():PlusOnePlusOneCounters(), 1 )
end
end
end
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
I think each player chooses some thing have to use repeating code, and I think choose seven cards to keep can be seen as the rest discarded. If I'm wrong, please tell me.BloodReyvyn wrote:Doesn't bounce permanents at all and when you go to select the cards to keep, it shows no cards even when you have cards in hand... odd, but was a confusing card to code so I am sure I just botched something I can't seem to recognize.
- Worldpurge | Open
- Code: Select all
<SPELL_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Return all permanents to their owners’ hands. Each player chooses up to seven cards in his or her hand, then shuffles the rest into his or her library. Empty all mana pools.]]></LOCALISED_TEXT>
<FILTER filter_id="0">
local filter = ClearFilter()
filter:Add( FE_TYPE, OP_NOT, CARD_TYPE_LAND )
filter:Add( FE_IS_PERMANENT, true )
</FILTER>
<RESOLUTION_TIME_ACTION filter_id="0">
if FilteredCard() ~= nil then
FilteredCard():PutInHand()
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION repeating="1">
local n = MTG():GetActionRepCount()
local num_Players = MTG():GetNumberOfPlayers()
if (n < num_Players) then
local player = MTG():GetNthPlayer(n)
local filter = ClearFilter()
filter:SetZone(ZONE_HAND, player)
local numItemsToDiscard = player:Hand_Count() - 7
if numItemsToDiscard < 0 then
numItemsToDiscard = 0
end
player:SetItemCount( numItemsToDiscard )
for i = 0, (numItemsToDiscard-1) do
player:SetItemPrompt( i, "CARD_QUERY_CHOOSE_CARD_TO_DISCARD" )
end
player:ChooseItems( EffectDC():Make_Targets(n+1) )
return true
else
for i = 0, (num_Players-1) do
local player = MTG():GetNthPlayer(i)
local numDiscard = EffectDC():Get_Targets(i+1):Count()
for j = 0, (numDiscard-1) do
local cardToDiscard = EffectDC():Get_Targets(i+1):Get_CardPtr(j)
cardToDiscard:PutOnBottomOfLibrary()
end
player:ShuffleLibrary()
end
return false
end
</RESOLUTION_TIME_ACTION>
</SPELL_ABILITY>
Kev has coded Land Tax, they're the same, you can see.BloodReyvyn wrote:Strangely this code did work more or less fine, except it let you get lands even if you had more lands than all opponents. All I thought I changed was that part, except now it doesn't put the lands into your hand at all, but I never actually changed that part of the code at all.
You can put a custom power and toughness token by PutPTTokensOntoBattlefield.BloodReyvyn wrote:The card almost works, but I tried to make a special token for this card that sets its own P/T as it comes into play, but the token always ends up a 0/0. I am sure theremust be a way to set the PT as the token comes into play from the spell's code in case I want to re-use that token for another card... Although if I can't I am sure I could remove the P/T setting and make a new token with same art and such.
- Promise of Power | Open
- Code: Select all
<SPELL_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Choose one — You draw five cards and you lose 5 life; or put an X/X black Demon creature token with flying onto the battlefield, where X is the number of cards in your hand as the token enters the battlefield.]]></LOCALISED_TEXT>
<MODE_SELECT tag="MODE_CHOOSE_ONE">
<MODE tag="CARD_QUERY_MODE_PROMISE_OF_POWER_DRAW" index="1" />
<MODE tag="CARD_QUERY_MODE_PROMISE_OF_POWER_TOKEN" index="2" />
</MODE_SELECT>
<RESOLUTION_TIME_ACTION mode="1">
EffectController():DrawCards( 5 )
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION mode="1">
EffectController():LoseLife( 5 )
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION mode="2">
PT_value = EffectController():Hand_Count()
MTG():PutPTTokensOntoBattlefield( "TOKEN_Demon_X_X_F_ID", 1, EffectController(), PT_value, PT_value )
</RESOLUTION_TIME_ACTION>
</SPELL_ABILITY>
-

sumomole - Programmer
- Posts: 611
- Joined: 07 Jun 2011, 08:34
- Has thanked: 51 times
- Been thanked: 234 times
Re: Formal Request Thread
by thefiremind » 14 Aug 2013, 08:45
Since Szadek's ability says "instead", the combat damage isn't dealt and cipher doesn't trigger.j6m6w6 wrote:Wow! thanks! im not sure about cipher on Szadek though, ill check gatherer.
< 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 Xander9009 » 14 Aug 2013, 09:21
If the combat damage is prevented, then it isn't dealt. If it isn't dealt, then cipher wouldn't trigger. Could be wrong, but that's how it's worded.
_______________________________
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 MC Brodie » 14 Aug 2013, 11:47
Thanks for the proofread sumomole. For some reason I didn't think the token thing mattered since they don't stay in the graveyard but I guess they technically go there first.
About your first comment though, I assumed you would need to specify the controller before delayed trigger in case someone stole the guildmage.
For instance, say Player A plays the guildmage then Player B steals it with Mind Control. If Player B activated the first ability and the guildmage dies during the same turn, will EffectController() still work?
About your first comment though, I assumed you would need to specify the controller before delayed trigger in case someone stole the guildmage.
For instance, say Player A plays the guildmage then Player B steals it with Mind Control. If Player B activated the first ability and the guildmage dies during the same turn, will EffectController() still work?
-----------------------------------------------------------------------
Song of the Day: 46 and 2 (cover)
Song of the Day: 46 and 2 (cover)
Re: Formal Request Thread
by sumomole » 14 Aug 2013, 12:12
Yes, each effect controller is independent, that's different from the card controller, it only belongs to the current effect, and doesn't care who controll this card later.MC Brodie wrote:For instance, say Player A plays the guildmage then Player B steals it with Mind Control. If Player B activated the first ability and the guildmage dies during the same turn, will EffectController() still work?
-

sumomole - Programmer
- Posts: 611
- Joined: 07 Jun 2011, 08:34
- Has thanked: 51 times
- Been thanked: 234 times
Re: Formal Request Thread
by j6m6w6 » 14 Aug 2013, 16:38
im not sure what to do with this, do these need to be pasted into the code i downloaded from the previous page?
The delay triggered ability certainly gives effect controller, don't need following code, you can use EffectController() in the delay triggered ability.sumomole wrote:MC Brodie wrote:
- Duskmantle Guildmage | Open
- Code: Select all
- Code: Select all
delayDC:Set_PlayerPtr(0, EffectController() )
- Code: Select all
TriggerObject():GetOwner():GetTeam() ~= EffectController():GetTeam()
- Code: Select all
TriggerObject():IsToken() == false
Re: Formal Request Thread
by MC Brodie » 14 Aug 2013, 18:03
You'll need to at least at least add the ":GetTeam()" and the token part. I can do it when I get home from work. Its too hard to fix it on my phone.
-----------------------------------------------------------------------
Song of the Day: 46 and 2 (cover)
Song of the Day: 46 and 2 (cover)
Re: Formal Request Thread
by drleg3nd » 14 Aug 2013, 18:30
hey guys need some help..never had this problem before with making a deck but I been getting a lot of destination path too long when trying to move xmls into a folder or even unpacking a wad made by riiak deckbuilder. what can I do ?
Re: Formal Request Thread
by thefiremind » 14 Aug 2013, 18:37
Well, just as the error says, put your files in a shorter path.

- Code: Select all
C:\Games\Magic 2014
- Code: Select all
C:\Whatever path you may invent\that surpasses the limit that usually is 256 characters\gives that error\Im not sure if I reached 256 characters\but you should have got the point
< 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 » 14 Aug 2013, 19:56
wow when I get frustrated, I get some serious tunnel vision lol thx firemind I got it.
Re: Formal Request Thread
by MC Brodie » 15 Aug 2013, 01:58
I fixed Duskmantle Guildmage on the previous page. I also coded the other two cards you've asked for:
- Call of the Nightwing | Open
- Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
<FILENAME text="CALL_OF_THE_NIGHTWING_867366308" />
<CARDNAME text="CALL_OF_THE_NIGHTWING" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Call of the Nightwing]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Appel de l’ailenuit]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Llamada del ala nocturna]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Ruf der Nachtschwinge]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Richiamo dell’Ala Notturna]]></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[Chamado do Noctóptero]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="867366308" />
<ARTID value="867366308" />
<ARTIST name="Adam Paquette" />
<CASTING_COST cost="{2}{U}{B}" />
<TYPE metaname="Sorcery" />
<EXPANSION value="GTC" />
<RARITY metaname="U" />
<SPELL_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Put a 1/1 blue and black Horror creature token with flying onto the battlefield.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Mettez sur le champ de bataille un jeton de créature 1/1 bleue et noire Horreur avec le vol.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Pon en el campo de batalla una ficha de criatura Horror azul y negra 1/1 con la habilidad de volar.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Bringe einen 1/1 blauen und schwarzen Schrecken-Kreaturenspielstein mit Flugfähigkeit ins Spiel.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Metti sul campo di battaglia una pedina creatura Orrore 1/1 blu e nera con volare.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[飛行を持つ青であり黒である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[Coloque no campo de batalha uma ficha de criatura azul e preta 1/1 do tipo Horror com voar.]]></LOCALISED_TEXT>
<RESOLUTION_TIME_ACTION>
MTG():PutTokensOntoBattlefield( "TOKEN_HORROR_1_1_UB_F_867500", 1, EffectController() )
</RESOLUTION_TIME_ACTION>
</SPELL_ABILITY>
<SPELL_ABILITY linked_ability_group="1">
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Cipher]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Cryptage]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Cifrar.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Chiffrieren]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Cifrare]]></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[Cifrar]]></LOCALISED_TEXT>
<RESOLUTION_TIME_ACTION>
local filter = ClearFilter()
filter:Add(FE_TYPE, OP_IS, CARD_TYPE_CREATURE)
filter:Add(FE_CONTROLLER, OP_IS, EffectController() )
if EffectSource():IsToken() == false then
EffectController():ChooseItem( "CARD_QUERY_CHOOSE_A_CARD_TO_ENCODE_ONTO", EffectDC():Make_Targets(1), QUERY_FLAG_MAY )
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local cipherDC = EffectDC():Get_Targets(1)
if cipherDC ~= nil then
local chosenCard = cipherDC:Get_CardPtr(0)
if chosenCard ~= nil then
local effectSource = EffectSource()
if (effectSource ~= nil) then
effectSource:Exile()
effectSource:NailOnto(chosenCard)
LinkedDC():Set_CardPtr(0, effectSource)
end
end
end
</RESOLUTION_TIME_ACTION>
<CONTINUOUS_ACTION layer="6">
local chosenCardDC = EffectDC():Get_Targets(1)
if chosenCardDC ~= nil then
local chosencard = chosenCardDC:Get_CardPtr(0)
if chosencard ~= nil then
local characteristics = chosencard:GetCurrentCharacteristics()
characteristics:GrantAbility(1)
chosencard:AddScore(200)
end
end
</CONTINUOUS_ACTION>
<DURATION>
if LinkedDC():Get_CardPtr(0) ~= nil then
local chosenCardDC = EffectDC():Get_Targets(1)
if chosenCardDC ~= nil and chosenCardDC:Get_CardPtr(0) ~= nil then
return false
end
end
return true
</DURATION>
</SPELL_ABILITY>
<TRIGGERED_ABILITY resource_id="1" linked_ability_group="1">
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Whenever this creature deals combat damage to a player, you may copy Call of the Nightwing and cast the copy without paying its mana cost.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Whenever this creature deals combat damage to a player, you may copy Call of the Nightwing and cast the copy without paying its mana cost.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Whenever this creature deals combat damage to a player, you may copy Call of the Nightwing and cast the copy without paying its mana cost.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Whenever this creature deals combat damage to a player, you may copy Call of the Nightwing and cast the copy without paying its mana cost.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Whenever this creature deals combat damage to a player, you may copy Call of the Nightwing and cast the copy without paying its mana cost.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Whenever this creature deals combat damage to a player, you may copy Call of the Nightwing and cast the copy without paying its mana cost.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Whenever this creature deals combat damage to a player, you may copy Call of the Nightwing and cast the copy without paying its mana cost.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Whenever this creature deals combat damage to a player, you may copy Call of the Nightwing and cast the copy without paying its mana cost.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Whenever this creature deals combat damage to a player, you may copy Call of the Nightwing and cast the copy without paying its mana cost.]]></LOCALISED_TEXT>
<TRIGGER value="SOURCE_DEALS_DAMAGE_TO_PLAYER" simple_qualifier="self" damage_type="combat" />
<RESOLUTION_TIME_ACTION>
local encodedSpell = LinkedDC():Get_CardPtr(0)
local effectController = EffectController()
if encodedSpell ~= nil then
local copy = effectController:CopySpell( encodedSpell )
if EffectController():CanCastSpellForFree(copy) then
EffectController():CastSpellForFree(copy)
end
end
</RESOLUTION_TIME_ACTION>
<MAY tag="CARD_QUERY_WOULD_YOU_LIKE_TO_CAST_CALL_OF_THE_NIGHTWING" always_prompt="1" /> -- Need to define tag in TEXT_PERMANENT
</TRIGGERED_ABILITY>
<HELP title="MORE_INFO_TITLE_CIPHER" body="MORE_INFO_BODY_CIPHER" zone="ZONE_ANY" />
<TOKEN_REGISTRATION reservation="1" type="TOKEN_HORROR_1_1_UB_F_867500" />
<AI_BASE_SCORE score="450" zone="ZONE_HAND" />
<AI_BASE_SCORE score="600" type="Parent" zone="ZONE_BATTLEFIELD" />
</CARD_V2>
- Horror Token | Open
- Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<CARD_V2 ExportVersion="1">
<FILENAME text="TOKEN_HORROR_1_1_UB_F_867500" />
<CARDNAME text="HORROR" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[HORROR]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[HORROR]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[HORROR]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[HORROR]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[HORROR]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[HORROR]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[HORROR]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[HORROR]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[HORROR]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="867500" />
<ARTID value="867500" />
<COLOUR value="UB" />
<ARTIST name="Adam Paquette" />
<CASTING_COST cost="" />
<TYPE metaname="Creature" />
<SUB_TYPE metaname="Horror" />
<EXPANSION value="DPI" />
<RARITY metaname="T" />
<POWER value="1" />
<TOUGHNESS value="1" />
<TOKEN />
<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>
<HELP title="MORE_INFO_BADGE_TITLE_10" body="MORE_INFO_BADGE_BODY_10" zone="ZONE_ANY" />
<SFX text="COMBAT_ANGEL_LARGE_ATTACK" power_boundary_min="4" power_boundary_max="-1" />
<SFX text="COMBAT_ANGEL_SMALL_ATTACK" power_boundary_min="1" power_boundary_max="3" />
</CARD_V2>
- Blizzard Specter | Open
- Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
<FILENAME text="BLIZZARD_SPECTER_867121151" />
<CARDNAME text="BLIZZARD_SPECTER" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Blizzard Specter]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Spectre du blizzard]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Espectro de la ventisca]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Blizzardgespenst]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Spettro della Bufera]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[吹雪の死霊]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Blizzard Specter]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Вьюжный призрак]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Espectro da Nevasca]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="867121151" />
<ARTID value="867121151" />
<ARTIST name="Hideaki Takamura" />
<CASTING_COST cost="{2}{U}{B}" />
<SUPERTYPE metaname="Snow" />
<TYPE metaname="Creature" />
<SUB_TYPE metaname="Specter" />
<EXPANSION value="CSP" />
<RARITY metaname="U" />
<POWER value="2" />
<TOUGHNESS value="3" />
<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>
<TRIGGERED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Whenever Blizzard Specter deals combat damage to a player, choose one — That player returns a permanent he or she controls to its owner’s hand; or that player discards a card.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[À chaque fois que le Spectre du blizzard inflige des blessures de combat à un joueur, choisissez l’un — Ce joueur renvoie un permanent qu’il contrôle dans la main de son propriétaire ; ou ce joueur se défausse d’une carte.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Siempre que el Espectro de la ventisca haga daño de combate a un jugador, elige uno: Ese jugador regresa un permanente que controla a la mano de su propietario; o ese jugador descarta una carta.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Immer wenn das Blizzardgespenst einem Spieler Kampfschaden zufügt, bestimme eines Dieser Spieler bringt eine bleibende Karte, die er kontrolliert, auf die Hand ihres Besitzers zurück, oder dieser Spieler wirft eine Karte aus seiner Hand ab.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Ogniqualvolta lo Spettro della Bufera infligge danno da combattimento a un giocatore, scegli una — Quel giocatore fa tornare un permanente che controlla in mano al proprietario; o quel giocatore scarta una carta.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[吹雪の死霊がいずれかのプレイヤーに戦闘ダメージを与えるたび、以下の2つから1つを選ぶ。「そのプレイヤーは自分がコントロールしているパーマネントを1つオーナーの手札に戻す。」「そのプレイヤーはカードを1枚捨てる。」]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Whenever Blizzard Specter deals combat damage to a player, choose one — That player returns a permanent he or she controls to its owner’s hand; or that player discards a card.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Каждый раз, когда Вьюжный призрак наносит боевые повреждения игроку, выберите одно — этот игрок возвращает перманент под его контролем в руку владельца или этот игрок сбрасывает карту.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Toda vez que Espectro da Nevasca causar dano de combate a um jogador, escolha um Aquele jogador devolve uma permanente que ele controla para a mão de seu dono; ou aquele jogador descarta um card.]]></LOCALISED_TEXT>
<TRIGGER value="SOURCE_DEALS_DAMAGE_TO_PLAYER" simple_qualifier="self" damage_type="combat" />
<RESOLUTION_TIME_ACTION>
local effectController = EffectController()
if effectController ~= nil then
effectController:BeginNewMultipleChoice()
effectController:AddMultipleChoiceAnswer( "CARD_QUERY_BLIZZARD_SPECTER_BOUNCE_PERMANENT" )
effectController:AddMultipleChoiceAnswer( "CARD_QUERY_BLIZZARD_SPECTER_DISCARD" )
effectController:AskMultipleChoiceQuestion( "CARD_QUERY_BLIZZARD_SPECTER_QUESTION")
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
if EffectController():GetMultipleChoiceResult() == 0 then
local player = SecondaryPlayer()
local amount = 1
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_CREATURE )
subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_ENCHANTMENT )
subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_LAND )
subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_PLANESWALKER )
filter:Add( FE_CONTROLLER, OP_IS, player )
player:SetItemCount( amount )
for i = 0,(amount-1) do
player:SetItemPrompt (i, "CARD_QUERY_CHOOSE_PERMANENT_TO_BOUNCE" )
end
player:ChooseItems( EffectDC():Make_Targets(0) )
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
if EffectController():GetMultipleChoiceResult() == 0 then
local targetDC = EffectDC():Get_Targets(0)
if targetDC ~= nil then
local numTargets = targetDC:Count()
for i = 0,(numTargets-1) do
local target_card = targetDC:Get_CardPtr(i)
if target_card ~= nil then
target_card:PutInHand()
end
end
end
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
if EffectController():GetMultipleChoiceResult() == 1 then
local filter = ClearFilter()
local target = SecondaryPlayer()
if target ~= nil then
filter:SetZone( ZONE_HAND, target)
target:SetItemCount( 1 )
for i = 0,(1-1) do
target:SetItemPrompt (i, "CARD_QUERY_CHOOSE_CARD_TO_DISCARD" )
end
target:ChooseItems( EffectDC():Make_Targets(1) )
end
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
if EffectController():GetMultipleChoiceResult() == 1 then
local player = SecondaryPlayer()
if player ~= nil then
for i = 0,(1-1) do
local target_card = EffectDC():Get_Targets(1):Get_CardPtr(i)
if target_card ~= nil then
target_card:Discard()
end
end
end
end
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
<HELP title="MORE_INFO_BADGE_TITLE_10" body="MORE_INFO_BADGE_BODY_10" zone="ZONE_ANY" />
<SFX text="COMBAT_BLUNT_LARGE_ATTACK" power_boundary_min="4" power_boundary_max="-1" />
<SFX text="COMBAT_BLUNT_SMALL_ATTACK" power_boundary_min="1" power_boundary_max="3" />
</CARD_V2>
- Somnophore | Open
- Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
<FILENAME text="SOMNOPHORE_867005745" />
<CARDNAME text="SOMNOPHORE" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Somnophore]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Somnophore]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Somnophore]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Somnophore]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Somnophore]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Somnophore]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Somnophore]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Somnophore]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Somnophore]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="867005745" />
<ARTID value="867005745" />
<ARTIST name="Andrew Robinson" />
<CASTING_COST cost="{2}{U}{U}" />
<TYPE metaname="Creature" />
<SUB_TYPE metaname="Illusion" />
<EXPANSION value="UZ" />
<RARITY metaname="R" />
<POWER value="2" />
<TOUGHNESS value="2" />
<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>
<TRIGGERED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Whenever Somnophore deals damage to a player, tap target creature that player controls. That creature doesn’t untap during its controller’s untap step for as long as Somnophore remains on the battlefield.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Whenever Somnophore deals damage to a player, tap target creature that player controls. That creature doesn’t untap during its controller’s untap step for as long as Somnophore remains on the battlefield.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Whenever Somnophore deals damage to a player, tap target creature that player controls. That creature doesn’t untap during its controller’s untap step for as long as Somnophore remains on the battlefield.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Whenever Somnophore deals damage to a player, tap target creature that player controls. That creature doesn’t untap during its controller’s untap step for as long as Somnophore remains on the battlefield.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Ogniqualvolta il Sonnoforo infligge danno ad un giocatore, TAPpa una creatura bersaglio controllata da quel giocatore. Quella creatura non STAPpa durante lo STAP del suo controllore fintanto che il Sonnoforo rimane sul campo di battaglia.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Whenever Somnophore deals damage to a player, tap target creature that player controls. That creature doesn’t untap during its controller’s untap step for as long as Somnophore remains on the battlefield.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Whenever Somnophore deals damage to a player, tap target creature that player controls. That creature doesn’t untap during its controller’s untap step for as long as Somnophore remains on the battlefield.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Whenever Somnophore deals damage to a player, tap target creature that player controls. That creature doesn’t untap during its controller’s untap step for as long as Somnophore remains on the battlefield.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Whenever Somnophore deals damage to a player, tap target creature that player controls. That creature doesn’t untap during its controller’s untap step for as long as Somnophore remains on the battlefield.]]></LOCALISED_TEXT>
<TRIGGER value="SOURCE_DEALS_DAMAGE_TO_PLAYER" simple_qualifier="self" damage_type="all" />
<TARGET tag="CARD_QUERY_SOMNOPHORE_CHOOSE_CREATURE_TO_TAP" 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_CONTROLLER, OP_IS, SecondaryPlayer() )
</TARGET_DEFINITION>
<RESOLUTION_TIME_ACTION>
local target_card = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target_card ~= nil then
target_card:Tap()
end
</RESOLUTION_TIME_ACTION>
<CONTINUOUS_ACTION layer="8">
local target_card = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target_card ~= nil then
local characteristics = target_card:GetCurrentCharacteristics()
characteristics:Bool_Set( CHARACTERISTIC_DOESNT_UNTAP, 1 )
end
</CONTINUOUS_ACTION>
<DURATION>
return EffectSource() == nil
</DURATION>
</TRIGGERED_ABILITY>
<HELP title="MORE_INFO_BADGE_TITLE_10" body="MORE_INFO_BADGE_BODY_10" zone="ZONE_ANY" />
<SFX text="COMBAT_BLUNT_LARGE_ATTACK" power_boundary_min="4" power_boundary_max="-1" />
<SFX text="COMBAT_BLUNT_SMALL_ATTACK" power_boundary_min="1" power_boundary_max="3" />
<AI_BASE_SCORE score="900" zone="ZONE_BATTLEFIELD" />
</CARD_V2>
Last edited by MC Brodie on 15 Aug 2013, 03:04, edited 1 time in total.
-----------------------------------------------------------------------
Song of the Day: 46 and 2 (cover)
Song of the Day: 46 and 2 (cover)
Who is online
Users browsing this forum: No registered users and 8 guests