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)
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 » 29 May 2013, 07:59
Unfortunately, mana ability can only tapself to produce mana, any other cost need to use activated ability and mana token.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?
-

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 » 29 May 2013, 08:10
Thanks!sumomole wrote:Unfortunately, mana ability can only tapself to produce mana, any other cost need to use activated ability and mana token.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?
-

Master Necro - Posts: 259
- Joined: 24 Apr 2013, 18:25
- Has thanked: 83 times
- Been thanked: 21 times
Re: Card Creation Request Thread
by 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.
I need help making Havengul Runebinder work properly.
- Attachments
-
Havengul Runebinder.rar- (571.18 KiB) Downloaded 322 times
-

Master Necro - Posts: 259
- Joined: 24 Apr 2013, 18:25
- Has thanked: 83 times
- Been thanked: 21 times
Re: Card Creation Request Thread
by thefiremind » 29 May 2013, 11:08
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>).Master Necro wrote:I need help making Havengul Runebinder work properly.
< 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 » 29 May 2013, 13:43
I have done as you said and it still doesn't work.thefiremind wrote: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>).Master Necro wrote:I need help making Havengul Runebinder work properly.
- Attachments
-
Havengul Runebinder.rar- (571.2 KiB) Downloaded 420 times
-

Master Necro - Posts: 259
- Joined: 24 Apr 2013, 18:25
- Has thanked: 83 times
- Been thanked: 21 times
Re: Card Creation Request Thread
by 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 > 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...
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 » 29 May 2013, 14:16
And now I know, thanks.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 > 0 then
MTG():PutTokensIntoPlay( "TOKEN_ZOMBIE_2_2_277466", token_count, EffectController() )
end
</RESOLUTION_TIME_ACTION>
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.
-

Master Necro - Posts: 259
- Joined: 24 Apr 2013, 18:25
- Has thanked: 83 times
- Been thanked: 21 times
Re: Card Creation Request Thread
by 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">
< 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 » 29 May 2013, 14:54
Well there is good news and bad news.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 toIncidentally, 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.
- Code: Select all
<TARGET_DEFINITION id="6">
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.
-

Master Necro - Posts: 259
- Joined: 24 Apr 2013, 18:25
- Has thanked: 83 times
- Been thanked: 21 times
Re: Card Creation Request Thread
by 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?
That should be GetSubType. 
< 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 » 29 May 2013, 15:22
Yeah just put a pair of long ears on me and call me...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?That should be GetSubType.
-

Master Necro - Posts: 259
- Joined: 24 Apr 2013, 18:25
- Has thanked: 83 times
- Been thanked: 21 times
Re: Card Creation Request Thread
by 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:

here I had Infinite reflection on Fog Bank then I played Consecrated Sphinx.
I've just noticed something's not clear about Infinite Reflection you made earlier.
here's the rule text:
your version only changes creatures already in play to target enchanted creature, but doesn't affect the next one entering.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.

here I had Infinite reflection on Fog Bank then I played Consecrated Sphinx.
Re: Card Creation Request Thread
by 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
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.
If you change
- Code: Select all
<DURATION>
return TriggerObject() == nil or
(TriggerObject():GetZone() ~= ZONE_TRANSITION and TriggerObject():GetZone() ~= ZONE_IN_PLAY)
</DURATION>
- Code: Select all
<DURATION>
return TriggerObject() == nil
</DURATION>
- Code: Select all
EffectDC():Protect_CardPtr(COMPARTMENT_ID_PARAM_TRIGGER_OBJECT)
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...
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 » 30 May 2013, 00:19
I hardly follow you, this is beyond my skills though would granting a delayed trigger work ?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.
Anyhow this card must be a pain to implement given it's clearly not expected to fit in current DotP engine.
Re: Card Creation Request Thread
by RiiakShiNal » 30 May 2013, 01:19
It looks like Infinite Reflection works fine if you remove the internal="1" from the second TRIGGERED_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: 2189
- Joined: 16 May 2011, 21:37
- Has thanked: 75 times
- Been thanked: 497 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