X costs?
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins
58 posts
• Page 2 of 4 • 1, 2, 3, 4
Re: X costs?
by DennisBergkamp » 01 Mar 2010, 20:41
Yeah, the cancel button is slightly counterintuitive... it probably wouldn't be too hard to enable it when paying for X / Multikicker costs.
-

DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: X costs?
by Mr.Chaos » 02 Mar 2010, 09:22
LOL! I did not mean the card when I said iceberg but still, nice to see I gave you yet another idea to work on.zerker2000 wrote:Eh? Iceberg? That shouldn't be hard at all actually; I do think that "Comes into play with counters" and "{cost}: add n TYPE counters" should be keyworded better though.
Seriously though, if I may hijack the tread a moment, does this mean lands like Gemstone Mine and Hickory Woodlot are possible? (since they come into play with counters)
Sorry for the interruption, you may now go back to getting me my Hurricane.
= coder at work, according to a coder.It does explain some of the bugs. - Mr.Chaos
- Tester
- Posts: 625
- Joined: 06 Sep 2008, 08:15
- Has thanked: 0 time
- Been thanked: 0 time
Re: X costs?
by zerker2000 » 02 Mar 2010, 10:09
Yes, they're very possible, see the Modular code for something to ape "EF w/counters" off of(and I remember me having much fun with those, as if the counter's weren't on the cards at the time they entered the field the simply died). Another place to look is Persist, though I think that may be coded...incorrectly(i.e. regenerate and put counter on Instead of destroying, rather than return to field After destroying). Actually, this should preferably moved to the "default permanent" code, but meanwhile, apeing Modular should serve your purposes. As for the mana ability:
Check cost containing regexp "remove a .? counter"' in:
-)Mana ability constructor, if so fetch appropriate counter from Counters and remove one in input_afterPayMana
-)canPlay, if so and source card doesn't have counter return false
-)resolve, sac check(if applicable)
(Look at <http://gatherer.wizards.com/Pages/Search/Default.aspx?text=+[remove]+[counter]+[pool]> for possible cards).
Check cost containing regexp "remove a .? counter"' in:
-)Mana ability constructor, if so fetch appropriate counter from Counters and remove one in input_afterPayMana
-)canPlay, if so and source card doesn't have counter return false
-)resolve, sac check(if applicable)
(Look at <http://gatherer.wizards.com/Pages/Search/Default.aspx?text=+[remove]+[counter]+[pool]> for possible cards).
O forest, hold thy wand'ring son
Though fears assail the door.
O foliage, cloak thy ravaged one
In vestments cut for war.
--Eladamri, the Seed of Freyalise
Though fears assail the door.
O foliage, cloak thy ravaged one
In vestments cut for war.
--Eladamri, the Seed of Freyalise
- zerker2000
- Programmer
- Posts: 569
- Joined: 09 May 2009, 21:40
- Location: South Pasadena, CA
- Has thanked: 0 time
- Been thanked: 0 time
Re: X costs?
by DennisBergkamp » 02 Mar 2010, 14:02
Yeah those cards are easily possible. We support counters after all, and adding mana to the manapool 
-

DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: X costs?
by DennisBergkamp » 02 Mar 2010, 14:35
I just added Hurricane by the way... I guess I'll put in Earthquake and Rolling Earthquake next 
-

DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: X costs?
by Chris H. » 02 Mar 2010, 16:07
Braingeyser and Drain Life would be nice, a couple more of those old time favorites.
-

Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
Re: X costs?
by DennisBergkamp » 02 Mar 2010, 17:27
Yeah, actually Drain Life should be possible to keyword with a Drawback$YouGainLife.
Fireball is a tricky card...
Fireball is a tricky card...
-

DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: X costs?
by apthaven » 02 Mar 2010, 17:31
Other ideas for X costed cards would be these: (the rather easier ones)
Bloodcurdling Scream
Borrowing the East Wind
Braingeyser
Consume Spirit
Death Denied
Death Grasp
Disembowel
Distorting Wake
Drain Life
Dregs of Sorrow
Earthquake
Energy Bolt
Enrage
Enshrined Memories
Fault Line (Another Earthquake)
Feral Hydra
Flowstone Slide
Forced March
Goblin Offensive
Heat Ray
Howl from Beyond
Hurricane
Invoke the Firemind
Ivy Elemental
Krakilin
Maga, Traitor to Mortals
Mind Shatter
Mind Spring
Mind Warp
Overrule
Profane Command (A rather cool card to use with X costs)
Prosperity
Psychic Drain
Rolling Earthquake
Savage Twister
Shifting Wall
Starstorm
Stream of Life
Stroke of Genius
Swallowing Plague
Vitalizing Cascade
Volcanic Geyser
Wargate
Windstorm (weaker Hurricane)
Word of Binding
Bloodcurdling Scream
Borrowing the East Wind
Braingeyser
Consume Spirit
Death Denied
Death Grasp
Disembowel
Distorting Wake
Drain Life
Dregs of Sorrow
Earthquake
Energy Bolt
Enrage
Enshrined Memories
Fault Line (Another Earthquake)
Feral Hydra
Flowstone Slide
Forced March
Goblin Offensive
Heat Ray
Howl from Beyond
Hurricane
Invoke the Firemind
Ivy Elemental
Krakilin
Maga, Traitor to Mortals
Mind Shatter
Mind Spring
Mind Warp
Overrule
Profane Command (A rather cool card to use with X costs)
Prosperity
Psychic Drain
Rolling Earthquake
Savage Twister
Shifting Wall
Starstorm
Stream of Life
Stroke of Genius
Swallowing Plague
Vitalizing Cascade
Volcanic Geyser
Wargate
Windstorm (weaker Hurricane)
Word of Binding
"I am a man and real men do not consume pink beverages. Get thee gone woman, and bring me something brown." - Jace Wayland
Re: X costs?
by juzamjedi » 02 Mar 2010, 20:31
Conceptually Fireball is similar to Multi-kicker.DennisBergkamp wrote:Yeah, actually Drain Life should be possible to keyword with a Drawback$YouGainLife.
Fireball is a tricky card...
Re: X costs?
by DennisBergkamp » 02 Mar 2010, 21:48
Thanks for the list, apthaven
A bunch of these can probably be done through keywords. Death Grasp for instance worked fine:
A bunch of these can probably be done through keywords. Death Grasp for instance worked fine:
- Code: Select all
Death Grasp
X W B
Sorcery
no text
spDamageTgtCP:X:Drawback$YouGainLife/X:Death Grasp deals X damage to target creature or player. You gain X life.
SVar:X:Count$xPaid
-

DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: X costs?
by Huggybaby » 02 Mar 2010, 23:02
Maybe I got confused then. Isn't there a red X spell with only one target?
-

Huggybaby - Administrator
- Posts: 3229
- Joined: 15 Jan 2006, 19:44
- Location: Finally out of Atlanta
- Has thanked: 754 times
- Been thanked: 601 times
Re: X costs?
by DennisBergkamp » 02 Mar 2010, 23:08
There's a few I think. Blaze is probably the one you're thinking of 
-

DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: X costs?
by Chris H. » 03 Mar 2010, 00:07
`DennisBergkamp wrote:Yeah, the cancel button is slightly counterintuitive... it probably wouldn't be too hard to enable it when paying for X / Multikicker costs.
I like your recent UI update.
-

Chris H. - Forge Moderator
- Posts: 6320
- Joined: 04 Nov 2008, 12:11
- Location: Mac OS X Yosemite
- Has thanked: 644 times
- Been thanked: 643 times
58 posts
• Page 2 of 4 • 1, 2, 3, 4
Who is online
Users browsing this forum: No registered users and 38 guests