It is currently 30 Oct 2025, 22:08
   
Text Size

How best to contribute?

Post MTG Forge Related Programming Questions Here

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

How best to contribute?

Postby sentient6 » 06 Jan 2011, 21:30

I stumbled upon Forge a bit over a week ago and have been throughly enjoying. I would like to contribute to the project in some way and I'm curious about how I could get started with that.

As practice I have written card files for Devastate and Stormwatch Eagle. They are shown below:
Code: Select all
Name:Devastate
ManaCost:3 R R
Types:Sorcery
Text:no text
A:SP$Destroy | Cost$ 3 R R | ValidTgts$ Land | TgtPrompt$ Select target land. | SubAbility$ SVar=DBDamageAll | SpellDescription$ Destroy target land. CARDNAME does 1 damage to each creature and each player.
SVar:DBDamageAll:DB$DamageAll | NumDmg$ 1 | ValidCards$ Creature | ValidPlayers$ Each | ValidDescription$ each creature and each player.
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/devastate.jpg
End
and
Code: Select all
Name:Stormwatch Eagle
ManaCost:3 U
Types: Creature Bird
Text:no text
PT:2/1
A:AB$ChangeZone | Cost$ Sac<1/Land> | CostDesc$ Sacrifice a land | Origin$ Battlefield | Destination$ Hand | Target$ CARDNAME | SpellDescription$ Return CARDNAME to its owner's hand.
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/stormwatch_eagle.jpg
End
Both of them seemed to work when I tested them with a build of the SVN. Are there any corrections I should make?

Additionaly, I was looking at implementing Ashnod's Sacrifice and I was wondering whether it made sense to make an AbilityFactory for mana producing abilities. Sorry if that's a dumb idea.

Anyway, if that's all up to snuff, how would I got about getting the above cards added to the svn repository?

Thanks and keep up the great work.
sentient6
 
Posts: 13
Joined: 03 Jan 2011, 00:48
Has thanked: 0 time
Been thanked: 0 time

Re: How best to contribute?

Postby friarsol » 06 Jan 2011, 22:42

It looks like your Eagle is missing Flying. And don't put spacing after the colons. Even though the parser won't penalize you for it in the types. Your Eagle was a third type of "".

I'm guessing you are talking about Ashnod's Altar since Ashnod's Sacrifice doesn't exist. An AF for Mana is in the works (and is mostly complete) but it is a large amount of work (more than any singular AF), and there are some infrastructure issues that still need to be straightened out. Once I have everything worked out, all Mana Abilities will be converted over.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: How best to contribute?

Postby Chris H. » 06 Jan 2011, 22:47

We started a topic and stickied it for people to use use when adding cards via the card files found in the cardsfolder. It might be best for people to use this one topic.

Card Development Questions

If you have Eclipse, Subclipse and Subversion installed you can send your google email address to DennisBergkamp via private message and he will give you commit status.
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: How best to contribute?

Postby slapshot5 » 06 Jan 2011, 22:47

Once again, Sol beat me to it. I added these cards to SVN with the tweaks Sol suggests.

-slapshot5
slapshot5
Programmer
 
Posts: 1391
Joined: 03 Jan 2010, 17:47
Location: Mac OS X
Has thanked: 25 times
Been thanked: 68 times

Re: How best to contribute?

Postby sentient6 » 06 Jan 2011, 23:11

Ah. Sorry for not posting in the topic at the top. I did indeed mean Ashnod's Altar. Thanks for the information.
sentient6
 
Posts: 13
Joined: 03 Jan 2011, 00:48
Has thanked: 0 time
Been thanked: 0 time


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 33 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 33 users online :: 0 registered, 0 hidden and 33 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 33 guests

Login Form