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




Theros Cards
Moderator: CCGHQ Admins
Re: Theros Cards
by fallenangle » 05 Oct 2013, 01:16
Would anyone mind trying his / her hand at coding Bow of Nylea? I really like that card, but its abilities are way beyond my noobish skills.
Thanks in advance for your help.
Thanks in advance for your help.
- fallenangle
- Posts: 319
- Joined: 20 Jul 2013, 02:31
- Has thanked: 73 times
- Been thanked: 41 times
Re: Theros Cards
by jacque » 05 Oct 2013, 01:55
I think a good lead would be from cards that gives you "Mode"... like Charm cards...fallenangle wrote:Would anyone mind trying his / her hand at coding Bow of Nylea? I really like that card, but its abilities are way beyond my noobish skills.
Thanks in advance for your help.
EDIT: This should work... Sorry I don't have a HQ pic of Theros cards... so yea... Enjoy =)
- BOW OF NYLEA TESTED | Open
- Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
<FILENAME text="BOW_OF_NYLEA_373603" />
<CARDNAME text="BOW_OF_NYLEA" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Bow of Nylea]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Arc de Nyléa]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Arco de Nylea]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Bogen der Nylea]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Arco di Nylea]]></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[Arco de Niléia]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="373603" />
<ARTID value="A373603" />
<ARTIST name="Yeong-Hao Han" />
<CASTING_COST cost="{1}{G}{G}" />
<SUPERTYPE metaname="Legendary" />
<TYPE metaname="Enchantment" />
<TYPE metaname="Artifact" />
<EXPANSION value="THS" />
<RARITY metaname="R" />
<STATIC_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Attacking creatures you control have deathtouch.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Les créatures attaquantes que vous contrôlez ont le contact mortel.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Las criaturas atacantes que controlas tienen la habilidad de toque mortal.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Angreifende Kreaturen, die du kontrollierst, haben Todesberührung.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Le creature attaccanti che controlli hanno tocco letale.]]></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[As criaturas atacantes que você controla têm toque mortífero.]]></LOCALISED_TEXT>
<FILTER filter_id="0">
local filter = ClearFilter()
filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
filter:Add( FE_IS_ATTACKING, true )
filter:Add( FE_CONTROLLER, OP_IS, EffectController() )
</FILTER>
<CONTINUOUS_ACTION layer="8" filter_id="0">
if FilteredCard() ~= nil then
FilteredCard():GetCurrentCharacteristics():Bool_Set( CHARACTERISTIC_DEATHTOUCH, 1 )
end
</CONTINUOUS_ACTION>
</STATIC_ABILITY>
<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{1}{G}, {T}: Choose one — Put a +1/+1 counter on target creature; or Bow of Nylea deals 2 damage to target creature with flying; or you gain 3 life; or put up to four target cards from your graveyard on the bottom of your library in any order.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{1}{G}, {T} : Choisissez l’un — Mettez un marqueur +1/+1 sur la créature ciblée ; ou l’Arc de Nyléa inflige 2 blessures à une créature avec le vol ciblée ; ou vous gagnez 3 points de vie ; ou mettez jusqu’à quatre cartes ciblées de votre cimetière au-dessous de votre bibliothèque dans l’ordre de votre choix.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{1}{G}, {T}: Elige uno: Pon un contador +1/+1 sobre la criatura objetivo; o el Arco de Nylea hace 2 puntos de daño a la criatura objetivo con la habilidad de volar; o ganas 3 vidas; o pones hasta cuatro cartas objetivo de tu cementerio en el fondo de tu biblioteca en cualquier orden.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{1}{G}, {T}: Bestimme eines — Lege eine +1/+1-Marke auf eine Kreatur deiner Wahl; oder der Bogen der Nylea fügt einer fliegenden Kreatur deiner Wahl 2 Schadenspunkte zu; oder du erhältst 3 Lebenspunkte dazu; oder lege bis zu vier Karten deiner Wahl aus deinem Friedhof in beliebiger Reihenfolge unter deine Bibliothek.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{1}{G}, {T}: Scegli uno — Metti un segnalino +1/+1 su una creatura bersaglio; oppure l’Arco di Nylea infligge 2 danni a una creatura bersaglio con volare; oppure guadagni 3 punti vita; oppure metti fino a quattro carte bersaglio dal tuo cimitero in fondo al tuo grimorio in qualsiasi ordine.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{1}{G}, {T}:以下の4つから1つを選ぶ。「クリーチャー1体を対象とする。それの上に+1/+1カウンターを1個置く。」「飛行を持つクリーチャー1体を対象とする。ナイレアの弓はそれに2点のダメージを与える。」「あなたは3点のライフを得る。」「あなたの墓地にあるカードを最大4枚まで対象とし、それらをあなたのライブラリーの一番下に望む順番で置く。」]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{1}{G}, {T}: 하나를 선택한다 — 생물 한 개를 목표로 정한다. 그 생물에 +1/+1 카운터 한 개를 올려놓는다; 또는 비행 능력이 있는 생물 한 개를 목표로 정한다. 닐리아의 활은 그 생물에 피해 2점을 입힌다; 또는 당신은 생명 3점을 얻는다; 또는 당신의 무덤에서 카드를 최대 네 장까지 목표로 정한다. 그 카드들을 당신의 서고 맨 밑에 원하는 순서로 놓는다.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{1}{G}, {T}: выберите одно — положите один жетон +1/+1 на целевое существо; или Лук Нилеи наносит 2 повреждения целевому существу с Полетом; или вы получаете 3 жизни; или положите не более четырех целевых карт из вашего кладбища в низ вашей библиотеки в любом порядке.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{1}{G}, {T}: Escolha um — Coloque um marcador +1/+1 na criatura alvo; ou Arco de Niléia causa 2 pontos de dano à criatura alvo com voar; ou você ganha 3 pontos de vida; ou coloque até quatro cards alvo de seu cemitério no fundo de seu grimório em qualquer ordem.]]></LOCALISED_TEXT>
<COST mana_cost="{1}{G}" type="Mana" />
<COST type="TapSelf" />
<MODE_SELECT tag="MODE_CHOOSE_ONE">
<MODE tag="MODE_BOW_1_COUNTER" index="1" />
<MODE tag="MODE_BOW_2_DAMAGE" index="2" />
<MODE tag="MODE_BOW_3_LIFE" index="3" />
<MODE tag="MODE_BOW_4_CARDS" index="4" />
</MODE_SELECT>
<TARGET tag="CARD_QUERY_CHOOSE_CREATURE_PLUS1_PLUS1_COUNTER" definition="0" compartment="0" mode="1" count="1" />
<TARGET_DEFINITION id="0">
local filter = ClearFilter()
filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
</TARGET_DEFINITION>
<RESOLUTION_TIME_ACTION mode="1">
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
target:AddCounters( MTG():PlusOnePlusOneCounters(), 1 )
end
</RESOLUTION_TIME_ACTION>
<TARGET tag="CARD_QUERY_CHOOSE_CREATURE_2_DAMAGE" definition="1" compartment="1" mode="2" count="1" />
<TARGET_DEFINITION id="1">
local filter = ClearFilter()
filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
filter:Add( FE_CHARACTERISTIC, OP_IS, CHARACTERISTIC_FLYING )
</TARGET_DEFINITION>
<RESOLUTION_TIME_ACTION mode="2">
local target = EffectDC():Get_Targets(1):Get_CardPtr(0)
if target ~= nil then
EffectSourceLKI():DealDamageTo( 2, target )
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION mode="3">
EffectController():GainLife( 3 )
</RESOLUTION_TIME_ACTION>
<TARGET tag="CARD_QUERY_CHOOSE_A_CARD_TO_BOTTOM_LIBRARY" definition="3" compartment="3" mode="4" count="4" up_to="1" />
<TARGET_DEFINITION id="3">
local filter = ClearFilter()
filter:SetZone( ZONE_GRAVEYARD, EffectController() )
</TARGET_DEFINITION>
<RESOLUTION_TIME_ACTION mode="4">
local target_a = EffectDC():Get_Targets(3):Get_CardPtr(0)
local target_b = EffectDC():Get_Targets(3):Get_CardPtr(1)
local target_c = EffectDC():Get_Targets(3):Get_CardPtr(2)
local target_d = EffectDC():Get_Targets(3):Get_CardPtr(2)
if target_a ~= nil then
target_a:PutOnBottomOfLibrary()
end
if target_b ~= nil then
target_b:PutOnBottomOfLibrary()
end
if target_c ~= nil then
target_c:PutOnBottomOfLibrary()
end
if target_d ~= nil then
target_d:PutOnBottomOfLibrary()
end
</RESOLUTION_TIME_ACTION>
<AI_SIMPLIFIED_TARGETING compartment="0" hint="HINT_ALLIED_ONLY" />
</ACTIVATED_ABILITY>
<AI_BASE_SCORE score="900" zone="ZONE_HAND" />
<AI_BASE_SCORE score="900" zone="ZONE_STACK" />
</CARD_V2>
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: Theros Cards
by Rari » 06 Oct 2013, 20:27
https://www.dropbox.com/sh/0o8fmnac3otuj2w/y_GrIkDkZJ << 373603.tdx for Bow of Nyleajacque wrote:This should work... Sorry I don't have a HQ pic of Theros cards... so yea... Enjoy =)
Please help yourself to my collection of DoTP artwork. Pretty cards for everyone!
Re: Theros Cards
by MC Brodie » 27 Nov 2013, 05:35
A complete, rules compliant Bestow is not possible but monstrosity has been coded. I'm sure there is an example in this thread or the Formal Request Thread. If you still can't find one, thefiremind and sumomole published mod's with monstrosity cards.
-----------------------------------------------------------------------
Song of the Day: 46 and 2 (cover)
Song of the Day: 46 and 2 (cover)
Re: Theros Cards
by wtb300 » 27 Nov 2013, 21:02
I see now. The deck builder just wasnt working when i did searches by name but i found them now
Re: Theros Cards
by wtb300 » 28 Nov 2013, 03:33
I coded two cards I didn't find in TFM, sumos or any other mods I'm using so I thought I'd post them here.
Any Theros cards I code I will be adding to this post by edit.
Horizon Chimera
Any Theros cards I code I will be adding to this post by edit.
Horizon Chimera
- Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
<FILENAME text="HORIZON_CHIMERA_300373738" />
<CARDNAME text="HORIZON_CHIMERA" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Horizon Chimera]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Chimère de l’horizon]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Quimera del horizonte]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Horizont-Chimäre]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Chimera dell’Orizzonte]]></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[Quimera do Horizonte]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="300373738" />
<ARTID value="300373738" />
<ARTIST name="Sam Burley" />
<CASTING_COST cost="{2}{G}{U}" />
<TYPE metaname="Creature" />
<SUB_TYPE metaname="Chimera" />
<EXPANSION value="THS" />
<RARITY metaname="U" />
<POWER value="3" />
<TOUGHNESS value="2" />
<STATIC_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Flash]]></LOCALISED_TEXT>
<INTRINSIC characteristic="CHARACTERISTIC_FLASH" />
</STATIC_ABILITY>
<STATIC_ABILITY commaspace="1">
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Flying]]></LOCALISED_TEXT>
<INTRINSIC characteristic="CHARACTERISTIC_FLYING" />
</STATIC_ABILITY>
<STATIC_ABILITY commaspace="2">
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Trample]]></LOCALISED_TEXT>
<INTRINSIC characteristic="CHARACTERISTIC_TRAMPLE" />
</STATIC_ABILITY>
<TRIGGERED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Whenever you draw a card, you gain 1 life.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[À chaque fois que vous piochez une carte, vous gagnez 1 point de vie.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Siempre que robes una carta, ganas 1 vida.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Immer wenn du eine Karte ziehst, erhältst du 1 Lebenspunkt dazu.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Ogniqualvolta peschi una carta, guadagni 1 punto vita.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[あなたがカードを1枚引くたび、あなたは1点のライフを得る。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[당신이 카드를 뽑을 때마다, 당신은 생명 1점을 얻는다.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Каждый раз, когда вы берете карту, вы получаете 1 жизнь.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Toda vez que você compra um card, você ganha 1 ponto de vida.]]></LOCALISED_TEXT>
<TRIGGER value="DREW_CARD" simple_qualifier="controller" />
<RESOLUTION_TIME_ACTION>
EffectController():GainLife(1 )
</RESOLUTION_TIME_ACTION>
<AUTO_SKIP>
local effectController = EffectController()
if effectController:GetTeam():IsSharedLifeTotal() == true then
if effectController:GetLifeTotal() >= 30 then
return true
end
else
if effectController:GetLifeTotal() >= 20 then
return true
end
end
return false
</AUTO_SKIP>
</TRIGGERED_ABILITY>
<HELP title="MORE_INFO_BADGE_TITLE_12" body="MORE_INFO_BADGE_BODY_12" 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>
- Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
<FILENAME text="TEMPLE_OF_MYSTERY_300373571" />
<CARDNAME text="TEMPLE_OF_MYSTERY" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Temple of Mystery]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Temple du mystère]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Templo del misterio]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Tempel der Geheimnisse]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Tempio del Mistero]]></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[Templo do Mistério]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="300373571" />
<ARTID value="300373571" />
<ARTIST name="Noah Bradley" />
<CASTING_COST cost="" />
<TYPE metaname="Land" />
<EXPANSION value="THS" />
<RARITY metaname="R" />
<TRIGGERED_ABILITY replacement_effect="1" linked_ability_group="1" active_zone="ZONE_TRANSITION">
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Temple of Mystery enters the battlefield tapped.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Le Temple du mystère arrive sur le champ de bataille engagé.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[El Templo del misterio entra al campo de batalla girado.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Der Tempel der Geheimnisse kommt getappt ins Spiel.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Il Tempio del Mistero entra nel campo di battaglia TAPpato.]]></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[Templo do Mistério entra no campo de batalha virado.]]></LOCALISED_TEXT>
<TRIGGER value="ZONECHANGE_TRANSITION" simple_qualifier="self" to_zone="ZONE_BATTLEFIELD" from_zone="ZONE_ANY" pre_trigger="1" />
<RESOLUTION_TIME_ACTION>
if TriggerObject() ~= nil then
TriggerObject():Tap()
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local filter = ClearFilter()
filter:SetZone( ZONE_HAND, EffectController() )
if filter:ChromaCount(COLOUR_GREEN) == 0 then
LinkedDC():Set_Int( 0, 1 )
end
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
<TRIGGERED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[When Temple of Mystery enters the battlefield, scry 1.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Quand le Temple du mystère arrive sur le champ de bataille, regard 1.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Cuando el Templo del misterio entre al campo de batalla, adivina 1.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Wenn der Tempel der Geheimnisse ins Spiel kommt, wende Hellsicht 1 an.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Quando il Tempio del Mistero entra nel campo di battaglia, profetizza 1.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[神秘の神殿が戦場に出たとき、占術1を行う。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[신비의 신전이 전장에 들어올 때, 점술 1을 한다.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Когда Храм Таинств выходит на поле битвы, предскажите 1.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Quando Templo do Mistério entrar no campo de batalha, use vidência 1.]]></LOCALISED_TEXT>
<TRIGGER value="ZONECHANGE_END" simple_qualifier="self" to_zone="ZONE_BATTLEFIELD" />
<RESOLUTION_TIME_ACTION repeating="1">
return S_ScryFateseal(1, EffectController(), 1)
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
<ACTIVATED_ABILITY forced_skip="1" linked_ability_group="1">
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{T}: Add {G} or {U} to your mana pool.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{T} : Ajoutez {G} ou {U} à votre réserve.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{T}: Agrega {G} o {U} a tu reserva de maná.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{T}: Erhöhe deinen Manavorrat um {G} oder {U}.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{T}: Aggiungi {G} o {U} alla tua riserva di mana.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{T}:あなたのマナ・プールに{G}か{U}を加える。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{T}: {G} 또는 {U}를 당신의 마나풀에 담는다.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{T}: добавьте {G} или {U} в ваше хранилище маны.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{T}: Adicione {G} ou {U} à sua reserva de mana.]]></LOCALISED_TEXT>
<COST type="Generic">
<PREREQUISITE>
return EffectSource():IsTapped() == false and EffectController():IsAI() == false
</PREREQUISITE>
<RESOLUTION_TIME_ACTION>
local player = EffectController()
player:BeginNewMultipleChoice()
player:AddMultipleChoiceAnswer( "CARD_QUERY_OPTION_MANA_G" )
player:AddMultipleChoiceAnswer( "CARD_QUERY_OPTION_MANA_U" )
player:AskMultipleChoiceQuestion( "CARD_QUERY_CHOOSE_COLOUR" )
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
LinkedDC():Set_Int( 0, EffectController():GetMultipleChoiceResult() )
</RESOLUTION_TIME_ACTION>
</COST>
</ACTIVATED_ABILITY>
<STATIC_ABILITY linked_ability_group="1">
<CONTINUOUS_ACTION layer="6">
local colour = LinkedDC():Get_Int( 0 )
EffectSource():GetCurrentCharacteristics():GrantAbility(colour)
</CONTINUOUS_ACTION>
</STATIC_ABILITY>
<MANA_ABILITY resource_id="0">
<PRODUCES amount="{G}" />
</MANA_ABILITY>
<MANA_ABILITY resource_id="1">
<PRODUCES amount="{U}" />
</MANA_ABILITY>
</CARD_V2>
Last edited by wtb300 on 28 Nov 2013, 15:37, edited 1 time in total.
Re: Theros Cards
by drleg3nd » 28 Nov 2013, 08:22
hey you can look through my mods I have most theros cards in there
Re: Theros Cards
by wtb300 » 28 Nov 2013, 15:36
Now I just feel silly. You have made all three of the ones I posted. Thanks for pointing me to your mod.
Re: Theros Cards
by drleg3nd » 28 Nov 2013, 23:38
no probwtb300 wrote:Now I just feel silly. You have made all three of the ones I posted. Thanks for pointing me to your mod.

Re: Theros Cards
by wtb300 » 30 Nov 2013, 23:53
Decorated Griffin
This may seem like a silly issue but im not sure if this code will work for "prevent the next 1 combat damage that would be dealt to you"
cant find another card that specifies "combat" and "to You" so im not sure how to do it.
This may seem like a silly issue but im not sure if this code will work for "prevent the next 1 combat damage that would be dealt to you"
cant find another card that specifies "combat" and "to You" so im not sure how to do it.
- Code: Select all
<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{1}{W}: Prevent the next 1 combat damage that would be dealt to you this turn.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{1}{W} : Prévenez la prochaine 1 blessure de combat qui devrait vous être infligée ce tour-ci.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{1}{W}: Prevén el siguiente punto de daño de combate que se te fuera a hacer este turno.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{1}{W}: Verhindere den nächsten 1 Kampfschadenspunkt, der dir in diesem Zug zugefügt würde.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{1}{W}: Previeni il prossimo 1 danno da combattimento che ti verrebbe inflitto in questo turno.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{1}{W}:このターン、次にあなたに与えられる戦闘ダメージを1点軽減する。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{1}{W}: 이번 턴에 당신이 다음에 입게 될 전투피해 1점을 방지한다.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{1}{W}: предотвратите следующее 1 боевое повреждение, которое должно быть нанесено вам в этом ходу.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{1}{W}: Previna o próximo 1 ponto de dano de combate que seria causado a você neste turno.]]></LOCALISED_TEXT>
<COST mana_cost="{1}{W}" type="Mana" />
<TARGET tag="PLAYER_CHARACTERISTIC_PREVENT_1_COMBAT_DAMAGE" definition="0" compartment="0" count="1" />
<RESOLUTION_TIME_ACTION>
local characteristics = player:GetCurrentCharacteristics()
local delayDC = EffectDC():Make_Chest(1)
delayDC:Set_Int(1)
if ( EffectController ~= nil ) then
delayDC:Set_PlayerPtr(0, target_player)
MTG():CreateDelayedTrigger(1, delayDC)
end
</RESOLUTION_TIME_ACTION>
</ACTIVATED_ABILITY>
Re: Theros Cards
by thefiremind » 01 Dec 2013, 00:42
Your code is a starting point, but I'm afraid you stitched code together without really understanding what you were doing...wtb300 wrote:This may seem like a silly issue but im not sure if this code will work for "prevent the next 1 combat damage that would be dealt to you"
cant find another card that specifies "combat" and "to You" so im not sure how to do it.

- <TARGET tag="PREVENT_1_DAMAGE" definition="0" compartment="0" count="1" /> <-- This ability doesn't target anything, so a TARGET block has no reason to stay.
- EffectController() <-- This is useless, you are calling a function to get the effect controller but you do nothing with it.
- delayDC:Set_Int(1, 2) <-- I don't know if you pasted only a part of the code here. If you didn't, then where are you going to use this?
- delayDC:Set_PlayerPtr(0, target_player) <-- You are referring to a variable called target_player, but you never declared it.
- MTG():CreateDelayedTrigger(1, delayDC)
MTG():CreateDelayedTrigger(2, delayDC) <-- I don't know if you pasted only a part of the code here. If you didn't, then you have no delayed triggers to call.
Here's how the code should be:
- Code: Select all
<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{1}{W}: Prevent the next 1 combat damage that would be dealt to you this turn.]]></LOCALISED_TEXT>
<COST mana_cost="{1}{W}" type="Mana" />
<RESOLUTION_TIME_ACTION>
local delayDC = EffectDC():Make_Chest(2)
delayDC:Set_PlayerPtr( 0, EffectController() )
delayDC:Set_Int(1, 1) -- change the 2nd parameter here for preventing a different amount of damage
MTG():CreateDelayedTrigger(1, delayDC)
</RESOLUTION_TIME_ACTION>
<AI_AVAILABILITY type="in_response" response_source="1" />
<AI_AVAILABILITY window_step="declare_blockers" type="window" />
</ACTIVATED_ABILITY>
<TRIGGERED_ABILITY replacement_effect="1" resource_id="1">
<CLEANUP fire_once="1" simple_cleanup="EndOfTurn" />
<TRIGGER value="PLAYER_TAKES_DAMAGE" pre_trigger="1" damage_type="combat">
return TriggerPlayer() == EffectDC():Get_PlayerPtr(0) and EffectDC():Get_Int(1) > 0
</TRIGGER>
<RESOLUTION_TIME_ACTION>
local damage = Damage():GetAmount()
local to_prevent = EffectDC():Get_Int(1)
if to_prevent >= damage then
Damage():PreventAll()
if to_prevent > damage then
local delayDC = EffectDC():Make_Chest(2)
delayDC:Set_PlayerPtr( 0, TriggerPlayer() )
delayDC:Set_Int(1, to_prevent - damage)
MTG():CreateDelayedTrigger(1, delayDC)
end
else
Damage():PreventAmount(to_prevent)
end
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
EDIT: Just to be clear, and maybe help you with other cards in the future, let's see what this ability does. In order to understand the original template, let's pretend that the card prevents more than 1 damage, like Esper Battlemage.
By activating the ability, you create a delayed trigger that triggers a moment before you take damage. When it triggers, you have 3 possible scenarios:
- You are about to take more damage than you can prevent -> You'll prevent as much damage as you can (PreventAmount will be called). Nothing else happens.
- You are about to take as much damage as you can prevent -> You'll prevent all the damage. Nothing else happens.
- You are about to take less damage than you can prevent -> You'll prevent all the damage. The trigger will create another delayed trigger, but the value stored in register #1 will be equal to the amount of damage that you can still prevent. It works as a sort of recursion.
EDIT 2: NeoAnderson's code below is an attempt to follow the simplified route I was talking about, but it uses a second delayed trigger for clearing the first one when it takes just simple_cleanup="EndOfTurn" in order to achieve that. Moreover, the second trigger has forced_skip="1" which shouldn't be used for triggers meant to be transparent to the players. I'd strongly recommend my version.

Last edited by thefiremind on 01 Dec 2013, 00:59, edited 1 time 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: Theros Cards
by NeoAnderson » 01 Dec 2013, 00:53
The code you posted doesn't work.wtb300 wrote:Decorated Griffin
This may seem like a silly issue but im not sure if this code will work for "prevent the next 1 combat damage that would be dealt to you"
cant find another card that specifies "combat" and "to You" so im not sure how to do it.
- Code: Select all
<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{1}{W}: Prevent the next 1 combat damage that would be dealt to you this turn.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{1}{W} : Prévenez la prochaine 1 blessure de combat qui devrait vous être infligée ce tour-ci.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{1}{W}: Prevén el siguiente punto de daño de combate que se te fuera a hacer este turno.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{1}{W}: Verhindere den nächsten 1 Kampfschadenspunkt, der dir in diesem Zug zugefügt würde.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{1}{W}: Previeni il prossimo 1 danno da combattimento che ti verrebbe inflitto in questo turno.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{1}{W}:このターン、次にあなたに与えられる戦闘ダメージを1点軽減する。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{1}{W}: 이번 턴에 당신이 다음에 입게 될 전투피해 1점을 방지한다.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{1}{W}: предотвратите следующее 1 боевое повреждение, которое должно быть нанесено вам в этом ходу.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{1}{W}: Previna o próximo 1 ponto de dano de combate que seria causado a você neste turno.]]></LOCALISED_TEXT>
<COST mana_cost="{1}{W}" type="Mana" />
<TARGET tag="PREVENT_1_DAMAGE" definition="0" compartment="0" count="1" />
<RESOLUTION_TIME_ACTION>
EffectController()
local delayDC = EffectDC():Make_Chest(2)
delayDC:Set_Int(1, 2)
if ( EffectController ~= nil ) then
delayDC:Set_PlayerPtr(0, target_player)
MTG():CreateDelayedTrigger(1, delayDC)
MTG():CreateDelayedTrigger(2, delayDC)
end
</RESOLUTION_TIME_ACTION>
I tried to modify it now should work but it is untested.
- Code: Select all
<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{1}{W}: Prevent the next 1 combat damage that would be dealt to you this turn.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{1}{W} : Prévenez la prochaine 1 blessure de combat qui devrait vous être infligée ce tour-ci.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{1}{W}: Prevén el siguiente punto de daño de combate que se te fuera a hacer este turno.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{1}{W}: Verhindere den nächsten 1 Kampfschadenspunkt, der dir in diesem Zug zugefügt würde.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{1}{W}: Previeni il prossimo 1 danno da combattimento che ti verrebbe inflitto in questo turno.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{1}{W}:このターン、次にあなたに与えられる戦闘ダメージを1点軽減する。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{1}{W}: 이번 턴에 당신이 다음에 입게 될 전투피해 1점을 방지한다.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{1}{W}: предотвратите следующее 1 боевое повреждение, которое должно быть нанесено вам в этом ходу.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{1}{W}: Previna o próximo 1 ponto de dano de combate que seria causado a você neste turno.]]></LOCALISED_TEXT>
<COST mana_cost="{1}{W}" type="Mana" />
<RESOLUTION_TIME_ACTION>
local player = EffectController()
local delayDC = EffectDC():Make_Chest(2)
if (player ~= nil) then
delayDC:Set_PlayerPtr(0, player)
MTG():CreateDelayedTrigger(1, delayDC)
MTG():CreateDelayedTrigger(2, delayDC)
end
</RESOLUTION_TIME_ACTION>
<TRIGGERED_ABILITY resource_id="1" replacement_effect="1" forced_skip="1">
<TRIGGER value="SOURCE_DEALS_DAMAGE_TO_PLAYER" pre_trigger="1" damage_type="combat">
return SecondaryPlayer() == EffectDC():Get_PlayerPtr(0)
</TRIGGER>
<CLEANUP fire_once="1" />
<RESOLUTION_TIME_ACTION>
if (SecondaryPlayer ~= nil) then
Damage():PreventAmount(1)
MTG():RemoveDelayedTrigger(2)
end
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
<TRIGGERED_ABILITY resource_id="2" forced_skip="1">
<TRIGGER value="BEGINNING_OF_STEP" simple_qualifier="controller">
return MTG():GetStep() == STEP_CLEANUP
</TRIGGER>
<CLEANUP fire_once="1" />
<RESOLUTION_TIME_ACTION>
MTG():RemoveDelayedTrigger(1)
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>

EDIT 2 : I also suggest to you to follow Thefiremind master, I just tried to be helpful but i haven't enough knowledge to do it.
As firemind say i have modified the code if you still want something simple to edit.
- Code: Select all
[code]<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{1}{W}: Prevent the next 1 combat damage that would be dealt to you this turn.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{1}{W} : Prévenez la prochaine 1 blessure de combat qui devrait vous être infligée ce tour-ci.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{1}{W}: Prevén el siguiente punto de daño de combate que se te fuera a hacer este turno.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{1}{W}: Verhindere den nächsten 1 Kampfschadenspunkt, der dir in diesem Zug zugefügt würde.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{1}{W}: Previeni il prossimo 1 danno da combattimento che ti verrebbe inflitto in questo turno.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{1}{W}:このターン、次にあなたに与えられる戦闘ダメージを1点軽減する。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{1}{W}: 이번 턴에 당신이 다음에 입게 될 전투피해 1점을 방지한다.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{1}{W}: предотвратите следующее 1 боевое повреждение, которое должно быть нанесено вам в этом ходу.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{1}{W}: Previna o próximo 1 ponto de dano de combate que seria causado a você neste turno.]]></LOCALISED_TEXT>
<COST mana_cost="{1}{W}" type="Mana" />
<RESOLUTION_TIME_ACTION>
local player = EffectController()
local delayDC = EffectDC():Make_Chest(2)
if (player ~= nil) then
delayDC:Set_PlayerPtr(0, player)
MTG():CreateDelayedTrigger(1, delayDC)
end
</RESOLUTION_TIME_ACTION>
<TRIGGERED_ABILITY resource_id="1" replacement_effect="1" >
<TRIGGER value="SOURCE_DEALS_DAMAGE_TO_PLAYER" pre_trigger="1" damage_type="combat">
return SecondaryPlayer() == EffectDC():Get_PlayerPtr(0)
</TRIGGER>
<CLEANUP fire_once="1" simple_cleanup="EndOfTurn"/>
<RESOLUTION_TIME_ACTION>
if (SecondaryPlayer ~= nil) then
Damage():PreventAmount(1)
end
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
Last edited by NeoAnderson on 01 Dec 2013, 07:18, edited 3 times in total.
- NeoAnderson
- Posts: 914
- Joined: 10 Sep 2013, 07:49
- Has thanked: 18 times
- Been thanked: 139 times
Re: Theros Cards
by wtb300 » 01 Dec 2013, 01:20
True. i had no idea what i was doing lol. thanks guys. if i had found Esper Battlemage i wouldn't have had this issue. if i can see a similar code it helps me to understand what im doing. i was trying to modify a Goblin Legionnaire and didn't know how to make the proper adjustments.
Re: Theros Cards
by warum » 09 Dec 2013, 13:42
Has anyone coded Last Breath? It's found in all of the current U/W Control decks, but I haven't found it in any packs or decks created here.
Who is online
Users browsing this forum: No registered users and 6 guests