It is currently 03 Aug 2025, 21:59
   
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 NEMESiS » 11 May 2013, 15:11

Does any have Rhystic Study?
User avatar
NEMESiS
 
Posts: 460
Joined: 03 Jan 2013, 04:02
Location: Pools of Becoming
Has thanked: 70 times
Been thanked: 21 times

Re: Card Creation Request Thread

Postby Master Necro » 11 May 2013, 15:12

sumomole wrote:
thefiremind wrote:
sumomole wrote:I do not quite understand what you mean
Try my code and you'll see that protecting the card pointer doesn't have any effect. In fact, if you substitute the ZONECHANGE_BEGIN trigger with a ZONECHANGE_END trigger and protect the card pointer before setting the delayed trigger, you'll be able to do one more action (exiling the spell), but it won't be attached to the creature.

sumomole wrote:if a card with haunt is removed from the graveyard in response to its haunt ability triggering, the haunt ability will resolve.
MTG Salvation wrote:If a card with haunt is removed from the graveyard in response to its haunt ability triggering, the haunt ability will resolve. But since the card can't be removed from the game, it won't haunt the target creature.
If you address the card with Object(), the pointer will never be lost and in this case the haunt ability will resolve AND haunt the target creature.
I know what you said now :mrgreen:

EDIT: Test this?

Benediction of Moons | Open
Code: Select all
  <TRIGGERED_ABILITY resource_id="1">
    <CLEANUP fire_once="1" />
    <CLEANUP simple_cleanup="EndOfTurn" />
    <TRIGGER value="ZONECHANGE_BEGIN" to_zone="ZONE_GRAVEYARD" from_zone="ZONE_STACK">
    EffectDC():Protect_CardPtr(COMPARTMENT_ID_EFFECT_SOURCE)
    return TriggerObject() ~= nil and TriggerObject() == EffectDC():Get_CardPtr(1)
    </TRIGGER>
    <TARGET_DEFINITION id="0">
    local filter = Object():GetFilter()
    filter:Clear()
    filter:AddCardType( CARD_TYPE_CREATURE )
    filter:SetZone( ZONE_IN_PLAY )
    filter:SetHint( HINT_NEUTRAL, EffectController() )
    </TARGET_DEFINITION>
    <TARGET_DETERMINATION>
    return AtLeastOneTargetFromDefinition(0)
    </TARGET_DETERMINATION>
    <PLAY_TIME_ACTION target_choosing="1">
    EffectController():ChooseTarget( 0, "CARD_QUERY_CHOOSE_CREATURE_TO_HAUNT", EffectDC():Make_Targets(0) )
    </PLAY_TIME_ACTION>
    <PLAY_TIME_ACTION>
    if EffectSource() ~= nil and EffectSource():GetZone() == ZONE_GRAVEYARD then
      EffectDC():Protect_CardPtr(COMPARTMENT_ID_EFFECT_SOURCE)
    end
    </PLAY_TIME_ACTION>
    <RESOLUTION_TIME_ACTION>
    local target = EffectDC():Get_Targets(0):Get_CardPtr(0)
    ObjectDC():Free_Compartment(0)
    if target ~= nil and EffectSource() ~= nil then
      if EffectSource():GetZone() == ZONE_GRAVEYARD then
        EffectSource():RemoveFromGame()
      end
      if EffectSource():GetZone() == ZONE_REMOVED_FROM_GAME then
         EffectSource():NailOnto( target )
        ObjectDC():Set_CardPtr(0, target)
      end
    end
    </RESOLUTION_TIME_ACTION>
  </TRIGGERED_ABILITY>
Works like a charm so far. :)

Btw anyone have the code for the Derge skill? :)

And I really, really need the Golgari Cluestone.
User avatar
Master Necro
 
Posts: 259
Joined: 24 Apr 2013, 18:25
Has thanked: 83 times
Been thanked: 21 times

Re: Card Creation Request Thread

Postby Kieran » 11 May 2013, 15:57

I wasn't aware of that pertaining to Cavern of Souls. And my fingers are crossed.
Kieran
 
Posts: 232
Joined: 03 Nov 2012, 01:09
Has thanked: 21 times
Been thanked: 16 times

Re: Card Creation Request Thread

Postby thefiremind » 11 May 2013, 16:04

This was much harder than Ink-Treader Nephilim... I won't be doing any card that has something to do with copies for a looooong time. :lol:

I'm not sure if the AI can understand how to use it: I made my tests with weenies to be quicker, so the choice about which creature to enchant wasn't a big deal. With a big creature on the battlefield, who knows...
Attachments
INFINITE_REFLECTION_271117.zip
(97.76 KiB) Downloaded 385 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 sumomole » 11 May 2013, 16:12

NEMESiS wrote:Does any have Rhystic Study?
Code: Select all
  <TRIGGERED_ABILITY auto_skip="1">
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Whenever an opponent casts a spell, you may draw a card unless that player pays {1}.]]></LOCALISED_TEXT>
    <TRIGGER value="SPELL_PLAYED">
    return TriggerPlayer():GetTeam() ~= EffectController():GetTeam()
    </TRIGGER>
    <RESOLUTION_TIME_ACTION>
    local opponent = TriggerPlayer()
    if opponent ~= nil and opponent:CanAfford("{1}") == 1 then
       opponent:BeginNewMultipleChoice()   
       opponent:AddMultipleChoiceAnswer( "CARD_QUERY_OPTION_PAY_1" )   
       opponent:AddMultipleChoiceAnswer( "CARD_QUERY_DO_NOTHING" )   
       opponent:AskMultipleChoiceQuestion( "CARD_QUERY_MC_CHOOSE_MODE" )
    end
    </RESOLUTION_TIME_ACTION>
    <RESOLUTION_TIME_ACTION>
    local opponent = TriggerPlayer()
    local decision = Object():GetMultipleChoiceResult()
    if opponent ~= nil and opponent:CanAfford("{1}") == 1 then
      if decision ~= 1 then
        opponent:TapLand("{1}")
      else        
         EffectDC():Set_Int(0, 1)
      end     
    else        
      EffectDC():Set_Int(0, 1)
    end
    </RESOLUTION_TIME_ACTION>
    <RESOLUTION_TIME_ACTION>
    local player = EffectController()
    if player:IsAI() == 0 and EffectDC():Get_Int(0) == 1 then
       player:BeginNewMultipleChoice()   
       player:AddMultipleChoiceAnswer( "CARD_QUERY_OPTION_YES" )   
       player:AddMultipleChoiceAnswer( "CARD_QUERY_OPTION_NO" )   
       player:AskMultipleChoiceQuestion( "CARD_QUERY_DRAW_A_CARD")
    end
    </RESOLUTION_TIME_ACTION>
    <RESOLUTION_TIME_ACTION>
    local player = EffectController()
    if player:IsAI() == 0 and EffectDC():Get_Int(0) == 1 then
       local decision = Object():GetMultipleChoiceResult()
       if decision == 0 then
          player:DrawCard()
       end
    elseif CountCardsInLibrary(player) &gt; 5 and EffectDC():Get_Int(0) == 1 then
       player:DrawCard()
    end
    </RESOLUTION_TIME_ACTION>
  </TRIGGERED_ABILITY>
User avatar
sumomole
Programmer
 
Posts: 611
Joined: 07 Jun 2011, 08:34
Has thanked: 51 times
Been thanked: 234 times

Re: Card Creation Request Thread

Postby Scion of Darkness » 11 May 2013, 16:14

Fire i need some more help the code you sent removes the top card as expected but fails to return them to hand can you take a look please?
User avatar
Scion of Darkness
 
Posts: 235
Joined: 27 Aug 2012, 13:14
Has thanked: 17 times
Been thanked: 23 times

Re: Card Creation Request Thread

Postby thefiremind » 11 May 2013, 16:30

Scion of Darkness wrote:Fire i need some more help the code you sent removes the top card as expected but fails to return them to hand can you take a look please?
I didn't notice that you wrote PutIntoHand rather than PutInHand... #-o If you search for SCRIPT_LOG.TXT in your game directory and open it, I'm sure that you can find a clue about that.

By the way, everyone here should get used with posting SCRIPT_LOG.TXT contents when reporting a card that doesn't work: it would make fixing much quicker.
< 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 becauseafrica » 11 May 2013, 16:59

is it possible to code Proclamation of Rebirth ? I will be happy if somebody make it
(maybe without forecast)
becauseafrica
 
Posts: 13
Joined: 24 Jan 2012, 07:34
Has thanked: 9 times
Been thanked: 0 time

Re: Card Creation Request Thread

Postby thefiremind » 11 May 2013, 18:26

becauseafrica wrote:is it possible to code Proclamation of Rebirth ? I will be happy if somebody make it
(maybe without forecast)
Forecast isn't a problem... well, not a big one. The annoying thing is that DotP can't notice if there's something that can be done only during the upkeep, so you aren't given the time to do that unless you are responding to something else. That's why I added a "dummy" trigger that does nothing but giving you time to activate the forecast (if you can afford {5} {W}). The only downside is that if you have multiple cards with forecast in your hand, each one will give you that time and you'll have to wait for too long. In short, if someone wants to make a forecast deck, we'll need a better idea. :lol:
Attachments
PROCLAMATION_OF_REBIRTH_107341.zip
(116.81 KiB) Downloaded 563 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 sumomole » 11 May 2013, 18:45

thefiremind wrote:
becauseafrica wrote:is it possible to code Proclamation of Rebirth ? I will be happy if somebody make it
(maybe without forecast)
Forecast isn't a problem... well, not a big one. The annoying thing is that DotP can't notice if there's something that can be done only during the upkeep, so you aren't given the time to do that unless you are responding to something else. That's why I added a "dummy" trigger that does nothing but giving you time to activate the forecast (if you can afford {5} {W}). The only downside is that if you have multiple cards with forecast in your hand, each one will give you that time and you'll have to wait for too long. In short, if someone wants to make a forecast deck, we'll need a better idea. :lol:
The "dummy" trigger: :mrgreen:
Code: Select all
  <TRIGGERED_ABILITY priority="-10" active_zone="ZONE_HAND">
     <TRIGGER value="BEGINNING_OF_STEP" simple_qualifier="controller">
    local filter = Object():GetFilter()
    filter:Clear()
    filter:NotTargetted()
    filter:SetZone( ZONE_HAND )
    filter:SetController( EffectController() )
    filter:AddCardName( Object():GetCardName() )
    local total = filter:EvaluateObjects()
    if total &gt; 0 then
      if Object() == filter:GetNthEvaluatedObject(0) then   
        filter:Clear()
        filter:AddCardType( CARD_TYPE_CREATURE )
        filter:SetPlayer( EffectController() )
        filter:SetZone( ZONE_GRAVEYARD )
        filter:SetConvertedCostMax(1)
        if filter:CountStopAt( 1 ) == 1 then
          return ( EffectController():MyTurn() ~= 0 ) and ( MTG():GetStep() == STEP_UPKEEP ) and ( EffectController():CanAfford("{5}{W}") == 1 )
        end
      end
    end
      return false
    </TRIGGER>
    <RESOLUTION_TIME_ACTION />
  </TRIGGERED_ABILITY>
User avatar
sumomole
Programmer
 
Posts: 611
Joined: 07 Jun 2011, 08:34
Has thanked: 51 times
Been thanked: 234 times

Re: Card Creation Request Thread

Postby NEMESiS » 11 May 2013, 18:47

sumomole wrote:
NEMESiS wrote:Does any have Rhystic Study?
Code: Select all
  <TRIGGERED_ABILITY auto_skip="1">
    <LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Whenever an opponent casts a spell, you may draw a card unless that player pays {1}.]]></LOCALISED_TEXT>
    <TRIGGER value="SPELL_PLAYED">
    return TriggerPlayer():GetTeam() ~= EffectController():GetTeam()
    </TRIGGER>
    <RESOLUTION_TIME_ACTION>
    local opponent = TriggerPlayer()
    if opponent ~= nil and opponent:CanAfford("{1}") == 1 then
       opponent:BeginNewMultipleChoice()   
       opponent:AddMultipleChoiceAnswer( "CARD_QUERY_OPTION_PAY_1" )   
       opponent:AddMultipleChoiceAnswer( "CARD_QUERY_DO_NOTHING" )   
       opponent:AskMultipleChoiceQuestion( "CARD_QUERY_MC_CHOOSE_MODE" )
    end
    </RESOLUTION_TIME_ACTION>
    <RESOLUTION_TIME_ACTION>
    local opponent = TriggerPlayer()
    local decision = Object():GetMultipleChoiceResult()
    if opponent ~= nil and opponent:CanAfford("{1}") == 1 then
      if decision ~= 1 then
        opponent:TapLand("{1}")
      else        
         EffectDC():Set_Int(0, 1)
      end     
    else        
      EffectDC():Set_Int(0, 1)
    end
    </RESOLUTION_TIME_ACTION>
    <RESOLUTION_TIME_ACTION>
    local player = EffectController()
    if player:IsAI() == 0 and EffectDC():Get_Int(0) == 1 then
       player:BeginNewMultipleChoice()   
       player:AddMultipleChoiceAnswer( "CARD_QUERY_OPTION_YES" )   
       player:AddMultipleChoiceAnswer( "CARD_QUERY_OPTION_NO" )   
       player:AskMultipleChoiceQuestion( "CARD_QUERY_DRAW_A_CARD")
    end
    </RESOLUTION_TIME_ACTION>
    <RESOLUTION_TIME_ACTION>
    local player = EffectController()
    if player:IsAI() == 0 and EffectDC():Get_Int(0) == 1 then
       local decision = Object():GetMultipleChoiceResult()
       if decision == 0 then
          player:DrawCard()
       end
    elseif CountCardsInLibrary(player) &gt; 5 and EffectDC():Get_Int(0) == 1 then
       player:DrawCard()
    end
    </RESOLUTION_TIME_ACTION>
  </TRIGGERED_ABILITY>
Thank you. :D

Master Necro wrote:
And I really, really need the Golgari Cluestone.
Here you go:
Attachments
Golgari Cluestone.zip
(390.1 KiB) Downloaded 421 times
User avatar
NEMESiS
 
Posts: 460
Joined: 03 Jan 2013, 04:02
Location: Pools of Becoming
Has thanked: 70 times
Been thanked: 21 times

Re: Card Creation Request Thread

Postby Kieran » 11 May 2013, 22:59

Perhaps now would be a good time to request all the Cluestones. Also, thanks for the Infinite Reflection. And thanks in general for everyone's effort.
Kieran
 
Posts: 232
Joined: 03 Nov 2012, 01:09
Has thanked: 21 times
Been thanked: 16 times

Re: Card Creation Request Thread

Postby MalevolentZero » 12 May 2013, 05:09

I'm still really hoping someone can do the rest of my requests! I made a somewhat playable version of my Nephilim deck, but its so slow and unreliable without some good mana filtering T.T. I'd really appreciate it!

Reposting for convenience:
Phyrexian Unlife
Orochi Leafcaller
Chromatic Lantern
Soul's Grace (not necessarily necessary xP)

Also, does anyone know if Cabal Coffers has been done already? To me it seems like it would already have been a popular request due to its power.
MalevolentZero
 
Posts: 15
Joined: 06 May 2013, 09:40
Has thanked: 4 times
Been thanked: 0 time

Re: Card Creation Request Thread

Postby thefiremind » 12 May 2013, 08:19

MalevolentZero wrote:Phyrexian Unlife
Could you please take a good look at the previous page of this topic? :mrgreen: :wink:
< 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 Master Necro » 12 May 2013, 08:54

NEMESiS wrote:
Here you go:
Thanks a million man! :)

So is the Dredge skill possible to code in the game?
User avatar
Master Necro
 
Posts: 259
Joined: 24 Apr 2013, 18:25
Has thanked: 83 times
Been thanked: 21 times

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 0 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 0 users online :: 0 registered, 0 hidden and 0 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 0 guests

Login Form