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




Formal Request Thread
Moderator: CCGHQ Admins
Re: Formal Request Thread
by Coyoto » 03 Jan 2014, 15:51
Thanks again Riiak
It works now... it seems that I messed up when repacking the mod
Sorry for th disturbtion and many thanks to have spent time... thanks for your proposal but it's not worth it... next time I'll be less stupid... or not... coyotos are dumb
PS: I'll change the card name, it was expected. This one was just a first shot
... a friend of mine is still finishing the arts.
Big kisses guys

It works now... it seems that I messed up when repacking the mod

Sorry for th disturbtion and many thanks to have spent time... thanks for your proposal but it's not worth it... next time I'll be less stupid... or not... coyotos are dumb

PS: I'll change the card name, it was expected. This one was just a first shot

Big kisses guys

Re: Formal Request Thread
by MC Brodie » 03 Jan 2014, 15:57
One thing that causes a crash in the beginning of a match is having a card in your deck with a color that isn't supported by a basic land in the deck. For example you have a card that costs
but no islands. This may not be your issue since your card costs
and I don't think the game checks activated abilities. It could be another card causing you problems but I doubt it since you said you tried it in a working deck.
However on your tokens I see you have "<COLOR value ="A"/>". Is that an acceptable parameter for a color value? For a colorless artifact you don't need to have the <COLOR /> tag so try deleting that.


However on your tokens I see you have "<COLOR value ="A"/>". Is that an acceptable parameter for a color value? For a colorless artifact you don't need to have the <COLOR /> tag so try deleting that.
-----------------------------------------------------------------------
Song of the Day: 46 and 2 (cover)
Song of the Day: 46 and 2 (cover)
Re: Formal Request Thread
by NeoAnderson » 03 Jan 2014, 16:56
Ok Fire, it doesn't work, probably the problem is inside the function RemoveFromParent(), because it detach the equipment, but it remains behind that card, it moves just a little bit.thefiremind wrote:A ZONECHANGE_END would be the best: you don't want this to happen before Titania's Song really hits the battlefield.NeoAnderson wrote:So you suggest to use it into a ZONECHANGE_TRANSITION or ZONECHANGE_BEGIN?Yes.NeoAnderson wrote:And i have to use anyway RemoveFromParent() function into a resolution block?
I tried to don't go over that card with the mouse pointer, and the game continued to work for a while, i was also able to attack with all the cards using the button attack with all, i would see if after attacked the equipment would be reorder in a right layer but nothing.
I think we cannot do so much to resolve this problem, because it depends of internal functions.
- Code: Select all
<TRIGGERED_ABILITY>
<TRIGGER value="ZONECHANGE_END" simple_qualifier="self" to_zone="ZONE_BATTLEFIELD" from_zone="ZONE_ANY" />
<FILTER filter_id="0">
local filter = ClearFilter()
filter:Add( FE_SUBTYPE, OP_IS, ARTIFACT_TYPE_EQUIPMENT )
</FILTER>
<RESOLUTION_TIME_ACTION filter_id="0">
if FilteredCard() ~= nil and FilteredCard():GetParent() ~= nil then
FilteredCard():RemoveFromParent()
end
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
It works but i would an opinion to see if i have miss some possible interactions.
- Reverse Polarity | Open
- Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
<FILENAME text="REVERSE_POLARITY_1362" />
<CARDNAME text="REVERSE_POLARITY" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Reverse Polarity]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Reverse Polarity]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Reverse Polarity]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Reverse Polarity]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Inversione della Polarità]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Reverse Polarity]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Reverse Polarity]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Reverse Polarity]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Reverse Polarity]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="1362" />
<ARTID value="1362" />
<ARTIST name="Justin Hampton" />
<CASTING_COST cost="{W}{W}" />
<TYPE metaname="Instant" />
<EXPANSION value="AQ" />
<RARITY metaname="U" />
<SPELL_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[You gain X life, where X is twice the damage dealt to you so far this turn by artifacts.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[You gain X life, where X is twice the damage dealt to you so far this turn by artifacts.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[You gain X life, where X is twice the damage dealt to you so far this turn by artifacts.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[You gain X life, where X is twice the damage dealt to you so far this turn by artifacts.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Guadagni X punti vita, dove X è il doppio del danno che ti è stato inflitto in questo turno dagli artefatti.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[You gain X life, where X is twice the damage dealt to you so far this turn by artifacts.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[You gain X life, where X is twice the damage dealt to you so far this turn by artifacts.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[You gain X life, where X is twice the damage dealt to you so far this turn by artifacts.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[You gain X life, where X is twice the damage dealt to you so far this turn by artifacts.]]></LOCALISED_TEXT>
<RESOLUTION_TIME_ACTION>
local chest = EffectController():PlayerDataChest():Get_Chest(5400)
local Bonus = chest:Get_Int(0)
local CardAny = chest:Get_Int(1)
Bonus = Bonus / CardAny
EffectController():GainLife(Bonus*2)
</RESOLUTION_TIME_ACTION>
</SPELL_ABILITY>
<TRIGGERED_ABILITY replacement_effect="1" active_zone="ZONE_ANY">
<TRIGGER value="SOURCE_DEALS_DAMAGE_TO_PLAYER" pre_trigger="1" damage_type="all">
if SecondaryPlayer() == EffectController() and TriggerObject():GetCardType():Test(CARD_TYPE_ARTIFACT) then
local chest = EffectController():PlayerDataChest():Get_Chest(5400)
if chest == nil then
chest = EffectController():PlayerDataChest():Make_Chest(5400)
chest:Set_Int(0, 0)
chest:Set_Int(1, 0)
end
return true
else
return false
end
</TRIGGER>
<RESOLUTION_TIME_ACTION>
local chest = EffectController():PlayerDataChest():Get_Chest(5400)
local damage = Damage():GetAmount()
local alreadystored = chest:Get_Int(0)
chest:Set_Int(0, damage + alreadystored)
local CardAny = chest:Get_Int(1)
if CardAny == 0 then
CardAny = CountCardByNameControlledBy(Object():GetCardName(), ZONE_ANYWHERE, EffectController())
chest:Set_Int(1, CardAny)
end
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
<TRIGGERED_ABILITY forced_skip="1" internal="1" active_zone="ZONE_ANY">
<TRIGGER value="BEGINNING_OF_STEP" >
if MTG():GetStep() == STEP_CLEANUP then
local chest = EffectController():PlayerDataChest():Get_Chest(5400)
if chest == nil then
chest = EffectController():PlayerDataChest():Make_Chest(5400)
end
chest:Set_Int(0, 0)
local CardAny = CountCardByNameControlledBy(Object():GetCardName(), ZONE_ANYWHERE, EffectController())
chest:Set_Int(1, CardAny)
end
</TRIGGER>
</TRIGGERED_ABILITY>
</CARD_V2>
I was thinking it can be coded using a datachest, but i am not sure. The main problem is how to check if a card into the stack under your control is already target of another card with the same name of Goblin Artisans.
- NeoAnderson
- Posts: 914
- Joined: 10 Sep 2013, 07:49
- Has thanked: 18 times
- Been thanked: 139 times
Re: Formal Request Thread
by MC Brodie » 03 Jan 2014, 22:18
This card is pretty interesting. I like the art. I tried using Riiak's Object DC functions and this code seemed to work. Since I was only testing a portion of the card the front half of the target definition needs to change but the lua condition and play time action seemed to work. If I understand the card correctly, even if you win the flip and draw a card you still cannot target the spell with another copy of Goblin Artisans. If you use this you might want to use a different compartment ID. I just picked one at random. Also, I think Riiak's Object DCs are cleared when you change zones so you shouldn't need to clear the DC yourself after the artifact spell resolves/is countered.NeoAnderson wrote:3. Do you think is possible to code : Goblin Artisans
I was thinking it can be coded using a datachest, but i am not sure. The main problem is how to check if a card into the stack under your control is already target of another card with the same name of Goblin Artisans.
- | Open
- Code: Select all
<TARGET_DEFINITION id="0">
local filter = ClearFilter()
filter:Add( FE_IS_PERMANENT, true )
filter:Add( FE_CARD_INSTANCE, OP_NOT, EffectSource() )
filter:Add( FE_LUA_CONDITION, 1, EffectController() , EffectDC() )
</TARGET_DEFINITION>
<FILTER_CONDITION id="1">
local target = FilteredCard()
if target ~= nil then
local oDC = RSN_GetObjectDC( target, false )
if oDC ~= nil then
if oDC:Get_CardPtr(167) ~= nil and oDC:Get_CardPtr(167) ~= EffectSource() then
return false
else
return true
end
else
return true
end
else
return false
end
</FILTER_CONDITION>
<PLAY_TIME_ACTION>
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
local oDC = RSN_GetObjectDC( target, true )
oDC:Set_CardPtr( 167, EffectSource() )
end
</PLAY_TIME_ACTION>
-----------------------------------------------------------------------
Song of the Day: 46 and 2 (cover)
Song of the Day: 46 and 2 (cover)
Re: Formal Request Thread
by NeoAnderson » 03 Jan 2014, 23:16
Thanks my dear friend, i was following a similar path with Riiak Object function, but i was trying without Lua Condition, and i had some problem but we made a similar reasoning.MC Brodie wrote:This card is pretty interesting. I like the art. I tried using Riiak's Object DC functions and this code seemed to work. Since I was only testing a portion of the card the front half of the target definition needs to change but the lua condition and play time action seemed to work. If I understand the card correctly, even if you win the flip and draw a card you still cannot target the spell with another copy of Goblin Artisans. If you use this you might want to use a different compartment ID. I just picked one at random. Also, I think Riiak's Object DCs are cleared when you change zones so you shouldn't need to clear the DC yourself after the artifact spell resolves/is countered.NeoAnderson wrote:3. Do you think is possible to code : Goblin Artisans
I was thinking it can be coded using a datachest, but i am not sure. The main problem is how to check if a card into the stack under your control is already target of another card with the same name of Goblin Artisans.Edit - On a side note, what do the last two parameters of the Lua condition filter actually do (i.e. filter:Add( FE_LUA_CONDITION, 1, EffectController() , EffectDC() ) )? They don't seem like they actually do anything. In all of the cards I've checked the third parameter is always EffectControll() and the fourth is EffectDC(). In one case (Daybreak Coronet) the fourth parameter was not provided. Oddly this card also has 0 for the target ID, filter condition ID and the second parameter of the Lua condition filter. That doesn't seem like it should work.
- | Open
- Code: Select all
<TARGET_DEFINITION id="0">
local filter = ClearFilter()
filter:Add( FE_IS_PERMANENT, true )
filter:Add( FE_CARD_INSTANCE, OP_NOT, EffectSource() )
filter:Add( FE_LUA_CONDITION, 1, EffectController() , EffectDC() )
</TARGET_DEFINITION>
<FILTER_CONDITION id="1">
local target = FilteredCard()
if target ~= nil then
local oDC = RSN_GetObjectDC( target, false )
if oDC ~= nil then
if oDC:Get_CardPtr(167) ~= nil and oDC:Get_CardPtr(167) ~= EffectSource() then
return false
else
return true
end
else
return true
end
else
return false
end
</FILTER_CONDITION>
<PLAY_TIME_ACTION>
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
local oDC = RSN_GetObjectDC( target, true )
oDC:Set_CardPtr( 167, EffectSource() )
end
</PLAY_TIME_ACTION>
Anyway i tried your code and i also change the target part to make it compliant with the card, it seems to work. I think is normal that the Goblin can target more than one time the same artifact spell, because the text says "another creature named Goblin Artisans" so if this is ok, the card works.
Here you can find the final code :
- Goblin Artisans | Open
- Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
<FILENAME text="GOBLIN_ARTISANS_2844" />
<CARDNAME text="GOBLIN_ARTISANS" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Goblin Artisans]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Goblin Artisans]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Goblin Artisans]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Goblin Artisans]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Goblin Artisans]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Goblin Artisans]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Goblin Artisans]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Goblin Artisans]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Goblin Artisans]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="2844" />
<ARTID value="2844" />
<ARTIST name="Julie Baroh" />
<CASTING_COST cost="{R}" />
<TYPE metaname="Creature" />
<SUB_TYPE metaname="Goblin" />
<SUB_TYPE metaname="Artificer" />
<EXPANSION value="AQ" />
<RARITY metaname="U" />
<POWER value="1" />
<TOUGHNESS value="1" />
<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{T}: Flip a coin. If you win the flip, draw a card. If you lose the flip, counter target artifact spell you control that isn’t the target of an ability from another creature named Goblin Artisans.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{T}: Flip a coin. If you win the flip, draw a card. If you lose the flip, counter target artifact spell you control that isn’t the target of an ability from another creature named Goblin Artisans.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{T}: Flip a coin. If you win the flip, draw a card. If you lose the flip, counter target artifact spell you control that isn’t the target of an ability from another creature named Goblin Artisans.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{T}: Flip a coin. If you win the flip, draw a card. If you lose the flip, counter target artifact spell you control that isn’t the target of an ability from another creature named Goblin Artisans.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{T}: Lancia una moneta. Se vinci il lancio, pesca una carta. Se perdi il lancio, neutralizza una magia artefatto che controlli che non è un bersaglio di un'altra creatura Goblin Artisans.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{T}: Flip a coin. If you win the flip, draw a card. If you lose the flip, counter target artifact spell you control that isn’t the target of an ability from another creature named Goblin Artisans.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{T}: Flip a coin. If you win the flip, draw a card. If you lose the flip, counter target artifact spell you control that isn’t the target of an ability from another creature named Goblin Artisans.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{T}: Flip a coin. If you win the flip, draw a card. If you lose the flip, counter target artifact spell you control that isn’t the target of an ability from another creature named Goblin Artisans.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{T}: Flip a coin. If you win the flip, draw a card. If you lose the flip, counter target artifact spell you control that isn’t the target of an ability from another creature named Goblin Artisans.]]></LOCALISED_TEXT>
<COST type="TapSelf" />
<TARGET tag="CARD_QUERY_CHOOSE_SPELL_TO_COUNTER" definition="0" compartment="0" count="1" />
<TARGET_DEFINITION id="0">
local filter = ClearFilter()
filter:SetZone( ZONE_STACK )
filter:Add( FE_TYPE, OP_IS, CARD_TYPE_ARTIFACT )
filter:Add( FE_CONTROLLER, OP_IS, Object():GetPlayer() )
filter:Add( FE_LUA_CONDITION, 1, EffectController() , EffectDC() )
</TARGET_DEFINITION>
<FILTER_CONDITION id="1">
local target = FilteredCard()
if target ~= nil then
local oDC = RSN_GetObjectDC( target, false )
if oDC ~= nil then
if oDC:Get_CardPtr(167) ~= nil and oDC:Get_CardPtr(167) ~= EffectSource() then
return false
else
return true
end
else
return true
end
else
return false
end
</FILTER_CONDITION>
<PLAY_TIME_ACTION>
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
local oDC = RSN_GetObjectDC( target, true )
oDC:Set_CardPtr( 167, EffectSource() )
end
</PLAY_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
EffectController():FlipCoin()
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
if EffectSource() ~= nil then
if EffectController():GetFlipResult() == COIN_FLIP_WIN then
EffectController():DrawCards(1)
else
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
target:CounterSpell()
end
end
end
</RESOLUTION_TIME_ACTION>
</ACTIVATED_ABILITY>
<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>
Battering Ram
Bronze Tablet
Golgothian Sylex
Mishra's War Machine
Primal Clay
Urza's Avenger
Power Artifact
Mishra's Workshop
I think i am not wrong if i say this card cannot be coded, if anyone knows how to code one of these you're welcome to explain.
- NeoAnderson
- Posts: 914
- Joined: 10 Sep 2013, 07:49
- Has thanked: 18 times
- Been thanked: 139 times
Re: Formal Request Thread
by RiiakShiNal » 04 Jan 2014, 14:42
Well, at least you got it figured out and it was something simple. Simple problems often mean simple solutions so in this case simple is good.Coyoto wrote:It works now... it seems that I messed up when repacking the mod![]()
That's right, I tried to make my ObjectDC functions work as similarly to the DotP 2013 ObjectDC() as possible and making it "clear" when a card changes zones is easy because the card pointer to that card becomes nil (allowing that register to be automatically cleared and re-used when necessary).MC Brodie wrote:Also, I think Riiak's Object DCs are cleared when you change zones so you shouldn't need to clear the DC yourself after the artifact spell resolves/is countered.
It is entirely possible to code Golgothian Sylex and once I get the update to manual mana finalized Mishra's Workshop should also be possible.NeoAnderson wrote:I have finished to code The Antiquities set, there are only 8 cards not coded :
Battering Ram
Bronze Tablet
Golgothian Sylex
Mishra's War Machine
Primal Clay
Urza's Avenger
Power Artifact
Mishra's Workshop
I think i am not wrong if i say this card cannot be coded, if anyone knows how to code one of these you're welcome to explain.
Golgothian Sylex is possible because you can filter cards based on card name (not localized name, but the name in the CARDNAME tag). As such you just need to create a filter with all the names of all the cards in the set (and not tokens) and force them to be sacrificed. Relatively simple, but annoying to make.
For Mishra's Workshop I'm working on adding conditions to the mana tokens with a relatively simple way to set those conditions.
Just getting started: Xander9009's DotP 2014 Community Wad
Need a deck builder: DotP 2014 Deck Builder
Problems Modding: DotP 2014 Frequent Modding Mistakes
Need a deck builder: DotP 2014 Deck Builder
Problems Modding: DotP 2014 Frequent Modding Mistakes
- RiiakShiNal
- Programmer
- Posts: 2188
- Joined: 16 May 2011, 21:37
- Has thanked: 75 times
- Been thanked: 497 times
Re: Formal Request Thread
by NeoAnderson » 04 Jan 2014, 15:34
Thanks for your answer my friend, About Mishra's Workshop i understand the situation is similar to the discussion we had about Metamorphosis, so if you will make these modifies to the mana tokens will be more easier to manage cards like these.RiiakShiNal wrote:It is entirely possible to code Golgothian Sylex and once I get the update to manual mana finalized Mishra's Workshop should also be possible.
Golgothian Sylex is possible because you can filter cards based on card name (not localized name, but the name in the CARDNAME tag). As such you just need to create a filter with all the names of all the cards in the set (and not tokens) and force them to be sacrificed. Relatively simple, but annoying to make.
For Mishra's Workshop I'm working on adding conditions to the mana tokens with a relatively simple way to set those conditions.
About Golgothian Sylex i know that solution is the same thing i thought when i was making the Arabian Nights with City in a Bottle, i decided not make it so for a simple reason.
This solution will works only with prefixed card names, so for example that card could work with my set, but if you use another with another mod it can have problems.
Try to think to a card who is part of Antiquities, but also inside other sets, the Card Name should be the same so it will be automatically under the effect of this card also if it shouldn't. Obviously to avoid this issue we could add e suffix to each card name part of a set something like "Card name_XXX" where XXX is the id of the set. But this solution as also bad aspects for example a particular card have interaction with the card : "CardName A". If CardName A, is part of Antiquities, Seventh Edition, Classic Sixth Edition, Fifth Edition, Fourth Edition, Revised Edition, we have to check for CardName A_AQS, CardName A_ED7,.....
You can understand this is not so good for implementation. On the other side if we could have a function who retrieve the Expansion info from the card tag, these kind of cards will be easier to implement.
2. Please could you take a look of my previous post, the one with the discussion with fire about Titania's Song and Reverse Polarity i would receive your opinion.
- NeoAnderson
- Posts: 914
- Joined: 10 Sep 2013, 07:49
- Has thanked: 18 times
- Been thanked: 139 times
Re: Formal Request Thread
by thefiremind » 04 Jan 2014, 15:55
Actually, in DotP there's no expansion: we write it in the card's XML but the game doesn't use it for anything at all. So I'd say you would have the right to reinterpret the text for Golgothian Sylex and City in a Bottle, if you want. If you base those cards on card names, you could imagine them as affecting any card that was in those expansions, no matter where the actual card comes from.NeoAnderson wrote:About Golgothian Sylex i know that solution is the same thing i thought when i was making the Arabian Nights with City in a Bottle, i decided not make it so for a simple reason.
This solution will works only with prefixed card names, so for example that card could work with my set, but if you use another with another mod it can have problems.
Try to think to a card who is part of Antiquities, but also inside other sets, the Card Name should be the same so it will be automatically under the effect of this card also if it shouldn't.
About Titania's Song, I don't know what else to suggest. I was expecting RemoveFromParent to work flawlessly. Maybe the fact that the equipments became creatures interferes with it.
< 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 NeoAnderson » 04 Jan 2014, 16:00
I figured that my friend for this reason i decide to skip the coding of that cardsthefiremind wrote:Actually, in DotP there's no expansion: we write it in the card's XML but the game doesn't use it for anything at all. So I'd say you would have the right to reinterpret the text for Golgothian Sylex and City in a Bottle, if you want. If you base those cards on card names, you could imagine them as affecting any card that was in those expansions, no matter where the actual card comes from.NeoAnderson wrote:About Golgothian Sylex i know that solution is the same thing i thought when i was making the Arabian Nights with City in a Bottle, i decided not make it so for a simple reason.
This solution will works only with prefixed card names, so for example that card could work with my set, but if you use another with another mod it can have problems.
Try to think to a card who is part of Antiquities, but also inside other sets, the Card Name should be the same so it will be automatically under the effect of this card also if it shouldn't.
About Titania's Song, I don't know what else to suggest. I was expecting RemoveFromParent to work flawlessly. Maybe the fact that the equipments became creatures interferes with it.

Ok about Titania's Song, i just made a test, i coded a test card with the abilities :
- to remove from parent target equipment.
- to remove the subtypes and abilities
- to add the creature type
- to add the subtype equipment
I have understand something :
1. When we put onto battlefield a Equipment it is ordered inside the common artifacts.
2. When we equip a creature the first time it seems to change layer and moves behind the creatures layer.
3. If we remove from parent the equipment it is detached, and it returns to the common artifacts layer
4. If we add a creature type to an equipment attached or not the game freeze.
5. If we remove the equipment subtype and then add the creature type it works.
6. if we add the equipment subtype to an creature type the game freeze.
So the only possibility to make this effect works seems the one who require to clear all the subtype equipments before to apply the effect.
With the follow code Titania's Song works
- Code: Select all
<TRIGGERED_ABILITY>
<TRIGGER value="ZONECHANGE_END" simple_qualifier="self" to_zone="ZONE_BATTLEFIELD" from_zone="ZONE_ANY" />
<FILTER filter_id="0">
local filter = ClearFilter()
filter:Add( FE_SUBTYPE, OP_IS, ARTIFACT_TYPE_EQUIPMENT )
</FILTER>
<CONTINUOUS_ACTION layer="4" filter_id="0">
if FilteredCard() ~= nil then
local characteristics = FilteredCard():GetCurrentCharacteristics()
local card_type = characteristics:CardType_GetWritable()
local subtype = characteristics:SubType_GetWritable()
characteristics:SubType_GetWritable() subtype:ClearAllOfType( CARD_TYPE_ARTIFACT )
end
</CONTINUOUS_ACTION>
<CONTINUOUS_ACTION layer="6">
if FilteredCard() ~= nil then
local characteristics = FilteredCard():GetCurrentCharacteristics()
local characteristics = target:GetCurrentCharacteristics()
characteristics:LoseAllAbilities()
end
</CONTINUOUS_ACTION>
<DURATION>
return MTG():GetStep() == STEP_END_OF_TURN and (EffectSource() == nil)
</DURATION>
</TRIGGERED_ABILITY>
- NeoAnderson
- Posts: 914
- Joined: 10 Sep 2013, 07:49
- Has thanked: 18 times
- Been thanked: 139 times
Re: Formal Request Thread
by AngelLestat » 04 Jan 2014, 20:01
I never made a request, so I dont know just the right way to do it.
In my case, I will just recommend some cards to have in mind that will open new strategies.
Iron Maiden
Ebony Owl Netsuke
It will be fun to combine them with Prosperity and all kind of rise spells like Evacuation.
Distorting Lens
Also fun to combine with some spells already in game like Red Elemental Blast or other protection color mechanics.
I dont see many control creatures in blue in any mod.
Overtaker
Dominating Licid
Barrin, Master Wizard
For last. One enchant:
Trade Routes
Also good in any kind of deck. Maybe to build a deck of lands who transform into creatures with Amulet of Vigor and Exploration
There are just some few cards that will open new kind of decks.
In my case, I will just recommend some cards to have in mind that will open new strategies.
Iron Maiden
Ebony Owl Netsuke
It will be fun to combine them with Prosperity and all kind of rise spells like Evacuation.
Distorting Lens
Also fun to combine with some spells already in game like Red Elemental Blast or other protection color mechanics.
I dont see many control creatures in blue in any mod.
Overtaker
Dominating Licid
Barrin, Master Wizard
For last. One enchant:
Trade Routes
Also good in any kind of deck. Maybe to build a deck of lands who transform into creatures with Amulet of Vigor and Exploration
There are just some few cards that will open new kind of decks.
- AngelLestat
- Posts: 68
- Joined: 02 Sep 2012, 23:09
- Has thanked: 1 time
- Been thanked: 1 time
Re: Formal Request Thread
by NeoAnderson » 04 Jan 2014, 22:19
I coded some of these cards :AngelLestat wrote:I never made a request, so I dont know just the right way to do it.
In my case, I will just recommend some cards to have in mind that will open new strategies.
Iron Maiden
Ebony Owl Netsuke
It will be fun to combine them with Prosperity and all kind of rise spells like Evacuation.
Distorting Lens
Also fun to combine with some spells already in game like Red Elemental Blast or other protection color mechanics.
I dont see many control creatures in blue in any mod.
Overtaker
Dominating Licid
Barrin, Master Wizard
For last. One enchant:
Trade Routes
Also good in any kind of deck. Maybe to build a deck of lands who transform into creatures with Amulet of Vigor and Exploration
There are just some few cards that will open new kind of decks.
Iron Maiden
Ebony Owl Netsuke
Prosperity
About Evacuation you can find it into TFM mod.
- Iron Maiden | Open
- Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
<FILENAME text="IRON_MAIDEN_9705" />
<CARDNAME text="IRON_MAIDEN" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Iron Maiden]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Vierge de fer]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Doncella de hierro]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Eiserne Jungfrau]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Vergine di Ferro]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Iron Maiden]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Iron Maiden]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Iron Maiden]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Donzela de Ferro]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="9705" />
<ARTID value="9705" />
<ARTIST name="Tom Wänerstrand" />
<CASTING_COST cost="{3}" />
<FLAVOURTEXT>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[The maiden is a jealous lover.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[The maiden is a jealous lover.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[The maiden is a jealous lover.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[The maiden is a jealous lover.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[The maiden is a jealous lover.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[The maiden is a jealous lover.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[The maiden is a jealous lover.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[The maiden is a jealous lover.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[The maiden is a jealous lover.]]></LOCALISED_TEXT>
</FLAVOURTEXT>
<TYPE metaname="Artifact" />
<EXPANSION value="GU" />
<RARITY metaname="R" />
<TRIGGERED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[At the beginning of each opponent’s upkeep, Iron Maiden deals X damage to that player, where X is the number of cards in his or her hand minus 4.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[At the beginning of each opponent’s upkeep, Iron Maiden deals X damage to that player, where X is the number of cards in his or her hand minus 4.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[At the beginning of each opponent’s upkeep, Iron Maiden deals X damage to that player, where X is the number of cards in his or her hand minus 4.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Hat Dein Gegner während seiner Versorgungsphase mehr als vier Karten auf der Hand, fügt ihm die Eiserne Jungfrau für jede zusätzliche Karte 1 Schadenspunkt zu.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[All'inizio della fase di mantenimento di ogni avversario, la Vergine di Ferro infligge X danni a quel giocatore, dove X è pari la numero di carte che ha in mano meno 4.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[At the beginning of each opponent’s upkeep, Iron Maiden deals X damage to that player, where X is the number of cards in his or her hand minus 4.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[At the beginning of each opponent’s upkeep, Iron Maiden deals X damage to that player, where X is the number of cards in his or her hand minus 4.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[At the beginning of each opponent’s upkeep, Iron Maiden deals X damage to that player, where X is the number of cards in his or her hand minus 4.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[At the beginning of each opponent’s upkeep, Iron Maiden deals X damage to that player, where X is the number of cards in his or her hand minus 4.]]></LOCALISED_TEXT>
<TRIGGER value="BEGINNING_OF_PLAYERS_STEP">
if (MTG():GetStep() == STEP_UPKEEP) and (TriggerPlayer():GetTeam() ~= EffectController():GetTeam()) and (TriggerPlayer():Hand_Count() > 4) then
return true
else
return false
end
</TRIGGER>
<RESOLUTION_TIME_ACTION>
if EffectSource() ~= nil then
local player = TriggerPlayer()
if player ~= nil then
local damage = ( player:Hand_Count() - 4)
EffectSourceLKI():DealDamageTo(damage, player)
end
end
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
</CARD_V2>
IRON_MAIDEN_9705.rar
- Card + tdx
- (362.38 KiB) Downloaded 231 times
- Ebony Owl Netsuke | Open
- Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
<FILENAME text="EBONY_OWL_NETSUKE_88799" />
<CARDNAME text="EBONY_OWL_NETSUKE" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Ebony Owl Netsuke]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Netsuke de hibou en ébène]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Netsuke de búho de ébano]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Eulen-Netsuke aus Ebenholz]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Netsuke Gufo d’Ebano]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[黒檀の梟の根付]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Ebony Owl Netsuke]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Ebony Owl Netsuke]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Netsuke de Coruja de Ébano]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="88799" />
<ARTID value="88799" />
<ARTIST name="Tim Hildebrandt" />
<CASTING_COST cost="{2}" />
<FLAVOURTEXT>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[“Owls filled the skies during the Kami War, harbingers of darker times to come.”
—The History of Kamigawa]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[« Pendant la Guerre des kami, les hiboux, oiseaux de mauvais augures, emplissèrent le ciel. »
—L’histoire de Kamigawa]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[“Los búhos llenaron los cielos durante la guerra con los kami, heraldos de tiempos oscuros que vendrían.”
—La historia de Kamigawa]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[„Eulen verdunkelten den Himmel während des Kami-Kriegs, Botschafter von dunklen Zeiten, die kommen würden.”
—Die Geschichte von Kamigawa]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[“Durante la Guerra dei Kami i gufi popolavano i cieli, annunciando in questo modo l’arrivo di tempi oscuri.”
—La Storia di Kamigawa]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[神の乱の最中、梟が空を埋め、暗黒の時が来ることの先触れとなった。
――神河史書]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[“Owls filled the skies during the Kami War, harbingers of darker times to come.”
—The History of Kamigawa]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[“Owls filled the skies during the Kami War, harbingers of darker times to come.”
—The History of Kamigawa]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[“Durante a Guerra dos Kamis, as corujas enchiam os céus, qual arautos de tempos mais sombrios que virão.”
— A História de Kamigawa]]></LOCALISED_TEXT>
</FLAVOURTEXT>
<TYPE metaname="Artifact" />
<EXPANSION value="SOK" />
<RARITY metaname="U" />
<TRIGGERED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[At the beginning of each opponent’s upkeep, if that player has seven or more cards in hand, Ebony Owl Netsuke deals 4 damage to him or her.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Au début de l’entretien de chaque adversaire, si ce joueur a au moins sept cartes en main, le Netsuke de hibou en ébène lui inflige 4 blessures.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Al comienzo del mantenimiento de cada oponente, si ese jugador tiene siete o más cartas en la mano, el Netsuke de búho de ébano le hace 4 puntos de daño.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Falls zu Beginn des Versorgungssegments eines deiner Gegner dieser Spieler sieben oder mehr Karten auf der Hand hat, fügt ihm der Eulen-Netsuke aus Ebenholz 4 Schadenspunkte zu.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[All’inizio del mantenimento di ogni avversario, se quel giocatore ha sette o più carte in mano, il Netsuke Gufo d’Ebano gli infligge 4 danni.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[各プレイヤーのアップキープの開始時に、そのプレイヤーの手札のカードが7枚以上である場合、黒檀の梟の根付はそのプレイヤーに4点のダメージを与える。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[At the beginning of each opponent’s upkeep, if that player has seven or more cards in hand, Ebony Owl Netsuke deals 4 damage to him or her.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[At the beginning of each opponent’s upkeep, if that player has seven or more cards in hand, Ebony Owl Netsuke deals 4 damage to him or her.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[No início da manutenção de cada oponente, se aquele jogador tem sete ou mais cards em sua mão, Netsuke de Coruja de Ébano causa 4 pontos de dano a ele.]]></LOCALISED_TEXT>
<TRIGGER value="BEGINNING_OF_PLAYERS_STEP">
if (MTG():GetStep() == STEP_UPKEEP) and (TriggerPlayer():GetTeam() ~= EffectController():GetTeam()) and (TriggerPlayer():Hand_Count() > 6) then
return true
else
return false
end
</TRIGGER>
<RESOLUTION_TIME_ACTION>
if EffectSource() ~= nil then
local player = TriggerPlayer()
if player ~= nil and (player:Hand_Count() > 6) then
EffectSourceLKI():DealDamageTo(4, player)
end
end
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
</CARD_V2>
EBONY_OWL_NETSUKE_88799.zip
- Card + tdx
- (366.3 KiB) Downloaded 245 times
- Prosperity | Open
- Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
<FILENAME text="PROSPERITY_376460" />
<CARDNAME text="PROSPERITY" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Prosperity]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Prospérité]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Prosperidad]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Gedeihen]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Prosperità]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[繁栄]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Prosperity]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Prosperity]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Prosperity]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="376460" />
<ARTID value="376460" />
<ARTIST name="Nic Klein" />
<CASTING_COST cost="{X}{U}" />
<FLAVOURTEXT>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[“True riches are found in the mazes of the mind.”
—Tamiyo, the Moon Sage]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[« Les vraies richesses se cachent dans les méandres de l’esprit. »
—Tamiyo, le sage de la lune]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[“La auténtica riqueza se encuentra en los laberintos de la mente”.—Tamiyo, la Sabia de la Luna]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[„Wahre Reichtümer finden sich im Irrgarten des Geistes.”
—Tamiyo die Mondweise]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[“Le vere ricchezze si trovano nei labirinti della mente.”
—Tamiyo, Saggia della Luna]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[「本当の富とは、心の迷路の奥深くで見つかるものなのです。」
――月の賢者タミヨウ]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[“True riches are found in the mazes of the mind.”
—Tamiyo, the Moon Sage]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[“True riches are found in the mazes of the mind.”
—Tamiyo, the Moon Sage]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[“True riches are found in the mazes of the mind.”
—Tamiyo, the Moon Sage]]></LOCALISED_TEXT>
</FLAVOURTEXT>
<TYPE metaname="Sorcery" />
<EXPANSION value="C13" />
<RARITY metaname="U" />
<SPELL_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Each player draws X cards.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Chaque joueur pioche X cartes.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Cada jugador roba X cartas.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Jeder Spieler zieht X Karten.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Ogni giocatore pesca X carte.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[各プレイヤーはそれぞれカードをX枚引く。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Each player draws X cards.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Each player draws X cards.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Each player draws X cards.]]></LOCALISED_TEXT>
<RESOLUTION_TIME_ACTION>
local numPlayers = MTG():GetNumberOfPlayers()
local NumCardsToDraw = GetEffectX()
for i = 0, (numPlayers-1) do
local player = MTG():GetNthPlayer( i )
if player ~= nil then
player:DrawCards( NumCardsToDraw )
end
end
</RESOLUTION_TIME_ACTION>
</SPELL_ABILITY>
</CARD_V2>
PROSPERITY_376460.zip
- Card + tdx
- (591.91 KiB) Downloaded 253 times
- Overtaker | Open
- Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
<FILENAME text="OVERTAKER_19666" />
<CARDNAME text="OVERTAKER" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Overtaker]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Overtaker]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Overtaker]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Overtaker]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Overtaker]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Overtaker]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Overtaker]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Overtaker]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Overtaker]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="19666" />
<ARTID value="19666" />
<ARTIST name="Clyde Caldwell" />
<CASTING_COST cost="{1}{U}" />
<FLAVOURTEXT>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[“It’s no challenge to master a Mercadian.”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[“It’s no challenge to master a Mercadian.”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[“It’s no challenge to master a Mercadian.”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[“It’s no challenge to master a Mercadian.”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[“It’s no challenge to master a Mercadian.”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[“It’s no challenge to master a Mercadian.”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[“It’s no challenge to master a Mercadian.”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[“It’s no challenge to master a Mercadian.”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[“It’s no challenge to master a Mercadian.”]]></LOCALISED_TEXT>
</FLAVOURTEXT>
<TYPE metaname="Creature" />
<SUB_TYPE metaname="Merfolk" />
<SUB_TYPE metaname="Spellshaper" />
<EXPANSION value="MM" />
<RARITY metaname="R" />
<POWER value="1" />
<TOUGHNESS value="1" />
<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{3}{U}, {T}, Discard a card: Untap target creature and gain control of it until end of turn. That creature gains haste until end of turn.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{3}{U}, {T}, Discard a card: Untap target creature and gain control of it until end of turn. That creature gains haste until end of turn.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{3}{U}, {T}, Discard a card: Untap target creature and gain control of it until end of turn. That creature gains haste until end of turn.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{3}{U}, {T}, Discard a card: Untap target creature and gain control of it until end of turn. That creature gains haste until end of turn.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{3}{U}, {T}, Scarta una carta: STAPpa una creatura bersaglio e guadagnane il controllo fino alla fine del turno. Quella creatura guadagna rapidità fino alla fine del turno.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{3}{U}, {T}, Discard a card: Untap target creature and gain control of it until end of turn. That creature gains haste until end of turn.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{3}{U}, {T}, Discard a card: Untap target creature and gain control of it until end of turn. That creature gains haste until end of turn.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{3}{U}, {T}, Discard a card: Untap target creature and gain control of it until end of turn. That creature gains haste until end of turn.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{3}{U}, {T}, Discard a card: Untap target creature and gain control of it until end of turn. That creature gains haste until end of turn.]]></LOCALISED_TEXT>
<COST mana_cost="{3}{U}" type="Mana" />
<COST type="Discard" definition="0" compartment="0" query_tag="CARD_QUERY_CHOOSE_CARD_TO_DISCARD" item_count="1" />
<COST type="TapSelf" />
<TARGET tag="CARD_QUERY_CHOOSE_CREATURE_TO_GAIN_CONTROL" definition="1" compartment="1" count="1" />
<COST_DEFINITION id="0">
local filter = ClearFilter()
filter:SetZone( ZONE_HAND, EffectController() )
</COST_DEFINITION>
<TARGET_DEFINITION id="1">
local filter = ClearFilter()
filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
</TARGET_DEFINITION>
<CONTINUOUS_ACTION layer="2">
local card = EffectDC():Get_Targets(1) and EffectDC():Get_Targets(1):Get_CardPtr(0)
if card ~= nil then
card:SetController(EffectController())
end
</CONTINUOUS_ACTION>
<RESOLUTION_TIME_ACTION>
local target = EffectDC():Get_Targets(1) and EffectDC():Get_Targets(1):Get_CardPtr(0)
if target ~= nil then
target:Untap()
end
</RESOLUTION_TIME_ACTION>
<CONTINUOUS_ACTION layer="6">
local target = EffectDC():Get_Targets(1) and EffectDC():Get_Targets(1):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(1) and EffectDC():Get_Targets(1):Get_CardPtr(0)
if target ~= nil then
local characteristics = target:GetCurrentCharacteristics()
characteristics:AI_SetWorthless()
end
</CONTINUOUS_ACTION>
<DURATION simple_duration="UntilEOT" />
<AI_SIMPLIFIED_TARGETING compartment="1" hint="HINT_ENEMY_ONLY" />
</ACTIVATED_ABILITY>
<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>
OVERTAKER_19666.zip
- Card + tdx
- (535.11 KiB) Downloaded 224 times
- Barrin, Master Wizard | Open
- Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
<FILENAME text="BARRIN_MASTER_WIZARD_9856" />
<CARDNAME text="BARRIN_MASTER_WIZARD" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Barrin, Master Wizard]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Barrin, Master Wizard]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Barrin, Master Wizard]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Barrin, Master Wizard]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Barrin, Master Wizard]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Barrin, Master Wizard]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Barrin, Master Wizard]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Barrin, Master Wizard]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Barrin, Master Wizard]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="9856" />
<ARTID value="9856" />
<ARTIST name="Michael Sutfin" />
<CASTING_COST cost="{1}{U}{U}" />
<FLAVOURTEXT>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[“Knowledge is no more expensive than ignorance, and at least as satisfying.”
—Barrin, master wizard]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[“Knowledge is no more expensive than ignorance, and at least as satisfying.”
—Barrin, master wizard]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[“Knowledge is no more expensive than ignorance, and at least as satisfying.”
—Barrin, master wizard]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[“Knowledge is no more expensive than ignorance, and at least as satisfying.”
—Barrin, master wizard]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[“Knowledge is no more expensive than ignorance, and at least as satisfying.”
—Barrin, master wizard]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[“Knowledge is no more expensive than ignorance, and at least as satisfying.”
—Barrin, master wizard]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[“Knowledge is no more expensive than ignorance, and at least as satisfying.”
—Barrin, master wizard]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[“Knowledge is no more expensive than ignorance, and at least as satisfying.”
—Barrin, master wizard]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[“Knowledge is no more expensive than ignorance, and at least as satisfying.”
—Barrin, master wizard]]></LOCALISED_TEXT>
</FLAVOURTEXT>
<SUPERTYPE metaname="Legendary" />
<TYPE metaname="Creature" />
<SUB_TYPE metaname="Human" />
<SUB_TYPE metaname="Wizard" />
<EXPANSION value="UZ" />
<RARITY metaname="R" />
<POWER value="1" />
<TOUGHNESS value="1" />
<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{2}, Sacrifice a permanent: Return target creature to its owner’s hand.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{2}, Sacrifice a permanent: Return target creature to its owner’s hand.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{2}, Sacrifice a permanent: Return target creature to its owner’s hand.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{2}, Sacrifice a permanent: Return target creature to its owner’s hand.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{2}, Sacrifica un permanente: Il proprietario riprende in mano una creatura bersaglio.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{2}, Sacrifice a permanent: Return target creature to its owner’s hand.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{2}, Sacrifice a permanent: Return target creature to its owner’s hand.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{2}, Sacrifice a permanent: Return target creature to its owner’s hand.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{2}, Sacrifice a permanent: Return target creature to its owner’s hand.]]></LOCALISED_TEXT>
<COST mana_cost="{2}" type="Mana" />
<COST type="Sacrifice" definition="0" compartment="0" query_tag="CARD_QUERY_ANNILHILATOR_CHOOSE_A_PERMANENT_TO_SACRIFICE" item_count="1" />
<COST_DEFINITION id="0">
local filter = ClearFilter()
filter:Add( FE_IS_PERMANENT, true)
</COST_DEFINITION>
<TARGET tag="CARD_QUERY_CHOOSE_CREATURE_TO_PUT_INTO_HAND" 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 target = EffectDC():Get_Targets(1):Get_CardPtr(0)
if target ~= nil then
target:PutInHand()
end
</RESOLUTION_TIME_ACTION>
<AI_SIMPLIFIED_TARGETING compartment="0" hint="HINT_ENEMY" />
</ACTIVATED_ABILITY>
<SEALED_HEURISTICS is_combat_trick="1" />
<SEALED_HEURISTICS score_modifier="750" />
<AI_AVAILABILITY type="in_response" response_source="1" />
<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="main_1" window_turn="my_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_BASE_SCORE score="600" zone="ZONE_HAND" />
<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>
BARRIN_MASTER_WIZARD_9856.zip
- Card + tdx
- (494.89 KiB) Downloaded 199 times
- NeoAnderson
- Posts: 914
- Joined: 10 Sep 2013, 07:49
- Has thanked: 18 times
- Been thanked: 139 times
Re: Formal Request Thread
by NeoAnderson » 04 Jan 2014, 23:30
Another card requested :
Now i have a question for my skilled friends.
When we have a cost who includes "sacrifice" or "discard" or something similar, and we use <COST type="Discard".....> <COST type="Sacrifice".....>...
When we have a Target block because the effect is applied on a target, there is a way to display the cost query first?
I know that if i remove the target block and i put the code into a resolution block with ChooseItems it will be displayed after the cost query, but this is the only way or there is any tag to order the query priority? Target block have always the higher priority?
- Trade Routes | Open
- Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
<FILENAME text="TRADE_ROUTES_83302" />
<CARDNAME text="TRADE_ROUTES" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Trade Routes]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Routes marchandes]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Rutas comerciales]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Handelsrouten]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Rotte Commerciali]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[交易路]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Trade Routes]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Торговые пути]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Rotas de Comércio]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="83302" />
<ARTID value="83302" />
<ARTIST name="Matt Cavotta" />
<CASTING_COST cost="{1}{U}" />
<FLAVOURTEXT>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[The wise, the righteous, the mighty—the merchant feeds them all.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Sage, juste, puissant — qui que vous soyez, le marchand vous nourrit.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[El comerciante alimenta a todos: al sabio, al justo, al poderoso.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Die Weisen, die Rechtschaffenen, die Mächtigen sie alle könnten ohne den Kaufmann nicht überleben.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Il saggio, il giusto, il potente: sono i mercanti a nutrirli tutti quanti.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[賢き者、正しき者、力ある者――すべてを支えるのは商う者。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[The wise, the righteous, the mighty—the merchant feeds them all.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Мудрого, справедливого, властного всех их кормит торговец.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Os sábios, os justos, os fortes o mercador alimenta a todos.]]></LOCALISED_TEXT>
</FLAVOURTEXT>
<TYPE metaname="Enchantment" />
<EXPANSION value="9ED" />
<RARITY metaname="R" />
<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{1}: Return target land you control to its owner’s hand.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{1} : Renvoyez le terrain ciblé que vous contrôlez dans la main de son propriétaire.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{1}: Regresa la tierra objetivo que controles a la mano de su propietario.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{1}: Bringe ein Land deiner Wahl, das du kontrollierst, auf die Hand seines Besitzers zurück.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{1}: Il proprietario riprende in mano una terra bersaglio che tu controlli.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{1}:あなたがコントロールする土地1つを対象とし、それをオーナーの手札に戻す。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{1}: Return target land you control to its owner’s hand.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{1}: Верните целевую землю, которую вы контролируете, в руку владельца.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{1}: Devolve o terreno alvo que você controla para a mão de seu dono.]]></LOCALISED_TEXT>
<COST mana_cost="{1}" type="Mana" />
<RESOLUTION_TIME_ACTION>
local filter = ClearFilter()
filter:Add( FE_TYPE, OP_IS, CARD_TYPE_LAND )
filter:Add( FE_CONTROLLER, OP_IS, EffectController() )
EffectController():ChooseItem( "CARD_QUERY_CHOOSE_LAND_TO_PUT_INTO_HAND", EffectDC():Make_Targets(0) )
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
if EffectDC() ~= nil then
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
target:PutInHand()
end
end
</RESOLUTION_TIME_ACTION>
</ACTIVATED_ABILITY>
<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{1}, Discard a land card: Draw a card.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{1}, défaussez-vous d’une carte de terrain : Piochez une carte.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{1}, descartar una carta de tierra de tu mano: Roba una carta.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{1}, wirf ein Land aus deiner Hand ab: Ziehe eine Karte.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{1}, Scarta una carta terra: Pesca una carta.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{1}, 土地カードを1枚捨てる:カードを1枚引く。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{1}, Discard a land card: Draw a card.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{1}, Сбросьте карту земли: возьмите карту.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{1}, Descarte um card de terreno: Compre um card.]]></LOCALISED_TEXT>
<COST type="Discard" definition="0" compartment="1" query_tag="CARD_QUERY_CHOOSE_CARD_TO_DISCARD" item_count="1" />
<COST_DEFINITION id="0">
local filter = ClearFilter()
filter:Add( FE_TYPE, OP_IS, CARD_TYPE_LAND )
</COST_DEFINITION>
<RESOLUTION_TIME_ACTION>
EffectController():DrawCards(1)
</RESOLUTION_TIME_ACTION>
</ACTIVATED_ABILITY>
</CARD_V2>
TRADE_ROUTES_83302.zip
- Card + Tdx
- (600.16 KiB) Downloaded 221 times
When we have a cost who includes "sacrifice" or "discard" or something similar, and we use <COST type="Discard".....> <COST type="Sacrifice".....>...
When we have a Target block because the effect is applied on a target, there is a way to display the cost query first?
I know that if i remove the target block and i put the code into a resolution block with ChooseItems it will be displayed after the cost query, but this is the only way or there is any tag to order the query priority? Target block have always the higher priority?
Last edited by NeoAnderson on 05 Jan 2014, 01:40, edited 1 time in total.
- NeoAnderson
- Posts: 914
- Joined: 10 Sep 2013, 07:49
- Has thanked: 18 times
- Been thanked: 139 times
Re: Formal Request Thread
by thefiremind » 05 Jan 2014, 00:01
No, there isn't, because that's the way the game works: choose targets first, pay costs later. Sure, things would work even if you asked for the costs before asking for the targets as long as you still pay the costs later, but you aren't allowed to do that, and to be honest I'm glad you aren't, otherwise it would be confusing. It takes some time to get used to Glare of Subdual asking for the target before asking for the creature to tap as a cost (people don't read the query text everytime), imagine how hard it would be if some cards did it the other way around.NeoAnderson wrote:When we have a cost who includes "sacrifice" or "discard" or something similar, and we use <COST type="Discard".....> <COST type="Sacrifice".....>...
When we have a Target block because the effect is applied on a target, there is a way to display the cost query first?
< 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 NeoAnderson » 05 Jan 2014, 00:23
Thanks a lot Fire, hey have you seen what i made with Titania's Song ?thefiremind wrote:No, there isn't, because that's the way the game works: choose targets first, pay costs later. Sure, things would work even if you asked for the costs before asking for the targets as long as you still pay the costs later, but you aren't allowed to do that, and to be honest I'm glad you aren't, otherwise it would be confusing. It takes some time to get used to Glare of Subdual asking for the target before asking for the creature to tap as a cost (people don't read the query text everytime), imagine how hard it would be if some cards did it the other way around.NeoAnderson wrote:When we have a cost who includes "sacrifice" or "discard" or something similar, and we use <COST type="Discard".....> <COST type="Sacrifice".....>...
When we have a Target block because the effect is applied on a target, there is a way to display the cost query first?
Please let me know if you think my version of Reverse Polarity can be ok.
I also coded the other requested card : Dominating Licid
I would just say this was the first time i coded a card who turns from a creature type to an enchantment aura, so it will be better to have also the opinion of my talented friends, i just want to be sure i haven't miss something or some interactions.
- Dominating Licid | Open
- Code: Select all
<?xml version='1.0' encoding='UTF-8'?>
<CARD_V2 ExportVersion="1">
<FILENAME text="DOMINATING_LICID_5139" />
<CARDNAME text="DOMINATING_LICID" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Dominating Licid]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Litique dominateur]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Lícido dominante]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Beherrschende Zecke]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Licide Dominante]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[Dominating Licid]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Dominating Licid]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Dominating Licid]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Lícide Dominador]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="5139" />
<ARTID value="5139" />
<ARTIST name="Heather Hudson" />
<CASTING_COST cost="{1}{U}{U}" />
<TYPE metaname="Creature" />
<SUB_TYPE metaname="Licid" />
<EXPANSION value="EX" />
<RARITY metaname="R" />
<POWER value="1" />
<TOUGHNESS value="1" />
<STATIC_ABILITY>
<INTRINSIC characteristic="CHARACTERISTIC_HASTE" />
</STATIC_ABILITY>
<STATIC_ABILITY linked_ability_group="1">
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{1}{U}{U}, {T}: Dominating Licid loses this ability and becomes an Aura enchantment with enchant creature. Attach it to target creature. You may pay {U} to end this effect. You control enchanted creature.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{1}{U}{U}, {T}: Dominating Licid loses this ability and becomes an Aura enchantment with enchant creature. Attach it to target creature. You may pay {U} to end this effect. You control enchanted creature.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{1}{U}{U}, {T}: Dominating Licid loses this ability and becomes an Aura enchantment with enchant creature. Attach it to target creature. You may pay {U} to end this effect. You control enchanted creature.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{1}{U}{U}, {T}: Dominating Licid loses this ability and becomes an Aura enchantment with enchant creature. Attach it to target creature. You may pay {U} to end this effect. You control enchanted creature.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{1}{U}{U}, {T}: Il Licide Dominante perde questa abilità e diventa un Incantesimo Aura con Incanta creatura. Incanta una creatura bersaglio. Puoi pagare {U} per terminare questo effetto. Prendi il controllo della creatura incantata.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{1}{U}{U}, {T}: Dominating Licid loses this ability and becomes an Aura enchantment with enchant creature. Attach it to target creature. You may pay {U} to end this effect. You control enchanted creature.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{1}{U}{U}, {T}: Dominating Licid loses this ability and becomes an Aura enchantment with enchant creature. Attach it to target creature. You may pay {U} to end this effect. You control enchanted creature.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{1}{U}{U}, {T}: Dominating Licid loses this ability and becomes an Aura enchantment with enchant creature. Attach it to target creature. You may pay {U} to end this effect. You control enchanted creature.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{1}{U}{U}, {T}: Dominating Licid loses this ability and becomes an Aura enchantment with enchant creature. Attach it to target creature. You may pay {U} to end this effect. You control enchanted creature.]]></LOCALISED_TEXT>
<CONTINUOUS_ACTION layer="6">
if (EffectSource() ~= nil ) then
if Object():GetCardType():Test(CARD_TYPE_CREATURE) then
EffectSource():GetCurrentCharacteristics():GrantAbility(1)
elseif Object():GetSubType():Test( ENCHANTMENT_TYPE_AURA ) then
EffectSource():GetCurrentCharacteristics():GrantAbility(2)
end
end
</CONTINUOUS_ACTION>
<CONTINUOUS_ACTION layer="4">
if LinkedDC():Int_Get(0) == 2 then
local characteristics = EffectSource():GetCurrentCharacteristics()
local card_type = characteristics:CardType_GetWritable()
local sub_type = characteristics:SubType_GetWritable()
sub_type:ClearAllOfType( CARD_TYPE_CREATURE )
card_type:Clear()
card_type:Add( CARD_TYPE_ENCHANTMENT )
sub_type:Add( ENCHANTMENT_TYPE_AURA )
local target = LinkedDC():Get_CardPtr(1)
if target ~= nil and LinkedDC():Int_Get(2) == 1 then
EffectSource():Attach(target)
LinkedDC():Int_Set( 2, 0 )
end
elseif LinkedDC():Int_Get(0) == 1 then
local characteristics = EffectSource():GetCurrentCharacteristics()
local card_type = characteristics:CardType_GetWritable()
local sub_type = characteristics:SubType_GetWritable()
sub_type:ClearAllOfType( CARD_TYPE_ENCHANTMENT )
card_type:Clear()
card_type:Add( CARD_TYPE_CREATURE )
sub_type:Add( CREATURE_TYPE_LICID )
end
</CONTINUOUS_ACTION>
<CONTINUOUS_ACTION layer="2">
if LinkedDC():Int_Get(0) == 2 then
local parent = LinkedDC():Get_CardPtr(1)
if parent ~= nil then
parent:SetController( EffectController() )
end
end
</CONTINUOUS_ACTION>
</STATIC_ABILITY>
<ACTIVATED_ABILITY resource_id="1" linked_ability_group="1" >
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{1}{U}{U}, {T}: Dominating Licid loses this ability and becomes an Aura enchantment with enchant creature. Attach it to target creature.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{1}{U}{U}, {T}: Dominating Licid loses this ability and becomes an Aura enchantment with enchant creature. Attach it to target creature.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{1}{U}{U}, {T}: Dominating Licid loses this ability and becomes an Aura enchantment with enchant creature. Attach it to target creature.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{1}{U}{U}, {T}: Dominating Licid loses this ability and becomes an Aura enchantment with enchant creature. Attach it to target creature.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{1}{U}{U}, {T}: Il Licide Dominante perde questa abilità e diventa un Incantesimo Aura con Incanta creatura. Incanta una creatura bersaglio.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{1}{U}{U}, {T}: Dominating Licid loses this ability and becomes an Aura enchantment with enchant creature. Attach it to target creature.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{1}{U}{U}, {T}: Dominating Licid loses this ability and becomes an Aura enchantment with enchant creature. Attach it to target creature.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{1}{U}{U}, {T}: Dominating Licid loses this ability and becomes an Aura enchantment with enchant creature. Attach it to target creature.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{1}{U}{U}, {T}: Dominating Licid loses this ability and becomes an Aura enchantment with enchant creature. Attach it to target creature.]]></LOCALISED_TEXT>
<COST mana_cost="{1}{U}{U}" type="Mana" />
<COST type="TapSelf" />
<TARGET tag="CARD_QUERY_CHOOSE_CREATURE_TO_ENCHANT" definition="0" compartment="0" count="1" />
<TARGET_DEFINITION id="0">
local filter = ClearFilter()
filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
</TARGET_DEFINITION>
<RESOLUTION_TIME_ACTION>
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
LinkedDC():Set_CardPtr(1, target)
LinkedDC():Int_Set( 0, 2 )
LinkedDC():Int_Set( 2, 1 )
</RESOLUTION_TIME_ACTION>
</ACTIVATED_ABILITY>
<ACTIVATED_ABILITY resource_id="2" linked_ability_group="1" forced_skip="1">
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{U} : End this effect.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{U} : End this effect.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{U} : End this effect.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{U} : End this effect.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{U} : Termina questo effetto.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{U} : End this effect.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{U} : End this effect.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{U} : End this effect.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{U} : End this effect.]]></LOCALISED_TEXT>
<COST mana_cost="{U}" type="Mana" />
<RESOLUTION_TIME_ACTION>
LinkedDC():Clear()
LinkedDC():Int_Set( 0, 1 )
</RESOLUTION_TIME_ACTION>
</ACTIVATED_ABILITY>
<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>
DOMINATING_LICID_5139.zip
- Card + TDX
- (543.55 KiB) Downloaded 194 times
- NeoAnderson
- Posts: 914
- Joined: 10 Sep 2013, 07:49
- Has thanked: 18 times
- Been thanked: 139 times
Re: Formal Request Thread
by nekrose » 05 Jan 2014, 04:47
.
Last edited by nekrose on 08 Jan 2014, 05:00, edited 1 time in total.
Who is online
Users browsing this forum: No registered users and 6 guests