Board index
Programs with AI or Rules Enforcement
Magic: The Gathering - Duels of the Planeswalkers
New MTG Cards and Decks (2010, 2012, 2013, 2014, 2015, Magic Duels)
2014
Programs with AI or Rules Enforcement
Magic: The Gathering - Duels of the Planeswalkers
New MTG Cards and Decks (2010, 2012, 2013, 2014, 2015, Magic Duels)
2014
Formal Request Thread
Moderator: CCGHQ Admins
Re: Formal Request Thread
by Tejahn » 22 Jan 2015, 03:23
Xander9009 , here is the code I have for Yasova Dragonclaw. Thanks for all your help.
- Code: Select all
<TRIGGER value="BEGINNING_OF_PLAYERS_STEP" simple_qualifier="controller">
return MTG():GetStep() == STEP_BEGIN_COMBAT
</TRIGGER>
<COST mana_cost="{1}{h}{h}" type="Mana" />
<TARGET tag="CARD_QUERY_CHOOSE_CREATURE_TO_GAIN_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_TEAM, OP_NOT, EffectController():GetTeam() )
</TARGET_DEFINITION>
<CONTINUOUS_ACTION layer="2">
local card = EffectDC():Get_Targets(0):Get_CardPtr(0)
if card ~= nil then
card:SetController(EffectController())
end
</CONTINUOUS_ACTION>
<RESOLUTION_TIME_ACTION>
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil then
target:Untap()
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 simple_duration="UntilEOT" />
<AI_SIMPLIFIED_TARGETING compartment="0" hint="HINT_ENEMY_ONLY" />
Re: Formal Request Thread
by Xander9009 » 22 Jan 2015, 16:19
I don't know if this will work, but once again, hopefully it gets you close enough to the solution that it's easy to fix if it's messed up. Basically, I used int 0 to store whether or not the ability is used. We can't just check if the target is valid because it asks for a target either way, I think (if that's not the case, then actually the bits I added can be removed and you'll have to let me know what's not working).
Also, I removed the GetTeam condition. According the rules on Act of Treason, it can not only target teammate's creature, but it can even target your own.
Also, I removed the GetTeam condition. According the rules on Act of Treason, it can not only target teammate's creature, but it can even target your own.
- Code: Select all
<TRIGGERED_ABILITY>
<TRIGGER value="BEGINNING_OF_PLAYERS_STEP" simple_qualifier="controller">
return MTG():GetStep() == STEP_BEGIN_COMBAT
</TRIGGER>
<TARGET tag="CARD_QUERY_CHOOSE_CREATURE_TO_GAIN_CONTROL" 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>
EffectDC():Set_Int(0, 0) --Initialize the int to 0 which means the creature's controller shouldn't be changed for some reason so "do nothing"
local effectController = EffectController()
if effectController ~= nil then
if effectController:CanPayResourceCost(1) then
effectController:BeginNewMultipleChoice()
effectController:AddMultipleChoiceAnswer( "CARD_QUERY_YASOVA_DRAGONCLAW_OPTION_PAY" )
effectController:AddMultipleChoiceAnswer( "CARD_QUERY_DONT_USE_THIS_ABILITY" )
effectController:AskMultipleChoiceQuestion( "CARD_QUERY_YASOVA_DRAGONCLAW", TriggerObject() )
end
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local effectController = EffectController()
if effectController:CanPayResourceCost(1) and effectController:GetMultipleChoiceResult() == 0 then
EffectDC():Set_Int(0, 1) -- If the player can pay the cost and chose to do so, set the int to 1 so we know the ability was used.
effectController:PayResourceCost(1)
end
</RESOLUTION_TIME_ACTION>
<CONTINUOUS_ACTION layer="2">
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil and EffectDC():Get_Int(0) == 1 then
target:SetController(EffectController())
end
</CONTINUOUS_ACTION>
<RESOLUTION_TIME_ACTION>
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil and EffectDC():Get_Int(0) == 1 then
target:Untap()
end
</RESOLUTION_TIME_ACTION>
<CONTINUOUS_ACTION layer="6">
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil and EffectDC():Get_Int(0) == 1 then
target:GetCurrentCharacteristics():Bool_Set( CHARACTERISTIC_HASTE, 1 )
end
</CONTINUOUS_ACTION>
<CONTINUOUS_ACTION layer="8">
local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
if target ~= nil and EffectDC():Get_Int(0) == 1 then
target:GetCurrentCharacteristics():AI_SetWorthless()
end
</CONTINUOUS_ACTION>
<DURATION simple_duration="UntilEOT" />
<AI_SIMPLIFIED_TARGETING compartment="0" hint="HINT_ENEMY_ONLY" />
</TRIGGERED_ABILITY>
<UTILITY_ABILITY resource_id="1">
<COST mana_cost="{1}{h}{h}" type="Mana" />
</UTILITY_ABILITY>
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
-

Xander9009 - Programmer
- Posts: 2905
- Joined: 29 Jun 2013, 07:44
- Location: Indiana, United States
- Has thanked: 121 times
- Been thanked: 445 times
Re: Formal Request Thread
by nekrose » 24 Jan 2015, 02:27
Hello again everyone , I've returned to humbly request 3 cards today - if any are possible to code, that is. I'm looking for Second Sight, Soul Conduit, and Lim-Dul's Vault. Cheers and thanks so much for your consideration :=}
Re: Formal Request Thread
by Xander9009 » 24 Jan 2015, 08:26
nekrose wrote:Hello again everyone , I've returned to humbly request 3 cards today - if any are possible to code, that is. I'm looking for Second Sight, Soul Conduit, and Lim-Dul's Vault. Cheers and thanks so much for your consideration :=}
- Second Sight | Open
- Code: Select all
<?xml version="1.0"?>
<CARD_V2 ExportVersion="1">
<FILENAME text="SECOND_SIGHT_43510" />
<CARDNAME text="SECOND_SIGHT" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Second Sight]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Double vue]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Segunda vista]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Zweites Gesicht]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Seconda Vista]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[洞察力]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Second Sight]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Second Sight]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Segunda Vista]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-CN"><![CDATA[千里眼]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-HK"><![CDATA[千里眼]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="43510" />
<ARTID value="43510" />
<ARTIST name="Luca Zontini" />
<CASTING_COST cost="{2}{U}" />
<TYPE metaname="Instant" />
<EXPANSION value="DST" />
<RARITY metaname="U" />
<SPELL_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Choose one —]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Choisissez l’un —]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Elige uno —]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Bestimme eines —]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Scegli una delle opzioni seguenti —]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[以下の2つから1つを選ぶ。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Choose one —]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Choose one —]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Escolha um —]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-CN"><![CDATA[选择一项~]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-HK"><![CDATA[选择一项~]]></LOCALISED_TEXT>
<MODE_SELECT tag="MODE_CHOOSE_ONE">
<MODE tag="CARD_QUERY_SECOND_SIGHT_MODE_1_OPPONENT" index="1" />
<MODE tag="CARD_QUERY_SAVAGE_BEATING_MODE_2_PLAYER" index="2" />
</MODE_SELECT>
<TARGET tag="CARD_QUERY_CHOOSE_PLAYER" definition="0" compartment="0" count="1" mode="1" />
<TARGET_DEFINITION id="0">
local filter = ClearFilter()
filter:SetFilterType( FILTER_TYPE_PLAYERS )
</TARGET_DEFINITION>
<RESOLUTION_TIME_ACTION mode="1">
local filter = ClearFilter()
local effectController = EffectController()
local target = EffectDC():Get_Targets(0): Get_PlayerPtr(0)
local number = 5
if number > 0 then
filter:SetZone( ZONE_LIBRARY, target )
filter:SetPortion( number )
effectController:SetItemCount( number )
for i = 0, (number-1) do
effectController:SetItemPrompt( i, "CARD_QUERY_CHOOSE_CARD_TO_PUT_ONTO_LIBRARY" )
end
effectController:ChooseItems( EffectDC():Make_Targets(1) )
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION mode="1">
local number = 5
if number > 0 then
local target_array = {}
for i = 0, (number-1) do
target_array[i] = EffectDC():Get_Targets(1):Get_CardPtr(i)
end
for i = 0, (number-1) do
if target_array[i] ~= nil then
target_array[i]:PutOnTopOfLibrary()
end
end
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION mode="2">
local filter = ClearFilter()
local effectController = EffectController()
local number = 5
if number > 0 then
filter:SetZone( ZONE_LIBRARY, effectController )
filter:SetPortion( number )
effectController:SetItemCount( number )
for i = 0, (number-1) do
effectController:SetItemPrompt( i, "CARD_QUERY_CHOOSE_CARD_TO_PUT_ONTO_LIBRARY" )
end
effectController:ChooseItems( EffectDC():Make_Targets(1) )
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION mode="2">
local number = 5
if number > 0 then
local target_array = {}
for i = 0, (number-1) do
target_array[i] = EffectDC():Get_Targets(1):Get_CardPtr(i)
end
for i = 0, (number-1) do
if target_array[i] ~= nil then
target_array[i]:PutOnTopOfLibrary()
end
end
end
</RESOLUTION_TIME_ACTION>
</SPELL_ABILITY>
<SPELL_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[• Look at the top five cards of target opponent’s library, then put them back in any order.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[• Regardez les cinq cartes du dessus de la bibliothèque de l’adversaire ciblé, puis remettez-les dans n’importe quel ordre.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[• Mira las primeras cinco cartas de la parte superior de la biblioteca del oponente objetivo y luego devuélvelas en cualquier orden.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[• Schaue dir die obersten fünf Karten der Bibliothek eines Gegners deiner Wahl an und lege sie in beliebiger Reihenfolge zurück.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[• Guarda le prime cinque carte del grimorio di un avversario bersaglio, poi rimettile a posto nell’ordine che preferisci]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[• 対戦相手1人を対象とし、そのプレイヤーのライブラリーの一番上から5枚のカードを見る。その後、それらのカードを望む順番で元に戻す。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[• Look at the top five cards of target opponent’s library, then put them back in any order.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[• Look at the top five cards of target opponent’s library, then put them back in any order.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[• Olhe os cinco cards do topo do grimório do oponente alvo e depois coloque-os de volta em qualquer ordem.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-CN"><![CDATA[• 检视目标对手牌库顶的五张牌,再将它们以任意顺序放回。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-HK"><![CDATA[• 检视目标对手牌库顶的五张牌,再将它们以任意顺序放回。]]></LOCALISED_TEXT>
</SPELL_ABILITY>
<SPELL_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[• Look at the top five cards of your library, then put them back in any order.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[• Regardez les cinq cartes du dessus de votre bibliothèque, puis remettez-les dans n’importe quel ordre.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[• Mira las primeras cinco cartas de la parte superior de tu biblioteca y luego devuélvelas en cualquier orden.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[• Schaue dir die obersten fünf Karten deiner Bibliothek an und lege sie in beliebiger Reihenfolge zurück.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[• Oppure guarda le prime cinque carte del tuo grimorio, poi rimettile a posto nell’ordine che preferisci.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[• あなたのライブラリーの一番上から5枚のカードを見る。その後、それらのカードを望む順番で元に戻す。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[• Look at the top five cards of your library, then put them back in any order.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[• Look at the top five cards of your library, then put them back in any order.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[• Olhe os cinco cards do topo de seu grimório e depois coloque-os de volta em qualquer ordem.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-CN"><![CDATA[• 或检视你牌库顶的五张牌,再将它们以任意顺序放回。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-HK"><![CDATA[• 或检视你牌库顶的五张牌,再将它们以任意顺序放回。]]></LOCALISED_TEXT>
</SPELL_ABILITY>
<UTILITY_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Entwine {U}]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Union {U}]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Entrelazar {U}.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Verflechtung {U}]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Intrecciare {U}]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[双呪 {U}]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[엮어내기 {U}]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Сплетение {U}]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Entrelaçar {U}]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-CN"><![CDATA[打包{U}]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-HK"><![CDATA[打包{U}]]></LOCALISED_TEXT>
<COST mana_cost="{U}" type="Mana" />
<ABILITY_TEXT tag="CARD_QUERY_ENTWINE_1_R" />
</UTILITY_ABILITY>
<AUTHOR><![CDATA[Xander9009]]></AUTHOR>
<EDITORS><![CDATA[Xander9009]]></EDITORS>
<DATE><![CDATA[23-01-15]]></DATE>
</CARD_V2>
- Soul Conduit | Open
- Code: Select all
<?xml version="1.0"?>
<CARD_V2 ExportVersion="1">
<FILENAME text="SOUL_CONDUIT_CW_233048" />
<CARDNAME text="SOUL_CONDUIT" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Soul Conduit]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Conduit d’âme]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Conducto de almas]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Seelenleitung]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Condotto delle Anime]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[魂の導管]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Soul Conduit]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Проводник Души]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Conduíte da Alma]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-CN"><![CDATA[灵魂渠道]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-HK"><![CDATA[靈魂渠道]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="233048" />
<ARTID value="CW233048" />
<ARTIST name="Brad Rigney" />
<CASTING_COST cost="{6}" />
<FLAVOURTEXT>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[“You have an unhealthy attachment to your selfhood. I can help you with that.”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[« Vous avez un attachement malsain à votre identité. Je peux vous aider à vous en débarrasser. »]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[“Tienes un apego enfermizo por tu individualidad. Puedo ayudarte con eso.”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[„Du hast eine ungesunde Anhänglichkeit an dein Selbstsein. Aber da kann ich dir helfen.”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[“Hai un attaccamento morboso al tuo egotismo. Posso aiutarti a risolvere il problema.”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[「お前は、自我に不健全な愛着があるようだ。 私が直してやろう。」]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[“You have an unhealthy attachment to your selfhood. I can help you with that.”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[«У тебя нездоровая привязанность к собственной персоне. Я могу помочь тебе с ней справиться».]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[“Você tem uma conexão doentia com sua individualidade. Eu posso ajudá-o a resolver isso.”]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-CN"><![CDATA[「你的自我有着不健康的附加物。 我可以帮得上忙。」]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-HK"><![CDATA[「你的自我有著不健康的附加物。 我可以幫得上忙。」]]></LOCALISED_TEXT>
</FLAVOURTEXT>
<TYPE metaname="Artifact" />
<EXPANSION value="NPH" />
<RARITY metaname="R" />
<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{6}, {T}: Two target players exchange life totals.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[{6}, {T} : Deux joueurs ciblés échangent leur total de points de vie.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[{6}, {T}: Dos jugadores objetivo intercambian su total de vidas.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[{6}, {T}: Zwei Spieler deiner Wahl tauschen ihren Lebenspunktestand.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[{6}, {T}: Due giocatori bersaglio si scambiano i punti vita.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[{6}, {T}:プレイヤー2人を対象とし、それらのプレイヤーのライフの総量を交換する。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[{6}, {T}: Two target players exchange life totals.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[{6}, {T}: два целевых игрока обмениваются количеством жизней.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[{6}, {T}: Dois jogadores alvo permutam seus totais de pontos de vida.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-CN"><![CDATA[{6},{T}:两位目标牌手彼此交换总生命。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-HK"><![CDATA[{6},{T}:兩位目標玩家彼此交換總生命。]]></LOCALISED_TEXT>
<COST mana_cost="{6}" type="Mana" />
<COST type="TapSelf" />
<TARGET tag="CARD_QUERY_CHOOSE_PLAYER" definition="0" compartment="0" count="2" />
<TARGET_DEFINITION id="0">
local filter = ClearFilter()
filter:SetFilterType( FILTER_TYPE_PLAYERS )
</TARGET_DEFINITION>
<RESOLUTION_TIME_ACTION>
local target_1 = EffectDC():Get_Targets(0):Get_PlayerPtr(0)
local target_2 = EffectDC():Get_Targets(0):Get_PlayerPtr(1)
if ( target_1 ~= nil and target_2 ~= nil ) then
local lifetemp = target_1:GetLifeTotal()
target_1:SetLifeTotal(target_2:GetLifeTotal())
target_2:SetLifeTotal(lifetemp)
end
</RESOLUTION_TIME_ACTION>
</ACTIVATED_ABILITY>
<AUTHOR><![CDATA[Xander9009]]></AUTHOR>
<EDITORS><![CDATA[Xander9009]]></EDITORS>
<DATE><![CDATA[23-01-15]]></DATE>
</CARD_V2>
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
-

Xander9009 - Programmer
- Posts: 2905
- Joined: 29 Jun 2013, 07:44
- Location: Indiana, United States
- Has thanked: 121 times
- Been thanked: 445 times
Re: Formal Request Thread
by Zambooo » 24 Jan 2015, 21:52
Hello there, I'd like to request Reap Intellect, I just don't know where to turn with this card. Thanks 
Re: Formal Request Thread
by nekrose » 25 Jan 2015, 02:54
Thank you, kind sir or madam or pan-gendered triceratops ! I will test these post-haste :=] Let me know if you can get Lim-Dul's Vault working, too <3Xander9009 wrote:
I'll try the last one tomorrow. I've actually had these two done for hours, but I got distracted with the Community Wad and various other things. These have NOT been tested, so try them out and let me know if they work. They'll be in the Community Wad once it repacks and reuploads.
Re: Formal Request Thread
by Xander9009 » 26 Jan 2015, 16:39
Again, this is untested. I put it together in a fairly short amount of time so it'll probably have a couple of issues. Let me know what they are and I'll try and fix them.Zambooo wrote:Hello there, I'd like to request Reap Intellect, I just don't know where to turn with this card. Thanks
- Reap Intellect | Open
- Code: Select all
<?xml version="1.0"?>
<CARD_V2 ExportVersion="1">
<FILENAME text="REAP_INTELLECT_CW_368958" />
<CARDNAME text="REAP_INTELLECT" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Reap Intellect]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Fenaison d’intelligence]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Cosechar el intelecto]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Intellekt ernten]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Mietere Intelletto]]></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[Reap Intellect]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-CN"><![CDATA[剥夺智识]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-HK"><![CDATA[剝奪智識]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="368958" />
<ARTID value="CW368958" />
<ARTIST name="Steven Belledin" />
<CASTING_COST cost="{X}{2}{U}{B}" />
<TYPE metaname="Sorcery" />
<EXPANSION value="DGM" />
<RARITY metaname="C" />
<SPELL_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Target opponent reveals his or her hand. You choose up to X nonland cards from it and exile them. For each card exiled this way, search that player’s graveyard, hand, and library for any number of cards with the same name as that card and exile them. Then that player shuffles his or her library.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[L’adversaire ciblé révèle sa main. Vous y choisissez jusqu’à X cartes non-terrain et vous les exilez. Pour chaque carte exilée de cette manière, cherchez dans le cimetière, la main et la bibliothèque de ce joueur n’importe quel nombre de cartes ayant le même nom que cette carte et exilez-les. Ce joueur mélange ensuite sa bibliothèque.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[El oponente objetivo muestra su mano. Tú eliges de ahí hasta X cartas que no sean de tierra y las exilias. Por cada carta exiliada de esta manera, busca en el cementerio, mano y biblioteca de ese jugador cualquier cantidad de cartas con el mismo nombre que esa carta y exílialas. Luego ese jugador baraja su biblioteca.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Ein Gegner deiner Wahl zeigt die Karten auf seiner Hand offen vor. Du bestimmst davon bis zu X Karten, die keine Länder sind, und schickst sie ins Exil. Durchsuche für jede auf diese Weise ins Exil geschickte Karte den Friedhof, die Hand und die Bibliothek dieses Spielers nach einer beliebigen Anzahl von Karten mit demselben Namen wie diese Karte und schicke sie alle ins Exil. Dieser Spieler mischt dann seine Bibliothek.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Un avversario bersaglio rivela la sua mano. Scegli fino a X carte non terra da essa ed esiliale. Per ogni carta esiliata in questo modo, passa in rassegna il cimitero, la mano e il grimorio di quel giocatore per un qualsiasi numero di carte con lo stesso nome di quella carta ed esiliale. Poi quel giocatore rimescola il suo grimorio.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[対戦相手1人を対象とする。そのプレイヤーは自分の手札を公開する。あなたはその中から土地でないカードをX枚選び、それらのカードを追放する。これにより追放されたカード1枚につき、そのプレイヤーの墓地と手札とライブラリーから、そのカードと同じ名前を持つカードを望む枚数探し、それらを追放する。その後、そのプレイヤーは自分のライブラリーを切り直す。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[상대 한 명을 목표로 정한다. 그 플레이어는 자신의 손을 공개한다. 당신은 그중에서 대지가 아닌 카드를 최대 X장까지 골라 추방한다. 이렇게 추방된 카드 한 장 마다 그 플레이어의 무덤, 손 및 서고를 뒤져 그 카드와 이름이 같은 카드를 원하는 만큼 찾아 추방한다. 그러고 나서 그 플레이어는 자신의 서고를 섞는다.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Целевой оппонент показывает свою руку. Вы выбираете из нее не более Х карт, не являющихся землями, и изгоняете их. Для каждой карты, изгнанной таким образом, найдите на кладбище, в руке и в библиотеке того игрока любое количество карт с таким же именем, как у нее, и изгоните их. Затем тот игрок тасует свою библиотеку.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Target opponent reveals his or her hand. You choose up to X nonland cards from it and exile them. For each card exiled this way, search that player’s graveyard, hand, and library for any number of cards with the same name as that card and exile them. Then that player shuffles his or her library.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-CN"><![CDATA[目标对手展示其手牌。你选择其中至多X张非地牌,并将它们放逐。从该牌手的坟墓场、手牌以及牌库中搜寻任意数量与以此法放逐的任一张牌同名的牌,并将它们放逐。然后该牌手将其牌库洗牌。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-HK"><![CDATA[目標對手展示其手牌。你選擇其中至多X張非地牌,並將它們放逐。從該玩家的墳墓場、手牌以及牌庫中搜尋任意數量與以此法放逐的任一張牌同名的牌,並將它們放逐。然後該玩家將其牌庫洗牌。]]></LOCALISED_TEXT>
<SFX text="TARGET_PESTS_PLAY" />
<TARGET tag="CARD_QUERY_CHOOSE_PLAYER_DISCARD_1" definition="0" compartment="0" count="1" />
<TARGET_DEFINITION id="0">
local filter = ClearFilter()
filter:SetFilterType( FILTER_TYPE_PLAYERS )
filter:Add( FE_TEAM, OP_NOT, EffectController():GetTeam() )
</TARGET_DEFINITION>
<RESOLUTION_TIME_ACTION>
local target_player = EffectDC():Get_Targets(0):Get_PlayerPtr(0)
if target_player ~= nil then
target_player:RevealHand()
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local target_player = EffectDC():Get_Targets(0):Get_PlayerPtr(0)
if target_player ~= nil then
local filter = ClearFilter()
filter:Add( FE_TYPE, OP_NOT, CARD_TYPE_LAND )
filter:SetZone( ZONE_HAND, target_player )
EffectController():SetItemCount(GetEffectX())
EffectController():ChooseItem( "CARD_QUERY_CHOOSE_CARD_TO_EXILE", EffectDC():Make_Targets(1), QUERY_FLAG_UP_TO )
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local target_player = EffectDC():Get_Targets(0):Get_PlayerPtr(0)
if target_player ~= nil then
local chosen_card = EffectDC():Get_Targets(1):Get_CardPtr(0)
local count = EffectDC():Get_Targets(1):Count()
if count > 0 then
for i=0,count-1 do
local target = EffectDC():Get_Targets(1):Get_CardPtr(i)
if target ~= nil then
filter = ClearFilter()
filter:SetZone( ZONE_GRAVEYARD, target_player )
filter:Add( FE_CARD_NAME, OP_IS, target )
local subtargetscount = filter:EvaluateObjects()
if subtargetscount > 0 then
for j=0,subtargetscount-1 do
local subtarget = filter:GetNthEvaluatedObject(j)
if subtarget ~= nil then
subtarget:Exile()
end
end
end
filter = ClearFilter()
filter:SetZone( ZONE_LIBRARY, target_player )
filter:Add( FE_CARD_NAME, OP_IS, target )
local subtargetscount = filter:EvaluateObjects()
if subtargetscount > 0 then
for j=0,subtargetscount-1 do
local subtarget = filter:GetNthEvaluatedObject(j)
if subtarget ~= nil then
subtarget:Exile()
end
end
end
filter = ClearFilter()
filter:SetZone( ZONE_HAND, target_player )
filter:Add( FE_CARD_NAME, OP_IS, target )
local subtargetscount = filter:EvaluateObjects()
if subtargetscount > 0 then
for j=0,subtargetscount-1 do
local subtarget = filter:GetNthEvaluatedObject(j)
if subtarget ~= nil then
subtarget:Exile()
end
end
end
if target ~= nil then
target:Exile()
end
end
end
end
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local player = EffectDC():Get_Targets(0):Get_PlayerPtr(0)
if player ~= nil then
player:ShuffleLibrary()
end
</RESOLUTION_TIME_ACTION>
</SPELL_ABILITY>
<AUTHOR><![CDATA[Xander9009]]></AUTHOR>
<EDITORS><![CDATA[Xander9009]]></EDITORS>
<DATE><![CDATA[26-01-15]]></DATE>
</CARD_V2>
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
-

Xander9009 - Programmer
- Posts: 2905
- Joined: 29 Jun 2013, 07:44
- Location: Indiana, United States
- Has thanked: 121 times
- Been thanked: 445 times
Re: Formal Request Thread
by Xander9009 » 26 Jan 2015, 17:40
nekrose wrote:Thank you, kind sir or madam or pan-gendered triceratops ! I will test these post-haste :=] Let me know if you can get Lim-Dul's Vault working, too <3
- Lim-Dul's Vault | Open
- Code: Select all
<?xml version="1.0"?>
<CARD_V2 ExportVersion="1">
<FILENAME text="LIMDÛLS_VAULT_CW_3223" />
<CARDNAME text="LIMDÛLS_VAULT" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Lim-Dûl’s Vault]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Caveau de Lim-Dûl]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Bóveda de Lim-Dûl]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Lim-Dûls Gruft]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Cripta di Lim-Dûl]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[リム=ドゥールの櫃]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Lim-Dûl’s Vault]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Lim-Dûl’s Vault]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Lim-Dûl’s Vault]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-CN"><![CDATA[Lim-Dûl’s Vault]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-HK"><![CDATA[Lim-Dûl’s Vault]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="3223" />
<ARTID value="CW3223" />
<ARTIST name="Rob Alexander" />
<CASTING_COST cost="{U}{B}" />
<TYPE metaname="Instant" />
<EXPANSION value="AL" />
<RARITY metaname="U" />
<SPELL_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Look at the top five cards of your library. As many times as you choose, you may pay 1 life, put those cards on the bottom of your library in any order, then look at the top five cards of your library. Then shuffle your library and put the last cards you looked at this way on top of it in any order.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Regardez les cinq cartes du dessus de votre bibliothèque. Autant de fois que vous le choisissez, vous pouvez payer 1 point de vie, mettre ces cartes au-dessous de votre bibliothèque dans l’ordre de votre choix, puis regarder les cinq cartes du dessus de votre bibliothèque. Mélangez ensuite votre bibliothèque et mettez les dernières cartes que vous avez regardées de cette manière au-dessus de celle-ci dans l’ordre de votre choix.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Mira las cinco primeras cartas de tu biblioteca. Tantas veces como quieras, puedes pagar 1 vida, poner esas cartas en el fondo de tu biblioteca en cualquier orden y mirar las cinco primeras cartas de tu biblioteca. Luego baraja la biblioteca y pon las últimas cartas que miraste de esta manera en la parte superior, en cualquier orden.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Schaue dir die obersten fünf Karten deiner Bibliothek an. Du kannst so oft, wie du willst, 1 Lebenspunkt bezahlen, diese Karten in beliebiger Reihenfolge unter deine Bibliothek legen und dir dann die obersten fünf Karten deiner Bibliothek anschauen. Mische dann deine Bibliothek und lege die letzten Karten, die du auf diese Weise angeschaut hast, in beliebiger Reihenfolge oben drauf.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Guarda le prime cinque carte del tuo grimorio. Per quante volte vuoi, puoi pagare 1 punto vita, mettere quelle carte in fondo al tuo grimorio in qualsiasi ordine, poi guardare le prime cinque carte del tuo grimorio. Poi rimescola il tuo grimorio e metti le ultime carte che hai guardato in questo modo in cima in qualsiasi ordine.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[あなたのライブラリーの一番上から5枚のカードを見る。あなたは「1点のライフを支払い、それらのカードをあなたのライブラリーの一番下に望む順番で置き、その後あなたのライブラリーの一番上から5枚のカードを見る」という手順を望む回数だけ繰り返してもよい。その後あなたのライブラリーを切り直し、これによりあなたが最後に見たカードをその一番上に望む順番で置く。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Look at the top five cards of your library. As many times as you choose, you may pay 1 life, put those cards on the bottom of your library in any order, then look at the top five cards of your library. Then shuffle your library and put the last cards you looked at this way on top of it in any order.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Look at the top five cards of your library. As many times as you choose, you may pay 1 life, put those cards on the bottom of your library in any order, then look at the top five cards of your library. Then shuffle your library and put the last cards you looked at this way on top of it in any order.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Look at the top five cards of your library. As many times as you choose, you may pay 1 life, put those cards on the bottom of your library in any order, then look at the top five cards of your library. Then shuffle your library and put the last cards you looked at this way on top of it in any order.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-CN"><![CDATA[Look at the top five cards of your library. As many times as you choose, you may pay 1 life, put those cards on the bottom of your library in any order, then look at the top five cards of your library. Then shuffle your library and put the last cards you looked at this way on top of it in any order.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-HK"><![CDATA[Look at the top five cards of your library. As many times as you choose, you may pay 1 life, put those cards on the bottom of your library in any order, then look at the top five cards of your library. Then shuffle your library and put the last cards you looked at this way on top of it in any order.]]></LOCALISED_TEXT>
<RESOLUTION_TIME_ACTION repeating="1">
local n = MTG():GetActionRepCount()
local parity = n % 3
local result = player:GetMultipleChoiceResult()
if result == 0 then
if parity == 0 then
if n > 1 then
EffectController():PayLife(1)
for i=0,4 do
local card = EffectController():Library_GetTop()
if card ~= nil then
card:PutOnBottomOfLibrary()
end
end
end
local filter = ClearFilter()
local effectController = EffectController()
local number = 5
if number > 0 then
filter:SetZone( ZONE_LIBRARY, effectController )
filter:SetPortion( number )
effectController:SetItemCount( number )
for i = 0, (number-1) do
effectController:SetItemPrompt( i, "CARD_QUERY_CHOOSE_CARD_TO_PUT_ONTO_LIBRARY" )
end
effectController:ChooseItems( EffectDC():Make_Targets(1) )
end
elseif parity == 1 then
local number = 5
if number > 0 then
local target_array = {}
for i = 0, (number-1) do
target_array[i] = EffectDC():Get_Targets(1):Get_CardPtr(i)
end
for i = 0, (number-1) do
if target_array[i] ~= nil then
target_array[i]:PutOnTopOfLibrary()
end
end
end
else
player:BeginNewMultipleChoice()
player:AddMultipleChoiceAnswer( "CARD_QUERY_OPTION_YES" )
player:AddMultipleChoiceAnswer( "CARD_QUERY_OPTION_NO" )
player:AskMultipleChoiceQuestion( "CARD_QUERY_LIMDÛLS_VAULT" )
end
return true
else
return false
end
</RESOLUTION_TIME_ACTION>
</SPELL_ABILITY>
<AUTHOR><![CDATA[Xander9009]]></AUTHOR>
<EDITORS><![CDATA[Xander9009]]></EDITORS>
<DATE><![CDATA[26-01-15]]></DATE>
</CARD_V2>
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
-

Xander9009 - Programmer
- Posts: 2905
- Joined: 29 Jun 2013, 07:44
- Location: Indiana, United States
- Has thanked: 121 times
- Been thanked: 445 times
Re: Formal Request Thread
by Xander9009 » 28 Jan 2015, 20:54
Alright guys. I've been working on a few cards trying to finish them up for Tejahn. However, I've got one ability that I can't get working. Soulfire Grand Master's last ability crashes the game when I play an instant or sorcery. Can anyone think of a better way to go about it? I wanted to do it the same as buyback, but that's apparently a hardcoded thing. Thoughts?
- Soulfire Grand Master - fixed | Open
- Code: Select all
<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{2}{h}{h}: The next time you cast an instant or sorcery spell from your hand this turn, put that card into your hand instead of into your graveyard as it resolves.]]></LOCALISED_TEXT>
<COST mana_cost="{2}{U/R}{U/R}" type="Mana" />
<RESOLUTION_TIME_ACTION>
MTG():CreateDelayedTrigger(1, EffectDC():Make_Chest(1))
</RESOLUTION_TIME_ACTION>
</ACTIVATED_ABILITY>
<TRIGGERED_ABILITY resource_id="1">
<CLEANUP fire_once="1" simple_cleanup="EndOfTurn" />
<TRIGGER value="SPELL_PLAYED" simple_qualifier="controller">
return (TriggerObject():GetCardType():Test(CARD_TYPE_INSTANT) or TriggerObject():GetCardType():Test(CARD_TYPE_SORCERY)) and TriggerObject():GetErstwhileZone() == ZONE_HAND
</TRIGGER>
<RESOLUTION_TIME_ACTION>
local delayDC = EffectDC():Make_Chest(1)
delayDC:Set_CardPtr(0, TriggerObject())
delayDC:Protect_CardPtr(0)
MTG():CreateDelayedTrigger(2, delayDC)
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
<TRIGGERED_ABILITY resource_id="2" replacement_effect="1">
<CLEANUP fire_once="1" simple_cleanup="EndOfTurn" />
<TRIGGER value="ZONECHANGE_CONSIDERED" to_zone="ZONE_GRAVEYARD" from_zone="ZONE_STACK" pre_trigger="1">
if TriggerObject() ~= nil and TriggerObject() == EffectDC():Get_CardPtr(0) then
--MTG():OverrideEvent()
TriggerObject():PutInHand()
return true
end
return false
</TRIGGER>
</TRIGGERED_ABILITY>
Last edited by Xander9009 on 29 Jan 2015, 01:36, edited 1 time in total.
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
-

Xander9009 - Programmer
- Posts: 2905
- Joined: 29 Jun 2013, 07:44
- Location: Indiana, United States
- Has thanked: 121 times
- Been thanked: 445 times
Re: Formal Request Thread
by RiiakShiNal » 29 Jan 2015, 01:17
Instead of using PutInHand() have you tried QueueZoneChange(ZONE_HAND, TriggerObject():GetOwner())?
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: 2189
- Joined: 16 May 2011, 21:37
- Has thanked: 75 times
- Been thanked: 497 times
Re: Formal Request Thread
by Xander9009 » 29 Jan 2015, 01:36
I haven't seen that function, so thanksRiiakShiNal wrote:Instead of using PutInHand() have you tried QueueZoneChange(ZONE_HAND, TriggerObject():GetOwner())?
Unfortunately, it didn't work. However, you made me realize that I hadn't tried it without the override (because I wasn't sure if you meant to replace both lines or just the one you explicitly said). Turns out, that's what I needed. So, the code I had minus the MTG():OverrideEvent() line made the card work.
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
-

Xander9009 - Programmer
- Posts: 2905
- Joined: 29 Jun 2013, 07:44
- Location: Indiana, United States
- Has thanked: 121 times
- Been thanked: 445 times
Re: Formal Request Thread
by Tejahn » 29 Jan 2015, 21:47
That's good news. And although I didn't touch my laptop yesterday I'll start testing the new cards you provided this evening. Thanks a lot!
Re: Formal Request Thread
by Zambooo » 30 Jan 2015, 15:31
Here I am once again.. this time I'm gonna request Doubling Chant. Thanks in advance 
Re: Formal Request Thread
by Xander9009 » 30 Jan 2015, 17:53
Alright, so I went about this in a bit of an unorthadox way. Normally, you'd just put the cards on the battlefield without actually finding them, but if there's a creature you don't want to duplicate (maybe you have a legendary or maybe you have an Eviscerator on the battlefield. So, it will ask you to choose the creature cards and you can choose none for a given creature. It'll ask for each creature. However, to minimize the inconvenience, you can choose UP TO the number you control. This way, if you control two Windscouter creatures, it'll only ask once for Windscouter, but you can choose up to two. I've tested this one before posting it because it ended up so complex and it appears to be working. It's also now in the Community Wad. It'll be available when the CW repacks itself tonight (or immediately if you're using the loose files version).Zambooo wrote:Here I am once again.. this time I'm gonna request Doubling Chant. Thanks in advance
It's been awhile since I've coded a card I couldn't piece together from other cards and instead had to code from scratch... At least I didn't have to do the framework. Thank you again firemind. You're awesome
- Doubling Chant | Open
- Code: Select all
<?xml version="1.0"?>
<CARD_V2 ExportVersion="1">
<FILENAME text="DOUBLING_CHANT_CW_220152" />
<CARDNAME text="DOUBLING_CHANT" />
<TITLE>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Doubling Chant]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Chant de dédoublement]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Canto duplicador]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Verdoppelungsgesang]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Canto Raddoppiante]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[二重の詠唱]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Doubling Chant]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Распев Удвоения]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Cântico Duplicador]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-CN"><![CDATA[倍产吟颂]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-HK"><![CDATA[倍產吟頌]]></LOCALISED_TEXT>
</TITLE>
<MULTIVERSEID value="220152" />
<ARTID value="CW220152" />
<ARTIST name="Wayne England" />
<CASTING_COST cost="{5}{G}" />
<FLAVOURTEXT>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[What’s scarier than one of every beast in the forest?]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Qu’y a-t-il de plus effrayant qu’un représentant de chaque bête de la forêt ?]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[¿Qué es más temible que una de cada bestia del bosque?]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Was ist erschreckender als ein Exemplar jeder Bestie des Waldes?]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Cos’è più spaventoso di un esemplare di ogni bestia nella foresta?]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[森のあらゆる獣一頭ずつよりも恐ろしいものは何か?]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[What’s scarier than one of every beast in the forest?]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Что может быть страшнее, чем собрать в лесу по одному зверю каждой масти?]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[O que pode ser mais assustador do que um exemplar de cada fera da floresta?]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-CN"><![CDATA[有什么比树林的每种野兽都出现一只更可怕?]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-HK"><![CDATA[有什麼比樹林的每種野獸都出現一隻更可怕?]]></LOCALISED_TEXT>
</FLAVOURTEXT>
<TYPE metaname="Sorcery" />
<EXPANSION value="M12" />
<RARITY metaname="R" />
<SPELL_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[For each creature you control, you may search your library for a creature card with the same name as that creature. Put those cards onto the battlefield, then shuffle your library.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Pour chaque créature que vous contrôlez, vous pouvez chercher dans votre bibliothèque une carte de créature ayant le même nom que cette créature. Mettez ces cartes sur le champ de bataille et mélangez ensuite votre bibliothèque.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Por cada criatura que controles, puedes buscar en tu biblioteca una carta de criatura con el mismo nombre que esa criatura. Pon esas cartas en el campo de batalla, luego baraja tu biblioteca.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Für jede Kreatur, die du kontrollierst, kannst du deine Bibliothek nach einer Kreaturenkarte mit dem gleichen Namen wie diese Kreatur durchsuchen. Bringe diese Karten ins Spiel und mische dann deine Bibliothek.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Per ogni creatura che controlli, puoi passare in rassegna il tuo grimorio per una carta creatura con lo stesso nome di quella creatura. Metti quelle carte sul campo di battaglia, poi rimescola il tuo grimorio.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[あなたがコントロールするクリーチャー1体につき、あなたはあなたのライブラリーからそのクリーチャーと同じ名前を持つカードを1枚探してもよい。 それらのカードを戦場に出し、その後あなたのライブラリーを切り直す。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[For each creature you control, you may search your library for a creature card with the same name as that creature. Put those cards onto the battlefield, then shuffle your library.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Для каждого существа под вашим контролем вы можете найти в вашей библиотеке карту существа с тем же именем, что и у того существа. Положите те карты на поле битвы, затем перетасуйте вашу библиотеку.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Para cada criatura que controla, você pode procurar no seu grimório um card de criatura com o mesmo nome daquela criatura. Coloque aqueles cards no campo de batalha e depois embaralhe seu grimório.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-CN"><![CDATA[对每个由你操控的生物而言,你可以从你的牌库中搜寻一张与该生物同名的生物牌。 将这些牌放进战场,然后将你的牌库洗牌。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="zh-HK"><![CDATA[對每個由你操控的生物而言,你可以從你的牌庫中搜尋一張與該生物同名的生物牌。 將這些牌放進戰場,然後將你的牌庫洗牌。]]></LOCALISED_TEXT>
<RESOLUTION_TIME_ACTION>
local filter = ClearFilter()
filter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
filter:Add( FE_CONTROLLER, OP_IS, EffectController())
filter:Add( FE_IS_TOKEN, false )
local Count = filter:EvaluateObjects()
EffectDC():Set_Int(0, Count)
local CreatureChest = EffectDC():Make_Chest(1)
for i=0, Count-1 do
local Creature = filter:GetNthEvaluatedObject(i)
if Creature ~= nil then
local NewCreature = true
for j=0, i-1 do
local PreviousCreature = filter:GetNthEvaluatedObject(j)
if PreviousCreature ~= nil and PreviousCreature:GetCardName() == Creature:GetCardName() then
NewCreature = false
end
end
if NewCreature == true then
CreatureChest:Set_CardPtr(i, Creature)
end
end
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION repeating="1">
local n = MTG():GetActionRepCount()
local Creature = EffectDC():Get_Chest(1) and EffectDC():Get_Chest(1):Get_CardPtr(n)
local Count = EffectDC():Get_Int(0)
local TargetChest = EffectDC():Get_Chest(2)
if TargetChest == nil then
TargetChest = EffectDC():Make_Chest(2)
if TargetChest == nil then
return true
end
end
if Creature ~= nil then
local filterCount = ClearFilter()
filterCount:Add( FE_CARD_NAME, OP_IS, Creature )
filterCount:Add( FE_CONTROLLER, OP_IS, EffectController())
local CountControlled = filterCount:Count()
local filterChoice = ClearFilter()
filterChoice:Add( FE_CARD_NAME, OP_IS, Creature )
filterChoice:SetZone( ZONE_LIBRARY, EffectController())
local TargetCount = filterChoice:Count()
if CountControlled > TargetCount then
CountControlled = TargetCount
end
EffectController():SetItemCount(CountControlled)
for i=0, TargetCount-1 do
EffectController():SetItemPrompt( i, "CARD_QUERY_CHOOSE_CREATURE_TO_PUT_ONTO_BATTLEFIELD" )
end
EffectController():ChooseItems(TargetChest:Make_Targets(n), QUERY_FLAG_UP_TO)
end
return n ~= Count
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local Count = EffectDC():Get_Int(0)
local TargetChest = EffectDC():Get_Chest(2)
if TargetChest ~= nil then
for i=0, Count-1 do
local Targets = TargetChest:Get_Targets(i)
if Targets ~= nil then
local TargetCount = Targets:Count()
if TargetCount > 0 then
for j=0, TargetCount-1 do
local Target = Targets:Get_CardPtr(j)
if Target ~= nil then
Target:PutOntoBattlefield(EffectController())
end
end
end
end
end
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
EffectController():ShuffleLibrary()
</RESOLUTION_TIME_ACTION>
</SPELL_ABILITY>
<AUTHOR><![CDATA[Xander9009]]></AUTHOR>
<EDITORS><![CDATA[Xander9009]]></EDITORS>
<DATE><![CDATA[30-01-15]]></DATE>
</CARD_V2>
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
-

Xander9009 - Programmer
- Posts: 2905
- Joined: 29 Jun 2013, 07:44
- Location: Indiana, United States
- Has thanked: 121 times
- Been thanked: 445 times
Who is online
Users browsing this forum: No registered users and 17 guests