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 thefiremind » 01 Jun 2013, 14:43
That trigger would be verified also for putting a card with flying onto the battlefield with Elvish Piper (and you forgot to check if the creature belongs to an opponent, by the way). There's no way to do exactly what Hidden Spider needs, except for the method I wrote earlier, but the card wouldn't be worth that effort in my opinion.CrazyJawas wrote:I had just been doing it when it came into play but I suppose that's wrong.
- Code: Select all
<TRIGGER value="ZONECHANGE_END" to_zone="ZONE_IN_PLAY">
return (TriggerObject() ~= Object() and TriggerObject():GetCardType():Test( CARD_TYPE_CREATURE ) ~= 0 and TriggerObject():GetCurrentCharacteristics():Characteristic_Get( CHARACTERISTIC_FLYING ) ~= 0)
</TRIGGER>

< 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 CrazyJawas » 01 Jun 2013, 14:47
Haha I think your right now!thefiremind wrote: but the card wouldn't be worth that effort in my opinion.

- CrazyJawas
- Posts: 3
- Joined: 01 Jun 2013, 13:47
- Has thanked: 2 times
- Been thanked: 0 time
Re: Card Creation Request Thread
by gorem2k » 02 Jun 2013, 04:16
Seeing there aren't many "kinship" cards available, I'm requesting Wolf-Skull Shaman. thanks!
Re: Card Creation Request Thread
by BloodReyvyn » 02 Jun 2013, 06:49
Tested and it works, as far as I can tell, without any problems.gorem2k wrote:Seeing there aren't many "kinship" cards available, I'm requesting Wolf-Skull Shaman. thanks!
Download Link: https://www.dropbox.com/s/0vfk28wwy568c ... ip?v=0rc-s
Contains art and card, but uses the same default wolf tokens as Garruk's deck, if you want another type of 2/2 token, for example the one from the set, I can make that in a few minutes, just didn't see a point since there are already wolf tokens in game.
"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 sumomole » 02 Jun 2013, 07:50
I think I found one very simple way to code kinship.BloodReyvyn wrote:Contains art and card, but uses the same default wolf tokens as Garruk's deck, if you want another type of 2/2 token, for example the one from the set, I can make that in a few minutes, just didn't see a point since there are already wolf tokens in game.

- Code: Select all
<RESOLUTION_TIME_ACTION id="0">
local player = EffectController()
local filter = Object():GetFilter()
filter:Clear()
filter:May()
filter:NotTargetted()
filter:SetPlayer( player )
filter:SetZone( ZONE_LIBRARY )
filter:SetPortion( 1 )
player:SetTargetCount( 1 )
player:ChooseTarget( NO_VALIDATION, "CARD_QUERY_CHOOSE_CARD", EffectDC():Make_Targets(0) )
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local top_card = EffectDC():Get_Targets(0) and EffectDC():Get_Targets(0):Get_CardPtr(0)
local filter = Object():LoadTargetDefinition(0)
filter:SetSubTypes( Object():GetSubType() )
filter:AddExtra( FILTER_EXTRA_ANY_SUB_TYPE )
if top_card ~= nil and filter:CountStopAt( 1 ) == 1 then
top_card:GuidedReveal( ZONE_LIBRARY , ZONE_LIBRARY )
MTG():PutTokensIntoPlay( "TOKEN_WOLF_2_2_277478", 1, EffectController() )
end
</RESOLUTION_TIME_ACTION>
-
sumomole - Programmer
- Posts: 611
- Joined: 07 Jun 2011, 08:34
- Has thanked: 51 times
- Been thanked: 234 times
Re: Card Creation Request Thread
by BloodReyvyn » 02 Jun 2013, 12:51
Awesome. That is definitely a lot shorter. 
I just modified code from one of Sensation Gorger and made it make a token with a line from Master of the Wild Hunt, which I just happened to have up compare to my Breeding Pit (to see why it wasn't making tokens at the beginning of the end step).
I'll use your shorter code in the future though, more to the point and easier to understand.

I just modified code from one of Sensation Gorger and made it make a token with a line from Master of the Wild Hunt, which I just happened to have up compare to my Breeding Pit (to see why it wasn't making tokens at the beginning of the end step).
I'll use your shorter code in the future though, more to the point and easier to understand.
"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 nivmizzet1 » 02 Jun 2013, 14:02
Is cavern of souls possible? if so, I would like to request it. 

______________________________________
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 » 02 Jun 2013, 14:44
No.nivmizzet1 wrote:Is cavern of souls possible?
< 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 MC Brodie » 02 Jun 2013, 19:45
I am working on Kazuul Warlord and have the following code to give triggers to allys whenever Kazuul Warlord enters the battlefield. It gives +1/+1 counters to all allys except for itself. I've made a workaround for this but I am wondering what I'm doing wrong?
- Code: Select all
<TRIGGERED_ABILITY>
<TRIGGER value="ZONECHANGE_END" simple_qualifier="self" to_zone="ZONE_IN_PLAY" />
<FILTER>
return (FilteredCard() ~= nil and
FilteredCard():GetCardType():Test( CARD_TYPE_CREATURE ) ~= 0 and
FilteredCard() ~= Object() and
FilteredCard():GetSubType():Test( CREATURE_TYPE_ALLY ) ~= 0 and
FilteredCard():GetZone() == ZONE_IN_PLAY and
FilteredCard():GetPlayer() == Object():GetPlayer())
</FILTER>
<RESOLUTION_TIME_ACTION>
if FilteredCard() ~= nil then
FilteredCard():AddCounters( MTG():PlusOnePlusOneCounters(), 1 )
end
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
-----------------------------------------------------------------------
Song of the Day: 46 and 2 (cover)
Song of the Day: 46 and 2 (cover)
Re: Card Creation Request Thread
by RiiakShiNal » 02 Jun 2013, 20:01
You have:MC Brodie wrote:I am working on Kazuul Warlord and have the following code to give triggers to allys whenever Kazuul Warlord enters the battlefield. It gives +1/+1 counters to all allys except for itself. I've made a workaround for this but I am wondering what I'm doing wrong?
- Code: Select all
FilteredCard() ~= Object() and
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 MC Brodie » 02 Jun 2013, 23:45
Well that would make a lot of sense. Thanks. I am still trying to understand the basics from plagiarizing other cards. Thanks for the deck builder btw. It was very helpful.RiiakShiNal wrote:You have:MC Brodie wrote:I am working on Kazuul Warlord and have the following code to give triggers to allys whenever Kazuul Warlord enters the battlefield. It gives +1/+1 counters to all allys except for itself. I've made a workaround for this but I am wondering what I'm doing wrong?Which says not to include this in the filter (so simply remove this line).
- Code: Select all
FilteredCard() ~= Object() and
I have another quick question... I am not familiar at all with the syntax. How could I insert a comment or comment block?
-----------------------------------------------------------------------
Song of the Day: 46 and 2 (cover)
Song of the Day: 46 and 2 (cover)
Re: Card Creation Request Thread
by RiiakShiNal » 03 Jun 2013, 03:18
Quite often it is the simple errors we overlook.MC Brodie wrote:Well that would make a lot of sense. Thanks.
That can take a while, it's best to start from the simple cards and work your way up to the more difficult ones. Though some people learn better by working on the hard stuff first.MC Brodie wrote:I am still trying to understand the basics from plagiarizing other cards.
You're welcome, it was intended to be helpful.MC Brodie wrote:Thanks for the deck builder btw. It was very helpful.

I assume you mean inserting a code comment in the LUA code (the coding used for card abilities and functions). In that case two dashes, "--" starts a code comment. There aren't really any block comments (each line needs to have the double dash at the beginning). If you are talking about the XML (probably not what you meant, but included for completeness) then just put in an XML Comment block "<!-- -->".MC Brodie wrote:I have another quick question... I am not familiar at all with the syntax. How could I insert a comment or comment block?
Comment examples:
- Code: Select all
<STATIC_ABILITY>
<!-- This is an XML Comment.
That spans multiple lines.-->
<CONTINUOUS_ABILITY>
-- This is a LUA comment
-- now spanning a couple of lines.
</CONTINUOUS_ABILITY>
</STATIC_ABILITY>
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 » 03 Jun 2013, 03:34
Well this seems the most appropriate place to plop this since a friend of mine requested I make it for them and I out of principle just won't make a deck with it...
I present one of the most broken combo cards in MtG: Intruder Alarm.
https://www.dropbox.com/s/mqyfyoj8imd6x ... _45258.zip
Let the ceaseless Elvish Piper, Kiki-Jiki, Mirror Breaker, and Splinter Twin combos commence... to go with the way over-used moxes I suppose...
I present one of the most broken combo cards in MtG: Intruder Alarm.

https://www.dropbox.com/s/mqyfyoj8imd6x ... _45258.zip
Let the ceaseless Elvish Piper, Kiki-Jiki, Mirror Breaker, and Splinter Twin combos commence... to go with the way over-used moxes I suppose...
"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 Scion of Darkness » 03 Jun 2013, 09:13
Fire i have a question for you i've updated the cabal cofers with your mana token functions it it's working great but it generates an error can you please take a look
- Attachments
-
Desktop.zip
- (1.53 KiB) Downloaded 322 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 thefiremind » 03 Jun 2013, 09:58
The error is that the variable named total can't be passed from an action to another one, unless you save it in an EffectDC register. This is how you should do it:
- Code: Select all
<RESOLUTION_TIME_ACTION>
local total = 0
local filter = Object():GetFilter()
filter:Clear()
filter:SetZone( ZONE_IN_PLAY )
filter:AddSubType( LAND_TYPE_SWAMP )
filter:SetController( EffectController() )
filter:NotTargetted()
total = filter:Count()
CreateManaTokens( COLOUR_BLACK, total, EffectDC():Make_Chest(1) )
EffectDC():Set_Int(2, total)
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
RemoveRedundantTokens( EffectDC():Get_Int(2), EffectDC():Get_Chest(1) )
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
CheckManaPool()
</RESOLUTION_TIME_ACTION>
< 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 4 guests