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 sumomole » 28 Apr 2013, 10:15
If you want Downsize, you can modify Weapon Surge, they are very similar.KnowledgeJunkie7 wrote:I ask because I was interested in adding Downsize to a blue/green deck
PS: overload is alternative costs, not additional costs such as kicker.
-
sumomole - Programmer
- Posts: 611
- Joined: 07 Jun 2011, 08:34
- Has thanked: 51 times
- Been thanked: 234 times
Re: Card Creation Request Thread
by sumomole » 28 Apr 2013, 12:13
I don't know the standard code of the O-Naginata's first ability. My code maybe has bug.
- Attachments
-
CARDS.zip
- O-Naginata, Ronin Warclub and One with Nothing
- (341.53 KiB) Downloaded 285 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 thefiremind » 28 Apr 2013, 12:53
I don't think that there's a clean way to do that. Here's how I made the restriction for Konda's Banner (besides changing the target filter of the equip ability, of course):sumomole wrote:I don't know the standard code of the O-Naginata's first ability. My code maybe has bug.
- Code: Select all
<TRIGGERED_ABILITY internal="1" pre_trigger="1">
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Konda’s Banner can be attached only to a legendary creature.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Il Vessillo di Konda può essere assegnato solo a una creatura leggendaria.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Kondas Banner kann nur an eine legendäre Kreatur angelegt werden.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[La Bannière de Konda ne peut être attachée qu’à une créature légendaire.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[El Estandarte de Konda sólo puede ser anexado a una criatura legendaria.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[今田の旗印は伝説のクリーチャーにのみつけることができる。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Konda’s Banner can be attached only to a legendary creature.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Konda’s Banner can be attached only to a legendary creature.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Estandarte de Konda só pode ser anexado a uma criatura lendária.]]></LOCALISED_TEXT>
<TRIGGER value="EQUIPMENT_ATTACHED">
if TriggerObject() == Object() and SecondaryObject():GetSupertype():Test( SUPERTYPE_LEGENDARY ) == 0 then
override = 1
return true
end
return false
</TRIGGER>
</TRIGGERED_ABILITY>
< 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 » 28 Apr 2013, 13:13
First ability including two effects: 1, O-Naginata can be attached only to a creature with 3 or more power; 2, O-Naginata becomes unattached if the equipped creature's power is less than 3 as state-based actions are checked.thefiremind wrote:I don't think that there's a clean way to do that. Here's how I made the restriction for Konda's Banner (besides changing the target filter of the equip ability, of course)sumomole wrote:I don't know the standard code of the O-Naginata's first ability. My code maybe has bug.
I chose to override the attachment. Anyway there shouldn't be much difference.
TRIGGER_EQUIPMENT_ATTACHED seems only to achieve the first effect.
-
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 » 28 Apr 2013, 13:28
You're right, I'll add that to my Banner. 

< 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 Master Necro » 28 Apr 2013, 14:04
sumomole wrote:I don't know the standard code of the O-Naginata's first ability. My code maybe has bug.
Thanks will check that.thefiremind wrote:I don't think that there's a clean way to do that. Here's how I made the restriction for Konda's Banner (besides changing the target filter of the equip ability, of course):sumomole wrote:I don't know the standard code of the O-Naginata's first ability. My code maybe has bug.I chose to override the attachment. Anyway there shouldn't be much difference.
- Code: Select all
<TRIGGERED_ABILITY internal="1" pre_trigger="1">
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Konda’s Banner can be attached only to a legendary creature.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[Il Vessillo di Konda può essere assegnato solo a una creatura leggendaria.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[Kondas Banner kann nur an eine legendäre Kreatur angelegt werden.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[La Bannière de Konda ne peut être attachée qu’à une créature légendaire.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[El Estandarte de Konda sólo puede ser anexado a una criatura legendaria.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[今田の旗印は伝説のクリーチャーにのみつけることができる。]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[Konda’s Banner can be attached only to a legendary creature.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[Konda’s Banner can be attached only to a legendary creature.]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[Estandarte de Konda só pode ser anexado a uma criatura lendária.]]></LOCALISED_TEXT>
<TRIGGER value="EQUIPMENT_ATTACHED">
if TriggerObject() == Object() and SecondaryObject():GetSupertype():Test( SUPERTYPE_LEGENDARY ) == 0 then
override = 1
return true
end
return false
</TRIGGER>
</TRIGGERED_ABILITY>

Btw, and this is the last that I will ask in some time I promise


-
Master Necro - Posts: 259
- Joined: 24 Apr 2013, 18:25
- Has thanked: 83 times
- Been thanked: 21 times
Re: Card Creation Request Thread
by sumomole » 28 Apr 2013, 14:11
-
sumomole - Programmer
- Posts: 611
- Joined: 07 Jun 2011, 08:34
- Has thanked: 51 times
- Been thanked: 234 times
Re: Card Creation Request Thread
by sumomole » 28 Apr 2013, 14:41
Master Necro wrote:Btw, and this is the last that I will ask in some time I promise, can anyone make Night of Souls' Betrayal?
Night of Souls' Betrayal.zip
- (117.38 KiB) Downloaded 299 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 Master Necro » 28 Apr 2013, 14:48
Thanks!sumomole wrote:Master Necro wrote:Btw, and this is the last that I will ask in some time I promise, can anyone make Night of Souls' Betrayal?

-
Master Necro - Posts: 259
- Joined: 24 Apr 2013, 18:25
- Has thanked: 83 times
- Been thanked: 21 times
Re: Card Creation Request Thread
by KnowledgeJunkie7 » 28 Apr 2013, 20:45
Hey, I took a peak at Weapon Surge as you mentioned, and I tried to apply it to Downsize as I thought it should fit, but there's an issue: I can't cast it as it always says there are no available targets.sumomole wrote:If you want Downsize, you can modify Weapon Surge, they are very similar.KnowledgeJunkie7 wrote:I ask because I was interested in adding Downsize to a blue/green deck
PS: overload is alternative costs, not additional costs such as kicker.
Here's my version of it (with an illustration I added later following kevlahnota's guide)- could I maybe get a tip on why it might not find any targets?
- Attachments
-
Downsize.zip
- (102.64 KiB) Downloaded 258 times
- KnowledgeJunkie7
- Posts: 11
- Joined: 26 Apr 2013, 21:08
- Has thanked: 0 time
- Been thanked: 0 time
Re: Card Creation Request Thread
by sumomole » 28 Apr 2013, 22:15
You only need to changedKnowledgeJunkie7 wrote:I took a peak at Weapon Surge as you mentioned, and I tried to apply it to Downsize as I thought it should fit, but there's an issue: I can't cast it as it always says there are no available targets.


Code "you don't control" is:
- Code: Select all
<TARGET_DEFINITION id="0">
local filter = Object():GetFilter()
filter:Clear()
filter:AddCardType( CARD_TYPE_CREATURE )
filter:SetZone( ZONE_IN_PLAY )
filter:SetPlayer( EffectController() )
filter:AddExtra( FILTER_EXTRA_FLIP_PLAYER )
filter:SetHint( HINT_ENEMY_ONLY, EffectController() )
</TARGET_DEFINITION>
- Code: Select all
<FILTER>
return CreaturesInPlay() and YouDontControl()
</FILTER>
-
sumomole - Programmer
- Posts: 611
- Joined: 07 Jun 2011, 08:34
- Has thanked: 51 times
- Been thanked: 234 times
Re: Card Creation Request Thread
by Scion of Darkness » 29 Apr 2013, 09:59
Sumomole, i'll try to explain what i was trying to achieve that unoficial code you saw on the lines that are AI available are set to when the opponent draws a card it looks into the hand and chooses the mana ability with the chroma count, and when the player activate the ability instead of a query it rotates in case of dual lands, so my idea was merging that card with your card draw lookup ability and that was why i changed the miracle cards with slivers, since most of the times the cards drawn are going to be played on the same turn it could make the use of the dual lands more simple.
That combined with the modded land walk badges i've made could make the use of dual lands more natural, like the basic lands of the game.
That combined with the modded land walk badges i've made could make the use of dual lands more natural, like the basic lands of the game.
- Attachments
-
MECHANIC_MULTI_LAND.zip
- (3.29 KiB) Downloaded 212 times
-
Scion of Darkness - Posts: 235
- Joined: 27 Aug 2012, 13:14
- Has thanked: 17 times
- Been thanked: 23 times
Re: Card Creation Request Thread
by sumomole » 29 Apr 2013, 13:12
I agree with your idea and wish you success, I just don't understand the following code, it use pre_trigger and Interrogate_CardsDrawnThisTurn because it's only code for miracle ability, its purpose is to change the land color whenever you would draw the first card each turn is a miracle card, if you want the multicolorland can auto convert color when you draw card, You don't need to use those code, it's useless.Scion of Darkness wrote:That combined with the modded land walk badges i've made could make the use of dual lands more natural, like the basic lands of the game.

- Code: Select all
<TRIGGERED_ABILITY internal="1" pre_trigger="1" priority="-10" filter_zone="ZONE_IN_PLAY">
<TRIGGER value="DREW_CARD" simple_qualifier="controller">
local card = EffectController():Library_GetNth(0)
local drawCard = MTG():Interrogate_CardsDrawnThisTurn(EffectController())
if card ~= nil and drawCard == 1 then
return TriggerPlayer() == EffectController()
else
return false
end
</TRIGGER>
<RESOLUTION_TIME_ACTION>
local card = EffectController():Library_GetNth(0)
if (card:GetCardName() == "GEMHIDE_SLIVER" or card:GetCardName() == "MUSCLE_SLIVER" or card:GetCardName() == "DESCENDANT'S_PATH") and EffectController():CanAfford("{G}") == 0 then
MultiLand:GrantAbility(COLOUR_GREEN)
elseif (card:GetCardName() == "CRYPT_SLIVER" or card:GetCardName() == "TOXIN_SLIVER") and EffectController():CanAfford("{U}") == 0 then
MultiLand:GrantAbility(COLOUR_BLACK)
elseif (card:GetCardName() == "SHIFTING_SLIVER" or card:GetCardName() == "MANA_LEAK") and EffectController():CanAfford("{U}") == 0 then
MultiLand:GrantAbility(COLOUR_BLUE)
elseif (card:GetCardName() == "PLATED_SLIVER" card:GetCardName() == "SWORDS_TO_PLOWSHARES" or card:GetCardName() == "WARD_SLIVER"or card:GetCardName() == "ESSENCE_SLIVER") and EffectController():CanAfford("{U}") == 0 then
MultiLand:GrantAbility(COLOUR_WHITE)
elseif (card:GetCardName() == "SLIVER_LEGION" or card:GetCardName() == "SLIVER_QUEEN" or card:GetCardName() == "SLIVER_OVERLORD") and EffectController():CanAfford("{U}") == 0 then
MultiLand:GrantAbility(COLOUR_RED)
end
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
-
sumomole - Programmer
- Posts: 611
- Joined: 07 Jun 2011, 08:34
- Has thanked: 51 times
- Been thanked: 234 times
Re: Card Creation Request Thread
by nivmizzet1 » 29 Apr 2013, 13:49
*Bump*
EDIT: Unfortunately, it doesn't work as intended. When I used it with 7 (token) creatures on the battlefield and only 5 creatures in my library, it just flashed every card in my library at me, putting them back in the library (similar to when a player is milled cards, but with cards going from library to library) and none of the creatures went to the battlefield.
Could it be because it was looking for 7 creatures when there was only 5 available? EDIT: Nope, that's not it. Just tested when I had 1 creature on the b/f -- the reveal showed me one creature in the library and stopped there. So the problem is that the revealed creatures aren't being put on the b/f after the reveal is finished.
Thank You!thefiremind wrote:I just coded my own version of Mass Polymorph. The idea is to save the creatures in a chest instead of putting them onto the battlefield immediately, this way you can get them from the chest in a single action. I didn't use the <FILTER> block because it often gives problems to me when some parts of the ability use it and some other not, so I wanted to play safe.nivmizzet1 wrote:Have you got any tips as to how I could do that? I wouldn't have a clue where to startIs there a card that has something like that implemented already?
Let me know if it works as intended.
EDIT: Unfortunately, it doesn't work as intended. When I used it with 7 (token) creatures on the battlefield and only 5 creatures in my library, it just flashed every card in my library at me, putting them back in the library (similar to when a player is milled cards, but with cards going from library to library) and none of the creatures went to the battlefield.

Could it be because it was looking for 7 creatures when there was only 5 available? EDIT: Nope, that's not it. Just tested when I had 1 creature on the b/f -- the reveal showed me one creature in the library and stopped there. So the problem is that the revealed creatures aren't being put on the b/f after the reveal is finished.
______________________________________
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 thefiremind » 29 Apr 2013, 14:33
I made a real mess with that code...nivmizzet1 wrote:EDIT: Unfortunately, it doesn't work as intended.

viewtopic.php?f=64&t=4557&p=116558#p116558
I also changed it so that it reveals just non-creature cards, because creatures are revealed when they enter the battlefield and nobody likes a huge amount of cards flipped through GuidedReveal.

< 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
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 1 guest