It is currently 02 Nov 2025, 19:10
   
Text Size

X costs?

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins

Re: X costs?

Postby 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.
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: X costs?

Postby Mr.Chaos » 02 Mar 2010, 09:22

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

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. :wink:
](*,) = coder at work, according to a coder.It does explain some of the bugs. :wink:
Mr.Chaos
Tester
 
Posts: 625
Joined: 06 Sep 2008, 08:15
Has thanked: 0 time
Been thanked: 0 time

Re: X costs?

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

Postby DennisBergkamp » 02 Mar 2010, 14:02

Yeah those cards are easily possible. We support counters after all, and adding mana to the manapool :)
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: X costs?

Postby DennisBergkamp » 02 Mar 2010, 14:35

I just added Hurricane by the way... I guess I'll put in Earthquake and Rolling Earthquake next :)
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: X costs?

Postby Huggybaby » 02 Mar 2010, 15:23

Don't forget fireball...
User avatar
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?

Postby Chris H. » 02 Mar 2010, 16:07

Braingeyser and Drain Life would be nice, a couple more of those old time favorites.
User avatar
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?

Postby DennisBergkamp » 02 Mar 2010, 17:27

Yeah, actually Drain Life should be possible to keyword with a Drawback$YouGainLife.
Fireball is a tricky card...
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: X costs?

Postby 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
"I am a man and real men do not consume pink beverages. Get thee gone woman, and bring me something brown." - Jace Wayland
apthaven
Tester
 
Posts: 242
Joined: 20 Jun 2009, 12:34
Has thanked: 0 time
Been thanked: 1 time

Re: X costs?

Postby juzamjedi » 02 Mar 2010, 20:31

DennisBergkamp wrote:Yeah, actually Drain Life should be possible to keyword with a Drawback$YouGainLife.
Fireball is a tricky card...
Conceptually Fireball is similar to Multi-kicker.
juzamjedi
Tester
 
Posts: 575
Joined: 13 Nov 2008, 08:35
Has thanked: 6 times
Been thanked: 8 times

Re: X costs?

Postby 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:

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
And yes, Fireball is definitely doable. But it's definitely not keywordable, and making the AI use it effectively is difficult.
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: X costs?

Postby Huggybaby » 02 Mar 2010, 23:02

Maybe I got confused then. Isn't there a red X spell with only one target?
User avatar
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?

Postby DennisBergkamp » 02 Mar 2010, 23:08

There's a few I think. Blaze is probably the one you're thinking of :)
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: X costs?

Postby Huggybaby » 02 Mar 2010, 23:12

Ahh, THAT would work!
User avatar
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?

Postby 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. :D
User avatar
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

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 38 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 38 users online :: 0 registered, 0 hidden and 38 guests (based on users active over the past 10 minutes)
Most users ever online was 9298 on 10 Oct 2025, 12:54

Users browsing this forum: No registered users and 38 guests

Login Form