Two easy enchantments with TgtKPump
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Two easy enchantments with TgtKPump
by Sloth » 30 Jun 2009, 12:37
Here are 2 enchantments with TgtKPump that can be added to cards.txt without further ado:
- Code: Select all
Dauthi Embrace
2 B
Enchantment
no text
TgtKPump B B:Shadow
Noble Steeds
2 W
Enchantment
no text
TgtKPump 1 W:First Strike
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Two easy enchantments with TgtKPump
by Chris H. » 01 Jul 2009, 01:20
I discovered that the Cycling keyword does not work with spells.
The Cantrip keyword does not display the "Draw a card." text string in the card text panel. I can get around this by placing this string in the cards.txt entry for the two cards in question.
I play tested the cards Noble Steeds and Dauthi Embrace. The cards work and I was able to target a creature and give it the appropriate keyword until end of turn.
I found a minor coding problem. These enchantments are allowing me to give a second dose of the same keyword to the same target creature.
In the case of Noble Steeds, the target creature displayed the First Strike ability twice in it's text panel.
I will pm the data to Dennis for the four cards that can be added at this time.
We can add the abTgtPTPump cards once this keyword is entered into the code base. Once again, thank you Sloth for your help.
The Cantrip keyword does not display the "Draw a card." text string in the card text panel. I can get around this by placing this string in the cards.txt entry for the two cards in question.
I play tested the cards Noble Steeds and Dauthi Embrace. The cards work and I was able to target a creature and give it the appropriate keyword until end of turn.
I found a minor coding problem. These enchantments are allowing me to give a second dose of the same keyword to the same target creature.
In the case of Noble Steeds, the target creature displayed the First Strike ability twice in it's text panel.
I will pm the data to Dennis for the four cards that can be added at this time.
We can add the abTgtPTPump cards once this keyword is entered into the code base. Once again, thank you Sloth for your help.
-
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: Two easy enchantments with TgtKPump
by DennisBergkamp » 01 Jul 2009, 06:05
Nice
Imagine there would be a Lightning Bolt with cycling... currently we would not be able to implement this card through just cards.txt using 'spDamageCP:3' and 'cycling:{cost}', because one would remove the other.
However, Cantrip should work. So for instance, Zap could be added:
Zap
2 R
Instant
no text
spDamageCP:3
Cantrip
'
Still won't show the "Draw a card" text though, let me see if I can add it somehow.
Oftentimes what happens is that a lot of the keywords clear a spell's abilities (Cycling does too).I discovered that the Cycling keyword does not work with spells.
Imagine there would be a Lightning Bolt with cycling... currently we would not be able to implement this card through just cards.txt using 'spDamageCP:3' and 'cycling:{cost}', because one would remove the other.
However, Cantrip should work. So for instance, Zap could be added:
Zap
2 R
Instant
no text
spDamageCP:3
Cantrip
'
Still won't show the "Draw a card" text though, let me see if I can add it somehow.
-
DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 12 guests