Mind's Desire Conversion
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
7 posts
• Page 1 of 1
Mind's Desire Conversion
by friarsol » 24 Oct 2011, 03:31
So a few weeks back I was working on converting Mind's Desire to script. The script itself works alongside the code changes, but there's some unresolved issues with it. (Most specifically, Mind's Desire pumps the Exiled card with a Keyword, but when the Card is cast, the keyword isn't being removed from the Card).
I've been extremely busy with both work and life lately, so I don't know when I'll be able to get back to this. If anyone is interested in picking this up, I'm going to post the patch and you can see what's going on.
I was attempting to write the code in a way that allowed cards like Yawgmoth's Will to follow in its footsteps. And it seems like it should work once the kinks are worked out. In fact, those cards might be easier since they are granting their privileges as a Static Effect, not a one-time use Pump.
Remember this is for cards that allow you to Play a card for the remainder of the turn, not for SAs that allow you to Play Cards as part of the resolution of a SA.
Aerial Caravan is fine.
Brilliant Ultimatum is not.
Here's the bug tracker # if you want to finish this code: http://cardforge.org/bugz/view.php?id=223
I've been extremely busy with both work and life lately, so I don't know when I'll be able to get back to this. If anyone is interested in picking this up, I'm going to post the patch and you can see what's going on.
I was attempting to write the code in a way that allowed cards like Yawgmoth's Will to follow in its footsteps. And it seems like it should work once the kinks are worked out. In fact, those cards might be easier since they are granting their privileges as a Static Effect, not a one-time use Pump.
Remember this is for cards that allow you to Play a card for the remainder of the turn, not for SAs that allow you to Play Cards as part of the resolution of a SA.
Aerial Caravan is fine.
Brilliant Ultimatum is not.
Here's the bug tracker # if you want to finish this code: http://cardforge.org/bugz/view.php?id=223
- Attachments
-
MindsDesire.patch.txt
- (7.8 KiB) Downloaded 195 times
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Mind's Desire Conversion
by Sloth » 24 Oct 2011, 05:54
I will give it a try.
EDIT: The "May be played" keyword works fine. I can't see any implementation of the "without paying mana cost" part though. Did you do some work on this too Sol?
Regarding the pump persisting through to the battlefield, I'm surprised myself. I knew that moving cards to the battlefield will not change the card object (a lot of stuff depends on this), but moving them to the stack should use copyCard which does not copy extrinsic keywords.
EDIT: The "May be played" keyword works fine. I can't see any implementation of the "without paying mana cost" part though. Did you do some work on this too Sol?
Regarding the pump persisting through to the battlefield, I'm surprised myself. I knew that moving cards to the battlefield will not change the card object (a lot of stuff depends on this), but moving them to the stack should use copyCard which does not copy extrinsic keywords.

-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Mind's Desire Conversion
by friarsol » 24 Oct 2011, 12:05
Oh, that might be the other reason I didn't commit. I guess I forgot where I had left things off. Probably we need to pass something from SA_Requirements to CostPayment to inform it to that the ManaCost is already considered paid. So we just need to figure out when that occurs.
There must be something else going on that's causing some issues related to the Pumping and changing zones. Hopefully, there's an appropriate solution that fixes some long-term problem that we could never resolve.
There must be something else going on that's causing some issues related to the Pumping and changing zones. Hopefully, there's an appropriate solution that fixes some long-term problem that we could never resolve.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Mind's Desire Conversion
by Sloth » 24 Oct 2011, 18:41
I've tested a lot today and discovered several fishy things in the changeZone and copyCard code. I will not start to change anything until Hellfish commits his MultiState code, since conflicts would arise.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Mind's Desire Conversion
by friarsol » 24 Oct 2011, 18:56
Sounds good. Thanks for getting the initial part in Sloth. I wasn't even thinking about doing it for simpler cards. Yawgmoth's Agenda might be able to be scripted now as a combination of that (for Graveyards), Arcane Laboratory. Although, the last ability might be hardcoded right now, so maybe it's not quite there.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Mind's Desire Conversion
by Hellfish » 24 Oct 2011, 19:52
Hmm, I was gonna wait until after the next beta to commit in case of showstopper bugs (like the unblocked attacker crash >_>) , maybe that's a slightly worse idea then?
So now you're
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
-
Hellfish - Programmer
- Posts: 1297
- Joined: 07 Jun 2009, 10:41
- Location: South of the Pumphouse
- Has thanked: 110 times
- Been thanked: 169 times
Re: Mind's Desire Conversion
by friarsol » 25 Oct 2011, 01:42
Probably don't need to wait for next beta, especially if we're going to delay the next beta until it's ironed out. There will definitely be more eyes on it if it's checked in.Hellfish wrote:Hmm, I was gonna wait until after the next beta to commit in case of showstopper bugs (like the unblocked attacker crash >_>) , maybe that's a slightly worse idea then?
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
7 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 30 guests