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




All is dust and other colorless card fuctions
Moderator: CCGHQ Admins
5 posts
• Page 1 of 1
All is dust and other colorless card fuctions
by Tyrany » 26 Jul 2012, 14:40
I cant recall who was the creator of the card "all is Dust" because im making a folder with all the extracted cards from every deck made but, this card and for example the
eye of ugin whom relies on colour_colourless filter aren't working, dont know if the
system itself dont recognize the colourless, but can someone take a look into it?
Edit* the all is dust destroys every permanent on play even the colourless ones
eye of ugin whom relies on colour_colourless filter aren't working, dont know if the
system itself dont recognize the colourless, but can someone take a look into it?
Edit* the all is dust destroys every permanent on play even the colourless ones
Re: All is dust and other colorless card fuctions
by RiiakShiNal » 26 Jul 2012, 14:56
The built-in functions for checking if something is colourless do not work so I had to make my own functions for building Eye of Ugin for my mod (I'm not the only one who has built that card).
COLOUR_COLOURLESS seems to be useless for tests so I coded a Colourless function that does the opposite tests (this function is for filters):
COLOUR_COLOURLESS seems to be useless for tests so I coded a Colourless function that does the opposite tests (this function is for filters):
- Code: Select all
RSN_Colourless = function()
return NonBlack() and NonBlue() and NonGreen() and NonRed() and NonWhite()
end
- Code: Select all
filter:AddColour( COLOUR_BLACK )
filter:AddColour( COLOUR_BLUE )
filter:AddColour( COLOUR_GREEN )
filter:AddColour( COLOUR_RED )
filter:AddColour( COLOUR_WHITE )
filter:AddExtra( FILTER_EXTRA_FLIP_COLOUR )
Last edited by RiiakShiNal on 26 Jul 2012, 15:06, edited 1 time in total.
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: All is dust and other colorless card fuctions
by Tyrany » 26 Jul 2012, 15:05
can i use it on my deck? i'll give u the proper credit, dont know much of programing but really wanted a good eldrazi deck
Re: All is dust and other colorless card fuctions
by RiiakShiNal » 26 Jul 2012, 15:10
You most certainly can use it, that's part of the reason I release mods and participate on these forums. You can even copy the cards I've created wholesale if you want, I'm not even using all the cards I've built (though I have included them in my mod for people who want to build decks, but may or may not have the skills necessary to build the cards).Tyrany wrote:can i use it on my deck? i'll give u the proper credit, dont know much of programing but really wanted a good eldrazi deck
Edit: If you want to add my functions to your mod (without including my mod or requiring my mod) then a good thing to do is change the RSN_ at the front of the functions/files to some other prefix so that if I change a file or a function's parameters or change the way it works it won't interfere with anything you've made.
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: All is dust and other colorless card fuctions
by kevlahnota » 27 Jul 2012, 00:10
Hi I made All Is Dust , but I didn't test that card.
anyway I revised it and I use this filter:

anyway I revised it and I use this filter:
- Code: Select all
<FILTER>
return (Permanents() and InPlay()) and (Black() or Red() or Green() or Blue() or White())
</FILTER>
<RESOLUTION_TIME_ACTION>
if FilteredCard() ~= nil then
FilteredCard():Sacrifice(FilteredCard():GetController())
end
</RESOLUTION_TIME_ACTION>
-
kevlahnota - Programmer
- Posts: 825
- Joined: 19 Jul 2010, 17:45
- Location: Philippines
- Has thanked: 14 times
- Been thanked: 264 times
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 303 guests