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 BlindWillow » 12 Sep 2013, 14:01
Here are Curse of the Swine (including hilarious and adorable Boar tokens) and Prophet of Kruphix. Trying to work on Medomai the Ageless, but I think it may be impossible to get to work exactly as it should. The problem ability: "Medomai the Ageless can’t attack during extra turns." The only way I could think of was to do a badge check (which I don't think even works at all anymore) on a player to see if they have the additional turn badge. Does anyone have any other ideas?
- Attachments
-
prophetofkruphix.zip
- (106.13 KiB) Downloaded 370 times
-
curseoftheswine.zip
- (427.92 KiB) Downloaded 371 times
- BlindWillow
- Posts: 213
- Joined: 19 Jul 2012, 00:26
- Has thanked: 11 times
- Been thanked: 46 times
Re: Theros Cards
by MC Brodie » 12 Sep 2013, 14:50
This may work...
You could have a triggered ability in the end step that stores the current player in a data chest. Then at the upkeep check if the current player is the same as the one in the data chest. If it is, the creature can't attack this turn.
Edit - It could be even simpler. When the creature enters the battlefield set the playerDC to the current player. Then have a trigger at the upkeep to compare the playerDC to the current player. If they are equal, add the cannot attack code until EOT. If they aren't equal reset the playerDC to the current player.
You could have a triggered ability in the end step that stores the current player in a data chest. Then at the upkeep check if the current player is the same as the one in the data chest. If it is, the creature can't attack this turn.
Edit - It could be even simpler. When the creature enters the battlefield set the playerDC to the current player. Then have a trigger at the upkeep to compare the playerDC to the current player. If they are equal, add the cannot attack code until EOT. If they aren't equal reset the playerDC to the current player.
-----------------------------------------------------------------------
Song of the Day: 46 and 2 (cover)
Song of the Day: 46 and 2 (cover)
Re: Theros Cards
by thefiremind » 12 Sep 2013, 15:11
Remember that you could get extra turns from different cards, and you could even get an extra turn during another player's turn (because of Hypersonic Dragon pseudo-flashing a Temporal Mastery for example) which would put the extra turn before your "normal" turn. I can't think of a good way to code the sphinx right now.
< 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 drleg3nd » 12 Sep 2013, 15:28
hey gorem was trying this out and I got this script loggorem2k wrote:One more for the road, Ordeal of Thassa. sorry about the very low quality image/scan. I took Rari's Ordeal of Purphorous code and changed a few things that I thought were not part of a trigger effect. I think the wording "Then if it has three or more +1/+1 counters", THEN shouldn't be a trigger (see triggers definition on Strionic Resonator).
- | Open
- Code: Select all
hello there !
- | Open
- Code: Select all
[lua] [string "ORDEAL_OF_THASSA_812927007_TITLE (RESOLUTION_TIME_ACTION)~0x000009af"]:2: attempt to index a nil value
[lua] [string "ORDEAL_OF_THASSA_812927007_TITLE (RESOLUTION_TIME_ACTION)~0x000009b0"]:2: attempt to index a nil value
[lua] [string "ORDEAL_OF_THASSA_812927007_TITLE (RESOLUTION_TIME_ACTION)~0x000009af"]:2: attempt to index a nil value
[lua] [string "ORDEAL_OF_THASSA_812927007_TITLE (RESOLUTION_TIME_ACTION)~0x000009b0"]:2: attempt to index a nil value
[lua] [string "ORDEAL_OF_THASSA_812927007_TITLE (RESOLUTION_TIME_ACTION)~0x000009af"]:2: attempt to index a nil value
[lua] [string "ORDEAL_OF_THASSA_812927007_TITLE (RESOLUTION_TIME_ACTION)~0x000009b0"]:2: attempt to index a nil value
[lua] [string "ORDEAL_OF_THASSA_812927007_TITLE (RESOLUTION_TIME_ACTION)~0x000009af"]:2: attempt to index a nil value
[lua] [string "ORDEAL_OF_THASSA_812927007_TITLE (RESOLUTION_TIME_ACTION)~0x000009b0"]:2: attempt to index a nil value
[lua] [string "ORDEAL_OF_THASSA_812927007_TITLE (RESOLUTION_TIME_ACTION)~0x000009af"]:2: attempt to index a nil value
[lua] [string "ORDEAL_OF_THASSA_812927007_TITLE (RESOLUTION_TIME_ACTION)~0x000009b0"]:2: attempt to index a nil value
[lua] [string "ORDEAL_OF_THASSA_812927007_TITLE (RESOLUTION_TIME_ACTION)~0x000009af"]:2: attempt to index a nil value
[lua] [string "ORDEAL_OF_THASSA_812927007_TITLE (RESOLUTION_TIME_ACTION)~0x000009b0"]:2: attempt to index a nil value
Re: Theros Cards
by gorem2k » 12 Sep 2013, 18:35
drleg3nd wrote:hey gorem was trying this out and I got this script log
...

this never happened to me when I tested it but here I've added another check for nil value, similar to BlindWillow's Gift of Immortality, except no LKI since it shouldnt be necessary for ATTACKING.
- | Open
- Code: Select all
<TRIGGERED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Whenever enchanted creature attacks, put a +1/+1 counter on it. Then if it has three or more +1/+1 counters on it, sacrifice Ordeal of Thassa.]]></LOCALISED_TEXT>
<TRIGGER value="ATTACKING">
return TriggerObject() == EffectSource():GetParent()
</TRIGGER>
<RESOLUTION_TIME_ACTION>
local source = EffectSource()
local parent = EffectSource():GetParent()
if (source ~= nil and parent ~= nil) then
parent:AddCounters( MTG():PlusOnePlusOneCounters(), 1)
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local source = EffectSource()
local parent = EffectSource():GetParent()
if (source ~= nil and parent ~= nil) then
local counters = parent:CountCounters( MTG():PlusOnePlusOneCounters() )
if counters ~= nil and counters >= 3 then
local controller = parent:GetController()
controller:Sacrifice( EffectSource() )
end
end
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
Re: Theros Cards
by thefiremind » 12 Sep 2013, 18:59
There's a little imperfection in the code: the Aura's controller and the creature's controller will often be the same, but sometimes they might be not, so you should use
- Code: Select all
EffectController():Sacrifice( EffectSource() )
- Code: Select all
local parent = EffectSource() and EffectSource():GetParent()
< 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 gorem2k » 12 Sep 2013, 20:01
This may be checked the same way we would check if a player Scry (Flamespeaker Adept). modify each cards that grant an extra turn.BlindWillow wrote:Trying to work on Medomai the Ageless, but I think it may be impossible to get to work exactly as it should ... Does anyone have any other ideas?
EDIT: forget the second idea, combat damage that grant extra turn wouldn't trigger...
fixed. updated previous post.thefiremind wrote:There's a little imperfection in the code...

Re: Theros Cards
by drleg3nd » 13 Sep 2013, 10:12
can someone help me with this ability.thx
- Whip of Erebos | Open
- Code: Select all
<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{2}{B}{B}, {T}:Return target creature card from your graveyard to the battlefield. It gains haste. Exile it at the beginning of the next end step. If it would leave the battlefield, exile it instead of putting it anywhere else. Activate this ability only any time you cast a sorcery.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{1}{W}{W}, {T} : Détruisez la créature ciblée qui a vous a infligé des blessures ce tour-ci.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{1}{W}{W}, {T}: Destruye la criatura objetivo que te haya hecho daño este turno.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{1}{W}{W}, {T}: Zerstöre eine Kreatur deiner Wahl, die dir in diesem Zug bereits Schaden zugefügt hat.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{1}{W}{W}, {T}: Distruggi una creatura bersaglio che ti ha inflitto danno in questo turno.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{1}{W}{W}, {T}:このターンにあなたにダメージを与えたクリーチャー1体を対象とし、それを破壊する。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{1}{W}{W}, {T}: Destroy target creature that dealt damage to you this turn.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{1}{W}{W}, {T}: уничтожьте целевое существо, которое нанесло вам повреждения в этом ходу.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{1}{W}{W}, {T}: Destrua a criatura alvo que lhe causou dano neste turno.]]></LOCALISED_TEXT>
<COST mana_cost="{2}{B}{B}" type="Mana" />
<COST type="TapSelf" />
<TARGET tag="CARD_QUERY_CHOOSE_CREATURE_RETURN_TO_BATTLEFIELD" definition="0" compartment="0" count="1" />
<MAY />
<TARGET_DEFINITION id="0">
local filter = ClearFilter()
filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
filter:SetZone( ZONE_GRAVEYARD, EffectController() )
</TARGET_DEFINITION>
<RESOLUTION_TIME_ACTION>
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
target:PutOntoBattlefield( EffectController() )
end
</RESOLUTION_TIME_ACTION>
<CONTINUOUS_ACTION layer="6">
local i = 0
local creature_chest = EffectDC():Get_Chest(1):Get_Chest(0)
if creature_chest ~= nil then
local creature = creature_chest:Get_NthCardPtr(i)
while (creature ~= nil) do
creature:GetCurrentCharacteristics():Bool_Set( CHARACTERISTIC_HASTE, 1 )
i = i + 1
creature = creature_chest:Get_NthCardPtr(i)
end
end
</CONTINUOUS_ACTION>
<CONTINUOUS_ACTION layer="8">
local i = 0
local creature_chest = EffectDC():Get_Chest(1):Get_Chest(0)
if creature_chest ~= nil then
local creature = creature_chest:Get_NthCardPtr(i)
while (creature ~= nil) do
creature:GetCurrentCharacteristics():AI_SetWorthless()
i = i + 1
creature = creature_chest:Get_NthCardPtr(i)
end
end
</CONTINUOUS_ACTION>
<DURATION simple_duration="UntilEOT" />
<TRIGGERED_ABILITY resource_id="1" active_zone="ZONE_BATTLEFIELD">
<CLEANUP simple_cleanup="EndOfTurn" />
<TRIGGER value="ZONECHANGE_CONSIDERED" to_zone="ZONE_GRAVEYARD" from_zone="ZONE_BATTLEFIELD" pre_trigger="1">
if (TriggerObject() == EffectDC():Get_CardPtr(0)) then
MTG():OverrideEvent()
TriggerObject():Exile()
return true
end
return false
</TRIGGER>
<AVAILABILITY sorcery_time="1" />
</TRIGGERED_ABILITY>
<AI_AVAILABILITY type="in_response" response_source="1" />
<AI_AVAILABILITY window_step="main_2" window_turn="my_turn" type="window" />
<AI_AVAILABILITY window_step="begin_combat" window_turn="their_turn" type="window" />
<AI_AVAILABILITY window_step="declare_attackers" window_turn="their_turn" type="window" />
<AI_AVAILABILITY window_step="declare_blockers" type="window" />
<AI_AVAILABILITY window_step="end_of_turn" type="window" />
<AI_AVAILABILITY type="in_response" response_source="1" response_target="1" />
<AI_SIMPLIFIED_TARGETING compartment="0" hint="HINT_ENEMY_ONLY" />
<SFX text="TARGET_BLADE_PLAY" />
</ACTIVATED_ABILITY>
Re: Theros Cards
by drleg3nd » 13 Sep 2013, 22:22
here's the Scry Lands..enjoy
- Attachments
-
SCRY LANDS.zip
- Scry lands
- (1 MiB) Downloaded 414 times
Re: Theros Cards
by drleg3nd » 13 Sep 2013, 22:25
misthunter hydra
ps..still need help with whip of erebos
ps..still need help with whip of erebos
- Attachments
-
MISTCUTTER_HYDRA_812627080.zip
- Misthunter Hydra
- (699.11 KiB) Downloaded 363 times
Re: Theros Cards
by thefiremind » 13 Sep 2013, 22:49
I don't know where you copied the code from, but the CONTINUOUS_ACTIONs refer to chests that you never defined.drleg3nd wrote:ps..still need help with whip of erebos
That ability seems a lot like unearth to me... maybe you could achieve better results by copying the unearth ability (you can find plenty of cards with it in my mod) and then changing all instances of EffectSource() with EffectDC():Get_Targets(0):Get_CardPtr(0), since you are basically giving unearth to your target rather than to the effect source.
< 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 BlindWillow » 14 Sep 2013, 04:18
Here's Whip of Erebos. As it is a complicated card, I wouldn't mind someone double-checking my code:
- Code: Select all
<?xml version="1.0"?>
<CARD_V2 ExportVersion="27">
<FILENAME text="WHIP_OF_EREBOS_177927013" />
<CARDNAME text="WHIP_OF_EREBOS" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Whip of Erebos]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Fouet d’Érébos]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Látigo de Erebos]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Peitsche des Erebos]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Frusta di Erebos]]></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[Chicote de Érebo]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="177927013" />
<ARTID value="177927013" />
<ARTIST name="Yeong-Hao Han" />
<CASTING_COST cost="{2}{B}{B}" />
<SUPERTYPE metaname="Legendary" />
<TYPE metaname="Enchantment" />
<TYPE metaname="Artifact" />
<EXPANSION value="DPI" />
<RARITY metaname="R" />
<STATIC_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Creatures you control have lifelink.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Les créatures que vous contrôlez ont le lien de vie.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Las criaturas que controlas tienen la habilidad de vínculo vital.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Alle Kreaturen, die du kontrollierst, haben Lebensverknüpfung.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Le creature che controlli hanno legame vitale.]]></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 que você controla têm vínculo com a vida.]]></LOCALISED_TEXT>
<FILTER filter_id="0">
local filter = ClearFilter()
filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
filter:Add( FE_CONTROLLER, OP_IS, EffectController())
</FILTER>
<CONTINUOUS_ACTION layer="6" filter_id="0">
if FilteredCard() ~= nil then
local characteristics = FilteredCard():GetCurrentCharacteristics()
characteristics:Bool_Set( CHARACTERISTIC_LIFELINK, 1 )
end
</CONTINUOUS_ACTION>
</STATIC_ABILITY>
<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{2}{B}{B}, {T}: Return target creature card from your graveyard to the battlefield. It gains haste. Exile it at the beginning of the next end step. If it would leave the battlefield, exile it instead of putting it anywhere else. Activate this ability only any time you could cast a sorcery.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{2}{B}{B}, {T} : Renvoyez la carte de créature ciblée depuis votre cimetière sur le champ de bataille. Elle acquiert la célérité. Exilez-la au début de la prochaine étape de fin. Si elle devait quitter le champ de bataille, exilez-la à la place de la mettre autre part. N’activez cette capacité que lorsque vous pourriez lancer un rituel.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{2}{B}{B}, {T}: Regresa la carta de criatura objetivo de tu cementerio al campo de batalla. Gana la habilidad de prisa. Exíliala al comienzo del próximo paso final. Si fuera a dejar el campo de batalla, exíliala en vez de ponerla en cualquier otro lado. Activa esta habilidad solo cuando puedas lanzar un conjuro.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{2}{B}{B}, {T}: Bringe eine Kreaturenkarte deiner Wahl aus deinem Friedhof ins Spiel zurück. Sie hat Eile. Schicke sie zu Beginn des nächsten Endsegments ins Exil. Falls sie das Spiel verlassen würde, schicke sie ins Exil, anstatt sie irgendwo anders hinzulegen. Aktiviere diese Fähigkeit nur zu einem Zeitpunkt, zu dem du auch eine Hexerei wirken könntest.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{2}{B}{B}, {T}: Rimetti sul campo di battaglia una carta creatura bersaglio dal tuo cimitero. Ha rapidità. Esiliala all’inizio della prossima sottofase finale. Se sta per lasciare il campo di battaglia, esiliala invece di metterla in qualsiasi altra zona. Attiva questa abilità solo quando potresti lanciare una stregoneria.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{2}{B}{B}, {T}:あなたの墓地にあるクリーチャー・カード1枚を対象とし、それを戦場に戻す。それは速攻を得る。次の終了ステップの開始時に、それを追放する。それが戦場を離れる場合、それを他のいずれかの領域に置く代わりにそれを追放する。この能力は、あなたがソーサリーを唱えられるときにのみ起動できる。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{2}{B}{B}, {T}: Return target creature card from your graveyard to the battlefield. It gains haste. Exile it at the beginning of the next end step. If it would leave the battlefield, exile it instead of putting it anywhere else. Activate this ability only any time you could cast a sorcery.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{2}{B}{B}, {T}: Return target creature card from your graveyard to the battlefield. It gains haste. Exile it at the beginning of the next end step. If it would leave the battlefield, exile it instead of putting it anywhere else. Activate this ability only any time you could cast a sorcery.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{2}{B}{B}, {T}: Devolva o card de criatura alvo de seu cemitério para o campo de batalha. Ele ganha ímpeto. Exile-o no início da próxima etapa final. Se ele for deixar o campo de batalha, em vez de colocá-lo em qualquer outro lugar, exile-o. Ative esta habilidade somente nos momentos em que poderia conjurar um feitiço.]]></LOCALISED_TEXT>
<AVAILABILITY sorcery_time="1" />
<COST mana_cost="{2}{B}{B}" type="Mana" />
<COST type="TapSelf" />
<TARGET tag="CARD_QUERY_CHOOSE_CREATURE_RETURN_TO_BATTLEFIELD" definition="0" compartment="0" count="1" />
<TARGET_DEFINITION id="0">
local filter = ClearFilter()
filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
filter:SetZone( ZONE_GRAVEYARD, EffectController() )
</TARGET_DEFINITION>
<RESOLUTION_TIME_ACTION>
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
EffectDC():Get_Targets(0):Protect_CardPtr(0)
target:PutOntoBattlefield( EffectController() )
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local target_creature = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target_creature ~= nil then
local delayDC_A = EffectDC():Make_Chest(1)
local delayDC_B = EffectDC():Make_Chest(2)
delayDC_A:Set_CardPtr(0, target_creature)
delayDC_B:Set_CardPtr(0, target_creature)
MTG():CreateDelayedTrigger(2, delayDC_A)
MTG():CreateDelayedTrigger(3, delayDC_B)
end
</RESOLUTION_TIME_ACTION>
<CONTINUOUS_ACTION layer="6">
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
local characteristics = target:GetCurrentCharacteristics()
characteristics:Bool_Set( CHARACTERISTIC_HASTE, 1 )
end
</CONTINUOUS_ACTION>
<CONTINUOUS_ACTION layer="8">
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
local characteristics = target:GetCurrentCharacteristics()
characteristics:AI_SetWorthless()
end
</CONTINUOUS_ACTION>
<DURATION>
return (EffectDC():Get_Targets(0):Get_CardPtr(0) == nil)
</DURATION>
</ACTIVATED_ABILITY>
<TRIGGERED_ABILITY resource_id="2">
<TRIGGER value="BEGINNING_OF_STEP">
return MTG():GetStep() == STEP_END_OF_TURN
</TRIGGER>
<CLEANUP fire_once="1" />
<RESOLUTION_TIME_ACTION>
local target = EffectDC():Get_CardPtr(0)
if target ~= nil then
MTG():RemoveDelayedTrigger(3)
target:Exile()
end
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
<TRIGGERED_ABILITY replacement_effect="1" resource_id="3" active_zone="ZONE_BATTLEFIELD">
<TRIGGER value="ZONECHANGE_CONSIDERED" simple_qualifier="self" to_zone="ZONE_ANY" from_zone="ZONE_BATTLEFIELD" pre_trigger="1">
MTG():OverrideEvent()
return true
</TRIGGER>
<RESOLUTION_TIME_ACTION>
if TriggerObject() ~= nil then
MTG():RemoveDelayedTrigger(2)
TriggerObject():Exile()
end
</RESOLUTION_TIME_ACTION>
<CLEANUP fire_once="1" simple_cleanup="EndOfTurn" />
</TRIGGERED_ABILITY>
<HELP title="MORE_INFO_BADGE_TITLE_4" body="MORE_INFO_BADGE_BODY_4" zone="ZONE_ANY" />
<HELP title="MORE_INFO_BADGE_TITLE_14" body="MORE_INFO_BADGE_BODY_14" zone="ZONE_ANY" />
<AI_BASE_SCORE score="750" zone="ZONE_BATTLEFIELD" />
</CARD_V2>
- Attachments
-
whipoferebos.zip
- (108.67 KiB) Downloaded 406 times
- BlindWillow
- Posts: 213
- Joined: 19 Jul 2012, 00:26
- Has thanked: 11 times
- Been thanked: 46 times
Re: Theros Cards
by drleg3nd » 14 Sep 2013, 10:42
thx for the help guys for the whip, just to note for everyone who downloaded scry lands. Its not a big deal but localised text need to be corrected. i repeated wording twice
Re: Theros Cards
by drleg3nd » 14 Sep 2013, 23:49
hey guys I was attempting to do ashiok, but then I realized I didn't know what to do
if any one wants to try finishing it feel free



- Ashiok | Open
- Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="2">
<FILENAME text="ASHIOK,_NIGHTMARE_WEAVER_812366367" />
<CARDNAME text="ASHIOK,_NIGHTMARE_WEAVER" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Domri Rade]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Domri Rade]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Domri Rade]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Domri Rade]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Domri Rade]]></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[Domri Rade]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="812366367" />
<ARTID value="812366367" />
<ARTIST name="Karla Ortiz" />
<CASTING_COST cost="{1}{U}{B}" />
<TYPE metaname="Planeswalker" />
<TYPE metaname="Enchantment" />
<SUB_TYPE metaname="Ashiok" />
<EXPANSION value="THS" />
<RARITY metaname="M" />
<TRIGGERED_ABILITY replacement_effect="1" active_zone="ZONE_TRANSITION">
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[|(Loyalty 3)|]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[|(Loyauté 3)|]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[|(Lealtad 3)|]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[|(Loyalität 3)|]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[|(Fedeltà 3)|]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[(忠誠 3)]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[|(충성 3)|]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[|(Верность 3)|]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[|(Lealdade 3)|]]></LOCALISED_TEXT>
<COUNTER_REGISTRATION name="Loyalty" proliferate="11" />
<TRIGGER value="ZONECHANGE_TRANSITION" simple_qualifier="self" to_zone="ZONE_BATTLEFIELD" from_zone="ZONE_ANY" />
<RESOLUTION_TIME_ACTION>
if EffectSource() ~= nil then
EffectSource():AddCounters( MTG():GetCountersType("Loyalty"), 3 )
end
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[(+1): Look at the top card of your library. If it’s a creature card, you may reveal it and put it into your hand.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[(+1) : Regardez la carte du dessus de votre bibliothèque. Si c’est une carte de créature, vous pouvez la révéler et la mettre dans votre main.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[(+1): Mira la primera carta de tu biblioteca. Si es una carta de criatura, puedes mostrarla y ponerla en tu mano.-2: La criatura objetivo que controlas lucha con otra criatura objetivo.-7: Obtienes un emblema con “Las criaturas que controlas tienen las habilidades de dañar dos veces, arrollar, antimaleficio y prisa”.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[(+1): Schaue dir die oberste Karte deiner Bibliothek an. Falls es eine Kreaturenkarte ist, kannst du sie offen vorzeigen und auf deine Hand nehmen.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[(+1): Guarda la prima carta del tuo grimorio. Se è una carta creatura, puoi rivelarla e aggiungerla alla tua mano.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[(+1):あなたのライブラリーの一番上のカードを見る。それがクリーチャー・カードである場合、あなたはそれを公開してあなたの手札に加えてもよい。-2:あなたがコントロールするクリーチャー1体を対象とし、他のクリーチャー1体を対象とする。その前者はその後者と格闘を行う。-7:あなたは「あなたがコントロールするクリーチャーは二段攻撃、トランプル、呪禁、速攻を持つ。」を持つ紋章を得る。]]></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[(+1): Olhe o card do topo de seu grimório. Se for um card de criatura, você poderá revelá-lo e colocá-lo em sua mão.-2: A criatura alvo que você controla luta com outra criatura alvo.-7: Você recebe um emblema com “As criaturas que você controla têm golpe duplo, atropelar, resistência a magia e ímpeto.”]]></LOCALISED_TEXT>
<AVAILABILITY per_turn_limit="1" sorcery_time="1" />
<COST type="generic">
<PREREQUISITE>
return true
</PREREQUISITE>
<RESOLUTION_TIME_ACTION>
if EffectSource() ~= nil then
PLW_ShutDownDoublingSeason()
EffectSource():AddCounters( MTG():GetCountersType("Loyalty"), 1 )
end
</RESOLUTION_TIME_ACTION>
</COST>
<RESOLUTION_TIME_ACTION>
local top = EffectController():Library_GetTop()
if top ~= nil then
local queryDC = EffectDC():Make_Chest(1)
queryDC:Set_CardPtr(0, top)
if top:GetCardType():Test(CARD_TYPE_CREATURE) == false then
queryDC:QueryUnselect_CardPtr(0)
end
EffectController():ChooseItemFromDC( "CARD_QUERY_CHOOSE_CARD_TO_REVEAL", queryDC, EffectDC():Make_Targets(0), QUERY_FLAG_MAY )
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local card = EffectDC():Get_Targets(0) and EffectDC():Get_Targets(0):Get_CardPtr(0)
if card ~= nil then
card:Reveal()
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local card = EffectDC():Get_Targets(0) and EffectDC():Get_Targets(0):Get_CardPtr(0)
if card ~= nil then
card:PutInHand()
end
</RESOLUTION_TIME_ACTION>
</ACTIVATED_ABILITY>
<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[(-2): Target creature you control fights another target creature.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[(-2) : Une créature ciblée que vous contrôlez se bat contre une autre créature ciblée.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[(-2): Target creature you control fights another target creature.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[(-2): Eine Kreatur deiner Wahl, die du kontrollierst, kämpft gegen eine andere Kreatur deiner Wahl.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[(-2): Una creatura bersaglio che controlli lotta con un’altra creatura bersaglio.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[(-2): Target creature you control fights another target creature.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[(-2): 당신이 조종하는 생물 한 개와 다른 생물 한 개를 목표로 정한다. 그 생물들은 서로 싸운다.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[(-2): целевое существо под вашим контролем дерется с другим целевым существом.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[(-2): Target creature you control fights another target creature.]]></LOCALISED_TEXT>
<AVAILABILITY per_turn_limit="1" sorcery_time="1" />
<COST type="RemoveCountersSelf" amount="2" counter_type="Loyalty" />
<TARGET tag="CARD_QUERY_CHOOSE_CREATURE_YOU_CONTROL" 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, EffectController() )
</TARGET_DEFINITION>
<TARGET tag="CARD_QUERY_CHOOSE_CREATURE_TO_ARENA" definition="1" compartment="1" count="1" />
<TARGET_DEFINITION id="1">
local filter = ClearFilter()
filter:Add(FE_TYPE, OP_IS, CARD_TYPE_CREATURE)
</TARGET_DEFINITION>
<RESOLUTION_TIME_ACTION>
local targetA = EffectDC():Get_Targets(0):Get_CardPtr(0)
local targetB = EffectDC():Get_Targets(1):Get_CardPtr(0)
if targetA ~= nil and targetB ~= nil then
local damageFromA = targetA:GetCurrentCharacteristics():Power_Get()
local damageFromB = targetB:GetCurrentCharacteristics():Power_Get()
targetA:DealDamageTo(damageFromA, targetB)
targetB:DealDamageTo(damageFromB, targetA)
end
</RESOLUTION_TIME_ACTION>
</ACTIVATED_ABILITY>
<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[(-7): You get an emblem with “Creatures you control have double strike, trample, hexproof, and haste.”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[(-7) : Vous gagnez un emblème avec « Les créatures que vous contrôlez ont la double initiative, le piétinement, la défense talismanique et la célérité. »]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[(-7): You get an emblem with “Creatures you control have double strike, trample, hexproof, and haste.”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[(-7): Du erhältst ein Emblem mit „Kreaturen, die du kontrollierst, haben Doppelschlag, verursachen Trampelschaden, sind fluchsicher und haben Eile.”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[(-7): Ottieni un emblema con “Le creature che controlli hanno doppio attacco, travolgere, anti-malocchio e rapidità”.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[(-7): You get an emblem with “Creatures you control have double strike, trample, hexproof, and haste.”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[(-7): 당신은 “당신이 조종하는 생물들은 이단공격, 돌진, 방호 및 신속 능력을 가진다.”라는 능력을 가진 휘장을 얻는다.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[(-7): вы получаете эмблему со способностью «Существа под вашим контролем имеют Двойной удар, Пробивной удар, Порчеустойчивость и Ускорение».]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[(-7): You get an emblem with “Creatures you control have double strike, trample, hexproof, and haste.”]]></LOCALISED_TEXT>
<AVAILABILITY per_turn_limit="1" sorcery_time="1" />
<COST type="RemoveCountersSelf" amount="7" counter_type="Loyalty" />
<FILTER filter_id="0" reevaluates="1">
local filter = ClearFilter()
filter:Add(FE_TYPE, OP_IS, CARD_TYPE_CREATURE)
filter:Add( FE_CONTROLLER, OP_IS, EffectController() )
</FILTER>
<CONTINUOUS_ACTION layer="6" filter_id="0">
if FilteredCard() ~= nil then
local characteristics = FilteredCard():GetCurrentCharacteristics()
characteristics:Bool_Set(CHARACTERISTIC_DOUBLE_STRIKE, 1)
characteristics:Bool_Set(CHARACTERISTIC_TRAMPLE, 1)
characteristics:Bool_Set(CHARACTERISTIC_HEXPROOF, 1)
characteristics:Bool_Set(CHARACTERISTIC_HASTE, 1)
end
</CONTINUOUS_ACTION>
<DURATION>
return EffectController() == nil
</DURATION>
<SFX text="GLOBAL_BIORHYTHM_PLAY" />
</ACTIVATED_ABILITY>
<TRIGGERED_ABILITY replacement_effect="1" active_zone="ZONE_ANY">
<TRIGGER value="BEGINNING_OF_STEP">
return MTG():GetStep() == STEP_UPKEEP and MTG():GetTurnNumber() == 0
</TRIGGER>
<RESOLUTION_TIME_ACTION>
PLW_CreateUniqueToken( "_PLANESWALKERS_MANAGER_991800002", "_PLANESWALKERS_MANAGER", EffectController() )
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
<TOKEN_REGISTRATION reservation="1" type="_PLANESWALKERS_MANAGER_991800002" />
<HELP title="MORE_INFO_BADGE_TITLE_1" body="MORE_INFO_BADGE_BODY_1" zone="ZONE_ANY" />
<HELP title="MORE_INFO_BADGE_TITLE_2" body="MORE_INFO_BADGE_BODY_2" zone="ZONE_ANY" />
<HELP title="MORE_INFO_BADGE_TITLE_14" body="MORE_INFO_BADGE_BODY_14" zone="ZONE_ANY" />
<HELP title="MORE_INFO_BADGE_TITLE_21" body="MORE_INFO_BADGE_BODY_21" zone="ZONE_ANY" />
<AI_COUNTER_SCORE type="Loyalty" score="100" />
<AI_BASE_SCORE score="600" zone="ZONE_BATTLEFIELD" />
</CARD_V2>
Who is online
Users browsing this forum: No registered users and 7 guests