It is currently 10 Nov 2025, 14:28
   
Text Size

More Cards with the new keywords

Post MTG Forge Related Programming Questions Here

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

More Cards with the new keywords

Postby Sloth » 02 Oct 2009, 14:21

Here are some cards with the new keywords that can be added to cards.txt:

Code: Select all
Flame Jet
1 R
Sorcery
no text
spDamageP:3
Cycling:2

Iron Will
W
Instant
no text
spPumpTgt:+0/+4
Cycling:2

Slippery Bogle
UG
Creature Beast
no text
1/1
This card can't be the target of spells or abilities your opponents control.

Endless Cockroaches
1 B B
Creature Insect
no text
1/1
When this card is put into a graveyard from the battlefield, return this card to its owner's hand

Shivan Phoenix
4 R R
Creature Phoenix
no text
3/4
Flying
When this card is put into a graveyard from the battlefield, return this card to its owner's hand

Barbarian General
4 R
Creature Human Barbarian Soldier
no text
3/2
Horsemanship

Riding Red Hare
2 W
Sorcery
Target creature gets +3/+3 and gains horsemanship until end of turn.
spPumpTgt:+3/+3/Horsemanship

Shu Elite Companions
4 W
Creature Human Soldier
no text
3/3
Horsemanship

Shu General
3 W
Creature Human Soldier
no text
2/2
Vigilance
Horsemanship

Wei Elite Companions
4 B
Creature Human Soldier
no text
3/3
Horsemanship

Wei Scout
1 B
Creature Human Soldier Scout
no text
1/1
Horsemanship

Wei Strike Force
2 B
Creature Human Soldier
no text
2/1
Horsemanship

Wu Elite Cavalry
3 U
Creature Human Soldier
no text
2/3
Horsemanship

Wu Light Cavalry
1 U
Creature Human Soldier
no text
1/2
Horsemanship

Yellow Scarves Cavalry
1 R
Creature Human Soldier
no text
1/1
Horsemanship
This creature cannot block

Yellow Scarves General
3 R
Creature Human Soldier
no text
2/2
Horsemanship
This creature cannot block

Vampiric Touch
2 B
Sorcery
Vampiric Touch deals 2 damage to target opponent and you gain 2 life.
spLoseLifeGainLife:2
Here is the entry for card-pictures.txt:
Code: Select all
Flame_Jet                   http://www.wizards.com/global/images/magic/general/Flame_Jet.jpg
Iron_Will                   http://www.wizards.com/global/images/magic/general/Iron_Will.jpg
Slippery_Bogle              http://www.wizards.com/global/images/magic/general/Slippery_Bogle.jpg
Endless_Cockroaches      http://resources.wizards.com/Magic/Cards/PO/en-us/Card4220.jpg
Shivan_Phoenix              http://www.wizards.com/global/images/magic/general/Shivan_Phoenix.jpg
Barbarian_General      http://www.wizards.com/global/images/magic/general/Barbarian_General.jpg
Riding_Red_Hare              http://www.wizards.com/global/images/magic/general/Riding_Red_Hare.jpg
Shu_Elite_Companions      http://www.wizards.com/global/images/magic/general/Shu_Elite_Companions.jpg
Shu_General              http://www.wizards.com/global/images/magic/general/Shu_General.jpg
Wei_Elite_Companions      http://www.wizards.com/global/images/magic/general/Wei_Elite_Companions.jpg
Wei_Scout              http://www.wizards.com/global/images/magic/general/Wei_Scout.jpg
Wei_Strike_Force      http://www.wizards.com/global/images/magic/general/Wei_Strike_Force.jpg
Wu_Elite_Cavalry      http://www.wizards.com/global/images/magic/general/Wu_Elite_Cavalry.jpg
Wu_Light_Cavalry      http://www.wizards.com/global/images/magic/general/Wu_Light_Cavalry.jpg
Yellow_Scarves_Cavalry      http://www.wizards.com/global/images/magic/general/Yellow_Scarves_Cavalry.jpg
Yellow_Scarves_General      http://www.wizards.com/global/images/magic/general/Yellow_Scarves_General.jpg
Vampiric_Touch              http://resources.wizards.com/Magic/Cards/PO/en-us/Card4244.jpg
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: More Cards with the new keywords

Postby mtgrares » 02 Oct 2009, 15:26

As always, great work. Thanks for including the card pictures too.
mtgrares
DEVELOPER
 
Posts: 1352
Joined: 08 Sep 2008, 22:10
Has thanked: 3 times
Been thanked: 12 times

Re: More Cards with the new keywords

Postby DennisBergkamp » 02 Oct 2009, 18:32

Yes, thanks for finding these :)
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: More Cards with the new keywords

Postby Chris H. » 02 Oct 2009, 18:39

Yes, thank you very much for these new cards. It is always nice to have additional cards to add to the next version. 8)
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: More Cards with the new keywords

Postby Chris H. » 05 Oct 2009, 02:02

We can also add this card:


Code: Select all
Mage's Guile
1 U
Instant
Target creature gains shroud until end of turn.
spPumpTgt:Shroud
Cycling:U
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: More Cards with the new keywords

Postby Sloth » 06 Oct 2009, 13:42

Chris H. wrote:We can also add this card:


Code: Select all
Mage's Guile
1 U
Instant
Target creature gains shroud until end of turn.
spPumpTgt:Shroud
Cycling:U
Another easy card to add. Just one remark:
The AI will not be able to use Mage's Guile effectively, since it won't use it to counter targeted spells. So I think it should be added to the list of cards to remove in GenerateConstructedDeck.java. Otherwise it's fine, I just tested it.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: More Cards with the new keywords

Postby DennisBergkamp » 06 Oct 2009, 16:44

Ok, sounds good.
There are many more of these we should add to that list, by the way.
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: More Cards with the new keywords

Postby Chris H. » 06 Oct 2009, 17:45

I just ran a test with:

Mage's Guile
1 U
Instant
Target creature gains shroud until end of turn.
spPumpTgt:Shroud
Cycling:U

I suspected that this spell might have the same problem as Iron Will. Have you had a chance to modify the spPumpTgt code, Dennis. I might take a look at this later tonight or tomorrow.
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: More Cards with the new keywords

Postby DennisBergkamp » 06 Oct 2009, 19:16

Hmm, I did look at it. I think Rob commented out the description setter, but I'm not sure what the reason was for this. I'll PM him.
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: More Cards with the new keywords

Postby Sloth » 06 Oct 2009, 19:19

I'm not sure if you noticed it, but Iron Will and Mage's Guile actually give you both options (playing the spell and cycling the card), but the first option has no text (or the text is above the displayed text box). You can click above the cycling option and the spells work normally.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: More Cards with the new keywords

Postby Rob Cashwalker » 06 Oct 2009, 19:31

DennisBergkamp wrote:Hmm, I did look at it. I think Rob commented out the description setter, but I'm not sure what the reason was for this. I'll PM him.
No need to PM me.. I'm here reading along....

This is because I had assumed spells would have only the one effect, and building the description strings was buggy at first for some weird reason.

I've decided that future keyword parsing should include the descriptions as parameters. More on this when I finalize my post for new spDamageTgt code.
Last edited by Rob Cashwalker on 06 Oct 2009, 19:35, edited 1 time in total.
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: More Cards with the new keywords

Postby DennisBergkamp » 06 Oct 2009, 19:34

Too late :lol:

Well, I guess when defining Mage's Guile and Iron Will like this:

Code: Select all
Mage's Guile
1 U
Instant
Target creature gains shroud until end of turn.
spPumpTgt:Shroud
Cycling:U

Iron Will
W
Instant
Target creature gets +0/+4 until end of turn.
spPumpTgt:+0/+4
Cycling:2
The code works, but the description of both spellAbilities get set to blank text. No clue why, even though it probably has something to do with the cycling code.
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: More Cards with the new keywords

Postby DennisBergkamp » 06 Oct 2009, 19:45

This is because I had assumed spells would have only the one effect, and building the description strings was buggy at first for some weird reason.

I've decided that future keyword parsing should include the descriptions as parameters. More on this when I finalize my post for new spDamageTgt code.
Ok. I guess for now, we'll leave Mage's Guile and Iron Will out of this version, no biggie.
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: More Cards with the new keywords

Postby Chris H. » 06 Oct 2009, 20:13

We are looking forward to Rob's forthcoming statement on this matter. I spent a little time thinking about the problem. I noticed that the Flame Jet spell which also has cycling gives the text for both choices when we cast the spell.

And, like Sloth, I too noticed the slight band of color where the missing choice should go. Although I did not think to actually click on the band to see if it would activate. :)
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: More Cards with the new keywords

Postby Rob Cashwalker » 06 Oct 2009, 21:20

The existing damage code builds a description and assigns it. But for whatever reason I didn't do that with the spPump code, so the description shows up as blank, luckily your display properties highlight it as a slightly off color, mine shows up as plain white.
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

Next

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 18 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 18 users online :: 0 registered, 0 hidden and 18 guests (based on users active over the past 10 minutes)
Most users ever online was 9824 on 10 Nov 2025, 04:33

Users browsing this forum: No registered users and 18 guests

Login Form