It is currently 08 Sep 2025, 11:58
   
Text Size

Words that Cards.txt recognizes

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

Re: Words that Cards.txt recognizes

Postby 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 :)
User avatar
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

Postby Chris H. » 10 Feb 2009, 22:25

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 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.

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. :)
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: Words that Cards.txt recognizes

Postby 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}
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

Re: Words that Cards.txt recognizes

Postby Chris H. » 11 Feb 2009, 12:32

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.
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.

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}
Thank you. :)
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: Words that Cards.txt recognizes

Postby 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
Last edited by Chris H. on 12 Feb 2009, 17:31, edited 2 times in total.
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: Words that Cards.txt recognizes

Postby 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.
User avatar
MageKing17
Programmer
 
Posts: 473
Joined: 12 Jun 2008, 20:40
Has thanked: 5 times
Been thanked: 9 times

Re: Words that Cards.txt recognizes

Postby Rob Cashwalker » 12 Feb 2009, 03:03

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.
I gave that a bit of thought, and it seems logical. But they all have slightly different AI.

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.
User avatar
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

Postby MageKing17 » 12 Feb 2009, 05:40

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.
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.
User avatar
MageKing17
Programmer
 
Posts: 473
Joined: 12 Jun 2008, 20:40
Has thanked: 5 times
Been thanked: 9 times

Re: Words that Cards.txt recognizes

Postby 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
Last edited by Chris H. on 04 Mar 2009, 12:50, edited 1 time in total.
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: Words that Cards.txt recognizes

Postby 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

Postby 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
Last edited by Chris H. on 10 Mar 2009, 12:27, edited 2 times in total.
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: Words that Cards.txt recognizes

Postby 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.
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

Re: Words that Cards.txt recognizes

Postby Chris H. » 04 Mar 2009, 14:05

Rob Cashwalker wrote:Dennis also added SearchMerc.
Yeah, I just came across that and I edited the list.

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.
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.

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 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.
I will try to remember to test the TgtKPump keyword now that we have this new version release.
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: Words that Cards.txt recognizes

Postby 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
Last edited by Chris H. on 14 Mar 2009, 13:10, edited 1 time in total.
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: Words that Cards.txt recognizes

Postby 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
Last edited by Chris H. on 06 Apr 2009, 12:33, edited 1 time in total.
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

PreviousNext

Return to Forge

Who is online

Users browsing this forum: Google [Bot] and 65 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 66 users online :: 1 registered, 0 hidden and 65 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: Google [Bot] and 65 guests

Login Form