It is currently 09 Sep 2025, 20:02
   
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 gorem2k » 10 Jun 2013, 20:58

gorem2k wrote:besides, you can sacrifice Qasali Pridemage even if there are no artifact or enchantment in play.
thefiremind wrote:No, this is not true, because it says "target artifact or enchantment", and you need a valid target for a targetted activated ability. In our case, the +1/+1 counter isn't targetted, of course.
This is confusing..

So Indrik Stomphowler can enter battlefield even if there are no artifact or enchantment but activated abilities like Qasali can't resolves?
gorem2k
 
Posts: 464
Joined: 01 Apr 2013, 04:21
Has thanked: 48 times
Been thanked: 33 times

Re: Card Creation Request Thread

Postby thefiremind » 10 Jun 2013, 21:02

gorem2k wrote:So Indrik Stomphowler can enter battlefield even if there are no artifact or enchantment but activated abilities like Qasali can't resolves?
Indrik Stomphowler's ability is a triggered ability. If you make it enter the battlefield with no artifacts or enchantments, its triggered ability simply won't trigger. An activated ability can be seen as a triggered ability where the trigger is your will to activate it (given that you can afford the costs), but you can't start that trigger if there are no legal targets.

But I think we are drifting away quite a bit from the topic, aren't we? :lol:
< 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 » 10 Jun 2013, 21:05

thefiremind wrote:
gorem2k wrote:If, at any point during the activation of an ability, a player is unable to comply with any of those steps, the activation is illegal
Yes, during the activation... moving the counter happens during resolution.

And I just thought of an example that auto-convinces me I did the right choice:
{T}, Discard a card: Draw a card. <- This would require 1 card in hand.
{T}: Discard a card, then draw a card. <- This wouldn't.

gorem2k wrote:besides, you can sacrifice Qasali Pridemage even if there are no artifact or enchantment in play.
No, this is not true, because it says "target artifact or enchantment", and you need a valid target for a targetted activated ability. In our case, the +1/+1 counter isn't targetted, of course.
Of course it can tap without counter on it, I add the limit just want to reduce useless operation, since I don't remember any card says "Whenever a creature becomes tapped, put a +1/+1 counter on that creature". :)

gorem2k wrote:So Indrik Stomphowler can enter battlefield even if there are no artifact or enchantment but activated abilities like Qasali can't resolves?
Yes, because no target only can cancel the trigger, but can't prevent cast the spell. :)
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 thefiremind » 10 Jun 2013, 21:09

sumomole wrote:Of course it can tap without counter on it, I add the limit just want to reduce useless operation, since I don't remember any card says "Whenever a creature becomes tapped, put a +1/+1 counter on that creature". :)
I added the limit only for the AI, just because a player can find reasons to make apparently useless moves (i.e. tap the Simic Fluxmage just to avoid being forced to block a creature that received Deadly Allure).
< 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 gorem2k » 10 Jun 2013, 21:25

thefiremind wrote:
sumomole wrote:Of course it can tap without counter on it, I add the limit just want to reduce useless operation, since I don't remember any card says "Whenever a creature becomes tapped, put a +1/+1 counter on that creature". :)
I added the limit only for the AI, just because a player can find reasons to make apparently useless moves (i.e. tap the Simic Fluxmage just to avoid being forced to block a creature that received Deadly Allure).
one thing though, this card is cast during opp turn as sorcery or instant (don't know which) so I don't know if you can tap Simic while it's not your turn. Unless you Thoughtseized him before and saw he had Deadly Allure in hand... anyway thefiremind is still right, I concede :lol: I will use his then.
gorem2k
 
Posts: 464
Joined: 01 Apr 2013, 04:21
Has thanked: 48 times
Been thanked: 33 times

Re: Card Creation Request Thread

Postby RiiakShiNal » 10 Jun 2013, 21:32

gorem2k wrote:one thing though, this card is cast during opp turn as sorcery or instant (don't know which) so I don't know if you can tap Simic while it's not your turn. Unless you Thoughtseized him before and saw he had Deadly Allure in hand... anyway thefiremind is still right, I concede :lol: I will use his then.
Simic Fluxmage's ability does not say that it can only be activated as a sorcery or only during your turn so there is no problem activating it any time as a fast effect (as long as you can pay the cost, and assuming it doesn't still have summoning sickness).
RiiakShiNal
Programmer
 
Posts: 2188
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 497 times

Re: Card Creation Request Thread

Postby gorem2k » 10 Jun 2013, 22:37

May I request.. 8-[
gorem2k
 
Posts: 464
Joined: 01 Apr 2013, 04:21
Has thanked: 48 times
Been thanked: 33 times

Re: Card Creation Request Thread

Postby BloodReyvyn » 11 Jun 2013, 09:22

gorem2k wrote:May I request.. 8-[
Sure? 8-[
"There's an experience worse than blindness - it's the certainty that your vision is perfect and the horror that there's no world around you to see."
User avatar
BloodReyvyn
 
Posts: 421
Joined: 19 May 2013, 13:29
Has thanked: 53 times
Been thanked: 40 times

Re: Card Creation Request Thread

Postby gorem2k » 11 Jun 2013, 11:08

Iname, Death Aspect <- I won't be able to do.
Infernal Kirin <- I won't be able to do.
Blinking Spirit
Spirit Cairn
Spirit Mirror <- I won't be able to do.
Twilight Drover <- I won't be able to do.
Phantom General
Mortal Combat
Haunting Misery <- I won't be able to do.
Living Death
Living End
Twilight's Call <- I won't be able to do.
Captain Sisay
*Time of Need found in thefiremind mod.
Lifespinner <- check! adapted from Salvage Titan.
Patriarch's Bidding (found in Deck_8192_Core)


*is TARGET_SORT_TYPE_SCORE a better AI score solution than Fauna Shaman's AI code?
Last edited by gorem2k on 11 Jun 2013, 15:46, edited 12 times in total.
gorem2k
 
Posts: 464
Joined: 01 Apr 2013, 04:21
Has thanked: 48 times
Been thanked: 33 times

Re: Card Creation Request Thread

Postby nivmizzet1 » 11 Jun 2013, 11:20

thefiremind wrote:
EDIT:
nivmizzet1 wrote:can someone please code the third ability of Evershrike for me.
I think that the code from Academy Researchers could be adapted for Evershrike, like this:
Code: Select all
    <RESOLUTION_TIME_ACTION>
    local source = EffectSource()
    if source ~= nil then
       EffectDC():Protect_CardPtr( COMPARTMENT_ID_EFFECT_SOURCE )
       source:PutIntoPlay( EffectController() )
    end
    </RESOLUTION_TIME_ACTION>
    <RESOLUTION_TIME_ACTION>
    local source = EffectSource()
    if source ~= nil then
       local filter = Object():GetFilter()
       filter:Clear()
       filter:AddCardType( CARD_TYPE_ENCHANTMENT )
       filter:AddSubType( ENCHANTMENT_TYPE_AURA )
       filter:SetPlayer( EffectController() )
       filter:SetZone( ZONE_HAND )
       filter:SetUnique()
       filter:NotTargetted()
       filter:May()
       filter:SetConvertedCostMax( GetEffectX() )
       local filter_count = filter:EvaluateObjects()
       if filter_count &gt; 0 then
          local candidateDC = EffectDC():Make_Chest(2)
          local candidateCount = 0
          for i=0,filter_count-1 do
             local candidate = filter:GetNthEvaluatedObject(i)
             if candidate:CanAttachTo(source) ~= 0 then
                candidateDC:Set_CardPtr( candidateCount, candidate )
                candidateCount = candidateCount + 1
             end
          end
          --EffectDC():Set_Int(1, candidateCount)
          if candidateCount &gt; 0 then
             EffectController():ChooseTargetFromDCWithFlags( NO_VALIDATION, "CARD_QUERY_CHOOSE_AURA_TO_RESEARCHERS", candidateDC, EffectDC():Make_Targets(3), QUERY_FLAG_CAN_BE_FINISHED_EARLY )
          end
       end
    end
    </RESOLUTION_TIME_ACTION>
    <RESOLUTION_TIME_ACTION>
    local source = EffectSource()
    if source ~= nil then
       local aura = nil
       local aura_chest = EffectDC():Get_Targets(3)
       if aura_chest ~= nil then
          aura = aura_chest:Get_CardPtr(0)
       end
       if aura ~= nil then
          aura:PutIntoPlayAttachedTo( EffectController(), source )
       else
          source:RemoveFromGame()
       end
    end
    </RESOLUTION_TIME_ACTION>
I commented out a line which seems totally useless to me (even on the Academy Researchers).
Remember to give active_zone="ZONE_GRAVEYARD" to the activated ability.
Thanks. Works like a charm!
nivmizzet1
 
Posts: 617
Joined: 21 Mar 2013, 10:10
Has thanked: 100 times
Been thanked: 25 times

Re: Card Creation Request Thread

Postby nivmizzet1 » 11 Jun 2013, 13:23

May I please request Retether?

I had a go myself taking code from Bruna, Light of Alabaster and Nomad Mythmaker, but I could only get the spell working like nomad mythmaker's ability (not surprising, considering I sort of gave up half-way through).

Now I think of it, the spell is very different to both those effects. It doesn't require asking which aura to take out of your graveyard as the nomad's ability does, and it shouldn't give the choice of whether to attach or not, it should just check which auras are in the graveyard and attachable, and then for each of those ask the player which creature to attach it to.

If it helps at all I've included my chimeric code:

Code: Select all
  <SPELL_ABILITY filter_zone="ZONE_IN_PLAY">
    <LOCALISED_TEXT snipped /LOCALISED_TEXT>
    <TARGET_DETERMINATION>
      return (AtLeastOneTargetFromDefinition(0) > 0 and AtLeastOneTargetFromDefinition(1) > 0) and 1 or 0
    </TARGET_DETERMINATION>
    <TARGET_DEFINITION id="0">
    local filter = Object():GetFilter()
    filter:Clear()
    filter:AddCardType( CARD_TYPE_ENCHANTMENT )
    filter:AddSubType(ENCHANTMENT_TYPE_AURA)
    filter:SetPlayer( EffectController() )
    filter:SetZone( ZONE_GRAVEYARD )
    filter:SetHint( HINT_ALLIED_ONLY, EffectController() )
    local filter_count3 = filter:EvaluateObjects()
             
    if filter_count3 &gt; 0 then
       for i=0,filter_count3-1 do
          local candidate = filter:GetNthEvaluatedObject(i)
          if candidate:CanAttachTo( creature ) ~= 0 then
             candidateDC:Set_CardPtr( candidateCount, candidate )
             candidateCount = candidateCount + 1
          end
       end
    end
    if candidateCount &gt; 0 then
   EffectController():SetTargetCount( candidateCount )
   for i=0,candidateCount-1 do
      EffectController():SetTargetPrompt( i, "CARD_QUERY_CHOOSE_AURA" )
   end
   EffectController():ChooseTargetsFromDCWithFlags( NO_VALIDATION, candidateDC, EffectDC():Make_Targets(3), QUERY_FLAG_CAN_BE_FINISHED_EARLY + QUERY_FLAG_CAN_BE_FINISHED_EARLY_FOR_AI_AS_WELL )
    end
    </TARGET_DEFINITION>
    <TARGET_DEFINITION id="1">
    <![CDATA[
      local filter = Object():GetFilter()
      filter:Clear()
      filter:AddCardType(CARD_TYPE_CREATURE)
      filter:SetController(EffectController())
      filter:SetZone(ZONE_IN_PLAY)
      filter:SetHint(HINT_ALLIED, EffectController())
      filter:NotTargetted()
    ]]>
    </TARGET_DEFINITION>
    <PLAY_TIME_ACTION target_choosing="1">
    <![CDATA[
      EffectController():ChooseTarget(0, "CARD_QUERY_CHOOSE_AURA_TO_PUT_ONTO_BATTLEFIELD", EffectDC():Make_Targets(0))
    ]]>
    </PLAY_TIME_ACTION>
    <PLAY_TIME_ACTION target_choosing="1">
    <![CDATA[
      EffectController():ChooseTarget(1, "CARD_QUERY_CHOOSE_CREATURE_TO_ENCHANT", EffectDC():Make_Targets(1))
    ]]>
    </PLAY_TIME_ACTION>
    <RESOLUTION_TIME_ACTION>
    <![CDATA[
      local aura     = EffectDC():Get_Targets(0):Get_CardPtr(0)
      local creature = EffectDC():Get_Targets(1):Get_CardPtr(0)
      local player   = EffectController()
      if player and creature and aura and aura:GetZone() == ZONE_GRAVEYARD and aura:CanAttachTo(creature) ~= 0 then
         aura:PutIntoPlayAttachedTo(player, creature)
      end
    ]]>
    </RESOLUTION_TIME_ACTION>
  </SPELL_ABILITY>
</CARD_V2>
nivmizzet1
 
Posts: 617
Joined: 21 Mar 2013, 10:10
Has thanked: 100 times
Been thanked: 25 times

Re: Card Creation Request Thread

Postby sumomole » 11 Jun 2013, 13:51

gorem2k wrote:Iname, Death Aspect <- I won't be able to do.
Infernal Kirin <- I won't be able to do.
Blinking Spirit
Spirit Cairn
Spirit Mirror <- I won't be able to do.
Twilight Drover <- I won't be able to do.
Phantom General
Mortal Combat
Haunting Misery <- I won't be able to do.
Living Death
Living End
Twilight's Call <- I won't be able to do.
Captain Sisay
*Time of Need found in thefiremind mod.
Lifespinner <- check! adapted from Salvage Titan.
Patriarch's Bidding (found in Deck_8192_Core)


*is TARGET_SORT_TYPE_SCORE a better AI score solution than Fauna Shaman's AI code?
I have Living End & Living Death, and I think the other cards also can be coded. :)
cards.zip
Living End & Living Death
(235 KiB) Downloaded 310 times


EDIT: Complete the rest 6 cards.
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 gorem2k » 11 Jun 2013, 16:34

Great!

I was kind of stuck with Infernal Kirin.

Code: Select all
    <TRIGGER value="SPELL_PLAYED" simple_qualifier="objectyoucontrol">
   --this is not ok for every spirit & arcane spells
    return TriggerObject():GetSubType():Test( CREATURE_TYPE_SPIRIT ) ~= 0
    </TRIGGER>
    <TARGET_DEFINITION id="0">
      local filter = Object():GetFilter()
      filter:Clear()
      filter:SetFilterType( FILTER_TYPE_PLAYERS )
      filter:SetHint( HINT_ENEMY_ONLY, EffectController() )
    </TARGET_DEFINITION>
    <TARGET_DETERMINATION>
      return AtLeastOneTargetFromDefinition(0)
    </TARGET_DETERMINATION>
    <PLAY_TIME_ACTION target_choosing="1">
      EffectController():ChooseTarget( 0, "CARD_QUERY_CHOOSE_PLAYER", EffectDC():Make_Targets(0) )
    </PLAY_TIME_ACTION>
    <RESOLUTION_TIME_ACTION>
     local player = EffectDC():Get_Targets(0):Get_PlayerPtr(0)
     local filter = Object():GetFilter()   
     if player ~= nil then   
        player:RevealHand()
     end
    -- discard all cards with cmc of spell
    </RESOLUTION_TIME_ACTION>
but now I will examine your codes and learn from it! tnx again
gorem2k
 
Posts: 464
Joined: 01 Apr 2013, 04:21
Has thanked: 48 times
Been thanked: 33 times

Re: Card Creation Request Thread

Postby gorem2k » 11 Jun 2013, 17:28

sumomole,

Something's odd with Iname, Death Aspect. (625270.tdx)

I don't know why but it's pitch black in game.

EDIT: nevermind, a bug in deck builder.

EDIT2: you might want to change "CARD_QUERY_CHOOSE_GOBLIN_TO_PUT_ONTO_LIBRARY" to "CARD_QUERY_CHOOSE_CREATURE_TO_PUT_INTO_GRAVEYARD" though :lol:
gorem2k
 
Posts: 464
Joined: 01 Apr 2013, 04:21
Has thanked: 48 times
Been thanked: 33 times

Re: Card Creation Request Thread

Postby BloodReyvyn » 12 Jun 2013, 12:34

A couple other cards that my friend requested that I ended up not using.

Contents:

Teeka's Dragon
Shrine of Burning Rage
Hellion Crucible (+ Token)
Keening Stone
Culling Dais

And 2 cards from M14: Angelic Accord and Primeval Bounty ;)

https://www.dropbox.com/s/drhc0h91u78j1ya/7CardsReq.zip

EDIT: Weird none of those have mouse-over info... lol except the M14 stuff obviously. BTW sorry about the really low quality image for Primeval Bounty, it was the best one I could find.
"There's an experience worse than blindness - it's the certainty that your vision is perfect and the horror that there's no world around you to see."
User avatar
BloodReyvyn
 
Posts: 421
Joined: 19 May 2013, 13:29
Has thanked: 53 times
Been thanked: 40 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 17 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 17 users online :: 0 registered, 0 hidden and 17 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 17 guests

Login Form