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)



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!
Get MTG cards here for your DotP that aren't available anywhere else!
Moderator: CCGHQ Admins
Re: Card Creation Request Thread
by gorem2k » 10 Jun 2013, 20:58
gorem2k wrote:besides, you can sacrifice Qasali Pridemage even if there are no artifact or enchantment in play.
This is confusing..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.
So Indrik Stomphowler can enter battlefield even if there are no artifact or enchantment but activated abilities like Qasali can't resolves?
Re: Card Creation Request Thread
by thefiremind » 10 Jun 2013, 21:02
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.gorem2k wrote:So Indrik Stomphowler can enter battlefield even if there are no artifact or enchantment but activated abilities like Qasali can't resolves?
But I think we are drifting away quite a bit from the topic, aren't we?

< Former DotP 2012/2013/2014 modder >
Currently busy with life...
Currently busy with life...
-
thefiremind - Programmer
- Posts: 3515
- Joined: 07 Nov 2011, 10:55
- Has thanked: 118 times
- Been thanked: 722 times
Re: Card Creation Request Thread
by sumomole » 10 Jun 2013, 21:05
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".thefiremind wrote:Yes, during the activation... moving the counter happens during resolution.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
And I just thought of an example that auto-convinces me I did the right choice:, Discard a card: Draw a card. <- This would require 1 card in hand.
: Discard a card, then draw a card. <- This wouldn't.
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.gorem2k wrote:besides, you can sacrifice Qasali Pridemage even if there are no artifact or enchantment in play.

Yes, because no target only can cancel the trigger, but can't prevent cast the spell.gorem2k wrote:So Indrik Stomphowler can enter battlefield even if there are no artifact or enchantment but activated abilities like Qasali can't resolves?

-
sumomole - Programmer
- Posts: 611
- Joined: 07 Jun 2011, 08:34
- Has thanked: 51 times
- Been thanked: 234 times
Re: Card Creation Request Thread
by thefiremind » 10 Jun 2013, 21:09
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).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".
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
Currently busy with life...
-
thefiremind - Programmer
- Posts: 3515
- Joined: 07 Nov 2011, 10:55
- Has thanked: 118 times
- Been thanked: 722 times
Re: Card Creation Request Thread
by gorem2k » 10 Jun 2013, 21:25
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 concedethefiremind wrote: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).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".

Re: Card Creation Request Thread
by RiiakShiNal » 10 Jun 2013, 21:32
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).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 concedeI will use his then.
Just getting started: Xander9009's DotP 2014 Community Wad
Need a deck builder: DotP 2014 Deck Builder
Problems Modding: DotP 2014 Frequent Modding Mistakes
Need a deck builder: DotP 2014 Deck Builder
Problems Modding: DotP 2014 Frequent Modding Mistakes
- RiiakShiNal
- Programmer
- Posts: 2188
- Joined: 16 May 2011, 21:37
- Has thanked: 75 times
- Been thanked: 497 times
Re: Card Creation Request Thread
by BloodReyvyn » 11 Jun 2013, 09:22
Sure?gorem2k wrote:May I request..

"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."
-
BloodReyvyn - Posts: 421
- Joined: 19 May 2013, 13:29
- Has thanked: 53 times
- Been thanked: 40 times
Re: Card Creation Request Thread
by 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?
Infernal Kirin <- I won't be able to do.
Spirit Mirror <- I won't be able to do.
Twilight Drover <- I won't be able to do.
Haunting Misery <- I won't be able to do.
Twilight's Call <- I won't be able to do.
*
*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.
Re: Card Creation Request Thread
by nivmizzet1 » 11 Jun 2013, 11:20
Thanks. Works like a charm!thefiremind wrote:
EDIT:I think that the code from Academy Researchers could be adapted for Evershrike, like this:nivmizzet1 wrote:can someone please code the third ability of Evershrike for me.I commented out a line which seems totally useless to me (even on the Academy Researchers).
- 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 > 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 > 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>
Remember to give active_zone="ZONE_GRAVEYARD" to the activated ability.
______________________________________
my DOTP 2014 Main mod page - my DOTP 2014 OP Decks mod page - Community WAD
my DOTP 2014 Main mod page - my DOTP 2014 OP Decks mod page - Community WAD
- nivmizzet1
- Posts: 617
- Joined: 21 Mar 2013, 10:10
- Has thanked: 100 times
- Been thanked: 25 times
Re: Card Creation Request Thread
by 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:
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 > 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 > 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>
______________________________________
my DOTP 2014 Main mod page - my DOTP 2014 OP Decks mod page - Community WAD
my DOTP 2014 Main mod page - my DOTP 2014 OP Decks mod page - Community WAD
- nivmizzet1
- Posts: 617
- Joined: 21 Mar 2013, 10:10
- Has thanked: 100 times
- Been thanked: 25 times
Re: Card Creation Request Thread
by sumomole » 11 Jun 2013, 13:51
I have Living End & Living Death, and I think the other cards also can be coded.gorem2k wrote:Iname, Death Aspect <- I won't be able to do.
Infernal Kirin <- I won't be able to do.Blinking SpiritSpirit Cairn
Spirit Mirror <- I won't be able to do.
Twilight Drover <- I won't be able to do.Phantom GeneralMortal Combat
Haunting Misery <- I won't be able to do.Living DeathLiving End
Twilight's Call <- I won't be able to do.Captain Sisay
*Time of Needfound 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?

cards.zip
- Living End & Living Death
- (235 KiB) Downloaded 310 times
EDIT: Complete the rest 6 cards.
cards 2.zip
- Iname, Death Aspect & Infernal Kirin & Spirit Mirror & Twilight Drover & Haunting Misery & Twilight’s Call
- (780 KiB) Downloaded 324 times
-
sumomole - Programmer
- Posts: 611
- Joined: 07 Jun 2011, 08:34
- Has thanked: 51 times
- Been thanked: 234 times
Re: Card Creation Request Thread
by gorem2k » 11 Jun 2013, 16:34
Great!
I was kind of stuck with Infernal Kirin.
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>
Re: Card Creation Request Thread
by 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
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

Re: Card Creation Request Thread
by 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.
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."
-
BloodReyvyn - Posts: 421
- Joined: 19 May 2013, 13:29
- Has thanked: 53 times
- Been thanked: 40 times
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 18 guests