Hi, first time posting here. Long time fan of this software.
I'm trying to create a custom card. After a few hours, i'm happy to say the one i created don't crash the editor but it still don't seems to work like i wanted in game. If a kind soul could maybe help me, i'd be very grateful.
The card is the following.
Name: Pride of the Maelstrom
Cost:
Type: Legendary creature - Dragon
Flying
:
Exile the top
X cards of each opponent’s library, then for each color of mana spent to activate this ability, you may cast one nonland cards with converted mana cost
X or less from among them without paying their mana costs, then put the rest into the bottom of their library in a random order.
P/T: 5/5
To put the ability in layman's term, by paying
X i can exile the top
X card of all my opponent's library. Then, among those cards, i choose Y nonlands cards with CMC <=
X where Y equals the number of colors i used to activate the ability. Y is always >= 0 and <= 5 because only 5 color exist WUBRG. I can then cast those choosen cards for free. All remaining cards go on bottom of their owner's library in a random order.
Thank you very much for your help!
- Code: Select all
Name:Pride of the Maelstrom
ManaCost:W U B R G
Types:Legendary Creature Dragon
PT:5/5
K:Flying
A:AB$ Mill | Cost$ X | Defined$ You | SubAbility$ TrigMill | SpellDescription$ Exile the top X cards of each opponent’s library, then for each colors of mana spent to activate this ability, you may cast one nonland cards with converted mana cost X or less from among them without paying their mana costs, then put the rest into the bottom of their library in a random order.
SVar:TrigMill:DB$ Mill | NumCards$ Y | References$ Y | Defined$ Player.Opponent | Destination$ Library | LibraryPosition$ -1 | RandomOrder$ True | RememberMilled$ True | SubAbility$ DBPlay
SVar:DBPlay:DB$ Play | WithoutManaCost$ True | ValidZone$ Exile | Valid$ Card.nonLand+cmcLEX+IsRemembered | Amount$ X | Optional$ True | References$ X | SubAbility$ DBCleanup
SVar:Y:Count$xPaid
SVar:X:Count$Converge
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
Oracle:Flying\nExile the top X cards of each opponent’s library, then for each colors of mana spent to activate this ability, you may cast one nonland cards with converted mana cost X or less from among them without paying their mana costs, then put the rest into the bottom of their library in a random order.
EDIT:
I Think i solved my own question after all.
Here is the code
- Code: Select all
Name:Pride of the Maelstrom
ManaCost:W U B R G
Types:Legendary Creature Dragon
PT:5/5
K:Flying
A:AB$ Mill | Cost$ X | Defined$ You | SubAbility$ TrigMill | SpellDescription$ Exile the top X cards of each opponent’s library, then for each colors of mana spent to activate this ability, you may cast one nonland cards with converted mana cost X or less from among them without paying their mana costs, then put the rest into the bottom of their library in a random order.
SVar:TrigMill:DB$ Mill | NumCards$ X | References$ X | Defined$ Player.Opponent | Destination$ Exile | LibraryPosition$ -1 | RandomOrder$ True | RememberMilled$ True | SubAbility$ DBPlay
SVar:DBPlay:DB$ Play | WithoutManaCost$ True | ValidZone$ Exile | Valid$ Card.nonLand+cmcLEX+IsRemembered | Amount$ Y | Optional$ True | References$ Y | SubAbility$ DBChangeZone
SVar:X:Count$xPaid
SVar:Y:Count$Converge
SVar:DBChangeZone:DB$ ChangeZoneAll | Origin$ Exile | ChangeType$ Card.IsRemembered,Card.IsImprinted | Destination$ Library | LibraryPosition$ -1 | RandomOrder$ True | SubAbility$ DBCleanup
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
Oracle:Flying\nExile the top X cards of each opponent’s library, then for each colors of mana spent to activate this ability, you may cast one nonland cards with converted mana cost X or less from among them without paying their mana costs, then put the rest into the bottom of their library in a random order.