It is currently 28 Apr 2024, 02:55
   
Text Size

Keywords recognized by Forge

Post MTG Forge Related Programming Questions Here

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

Re: Keywords recognized by Forge

Postby Snacko » 25 May 2010, 13:43

Those are 2 different ones one shuffles only the card the other shuffles your whole graveyard. This makes a whole difference!
Snacko
DEVELOPER
 
Posts: 826
Joined: 29 May 2008, 19:35
Has thanked: 4 times
Been thanked: 74 times

Re: Keywords recognized by Forge

Postby Chris H. » 25 May 2010, 14:16

Snacko wrote:Those are 2 different ones one shuffles only the card the other shuffles your whole graveyard. This makes a whole difference!
`
Sorry about that Snacko, another new keyword is always a good thing. :D



I was mistaken about the last keyword change. Instead, we have a new keyword that is similar but slightly different. As such, both of these keyword forms work:


When CARDNAME is put into a graveyard from anywhere, reveal CARDNAME and shuffle it into its owner's library instead.

When CARDNAME is put into a graveyard from anywhere, reveal CARDNAME and its owner shuffles his or her graveyard into his or her library.
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: Keywords recognized by Forge

Postby Chris H. » 27 May 2010, 15:02

Another keyword has changed:

"This creature can block only creatures with flying."

keyword to

"CARDNAME can block only creatures with flying."


Changes appear in Rev. 1129
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: Keywords recognized by Forge

Postby Chris H. » 27 May 2010, 22:49

Another keyword has changed:

"This creature can block creatures with shadow as though they didn't have shadow."

keyword to

"CARDNAME can block creatures with shadow as though they didn't have shadow."


Changes appear in Rev. 1130
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: Keywords recognized by Forge

Postby Chris H. » 28 May 2010, 14:18

Another keyword has changed:

"This creature can block as though it had flying."

keyword to

"CARDNAME can block creatures with flying."


Changes appear in Rev. 1131


Note: I suspect that it may be best for us all to use the shorter "Reach" keyword in the future. :)
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: Keywords recognized by Forge

Postby Chris H. » 29 May 2010, 12:32

Another keyword has changed:

"This card can't be the target of spells or abilities your opponents control."

keyword to

"CARDNAME can't be the target of spells or abilities your opponents control."


Changes appear in Rev. 1135
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: Keywords recognized by Forge

Postby Chris H. » 29 May 2010, 23:33

Another keyword has changed:

"This card can't be the target of Aura spells."

keyword to

"CARDNAME can't be the target of Aura spells."


Changes appear in Rev. 1137
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: Keywords recognized by Forge

Postby Chris H. » 30 May 2010, 12:14

Another keyword has changed:

"Remove three spore counters from this card: Put a 1/1 green Saproling creature token into play."

keyword to

"Remove three spore counters from CARDNAME: Put a 1/1 green Saproling creature token onto the battlefield."


Changes appear in Rev. 1138
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: Keywords recognized by Forge

Postby Chris H. » 31 May 2010, 01:48

I discovered that the keyword:

"At the beginning of the end step, sacrifice {card name}."

is already updated to the newer form:

"At the beginning of the end step, sacrifice CARDNAME."

I only had to update the keyword listing.
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: Keywords recognized by Forge

Postby Chris H. » 31 May 2010, 15:39

While I have the mop and bucket out I checked the code for the keyword:

Code: Select all
At the beginning of your upkeep, sacrifice
`
and I discovered that the code will handle either form of the keyword:

Code: Select all
At the beginning of your upkeep, sacrifice {+ c.getName()}
At the beginning of your upkeep, sacrifice CARDNAME
`
So there is no need to adjust the code base. Both forms of the keyword appear in the cards.txt file so I changed the older form to the newer CARDNAME form (for consistency) and moved these to the top of file.


Changes appear in Rev. r1150
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: Keywords recognized by Forge

Postby Chris H. » 31 May 2010, 21:26

I would like to thank Sloth for investigating the keyword:

Code: Select all
1, Sacrifice CARDNAME: Draw a card.
`
I did not need to change any coding, instead I edited the keyword listing.


And, BTW: It is good to hear from you again Sloth. It has been a while. Hope you are doing fine. :D
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: Keywords recognized by Forge

Postby Chris H. » 01 Jun 2010, 01:24

The keyword:

Code: Select all
At the beginning of your upkeep, destroy CARDNAME unless you pay:{cost}
`
does not require any code or cards.txt changes. I only had to update the keyword listing.
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: Keywords recognized by Forge

Postby Chris H. » 01 Jun 2010, 18:05

I think there is only one keyword left to convert from the actual card name to CARDNAME. And that keyword is at the top of the list:

Code: Select all
{cardName} is {color}
`
It appears that some changes were made to sections of the code and this keyword is now not functional. I am not sure if I will be able to figure out how to get this keyword working again. :(
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: Keywords recognized by Forge

Postby Chris H. » 02 Jun 2010, 01:34

I found the code for c.getName " is " color keyword and made two small adjustments to make it handle the new CARDNAME form. I also changed the cards.txt entry for these cards and moved them to top of file:

Crimson Kobolds
Crookshank Kobolds
Ghostfire
Kobolds of Kher Keep
Transguild Courier

The keyword now works as long as the CARDNAME form is used. Shrug. But at least it works. The card border color for all but Transguild Courier is wrong. This will have to be changed elsewhere.

Changes appear in Rev. 1154
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: Keywords recognized by Forge

Postby Chris H. » 02 Jun 2010, 13:24

I found the getBorder() code located in GuiDisplayUtil and I added some checks and the proper border color is now displayed in the deck editor and in the game window. Kobolds now have a red border and Ghostfire now has a gray border.

Zerker's card is color keyword should now be fully functional.

Changes appear in Rev. 1158
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 Developer's Corner

Who is online

Users browsing this forum: No registered users and 75 guests


Who is online

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

Login Form