It is currently 24 Jun 2025, 14:38
   
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 thefiremind » 01 Jun 2013, 14:43

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>
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. :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 CrazyJawas » 01 Jun 2013, 14:47

thefiremind wrote: but the card wouldn't be worth that effort in my opinion. :lol:
Haha I think your right now! :oops:
CrazyJawas
 
Posts: 3
Joined: 01 Jun 2013, 13:47
Has thanked: 2 times
Been thanked: 0 time

Re: Card Creation Request Thread

Postby gorem2k » 02 Jun 2013, 04:16

Seeing there aren't many "kinship" cards available, I'm requesting Wolf-Skull Shaman. thanks!
gorem2k
 
Posts: 464
Joined: 01 Apr 2013, 04:21
Has thanked: 48 times
Been thanked: 33 times

Re: Card Creation Request Thread

Postby BloodReyvyn » 02 Jun 2013, 06:49

gorem2k wrote:Seeing there aren't many "kinship" cards available, I'm requesting Wolf-Skull Shaman. thanks!
Tested and it works, as far as I can tell, without any problems.

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."
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 sumomole » 02 Jun 2013, 07:50

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.
I think I found one very simple way to code kinship. :wink:
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>
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 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.
"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 nivmizzet1 » 02 Jun 2013, 14:02

Is cavern of souls possible? if so, I would like to request it. :)
nivmizzet1
 
Posts: 617
Joined: 21 Mar 2013, 10:10
Has thanked: 100 times
Been thanked: 25 times

Re: Card Creation Request Thread

Postby thefiremind » 02 Jun 2013, 14:44

nivmizzet1 wrote:Is cavern of souls possible?
No.
< 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 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)
MC Brodie
 
Posts: 310
Joined: 01 Jun 2013, 00:10
Has thanked: 44 times
Been thanked: 34 times

Re: Card Creation Request Thread

Postby RiiakShiNal » 02 Jun 2013, 20:01

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?
You have:
Code: Select all
FilteredCard() ~= Object() and
Which says not to include this in the filter (so simply remove this line).
RiiakShiNal
Programmer
 
Posts: 2188
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 497 times

Re: Card Creation Request Thread

Postby MC Brodie » 02 Jun 2013, 23:45

RiiakShiNal wrote:
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?
You have:
Code: Select all
FilteredCard() ~= Object() and
Which says not to include this in the filter (so simply remove this line).
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.

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)
MC Brodie
 
Posts: 310
Joined: 01 Jun 2013, 00:10
Has thanked: 44 times
Been thanked: 34 times

Re: Card Creation Request Thread

Postby RiiakShiNal » 03 Jun 2013, 03:18

MC Brodie wrote:Well that would make a lot of sense. Thanks.
Quite often it is the simple errors we overlook.

MC Brodie wrote:I am still trying to understand the basics from plagiarizing other cards.
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:Thanks for the deck builder btw. It was very helpful.
You're welcome, it was intended to be helpful. :)

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?
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 "<!-- -->".

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>
RiiakShiNal
Programmer
 
Posts: 2188
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 497 times

Re: Card Creation Request Thread

Postby 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. :roll:

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."
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 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 323 times
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 » 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>
Be aware that your log also shows that you forgot the parentheses after EffectController() in other 2 cards.
< 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

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

Main Menu

User Menu

Our Partners


Who is online

In total there are 3 users online :: 0 registered, 0 hidden and 3 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 3 guests

Login Form