It is currently 05 Nov 2025, 19:53
   
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 sumomole » 29 May 2013, 07:59

Master Necro wrote:It produces mana as soon as it goes on the battlefield and doesn't let me pay the cost first, I have looked up cards such as Avacyn's Pilgrim , Llanowar Elves and Silver Myr and they all have the same code so why won't Deranged Assistant work properly?
Unfortunately, mana ability can only tapself to produce mana, any other cost need to use activated ability and mana token.
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 Master Necro » 29 May 2013, 08:10

sumomole wrote:
Master Necro wrote:It produces mana as soon as it goes on the battlefield and doesn't let me pay the cost first, I have looked up cards such as Avacyn's Pilgrim , Llanowar Elves and Silver Myr and they all have the same code so why won't Deranged Assistant work properly?
Unfortunately, mana ability can only tapself to produce mana, any other cost need to use activated ability and mana token.
Thanks! :)
User avatar
Master Necro
 
Posts: 259
Joined: 24 Apr 2013, 18:25
Has thanked: 83 times
Been thanked: 21 times

Re: Card Creation Request Thread

Postby Master Necro » 29 May 2013, 10:30

Hey ummmm, I need help again, and I swear it is the last time for a while. :)

I need help making Havengul Runebinder work properly.
Attachments
Havengul Runebinder.rar
(571.18 KiB) Downloaded 322 times
User avatar
Master Necro
 
Posts: 259
Joined: 24 Apr 2013, 18:25
Has thanked: 83 times
Been thanked: 21 times

Re: Card Creation Request Thread

Postby thefiremind » 29 May 2013, 11:08

Master Necro wrote:I need help making Havengul Runebinder work properly.
Add ignore_filter="1" to the RESOLUTION_TIME_ACTION that generates tokens, then move the AI_AVAILABILITY blocks inside the activated ability (just before </ACTIVATED_ABILITY>).
< 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 Master Necro » 29 May 2013, 13:43

thefiremind wrote:
Master Necro wrote:I need help making Havengul Runebinder work properly.
Add ignore_filter="1" to the RESOLUTION_TIME_ACTION that generates tokens, then move the AI_AVAILABILITY blocks inside the activated ability (just before </ACTIVATED_ABILITY>).
I have done as you said and it still doesn't work.
Attachments
Havengul Runebinder.rar
(571.2 KiB) Downloaded 420 times
User avatar
Master Necro
 
Posts: 259
Joined: 24 Apr 2013, 18:25
Has thanked: 83 times
Been thanked: 21 times

Re: Card Creation Request Thread

Postby thefiremind » 29 May 2013, 14:03

Sorry, I haven't been clear enough but I thought you knew where to put XML tags... what I meant was this:
Code: Select all
    <RESOLUTION_TIME_ACTION ignore_filter="1">
    local token_count = 1
    if token_count &gt; 0 then
       MTG():PutTokensIntoPlay( "TOKEN_ZOMBIE_2_2_277466", token_count, EffectController() )
    end
    </RESOLUTION_TIME_ACTION>
< 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 Master Necro » 29 May 2013, 14:16

thefiremind wrote:Sorry, I haven't been clear enough but I thought you knew where to put XML tags... what I meant was this:
Code: Select all
    <RESOLUTION_TIME_ACTION ignore_filter="1">
    local token_count = 1
    if token_count &gt; 0 then
       MTG():PutTokensIntoPlay( "TOKEN_ZOMBIE_2_2_277466", token_count, EffectController() )
    end
    </RESOLUTION_TIME_ACTION>
And now I know, thanks. :)

Well I just copy pasted what you gave me and it still doesn't work, test it and see. When I activate the ability it doesn't give me the choice to exile the cards from the graveyard, it gives me the choice to exile any card except those in the graveyard.
User avatar
Master Necro
 
Posts: 259
Joined: 24 Apr 2013, 18:25
Has thanked: 83 times
Been thanked: 21 times

Re: Card Creation Request Thread

Postby thefiremind » 29 May 2013, 14:40

Whoops, something always gets overlooked... the query for the card to exile is bound to a target definition with ID 6, but your definition has ID 0. Change it to
Code: Select all
<TARGET_DEFINITION id="6">
Incidentally, that's exactly the same problem that my Azorius Charm had... it seems I should get used to check the coherence between definition IDs and queries. :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 Master Necro » 29 May 2013, 14:54

thefiremind wrote:Whoops, something always gets overlooked... the query for the card to exile is bound to a target definition with ID 6, but your definition has ID 0. Change it to
Code: Select all
<TARGET_DEFINITION id="6">
Incidentally, that's exactly the same problem that my Azorius Charm had... it seems I should get used to check the coherence between definition IDs and queries. :lol:
Well there is good news and bad news.

The good news is it works now, it asks to discard a creature card from my graveyard and it summons my 2/2 Zombie token.

The bad news is it doesn't put the +1/+1 counters on the zombies.
User avatar
Master Necro
 
Posts: 259
Joined: 24 Apr 2013, 18:25
Has thanked: 83 times
Been thanked: 21 times

Re: Card Creation Request Thread

Postby thefiremind » 29 May 2013, 15:15

Sometimes it really appears that I find problems one by one when I could just find them all in one shot, but of course I don't do it on purpose, it's just that I usually look only in the places where I know problems can be hidden most times. And when I find one, I assume it's the only one. For example, in this card, I didn't look carefully inside the FILTER block because that should always be copied from other cards (I still copy filters from other cards and only tweak where needed, it's faster than writing them 100% manually)... how could I imagine that someone invents new functions, like GetCreatureType? :lol: That should be GetSubType. :wink:
< 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 Master Necro » 29 May 2013, 15:22

thefiremind wrote:Sometimes it really appears that I find problems one by one when I could just find them all in one shot, but of course I don't do it on purpose, it's just that I usually look only in the places where I know problems can be hidden most times. And when I find one, I assume it's the only one. For example, in this card, I didn't look carefully inside the FILTER block because that should always be copied from other cards (I still copy filters from other cards and only tweak where needed, it's faster than writing them 100% manually)... how could I imagine that someone invents new functions, like GetCreatureType? :lol: That should be GetSubType. :wink:
Yeah just put a pair of long ears on me and call me... :oops: :oops: :oops: :lol:
User avatar
Master Necro
 
Posts: 259
Joined: 24 Apr 2013, 18:25
Has thanked: 83 times
Been thanked: 21 times

Re: Card Creation Request Thread

Postby gorem2k » 29 May 2013, 23:00

to thefiremind,

I've just noticed something's not clear about Infinite Reflection you made earlier.

here's the rule text:

When Infinite Reflection enters the battlefield attached to a creature, each other nontoken creature you control becomes a copy of that creature.
Nontoken creatures you control enter the battlefield as a copy of enchanted creature.
your version only changes creatures already in play to target enchanted creature, but doesn't affect the next one entering.

Image

here I had Infinite reflection on Fog Bank then I played Consecrated Sphinx.
gorem2k
 
Posts: 464
Joined: 01 Apr 2013, 04:21
Has thanked: 48 times
Been thanked: 33 times

Re: Card Creation Request Thread

Postby thefiremind » 29 May 2013, 23:31

You are right, I made a last-minute change on Infinite Reflection but actually forgot to test it. The problem is that I don't know how to fix it properly.

If you change
Code: Select all
    <DURATION>
    return TriggerObject() == nil or
    (TriggerObject():GetZone() ~= ZONE_TRANSITION and TriggerObject():GetZone() ~= ZONE_IN_PLAY)
    </DURATION>
with
Code: Select all
    <DURATION>
    return TriggerObject() == nil
    </DURATION>
Infinite Reflection works, but the cards still retain their transformation when they leave the battlefield. I thought that there was 1 pointer protection too much, so I tried to delete
Code: Select all
    EffectDC():Protect_CardPtr(COMPARTMENT_ID_PARAM_TRIGGER_OBJECT)
but do you know what happened? The opponent's creatures were correctly losing their transformation when hitting the graveyard, while mine were not! :shock: I guess the solution would involve saving TriggerObject() into another pointer and do all the things from there, but I remember that being my first implementation of Infinite Reflection and couldn't get it to work.

If some other modder wants to have a look at it and fix it, here is the card.
< 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 » 30 May 2013, 00:19

thefiremind wrote:I guess the solution would involve saving TriggerObject() into another pointer and do all the things from there, but I remember that being my first implementation of Infinite Reflection and couldn't get it to work.
I hardly follow you, this is beyond my skills though would granting a delayed trigger work ?

Anyhow this card must be a pain to implement given it's clearly not expected to fit in current DotP engine.
gorem2k
 
Posts: 464
Joined: 01 Apr 2013, 04:21
Has thanked: 48 times
Been thanked: 33 times

Re: Card Creation Request Thread

Postby RiiakShiNal » 30 May 2013, 01:19

It looks like Infinite Reflection works fine if you remove the internal="1" from the second TRIGGERED_ABILITY.
RiiakShiNal
Programmer
 
Posts: 2189
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 497 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 4 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 4 users online :: 0 registered, 0 hidden and 4 guests (based on users active over the past 10 minutes)
Most users ever online was 9298 on 10 Oct 2025, 12:54

Users browsing this forum: No registered users and 4 guests

Login Form