It is currently 22 Jun 2025, 08:28
   
Text Size

Card Creation Request Thread

User-made mods in DLC (Downloadable Content) form.
Get MTG cards here for your DotP that aren't available anywhere else!

Moderator: CCGHQ Admins

Re: Card Creation Request Thread

Postby alejandrohiraldo » 18 Nov 2012, 00:11

Thank you so much Thefiremind!! I've done quite a lot of testing after applying your modifications and it works perfectly!!

Here is the wonderfull card Wall of Roots for any other person that needs it. My thanks go to Thefiremind and RiiakShiNal for helping in the making of this card. For people who may not know, you need all the files in the .zip for this card to work on your deck. Including the 01_FUNC.LOL file.

*Edit: Just replaced the zip file as I noticed the card had the wrong cost (I had it this way for testing purposes). Fixed now.
Attachments
Wall_of_roots.zip
(594.19 KiB) Downloaded 393 times
alejandrohiraldo
 
Posts: 7
Joined: 04 Nov 2012, 16:33
Has thanked: 2 times
Been thanked: 0 time

Re: Card Creation Request Thread

Postby zerocube » 18 Nov 2012, 04:41

OK I'm still on precursor golem.

I need to ask this, after you copy a spell, how to you force it to target something without asking?

This is the trigger I've written:
Code: Select all
<TRIGGER value="BECAME_TARGET">
 return ((TriggerObject() ~= nil and TriggerObject():GetSubType():Test( CREATURE_TYPE_GOLEM ) ~= 0 and SecondaryObject() ~= nil and SecondaryObject():GetNumberOfTargets() == 1 ) and
( TriggerObject():GetCardType():Test( CARD_TYPE_INSTANT ) or TriggerObject():GetCardType():Test( CARD_TYPE_SORCERY )))
    </TRIGGER>
zerocube
 
Posts: 10
Joined: 12 Nov 2012, 07:55
Has thanked: 0 time
Been thanked: 0 time

Re: Card Creation Request Thread

Postby thefiremind » 18 Nov 2012, 09:12

Just as a reference, I'm posting the code for DotP2012 Precursor Golem:
Code: Select all
  <TRIGGERED_ABILITY active_zone="in_play">
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Whenever a player casts an instant or sorcery spell that targets only a single Golem, that player copies that spell for each other Golem that spell could target. Each copy targets a different one of those Golems.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[À chaque fois qu'un joueur lance un sort d'éphémère ou de rituel qui ne cible qu'un seul golem, ce joueur copie ce sort pour chaque autre golem que ce sort pourrait cibler. Chaque copie cible un golem différent parmi eux.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Immer wenn ein Spieler einen Spontanzauber oder eine Hexerei wirkt, der bzw. die nur einen einzelnen Golem als Ziel hat, kopiert dieser Spieler diesen Zauber für jeden anderen Golem, den der Zauber als Ziel haben könnte. Jede dieser Kopien hat einen unterschiedlichen dieser Golems als Ziel.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Siempre que un jugador lance un hechizo instantáneo o conjuro que haga objetivo a un único Gólem, ese jugador copia ese hechizo para cada otro Gólem que ese hechizo podría hacer objetivo. Cada copia hace objetivo a cada uno de esos otros Gólems.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Ogniqualvolta un giocatore lancia una magia istantaneo o stregoneria che bersaglia solo un Golem, quel giocatore copia quella magia per ogni altro Golem che quella magia potrebbe bersagliare. Ogni copia bersaglia uno diverso di quei Golem.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[いずれかのプレイヤーが、ゴーレム1体のみ対象とする、インスタント呪文かソーサリー呪文を1つ唱えるたび、そのプレイヤーはその呪文を、その呪文が対象にできる他の各ゴーレム1体につき1回コピーする。 それぞれのコピーは、それらのゴーレムのうち別々のものを対象とする。]]></LOCALISED_TEXT>
    <TRIGGER value="TARGETS_CHOSEN">
    if TriggerObject() ~= nil and TriggerObject():GetDataChest() ~= nil then
    local targetDC = TriggerObject():GetDataChest():Get_Targets(0)
    if targetDC ~= nil then
      local target_card = targetDC:Get_CardPtr(0)
       
      return TriggerObject():WasCast() ~= 0 and
            (TriggerObject():GetCardType():Test(CARD_TYPE_INSTANT) ~= 0 or
             TriggerObject():GetCardType():Test(CARD_TYPE_SORCERY) ~= 0 ) and
            (target_card ~= nil and
             target_card:GetSubType():Test(CREATURE_TYPE_GOLEM) ~= 0)
    else
      return false
    end
    else
      return false
    end
    </TRIGGER>
    <FILTER>
    return FilteredCard():GetSubType():Test( CREATURE_TYPE_GOLEM ) ~= 0
    </FILTER>
    <RESOLUTION_TIME_ACTION>
    if TriggerObject() ~= nil then
      local target_card = nil
      local objDC = TriggerObject():GetDataChest()
      if objDC ~= nil then
        local targetDC = objDC:Get_Targets(0)
       
        if targetDC ~= nil then
          target_card = targetDC:Get_CardPtr(0)
        end
      end
       
      if FilteredCard() ~= target_card then
        local copied_spell = TriggerObject():GetPlayer():CopySpell( TriggerObject() )
         
        if copied_spell ~= nil then
            copied_spell:SetTargetCard(FilteredCard())
        end
      end
     
     
    end
    </RESOLUTION_TIME_ACTION>
  </TRIGGERED_ABILITY>
as I said before, this card was coded for a challenge, where it can't possibly interact with every kind of card, but just with the cards in that challenge. That made things easier for the developers.
As you can see from the code, the trigger condition checks for Get_Targets(0) (but what if the target was in Get_Targets(1) for example?). In resolution, the target of the copy is forced with SetTargetCard, which again I'm pretty sure changes only the target in register 0.
You can try to reuse parts of this code if you want, but I can't guarantee that it will work for every kind of instant and sorcery.
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
User avatar
thefiremind
Programmer
 
Posts: 3515
Joined: 07 Nov 2011, 10:55
Has thanked: 118 times
Been thanked: 722 times

Re: Card Creation Request Thread

Postby pluks » 19 Nov 2012, 04:27

Hello again, I'm having a problem with preordain when scry 2 the cards asking to put on the bottom these are going to the top. Here is the code i have

Code: Select all
<SPELL_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Scry 2. (To scry 2, look at the top two cards of your library, then put any number of them on the bottom of your library and the rest on top in any order.)]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Hellsicht 2 (Betrachte die obersten zwei Karten deiner Bibliothek. Lege eine beliebige Anzahl davon in beliebiger Reihenfolge unter deine Bibliothek und den Rest oben darauf.)]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Adivinar 2 (Mira las dos primeras cartas de la parte superior de tu biblioteca. Pon cualquier número de ellas en la parte inferior de tu biblioteca y el resto, en la parte superior en cualquier orden.)]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Regard 2 (Regardez les deux cartes du dessus de votre bibliothèque. Mettez n'importe quel nombre d'entre elles au-dessous de votre bibliothèque et le reste, au-dessus, dans n'importe quel ordre.)]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Profetizzare 2 (Guarda le prime due carte del tuo grimorio. Metti un qualsiasi numero di esse in fondo al tuo grimorio e le rimanenti in cima a esso nell'ordine che preferisci.)]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[占術 2 (あなたのライブラリーの一番上から2枚のカードを見る。そのうち望む枚数をあなたのライブラリーの一番下に、残りを一番上に、望む順番で置く。)]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Scry 2. (To scry 2, look at the top two cards of your library, then put any number of them on the bottom of your library and the rest on top in any order.)]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Scry 2. (To scry 2, look at the top two cards of your library, then put any number of them on the bottom of your library and the rest on top in any order.)]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Vidência 2 (Olhe os dois cards do topo de seu grimório. Coloque qualquer número deles no fundo de seu grimório e o restante no topo em qualquer ordem.)]]></LOCALISED_TEXT>
 <RESOLUTION_TIME_ACTION>
    MTG():ObjectDataChest():Set_Int( 0, 2 )
    local filter = Object():GetFilter() 
    local player = EffectController() 
    filter:Clear() 
    filter:NotTargetted() 
    filter:SetPlayer( EffectController() ) 
    filter:SetZone( ZONE_LIBRARY ) 
    filter:SetPortion( 2 ) 
    player:SetTargetCount( 2 ) 
    player:SetTargetPrompt( 0, "CARD_QUERY_CHOOSE_CARD_TO_PUT_ON_BOTTOM_LIBRARY" ) 
    player:SetTargetPrompt( 1, "CARD_QUERY_CHOOSE_CARD_TO_PUT_ON_BOTTOM_LIBRARY" )
    player:ChooseTargetsWithFlags( NO_VALIDATION, EffectDC():Make_Targets(0), QUERY_FLAG_CAN_BE_FINISHED_EARLY + QUERY_FLAG_CAN_BE_FINISHED_EARLY_FOR_AI_AS_WELL )
    </RESOLUTION_TIME_ACTION>
    <RESOLUTION_TIME_ACTION>
    local target_array = {} 
    local rem_count = MTG():ObjectDataChest():Get_Int(0)   
    for i=0,rem_count-1 do   
    target_array[i] = EffectDC():Get_Targets(0):Get_CardPtr(i)  end   
    for i=0,rem_count-1 do   
    if target_array[i] ~= nil then     
    target_array[i]:PutInLibrary( -1 )   
    rem_count = rem_count-1   
    end   
    end 
    MTG():ObjectDataChest():Set_Int( 0, rem_count )
    </RESOLUTION_TIME_ACTION>
    <RESOLUTION_TIME_ACTION>
    local remainingCount = MTG():ObjectDataChest():Get_Int( 0 )   
    if( remainingCount &gt; 0 ) then   
       local filter = Object():GetFilter()   
       local player = EffectController()
        filter:Clear()   
       filter:NotTargetted()   
       filter:SetPortion( remainingCount )   
       filter:SetPlayer( player )   
       filter:SetZone( ZONE_LIBRARY )   
       player:SetTargetCount( remainingCount )       
       while remainingCount &gt; 0 do     
          remainingCount = remainingCount - 1     
          player:SetTargetPrompt( remainingCount, "CARD_QUERY_CHOOSE_CARD_TO_PUT_ONTO_LIBRARY" )   
       end       
       player:ChooseTargetsWithFlags( NO_VALIDATION, EffectDC():Make_Targets(1), 0)
    end
    </RESOLUTION_TIME_ACTION>
    <RESOLUTION_TIME_ACTION>
    local i = 0 
    local scryNumber = MTG():ObjectDataChest():Get_Int( 0 ) 
    local nilTest = MTG():EffectDataChest()   
    if nilTest ~= nil then     
       nilTest = nilTest:Get_Targets(1)     
       if nilTest ~= nil then       
          while ( nilTest:Get_CardPtr( i ) ~= nil ) do     
             nilTest:Get_CardPtr( i ):PutInLibrary( scryNumber - (i + 1) )     
             nilTest:Set_CardPtr( i, nil )     
             i = i+1   
          end       
          MTG():ObjectDataChest():Set_Int( 0, scryNumber - i )   
       end 
    end
    </RESOLUTION_TIME_ACTION>
</SPELL_ABILITY>
  <SPELL_ABILITY>
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Draw a card.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[Piochez une carte.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[Roba una carta.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Ziehe eine Karte.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Pesca una carta.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[カードを1枚引く。]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[카드 한 장을 뽑는다.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Возьмите карту.]]></LOCALISED_TEXT>
    <LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Compre um card.]]></LOCALISED_TEXT>
    <RESOLUTION_TIME_ACTION>
    local NumCards = 1
    while (NumCards &gt; 0) do
       NumCards = NumCards - 1
       EffectController():DrawCard()
    end
    </RESOLUTION_TIME_ACTION>
  </SPELL_ABILITY>
using the code quicksilver sea
pluks
 
Posts: 14
Joined: 10 Oct 2012, 03:35
Has thanked: 6 times
Been thanked: 5 times

Re: Card Creation Request Thread

Postby thefiremind » 19 Nov 2012, 10:13

pluks wrote:Hello again, I'm having a problem with preordain when scry 2 the cards asking to put on the bottom these are going to the top.
Are you absolutely sure? I can't see anything wrong. Anyway, if you want to make scry easier, I made each action into a function, so there's much less to write (and debug).

Extract this ZIP file in DATA_ALL_PLATFORMS/FUNCTIONS (create the folder if it doesn't exist yet):
SCRY_FUNCTIONS.zip
(1004 Bytes) Downloaded 402 times

Then "scry 2" will be achieved with just this code:
Code: Select all
    <RESOLUTION_TIME_ACTION>
    Scry_ResolutionTimeAction1(2, 0)
    </RESOLUTION_TIME_ACTION>
    <RESOLUTION_TIME_ACTION>
    Scry_ResolutionTimeAction2()
    </RESOLUTION_TIME_ACTION>
    <RESOLUTION_TIME_ACTION>
    Scry_ResolutionTimeAction3()
    </RESOLUTION_TIME_ACTION>
    <RESOLUTION_TIME_ACTION>
    Scry_ResolutionTimeAction4()
    </RESOLUTION_TIME_ACTION>
The first argument is the scry number, while the second argument is the first target chest that the function will use (if your ability just scries once, without choosing any other target, you can leave it to 0, I made this choice possible because of Cryptic Annelid).
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
User avatar
thefiremind
Programmer
 
Posts: 3515
Joined: 07 Nov 2011, 10:55
Has thanked: 118 times
Been thanked: 722 times

Re: Card Creation Request Thread

Postby pluks » 19 Nov 2012, 21:43

thanks again thefiremind, worked perfectly with the function and the code you shared. I can now release my update :D
pluks
 
Posts: 14
Joined: 10 Oct 2012, 03:35
Has thanked: 6 times
Been thanked: 5 times

Re: Card Creation Request Thread

Postby nekrose » 27 Nov 2012, 09:32

I would like to humbly request that someone please make a Dread Slaver card. it would go perfectly with my mono black zombie deck . I would be very much obliged if such a thing were made possible, thank you for your time ^^
User avatar
nekrose
 
Posts: 23
Joined: 27 Nov 2012, 09:20
Has thanked: 10 times
Been thanked: 0 time

Re: Card Creation Request Thread

Postby thefiremind » 27 Nov 2012, 09:46

nekrose wrote:I would like to humbly request that someone please make a Dread Slaver card. it would go perfectly with my mono black zombie deck . I would be very much obliged if such a thing were made possible, thank you for your time ^^
It shouldn't be difficult if I start from a similar card, like Blood Cultist. I'm working on it. :)

EDIT: There you go! I didn't test it, but since it's a fusion between Blood Cultist and Rise from the Grave, I'm pretty positive it works. :wink:
Attachments
DREAD_SLAVER_240007.zip
(110.49 KiB) Downloaded 344 times
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
User avatar
thefiremind
Programmer
 
Posts: 3515
Joined: 07 Nov 2011, 10:55
Has thanked: 118 times
Been thanked: 722 times

Re: Card Creation Request Thread

Postby nekrose » 27 Nov 2012, 10:27

thefiremind wrote:
nekrose wrote:I would like to humbly request that someone please make a Dread Slaver card. it would go perfectly with my mono black zombie deck . I would be very much obliged if such a thing were made possible, thank you for your time ^^
It shouldn't be difficult if I start from a similar card, like Blood Cultist. I'm working on it. :)

EDIT: There you go! I didn't test it, but since it's a fusion between Blood Cultist and Rise from the Grave, I'm pretty positive it works. :wink:
Thank you so very much, kind sir! much appreciated <3 I will test it out right away :D
User avatar
nekrose
 
Posts: 23
Joined: 27 Nov 2012, 09:20
Has thanked: 10 times
Been thanked: 0 time

Re: Card Creation Request Thread

Postby loookaz » 01 Dec 2012, 11:02

Hi guys,
I have an idea for a neat deck, but I need Armadillo Cloak and Enlightened Tutor to finish it. can anyone help?

thanks in advance

lucas
loookaz
 
Posts: 131
Joined: 01 Dec 2012, 10:56
Location: Warsaw, Poland
Has thanked: 22 times
Been thanked: 2 times

Re: Card Creation Request Thread

Postby thefiremind » 01 Dec 2012, 13:36

loookaz wrote:I have an idea for a neat deck, but I need Armadillo Cloak and Enlightened Tutor to finish it. can anyone help?
There you go! As always, not tested, and I have been a bit hasty this time so if there's something wrong, let me know and I'll fix it.
Armadillo Cloak is from DotP2012, and was probably already been re-coded by RiiakShiNal, but I understand that you may want to avoid downloading an entire mod for just one card. :wink:
Attachments
ENLIGHTENED_TUTOR_15355.zip
(103.24 KiB) Downloaded 392 times
ARMADILLO_CLOAK_244905.zip
(117.16 KiB) Downloaded 414 times
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
User avatar
thefiremind
Programmer
 
Posts: 3515
Joined: 07 Nov 2011, 10:55
Has thanked: 118 times
Been thanked: 722 times

Re: Card Creation Request Thread

Postby loookaz » 01 Dec 2012, 14:04

thank you kindly for such quick response:)

i will try tomorrow to post my deck if time allows it.

cheers

lukas
loookaz
 
Posts: 131
Joined: 01 Dec 2012, 10:56
Location: Warsaw, Poland
Has thanked: 22 times
Been thanked: 2 times

Re: Card Creation Request Thread

Postby RiiakShiNal » 01 Dec 2012, 16:26

thefiremind wrote:Armadillo Cloak is from DotP2012, and was probably already been re-coded by RiiakShiNal, but I understand that you may want to avoid downloading an entire mod for just one card. :wink:
Nope, I haven't re-coded cards from DotP 2012 (because I never really messed around much with that one), but I did re-code all the cards from DotP 2010. Besides I believe someone else was working on DotP 2012 (I thought it was kevlahnota since he did the wayback 2012 campaign).
RiiakShiNal
Programmer
 
Posts: 2188
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 497 times

Re: Card Creation Request Thread

Postby thefiremind » 01 Dec 2012, 17:00

RiiakShiNal wrote:Nope, I haven't re-coded cards from DotP 2012 (because I never really messed around much with that one), but I did re-code all the cards from DotP 2010. Besides I believe someone else was working on DotP 2012 (I thought it was kevlahnota since he did the wayback 2012 campaign).
I knew I would have made confusion between 2010 and 2012... :oops: #-o
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
User avatar
thefiremind
Programmer
 
Posts: 3515
Joined: 07 Nov 2011, 10:55
Has thanked: 118 times
Been thanked: 722 times

Re: Card Creation Request Thread

Postby Theory » 01 Dec 2012, 19:01

Hey guys,

I've been searching the forums looking for Capsize and Gaea's Blessing but I haven't had much success. If they haven't been built, can anyone help? Thanks.
Theory
 
Posts: 2
Joined: 01 Dec 2012, 18:52
Has thanked: 0 time
Been thanked: 0 time

PreviousNext

Return to New MTG Cards and Decks (2010, 2012, 2013, 2014, 2015, Magic Duels)

Who is online

Users browsing this forum: No registered users and 2 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 2 guests

Login Form