It is currently 02 Aug 2025, 20:24
   
Text Size

All is dust and other colorless card fuctions

Moderator: CCGHQ Admins

All is dust and other colorless card fuctions

Postby 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
Tyrany
 
Posts: 20
Joined: 07 Jul 2012, 01:34
Has thanked: 1 time
Been thanked: 2 times

Re: All is dust and other colorless card fuctions

Postby 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):
Code: Select all
RSN_Colourless = function()
   return NonBlack() and NonBlue() and NonGreen() and NonRed() and NonWhite()
end
For looking for Colourless cards using filters I do this:
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.
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

Postby 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
Tyrany
 
Posts: 20
Joined: 07 Jul 2012, 01:34
Has thanked: 1 time
Been thanked: 2 times

Re: All is dust and other colorless card fuctions

Postby RiiakShiNal » 26 Jul 2012, 15:10

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

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.
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

Postby kevlahnota » 27 Jul 2012, 00:10

Hi I made All Is Dust , but I didn't test that card. :lol:

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>
if a permanent is either black, red, green, blue or white then you must sacrifice it.
User avatar
kevlahnota
Programmer
 
Posts: 825
Joined: 19 Jul 2010, 17:45
Location: Philippines
Has thanked: 14 times
Been thanked: 264 times


Return to 2013

Who is online

Users browsing this forum: No registered users and 303 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 303 users online :: 0 registered, 0 hidden and 303 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 303 guests

Login Form