It is currently 30 Apr 2025, 23:29
   
Text Size

New keyword: Protection

Post MTG Forge Related Programming Questions Here

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

New keyword: Protection

Postby 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:
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
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: New keyword: Protection

Postby 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.
User avatar
Rob Cashwalker
Programmer
 
Posts: 2167
Joined: 09 Sep 2008, 15:09
Location: New York
Has thanked: 5 times
Been thanked: 40 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 11 guests


Who is online

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

Login Form