It is currently 16 Apr 2024, 10:58
   
Text Size

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

Postby 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
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Two easy enchantments with TgtKPump

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

We can add the abTgtPTPump cards once this keyword is entered into the code base. Once again, thank you Sloth for your help. :)
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: Two easy enchantments with TgtKPump

Postby DennisBergkamp » 01 Jul 2009, 06:05

Nice :)

I discovered that the Cycling keyword does not work with spells.
Oftentimes what happens is that a lot of the keywords clear a spell's abilities (Cycling does too).
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.
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 36 guests


Who is online

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

Login Form