Some easy cards with spDamageCP/spDamageP
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
16 posts
• Page 1 of 2 • 1, 2
Some easy cards with spDamageCP/spDamageP
by Sloth » 28 Jun 2009, 16:35
Here are some cards that can be added to cards.txt without further ado:
- Code: Select all
Zap
2 R
Instant
no text
spDamageCP:1
Cantrip
Searing Flesh
6 R
Sorcery
no text
spDamageP:7
Flame Jet
1 R
Sorcery
no text
spDamageP:3
Cycling:2
Ember Shot
6 R
Instant
no text
spDamageCP:3
Cantrip
Burning Fields
4 R
Sorcery
no text
spDamageP:5
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Some easy cards with spDamageCP/spDamageP
by Chris H. » 30 Jun 2009, 11:04
Thank you, Sloth for your time and effort. We appreciate it.Sloth wrote:Here are some cards that can be added to cards.txt without further ado:
And I tried the keyword Cantrip in the game and it worked just fine.

-
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: Some easy cards with spDamageCP/spDamageP
by Sloth » 30 Jun 2009, 11:49
I just realized that Burning Fields and Searing Flesh are not 100% accurate because the cards say opponent and not player, but the other 3 are OK.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Some easy cards with spDamageCP/spDamageP
by Sloth » 01 Jul 2009, 07:44
So it seems that Zap, Flame Jet and Ember Shot are also not OK, because the additional keyword Cantrip/Cycling is not displayed. I'm sorry, I should have tested them more.
I also tried using Cantrip on creatures, where the keyword is displayed even with other keywords present, but then the problem is that it is not a proper comes into play ability, but part of the resolution of the creature spell. I don't know if you are OK with that. Some creatures could be easely added.
I also tried using Cantrip on creatures, where the keyword is displayed even with other keywords present, but then the problem is that it is not a proper comes into play ability, but part of the resolution of the creature spell. I don't know if you are OK with that. Some creatures could be easely added.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Some easy cards with spDamageCP/spDamageP
by Chris H. » 01 Jul 2009, 11:14
Flame Jet will require additional coding for the cycling ability to be active.Sloth wrote:So it seems that Zap, Flame Jet and Ember Shot are also not OK, because the additional keyword Cantrip/Cycling is not displayed. I'm sorry, I should have tested them more.
I also tried using Cantrip on creatures, where the keyword is displayed even with other keywords present, but then the problem is that it is not a proper comes into play ability, but part of the resolution of the creature spell. I don't know if you are OK with that. Some creatures could be easely added.
Ember Shot and Zap will be added. Dennis may be able to modify the cantrip keyword. I plan to submit the cards.txt entries for these two cards and will have them look like this (as a work around):
- Code: Select all
Ember Shot
6 R
Instant
Draw a card.
spDamageCP:3
Cantrip
Zap
2 R
Instant
Draw a card.
spDamageCP:1
Cantrip
I replaced the "no text" string with the string "Draw a card." Granted, it is something of a hack but it works.

-
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: Some easy cards with spDamageCP/spDamageP
by Rob Cashwalker » 01 Jul 2009, 12:08
I'd prefer to keep it separate. Cantrip for spells, and the comes into play for permanents. I submitted the code, Dennis just has to add it.Sloth wrote:So it seems that Zap, Flame Jet and Ember Shot are also not OK, because the additional keyword Cantrip/Cycling is not displayed. I'm sorry, I should have tested them more.
I also tried using Cantrip on creatures, where the keyword is displayed even with other keywords present, but then the problem is that it is not a proper comes into play ability, but part of the resolution of the creature spell. I don't know if you are OK with that. Some creatures could be easely added.
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: Some easy cards with spDamageCP/spDamageP
by DennisBergkamp » 03 Jul 2009, 08:21
I've added it
I made a few changes though, it will now use the stack whenever one of those creatures come into play.

-
DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Some easy cards with spDamageCP/spDamageP
by Sloth » 03 Jul 2009, 10:33
Does that mean that Elvish Visionary should now read:
- Code: Select all
Elvish Visionary
1 G
Creature Elf Shaman
no text
1/1
Cantrip
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Some easy cards with spDamageCP/spDamageP
by DennisBergkamp » 03 Jul 2009, 10:59
Ah nope, it'll look like this:
- Code: Select all
Elvish Visionary
1 G
Creature Elf Shaman
no text
1/1
When this card comes into play, draw a card.
Messenger Falcons
2 GU W
Creature Bird
no text
2/2
Flying
When this card comes into play, draw a card.
Wistful Selkie
GU GU GU
Creature Merfolk Wizard
no text
2/2
When this card comes into play, draw a card.
-
DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Some easy cards with spDamageCP/spDamageP
by Sloth » 03 Jul 2009, 11:04
Fair enough. Then the following creatures can be changed:
- Code: Select all
Wall of Blossoms
1 G
Creature Wall
no text
0/4
Defender
When this card comes into play, draw a card.
Kavu Climber
3 G G
Creature Kavu
no text
3/3
When this card comes into play, draw a card.
Jungle Barrier
2 G U
Creature Plant Wall
no text
2/6
Defender
When this card comes into play, draw a card.
- Code: Select all
Striped Bears
3 G
Creature Bear
no text
2/2
When this card comes into play, draw a card.
Merchant of Secrets
2 U
Creature Human Wizard
no text
1/1
When this card comes into play, draw a card.
Council of Advisors
2 U
Creature Human Advisor
no text
1/1
When this card comes into play, draw a card.
Carven Caryatid
1 G G
Creature Spirit
no text
2/5
Defender
When this card comes into play, draw a card.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Some easy cards with spDamageCP/spDamageP
by DennisBergkamp » 03 Jul 2009, 14:09
Thanks, I'll modify and add them 

-
DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Some easy cards with spDamageCP/spDamageP
by zerker2000 » 03 Jul 2009, 22:33
hmm...
- Code: Select all
Mulldrifter
4 U
Creature Elemental
no text
2/2
When this card comes into play, draw a card.
When this card comes into play, draw a card.
Flying

O forest, hold thy wand'ring son
Though fears assail the door.
O foliage, cloak thy ravaged one
In vestments cut for war.
--Eladamri, the Seed of Freyalise
Though fears assail the door.
O foliage, cloak thy ravaged one
In vestments cut for war.
--Eladamri, the Seed of Freyalise
- zerker2000
- Programmer
- Posts: 569
- Joined: 09 May 2009, 21:40
- Location: South Pasadena, CA
- Has thanked: 0 time
- Been thanked: 0 time
Re: Some easy cards with spDamageCP/spDamageP
by Rob Cashwalker » 04 Jul 2009, 03:31
Doesn't it still need the evoke code?zerker2000 wrote:hmm...
- Code: Select all
Mulldrifter
4 U
Creature Elemental
no text
2/2
When this card comes into play, draw a card.
When this card comes into play, draw a card.
Flying
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: Some easy cards with spDamageCP/spDamageP
by zerker2000 » 04 Jul 2009, 05:43
Yes, I'm not saying completely delete it from CardFactory, I'm saying keyword that part of it (or keyword evoke, which I think shouldn't be hard).
O forest, hold thy wand'ring son
Though fears assail the door.
O foliage, cloak thy ravaged one
In vestments cut for war.
--Eladamri, the Seed of Freyalise
Though fears assail the door.
O foliage, cloak thy ravaged one
In vestments cut for war.
--Eladamri, the Seed of Freyalise
- zerker2000
- Programmer
- Posts: 569
- Joined: 09 May 2009, 21:40
- Location: South Pasadena, CA
- Has thanked: 0 time
- Been thanked: 0 time
Re: Some easy cards with spDamageCP/spDamageP
by DennisBergkamp » 04 Jul 2009, 07:43
I don't think that'll work though (we're not setting the comesIntoPlayCommand to draw two cards).
-
DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
16 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 38 guests