It is currently 26 Apr 2024, 02:35
   
Text Size

Card Contributions

Post MTG Forge Related Programming Questions Here

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

Re: Card Contributions

Postby friarsol » 04 Feb 2011, 23:40

I did Mana Severance. I don't remember that posts saying it couldn't be done, so it's easier for me to just write it up than try to find it.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Card Contributions

Postby Zirbert » 04 Feb 2011, 23:45

First! Yeah, I know I said I wanted the Apes of Rath, but this one just jumped out at me as a *really* easy hack job: Maze of Ith + a "tap-for-1" land + Dauthi Cutthroat to see the syntax for "creature with Shadow" + Femeref Archers to see the syntax for "Attacking creature with...". I'll do the Apes next, and stick to Tempest for the time being. If I get a few done (let's say 4 or more), I'll zip 'em up.
Code: Select all
Name:Maze of Shadows
ManaCost:no cost
Types:Land
Text:no text
A:AB$ Mana | Cost$ T | Produced$ 1 | SpellDescription$ Add 1 to your mana pool.
A:AB$Pump | Cost$ T | ValidTgts$ Creature.attacking+withShadow | TgtPrompt$ Select target attacking creature with shadow | KW$ HIDDEN Prevent all combat damage that would be dealt to and dealt by CARDNAME. | SpellDescription$ Untap target attacking creature with shadow. Prevent all combat damage that would be dealt to and dealt by that creature this turn. | SubAbility$ UntapTgt
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/maze_of_shadows.jpg
SetInfo:TMP|Uncommon|http://magiccards.info/scans/en/tp/317.jpg
End
Caveat: it prints the abilities in the opposite order from the card, both in the Choose window and in the right-hand text pane. Reversing them in the card script made no difference. I don't know whether that can be fixed, but it's no big deal anyway.
Zirbert
 
Posts: 512
Joined: 13 Oct 2010, 16:04
Has thanked: 104 times
Been thanked: 19 times

Re: Card Contributions

Postby Zirbert » 04 Feb 2011, 23:54

friarsol wrote:I did Mana Severance. I don't remember that posts saying it couldn't be done, so it's easier for me to just write it up than try to find it.
I was extrapolating a bit, I guess - in this post (http://www.slightlymagic.net/forum/viewtopic.php?f=26&t=2091&p=39339&hilit=Mana+Severance#p39339) someone requested it, suggesting that it could use the same principles as Cranial Extraction and Rootwater Thief. When I looked at those ones over the last couple of days to see if I could hack it up, I found out they both use hardcoding (at least in the Beta - I didn't check SVN).

So can I do Selective Memory? :-)

-Zirbert
Zirbert
 
Posts: 512
Joined: 13 Oct 2010, 16:04
Has thanked: 104 times
Been thanked: 19 times

Re: Card Contributions

Postby friarsol » 05 Feb 2011, 00:00

Zirbert wrote:
friarsol wrote:I did Mana Severance. I don't remember that posts saying it couldn't be done, so it's easier for me to just write it up than try to find it.
I was extrapolating a bit, I guess - in this post (http://www.slightlymagic.net/forum/viewtopic.php?f=26&t=2091&p=39339&hilit=Mana+Severance#p39339) someone requested it, suggesting that it could use the same principles as Cranial Extraction and Rootwater Thief. When I looked at those ones over the last couple of days to see if I could hack it up, I found out they both use hardcoding (at least in the Beta - I didn't check SVN).

So can I do Selective Memory? :-)
Heh lots of things requested in August weren't done because the system we have now wasn't even built. If it takes you longer than 5 seconds to do Selective Memory than you are fired.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times


Re: Card Contributions

Postby Zirbert » 05 Feb 2011, 00:18

friarsol wrote: If it takes you longer than 5 seconds to do Selective Memory than you are fired.
Come on, be fair - I had to confirm the syntax for nonland (thank you, AEthersnipe).

Code: Select all
Name:Selective Memory
ManaCost:3 U
Types:Sorcery
Text:no text
A:SP$ChangeZone | Cost$ 3 U | Origin$ Library | Destination$ Exile | ChangeType$ nonLand | ChangeNum$ XFetch  | SpellDescription$ Search your library for any number of nonland cards and exile them. Then shuffle your library.
SVar:XFetch:Count$TypeInYourLibrary.nonLand
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/selective_memory.jpg
SetInfo:WWK|Rare|http://magiccards.info/scans/en/wwk/37.jpg
End
Zirbert
 
Posts: 512
Joined: 13 Oct 2010, 16:04
Has thanked: 104 times
Been thanked: 19 times



Re: Card Contributions

Postby Zirbert » 05 Feb 2011, 00:58

We got apes! And it would have been a shame to not include their easily tweakable buddy Lead Golem.

Code: Select all
Name:Apes of Rath
ManaCost:2 G G
Types:Creature Ape
Text:no text
PT:5/4
T:Mode$ Attacks | ValidCard$ Card.Self | TriggerZones$ Battlefield | Execute$ StayTapped | TriggerDescription$ Whenever CARDNAME attacks, it doesn't untap during its controller's next untap step.
SVar:StayTapped:DB$Pump | KW$ HIDDEN This card doesn't untap during your next untap step. | Defined$ Self | Permanent$ True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/apes_of_rath.jpg
SetInfo:TMP|Uncommon|http://magiccards.info/scans/en/tp/108.jpg
End
Code: Select all
Name:Lead Golem
ManaCost:5
Types:Artifact Creature Golem
Text:no text
PT:3/5
T:Mode$ Attacks | ValidCard$ Card.Self | TriggerZones$ Battlefield | Execute$ StayTapped | TriggerDescription$ Whenever CARDNAME attacks, it doesn't untap during its controller's next untap step.
SVar:StayTapped:DB$Pump | KW$ HIDDEN This card doesn't untap during your next untap step. | Defined$ Self | Permanent$ True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/lead_golem.jpg
SetInfo:6ED|Uncommon|http://magiccards.info/scans/en/6e/295.jpg
SetInfo:MIR|Uncommon|http://magiccards.info/scans/en/mr/271.jpg
End
EDIT - Next I'm going to try the Tempest dual lands that don't untap during your next untap step, since I've got that KW on the brain now. I see there's also a functional reprint cycle in Champions of Kamigawa that we don't have yet - I'll do those up too. 10 cards for remarkably little effort.
Last edited by Zirbert on 05 Feb 2011, 02:53, edited 3 times in total.
Zirbert
 
Posts: 512
Joined: 13 Oct 2010, 16:04
Has thanked: 104 times
Been thanked: 19 times

Re: Card Contributions

Postby jeffwadsworth » 05 Feb 2011, 01:18

friarsol wrote:Urza's Saga.

Code: Select all
Electryte
Flesh Reaver
Noetic Scales?  Can not be done at this time.
Sporogenesis
Vebulid
Venomous Fangs
I will start on these and edit the list as its done. Thanks.
Last edited by jeffwadsworth on 12 Feb 2011, 20:48, edited 22 times in total.
jeffwadsworth
Super Tester Elite
 
Posts: 1171
Joined: 20 Oct 2010, 04:47
Location: USA
Has thanked: 287 times
Been thanked: 69 times




Re: Card Contributions

Postby Zirbert » 05 Feb 2011, 04:56

FYI, Sol - Mana Severance and Selective Memory both make the 1-28 beta puke. Hopefully something has been changed / updated to let them work in the SVN. The error starts with:

Code: Select all
For input string: "XFetch"


Version:
Forge -- official beta: $Date: 2011-01-06 11:34:48 -0500 (Thu, 06 Jan 2011) $, SVN revision: $Revision: 4891 $

OS: Linux Version: 2.6.31-9-rt Architecture: amd64

Java Version: 1.6.0_18 Vendor: Sun Microsystems Inc.

Detailed error trace:
java.lang.NumberFormatException: For input string: "XFetch"
   at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
   at java.lang.Integer.parseInt(Integer.java:481)
   at java.lang.Integer.parseInt(Integer.java:514)
   at forge.AbilityFactory_ChangeZone.changeHiddenOriginStackDescription(AbilityFactory_ChangeZone.java:265)
If you need the whole error message, I can replicate it upon request. Unfortunately.

-Zirbert
Zirbert
 
Posts: 512
Joined: 13 Oct 2010, 16:04
Has thanked: 104 times
Been thanked: 19 times

Re: Card Contributions

Postby friarsol » 05 Feb 2011, 05:23

Zirbert wrote:FYI, Sol - Mana Severance and Selective Memory both make the 1-28 beta puke. Hopefully something has been changed / updated to let them work in the SVN. The error starts with:
I can't really worry about what doesn't work in previous versions. Most likely it wasn't using calculateAmount() for the changeNum in that version of the code. I did test it locally in the latest SVN and it was working, so it shouldn't be a program for trunk builds.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 119 guests


Who is online

In total there are 119 users online :: 0 registered, 0 hidden and 119 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 119 guests

Login Form