Words that Cards.txt recognizes
by mtgrares
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: Words that Cards.txt recognizes
by DennisBergkamp » 10 Feb 2009, 20:44
This is a bit of a quirky one I added awhile back:
Remove three spore counters from this card: Put a 1/1 green Saproling creature token into play.
Not sure if it would be better to have this in an abbreviated form, so I just kept it the same
Remove three spore counters from this card: Put a 1/1 green Saproling creature token into play.
Not sure if it would be better to have this in an abbreviated form, so I just kept it the same

-
DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Words that Cards.txt recognizes
by Chris H. » 10 Feb 2009, 22:25
I considered adding the keyword to the list but when I checked the gatherer database I could only find cards which would require additional coding to make the card work. Sacrifice a green Saproling creature token to gain life or draw a card or some other type of ability.DennisBergkamp wrote:This is a bit of a quirky one I added awhile back:
Remove three spore counters from this card: Put a 1/1 green Saproling creature token into play.
Not sure if it would be better to have this in an abbreviated form, so I just kept it the same
I will let the gang pipe in and state their views on this. Should we include this in the list of keywords?
I'm flexible.

-
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: Words that Cards.txt recognizes
by Rob Cashwalker » 11 Feb 2009, 02:59
I think any time we relate a string in the keyword to a block of code that creates a standard ability, then it qualifies for the list. The fact that they'll require a little extra code shouldn't matter. The whole point is that the common code isn't duplicated.
BTW, I'd like to suggest the following change to the pump keyword definitions on the list:
PTPump {mana cost}:{+-p}/{+-t}
KPump {mana cost}:{keyword}
PTKPump {mana cost}:{+-p}/{+-t}/{keyword}
TgtKPump {mana/tap cost}:{keyword}
TgtPTPump {mana/tap cost}:{+-p}/{+-t}
TgtPTKPump {mana/tap cost}:{+-p}/{+-t}/{keyword}
BTW, I'd like to suggest the following change to the pump keyword definitions on the list:
PTPump {mana cost}:{+-p}/{+-t}
KPump {mana cost}:{keyword}
PTKPump {mana cost}:{+-p}/{+-t}/{keyword}
TgtKPump {mana/tap cost}:{keyword}
TgtPTPump {mana/tap cost}:{+-p}/{+-t}
TgtPTKPump {mana/tap cost}:{+-p}/{+-t}/{keyword}
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
Re: Words that Cards.txt recognizes
by Chris H. » 11 Feb 2009, 12:32
It came to me this morning. The keywords help the non-coders to create new cards via the keywords but it also helps the coders to create new cards by reusing the code already created.I think any time we relate a string in the keyword to a block of code that creates a standard ability, then it qualifies for the list. The fact that they'll require a little extra code shouldn't matter. The whole point is that the common code isn't duplicated.
Thank you.BTW, I'd like to suggest the following change to the pump keyword definitions on the list:
PTPump {mana cost}:{+-p}/{+-t}
KPump {mana cost}:{keyword}
PTKPump {mana cost}:{+-p}/{+-t}/{keyword}
TgtKPump {mana/tap cost}:{keyword}
TgtPTPump {mana/tap cost}:{+-p}/{+-t}
TgtPTKPump {mana/tap cost}:{+-p}/{+-t}/{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: Words that Cards.txt recognizes
by Chris H. » 11 Feb 2009, 12:34
The list of keywords recognized as of MTG Forge 02-08-2009 are:
EDIT:
Some changes were recently made to this list. Please view the newer content below:
.
http://www.slightlymagic.net/forum/viewtopic.php?f=26&t=701&p=9012#p9073
EDIT:
Some changes were recently made to this list. Please view the newer content below:
.
http://www.slightlymagic.net/forum/viewtopic.php?f=26&t=701&p=9012#p9073
Last edited by Chris H. on 12 Feb 2009, 17:31, edited 2 times in total.
-
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: Words that Cards.txt recognizes
by MageKing17 » 11 Feb 2009, 21:22
Why do you need "PTpump", "Kpump", and "PTKpump"? Can't they all be generalized? I mean, at the very least, a "PTKpump" that gives +0/+0 is functionally identical to Kpump... I would think.
-
MageKing17 - Programmer
- Posts: 473
- Joined: 12 Jun 2008, 20:40
- Has thanked: 5 times
- Been thanked: 9 times
Re: Words that Cards.txt recognizes
by Rob Cashwalker » 12 Feb 2009, 03:03
I gave that a bit of thought, and it seems logical. But they all have slightly different AI.MageKing17 wrote:Why do you need "PTpump", "Kpump", and "PTKpump"? Can't they all be generalized? I mean, at the very least, a "PTKpump" that gives +0/+0 is functionally identical to Kpump... I would think.
It could be done with one keyword, without even resorting to "+0/+0/Keyword" - the parameters are split by "/", so if the resulting array is one element, then it's a keyword; if it's two elements, it's a PT; and if there are three elements, then it's a PTK. But the AI code would be messy.
I'll give it some more thought... because it has some implications on implementing other keywords... like the Targeted Pump, which is already a bit too messy for my tastes, because it replicates similar code for each type of cost. But even between the different types of cost, different AI is needed - mana-only costs could be used multiple times, as opposed to tap costs, with or without mana, they only work once, so it's simpler.
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
Re: Words that Cards.txt recognizes
by MageKing17 » 12 Feb 2009, 05:40
Surely you can just do a branching logic path based on the number of arguments. Granted, I'm saying this with no knowledge of either Java or the MTG Forge code.Rob Cashwalker wrote:I gave that a bit of thought, and it seems logical. But they all have slightly different AI.
...
But the AI code would be messy.
...
But even between the different types of cost, different AI is needed - mana-only costs could be used multiple times, as opposed to tap costs, with or without mana, they only work once, so it's simpler.
-
MageKing17 - Programmer
- Posts: 473
- Joined: 12 Jun 2008, 20:40
- Has thanked: 5 times
- Been thanked: 9 times
Re: Words that Cards.txt recognizes
by Chris H. » 12 Feb 2009, 17:29
Keywords recognized as of MTG Forge 02-08-2009 are:
EDIT:
Some changes were recently made to this list. Please view the newer content below:
http://www.slightlymagic.net/forum/viewtopic.php?f=26&t=701&p=10085#p10085
EDIT:
Some changes were recently made to this list. Please view the newer content below:
http://www.slightlymagic.net/forum/viewtopic.php?f=26&t=701&p=10085#p10085
Last edited by Chris H. on 04 Mar 2009, 12:50, edited 1 time in total.
-
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: Words that Cards.txt recognizes
by mtgrares » 12 Feb 2009, 19:48
Thanks, I'll add them to the readme file.
- mtgrares
- DEVELOPER
- Posts: 1352
- Joined: 08 Sep 2008, 22:10
- Has thanked: 3 times
- Been thanked: 12 times
Re: Words that Cards.txt recognizes
by Chris H. » 04 Mar 2009, 12:47
Keywords recognized as of MTG Forge 03-03-2009 are:
EDIT:
Some changes were recently made to this list. Please view the newer content below:
http://www.slightlymagic.net/forum/viewtopic.php?f=26&t=701&start=30#p10515
EDIT:
Some changes were recently made to this list. Please view the newer content below:
http://www.slightlymagic.net/forum/viewtopic.php?f=26&t=701&start=30#p10515
Last edited by Chris H. on 10 Mar 2009, 12:27, edited 2 times in total.
-
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: Words that Cards.txt recognizes
by Rob Cashwalker » 04 Mar 2009, 12:57
Dennis also added SearchMerc.
SearchRebel and SearchMerc tutor for a very specific condition. A more generic tutor keyword could be implemented with much of the same code. I'll look into that when I have a chance unless someone beats me to it.
I think I'm going to wait on any more pump keywords until after Dennis reworks the P/T system. Besides, the AI of pumping isn't very good.
SearchRebel and SearchMerc tutor for a very specific condition. A more generic tutor keyword could be implemented with much of the same code. I'll look into that when I have a chance unless someone beats me to it.
I think I'm going to wait on any more pump keywords until after Dennis reworks the P/T system. Besides, the AI of pumping isn't very good.
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
Re: Words that Cards.txt recognizes
by Chris H. » 04 Mar 2009, 14:05
Yeah, I just came across that and I edited the list.Rob Cashwalker wrote:Dennis also added SearchMerc.
While designing AI decks I discovered that tutor cards can be low mana cost. The computer can cast these tutors before it gets out a good mana base. The tutors cause the computers library to be shuffled.SearchRebel and SearchMerc tutor for a very specific condition. A more generic tutor keyword could be implemented with much of the same code. I'll look into that when I have a chance unless someone beats me to it.
I'm thinking that we need a mana test as part of the
public boolean canPlayAI()
return false if lands in play < 4
With the new merc and rebel tutors cards we may need to consider the AI part of tutoring.
I will try to remember to test the TgtKPump keyword now that we have this new version release.I think I'm going to wait on any more pump keywords until after Dennis reworks the P/T system. Besides, the AI of pumping isn't very good.
-
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: Words that Cards.txt recognizes
by Chris H. » 10 Mar 2009, 12:25
Keywords recognized as of MTG Forge 03-08-2009 are:
EDIT:
Some changes were recently made to this list. Please view the newer content below:
http://www.slightlymagic.net/forum/viewtopic.php?f=26&t=701&p=10883#p10883
EDIT:
Some changes were recently made to this list. Please view the newer content below:
http://www.slightlymagic.net/forum/viewtopic.php?f=26&t=701&p=10883#p10883
Last edited by Chris H. on 14 Mar 2009, 13:10, edited 1 time in total.
-
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: Words that Cards.txt recognizes
by Chris H. » 14 Mar 2009, 13:08
Keywords recognized as of MTG Forge 03-13-2009 are:
EDIT:
Some changes were recently made to this list. Please view the newer content below:
http://www.slightlymagic.net/forum/viewtopic.php?f=26&t=701&start=45#p12163
EDIT:
Some changes were recently made to this list. Please view the newer content below:
http://www.slightlymagic.net/forum/viewtopic.php?f=26&t=701&start=45#p12163
Last edited by Chris H. on 06 Apr 2009, 12:33, edited 1 time in total.
-
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
Who is online
Users browsing this forum: Google [Bot] and 65 guests