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)
2014




Kieran: Taken deck request (2014)
Moderator: CCGHQ Admins
Re: Kieran: Taken deck request (2014)
by GrovyleXShinyCelebi » 29 Sep 2013, 03:18
I just had an inspiration on how Patron of the Kitsune can be made. First off, I need to be sure I have the right idea with how <COST type="Generic"> works. Does it work that all effects in all RESOLUTION_TIME_ACTIONs have to resolve in the COST block before the card "activates"? What functions/blocks can work inside a COST block (i.e. do TARGET blocks work?) And why is the PREREQUISITE block with "return true" necessary?
Opal-Eye doesn't look too complex, just set a variable to Damage():RedirectAll(), and have the trigger object deal that damage to Opal-Eye. As for the "next time" part I'd just make a delayed trigger upon ability activation (cause I'm crazy for those now
).
Last thing, in a COST block, would "return false" stop the rest of the RESOLUTION_TIME_ACTIONs and cancel the attempt at casting the spell?
Opal-Eye doesn't look too complex, just set a variable to Damage():RedirectAll(), and have the trigger object deal that damage to Opal-Eye. As for the "next time" part I'd just make a delayed trigger upon ability activation (cause I'm crazy for those now

Last thing, in a COST block, would "return false" stop the rest of the RESOLUTION_TIME_ACTIONs and cancel the attempt at casting the spell?
(in Duels 2014)
Duels 2012: viewtopic.php?f=109&t=12152
Duels 2013: viewtopic.php?f=109&t=12481&p=137458#p137458
Duels 2012: viewtopic.php?f=109&t=12152
Duels 2013: viewtopic.php?f=109&t=12481&p=137458#p137458
-
GrovyleXShinyCelebi - Posts: 294
- Joined: 12 Jun 2013, 18:23
- Has thanked: 14 times
- Been thanked: 37 times
Re: Kieran: Taken deck request (2014)
by Pheonix56 » 29 Sep 2013, 04:11
Oh oops I thought flip cards work similarly to werewolves and other transform cards. Can it be made that way? Again I am just guessing here...
Thanks for making the other cards guys! You're awesome!
Thanks for making the other cards guys! You're awesome!
Re: Kieran: Taken deck request (2014)
by MC Brodie » 29 Sep 2013, 04:30
It should work like that. You can specify what you need sacrificed. The problem that I figured I run into at some point was checking the availability to cast the spell since it would have to consider the cmc (including number ofGrovyleXShinyCelebi wrote:I just had an inspiration on how Patron of the Kitsune can be made. First off, I need to be sure I have the right idea with how <COST type="Generic"> works. Does it work that all effects in all RESOLUTION_TIME_ACTIONs have to resolve in the COST block before the card "activates"? What functions/blocks can work inside a COST block (i.e. do TARGET blocks work?) And why is the PREREQUISITE block with "return true" necessary?

Yea for some reason I thought you had to target the ability while it's on the stack. I guess you are supposed to target the permanent that activated/triggered the ability.GrovyleXShinyCelebi wrote:Opal-Eye doesn't look too complex, just set a variable to Damage():RedirectAll(), and have the trigger object deal that damage to Opal-Eye. As for the "next time" part I'd just make a delayed trigger upon ability activation (cause I'm crazy for those now).
They are similar. But for some reason I think the person that created the transform card approximations said that flip cards wouldn't work as well. Either that, or I'm misquoting him entirely.Pheonix56 wrote:Oh oops I thought flip cards work similarly to werewolves and other transform cards. Can it be made that way? Again I am just guessing here...
Thanks for making the other cards guys! You're awesome!
-----------------------------------------------------------------------
Song of the Day: 46 and 2 (cover)
Song of the Day: 46 and 2 (cover)
Re: Kieran: Taken deck request (2014)
by jacque » 29 Sep 2013, 04:49
The first thing that came to my mind was, though we can get the CMC of the spells, but how would it be able to differentiate how many colored mana lacking, since I assume CMC converts the whole thing into a number, and it'll be colourless...GrovyleXShinyCelebi wrote:I just had an inspiration on how Patron of the Kitsune can be made. First off, I need to be sure I have the right idea with how <COST type="Generic"> works. Does it work that all effects in all RESOLUTION_TIME_ACTIONs have to resolve in the COST block before the card "activates"? What functions/blocks can work inside a COST block (i.e. do TARGET blocks work?) And why is the PREREQUISITE block with "return true" necessary?
Would the GetConvertedManaCost function be able to differentiate







I've worked on cards which has 2 RESOLUTION_TIME_ACTIONs under the <COST> block... of which must be fulfilled before the spell/ability is resolved...
The <PREREQUISITE> doesn't have to always return a true/false... *from what I've seen thus far*... It can also return a "value" something like this:
- Code: Select all
return filter:CountStopAt(1) == 1
Learn making your own cards today!!!
Click on
if a post/reply helped you.
I stitch old cards together to make new ones...
~ Jacque, the confused
Click on

I stitch old cards together to make new ones...
~ Jacque, the confused
Re: Kieran: Taken deck request (2014)
by MC Brodie » 29 Sep 2013, 07:39
You could count the colored mana symbols using ChromaCount so there would be a way to figure it out. Don't know if that's the best way but it's possible.jacque wrote:The first thing that came to my mind was, though we can get the CMC of the spells, but how would it be able to differentiate how many colored mana lacking, since I assume CMC converts the whole thing into a number, and it'll be colourless...GrovyleXShinyCelebi wrote:I just had an inspiration on how Patron of the Kitsune can be made. First off, I need to be sure I have the right idea with how <COST type="Generic"> works. Does it work that all effects in all RESOLUTION_TIME_ACTIONs have to resolve in the COST block before the card "activates"? What functions/blocks can work inside a COST block (i.e. do TARGET blocks work?) And why is the PREREQUISITE block with "return true" necessary?
Would the GetConvertedManaCost function be able to differentiate![]()
![]()
from
![]()
and returns
![]()
as the mana lacking?
Well technically that still returns truejacque wrote:The <PREREQUISITE> doesn't have to always return a true/false... *from what I've seen thus far*... It can also return a "value" something like this:Please correct me if I'm wrong... I am still learning =)
- Code: Select all
return filter:CountStopAt(1) == 1

-----------------------------------------------------------------------
Song of the Day: 46 and 2 (cover)
Song of the Day: 46 and 2 (cover)
Re: Kieran: Taken deck request (2014)
by thefiremind » 29 Sep 2013, 09:11
Because the developers coded the generic costs this way. If you don't include the PREREQUISITE block, the default is "return false", and the cost will be considered not affordable.GrovyleXShinyCelebi wrote:why is the PREREQUISITE block with "return true" necessary?
There's an important difference: a copy of a flipped permanent is born unflipped and can be flipped later, while a copy of a transformed card is born transformed and can't be transformed again. This makes flip cards impossible to code properly by using clone effects.Pheonix56 wrote:Oh oops I thought flip cards work similarly to werewolves and other transform cards. Can it be made that way? Again I am just guessing here...
It's not the best way... it's the only way.MC Brodie wrote:You could count the colored mana symbols using ChromaCount so there would be a way to figure it out. Don't know if that's the best way but it's possible.







I made an approximation of Patron of the Moon for DotP2013 so I can take a look at it and try to come up with something, but it will take some time.
EDIT: It took less than expected, look here.

A source could potentially be in any zone, so you need to let the player choose the zone. Luckily it isn't targetted, so a query will suffice (without the need to use modes).MC Brodie wrote:I guess you are supposed to target the permanent that activated/triggered the 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: Kieran: Taken deck request (2014)
by sumomole » 29 Sep 2013, 16:26
If we count colorless mana symbol first, we can distinguish betweenthefiremind wrote:It's not the best way... it's the only way.There's no function in any DotP game that retrieves the exact cost of a card. Of course ChromaCount can't handle hybrid mana (even by using the converted mana cost as additional information,
![]()
![]()
will return the same result as
![]()
![]()
), but I think there are no Fox creatures with hybrid mana, so it's OK.
I made an approximation of Patron of the Moon for DotP2013 so I can take a look at it and try to come up with something, but it will take some time.
EDIT: It took less than expected, look here.






-
sumomole - Programmer
- Posts: 611
- Joined: 07 Jun 2011, 08:34
- Has thanked: 51 times
- Been thanked: 234 times
Re: Kieran: Taken deck request (2014)
by RiiakShiNal » 29 Sep 2013, 17:49
Does ChromaCount() work for COLOUR_COLOURLESS? If it does that definitely helps, but could still pose a problem with costs like:sumomole wrote:If we count colorless mana symbol first, we can distinguish between![]()
![]()
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: Kieran: Taken deck request (2014)
by sumomole » 29 Sep 2013, 18:22
In DotP2013 is yes, I have updated firemind's mana functions and coded Flash, it can work for all existing cards. But I haven't test in DotP2014, since I no longer need Flash and we have a official Snapcaster Mage.RiiakShiNal wrote:Does ChromaCount() work for COLOUR_COLOURLESS? If it does that definitely helps, but could still pose a problem with costs like:sumomole wrote:If we count colorless mana symbol first, we can distinguish between![]()
![]()
and
![]()
![]()
.
![]()
![]()
, {2/W}{2/W}{2/W}, {2/W}{2/U}{2/B}{2/R}{2/G}.

-
sumomole - Programmer
- Posts: 611
- Joined: 07 Jun 2011, 08:34
- Has thanked: 51 times
- Been thanked: 234 times
Re: Kieran: Taken deck request (2014)
by thefiremind » 01 Oct 2013, 10:15
As RiiakShiNal already pointed out, there are some cards where knowing the amount of colorless mana won't help. Marisi's Twinclaws, for example, could have another combination of hybrid and non-hybrid mana:sumomole wrote:In DotP2013 is yes, I have updated firemind's mana functions and coded Flash, it can work for all existing cards. But I haven't test in DotP2014, since I no longer need Flash and we have a official Snapcaster Mage.






However, I was wondering: if COLOUR_COLOURLESS works in ChromaCount, does COLOUR_X work as well?
EDIT: No, it doesn't.

< 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: Kieran: Taken deck request (2014)
by sylento22 » 03 Oct 2013, 03:25
how are those decks comin i sent ya Kieran ?
- sylento22
- Posts: 26
- Joined: 21 Sep 2013, 09:19
- Has thanked: 0 time
- Been thanked: 0 time
Re: Kieran: Taken deck request (2014)
by Kieran » 03 Oct 2013, 06:59
I'm currently working to get decks out and I'll make a list of the cards you'll need (if any) and post them in the opening thread. However, if I have the cards I'll go ahead and complete your decks. Expect to see your decks listed in the opening thread later on. And thanks for submitting your requests.
Re: Kieran: Taken deck request (2014)
by sylento22 » 03 Oct 2013, 07:04
Thankx man i got alot more to put up as well i own 67 decks and all decks i put up are owned by me just kool to ahve my decks playable on DOTP 2014 

- sylento22
- Posts: 26
- Joined: 21 Sep 2013, 09:19
- Has thanked: 0 time
- Been thanked: 0 time
Re: Kieran: Taken deck request (2014)
by Kieran » 03 Oct 2013, 07:18
It's good to know that we can provide a way for you to port your RL decks to digital format. That's one of the purposes of this topic.
Re: Kieran: Taken deck request (2014)
by sylento22 » 03 Oct 2013, 10:12
the amount of money i have shelled out on MTG over the years (1994-2014) they should call me up in RL and ask me what i want in the game lol......
- sylento22
- Posts: 26
- Joined: 21 Sep 2013, 09:19
- Has thanked: 0 time
- Been thanked: 0 time
Who is online
Users browsing this forum: No registered users and 5 guests