New keyword: Protection
Post MTG Forge Related Programming Questions Here
	Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins
			2 posts
			 • Page 1 of 1
		
	
New keyword: Protection
by Sloth » 14 Oct 2010, 20:52 
In order to get the remaining cards with Protection from ... I've added the following simple keyword:
Protection:<Requirements>:<Description>
<Requirements> uses the isValidCard syntax.
Example:
			
		Protection:<Requirements>:<Description>
<Requirements> uses the isValidCard syntax.
Example:
- Code: Select all
 Name:Kitsune Riftwalker
ManaCost:1 W W
Types:Creature Fox Wizard
Text:no text
PT:2/1
K:Protection:Spirit,Arcane:Protection from Spirits and from Arcane
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/kitsune_riftwalker.jpg
End
- Code: Select all
 Name:Harbinger of Spring
ManaCost:4 G
Types:Creature Spirit
Text:no text
PT:2/1
K:Protection:Creature.nonSpirit:Protection from non-Spirit creatures
K:Soulshift:4
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/harbinger_of_spring.jpg
End
- 
				

Sloth - Programmer
 - Posts: 3498
 - Joined: 23 Jun 2009, 19:40
 - Has thanked: 125 times
 - Been thanked: 507 times
 
Re: New keyword: Protection
by Rob Cashwalker » 14 Oct 2010, 21:45 
nice.. we should've done it that way from the git-go.
			The Force will be with you, Always.
		- 
				

Rob Cashwalker - Programmer
 - Posts: 2167
 - Joined: 09 Sep 2008, 15:09
 - Location: New York
 - Has thanked: 5 times
 - Been thanked: 40 times
 
			2 posts
			 • Page 1 of 1
		
	
Who is online
Users browsing this forum: No registered users and 150 guests