Keywords recognized by Forge
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: Keywords recognized by Forge
by Chris H. » 16 Mar 2011, 13:12
`slapshot5 wrote:The following keywords have been retired:
Whenever CARDNAME blocks a creature, destroy that creature at end of combat
Whenever CARDNAME becomes blocked by a creature, destroy that creature at end of combat
Thank you.
I added these retired keywords to the deprecated keyword listing.
-
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: Keywords recognized by Forge
by slapshot5 » 16 Mar 2011, 16:10
The keyword Whenever CARDNAME deals combat damage to a creature, destroy that creature has been retired.
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: Keywords recognized by Forge
by Chris H. » 16 Mar 2011, 17:59
`slapshot5 wrote:The keyword Whenever CARDNAME deals combat damage to a creature, destroy that creature has been retired.
I added this retired keyword to the deprecated keyword listing. Thank you.
-
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: Keywords recognized by Forge
by Chris H. » 19 Mar 2011, 16:16
Added the new keywords:
Protection from Gorgons
and
When you control no enchantments, sacrifice CARDNAME.
Protection from Gorgons
and
When you control no enchantments, sacrifice CARDNAME.
-
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: Keywords recognized by Forge
by Chris H. » 11 Apr 2011, 17:54
Added these older missing keywords:
CARDNAME can attack as though it didn't have defender.
and
When there are no creatures on the battlefield, sacrifice CARDNAME.
CARDNAME can attack as though it didn't have defender.
and
When there are no creatures on the battlefield, sacrifice CARDNAME.
-
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: Keywords recognized by Forge
by Chris H. » 13 Apr 2011, 17:11
Added the new (AB/DB/SP) Animate AF sa to the AbilityFactory list.
-
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: Keywords recognized by Forge
by Chris H. » 28 Apr 2011, 12:30
Added the new (AB/DB/SP) Effect AF sa to the AbilityFactory list.
-
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: Keywords recognized by Forge
by Chris H. » 01 May 2011, 00:35
Added the new keywords:
Damage that would reduce your life total to less than 1 reduces it to 1 instead.
You can't win the game.
You don't lose the game for having 0 or less life.
Your opponents can't lose the game.
Damage that would reduce your life total to less than 1 reduces it to 1 instead.
You can't win the game.
You don't lose the game for having 0 or less life.
Your opponents can't lose the game.
-
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: Keywords recognized by Forge
by Chris H. » 01 May 2011, 00:46
Added the new (AB/DB/SP) LosesGame AF sa and the new (AB/DB/SP) WinsGame AF sa to the AbilityFactory list.
-
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: Keywords recognized by Forge
by Chris H. » 05 May 2011, 18:57
Added the new CARDNAME untaps during each other player's untap step. keyword.
-
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: Keywords recognized by Forge
by slapshot5 » 07 May 2011, 18:33
Added the new Replicate keyword of the form:
Replicate <cost>
Ex:
K:Replicate 2 U
I can't for the life of me figure out how to get this text on the card. I've tried. (Search for Replicate in Card.java). If anyone knows how to do this, please do.
-slapshot5
Replicate <cost>
Ex:
K:Replicate 2 U
I can't for the life of me figure out how to get this text on the card. I've tried. (Search for Replicate in Card.java). If anyone knows how to do this, please do.
-slapshot5
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: Keywords recognized by Forge
by Hellfish » 07 May 2011, 19:27
Cool stuff,slapshot! I fixed the text display. Since you were calling kw.contains("Replicate") it always returned false because the actual item for,say, Gigadrowse is "Replicate U". I just looped through kw and checked each item individually the way you did.
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: Keywords recognized by Forge
by Chris H. » 07 May 2011, 20:10
Thank you Sloth, I added Replicate to the keyword listing.
-
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: Keywords recognized by Forge
by Chris H. » 07 May 2011, 20:15
Added the new (AB/DB/SP) RevealHand AF sa to the AbilityFactory list.
-
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: Keywords recognized by Forge
by slapshot5 » 07 May 2011, 20:25
Ahhh. contains works differently than I had in my brain. I was thinking it was already looped, and I was just checking strings.Hellfish wrote:Cool stuff,slapshot! I fixed the text display. Since you were calling kw.contains("Replicate") it always returned false because the actual item for,say, Gigadrowse is "Replicate U". I just looped through kw and checked each item individually the way you did.
Thanks.
-slapshot5
edit: One note: There is currently an issue with Replicate and non-targeted cards, like Train of Thought. I'm working on that.
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Who is online
Users browsing this forum: No registered users and 7 guests