Page 1 of 1

Adding counters

PostPosted: 09 Oct 2010, 06:43
by Kurai
Ahoy people!

I'm not much of a programmer at all... But I want to add cards to the cards.txt. Many of the cards I want to add have abilities which add counters to other cards.

I used abPumpTgtC but that just lasts until the end of the turn and doesn't add counters...

These are my failed attempts:
The creature sacrifices itself in order to boost another, think the ability is called Reinforce 1, but that's not a keyword yet is it?
Code: Select all
abPumpTgtC W Sac-CARDNAME:+1/+1
Code: Select all
abPumpTgtC W Sac-CARDNAME:AddCounter<P1P1/1>
If anyone could help with this it would be a great help.

Thanks a lot in advance.

Re: Adding counters

PostPosted: 09 Oct 2010, 12:32
by Rob Cashwalker
Hi, welcome to the forum!

I'm sure spells and abilities dealing with counters are on the horizon for our dev team. Possibly even a dedicated Reinforce ability, though it appears on a very limited group of cards. We tend to make keywords that apply to the largest range of cards first, then move down in scale.

Also, we are no longer using cards.txt. Now each card has its own text file under res/cardsfolder.

Re: Adding counters

PostPosted: 09 Oct 2010, 13:43
by friarsol
Funny you should mention it. I have a abPutCounter mostly completed just needed a little bit of testing before it was submitted.

Re: Adding counters

PostPosted: 10 Oct 2010, 08:12
by Kurai
Thanks. ^_^

Ah ok, so maybe by the next release? I'm using the Archenemy Green and White deck irl, managed to add a few simple cards to the game but certain ones like the Forgotten Ancient and a few others use a lot of counters.

Is it for the next release that each card will have it's own file? The 9-12 one I downloaded still has the cards.txt. That would be a great addition and would mean that users could upload cards which can just be downloaded and slotted straight into the game!

Looking forward to the addition of abPutCounter! I'm going through Java tutorials and stuff, hope I may be of use in the future. ^_^

Re: Adding counters

PostPosted: 10 Oct 2010, 09:25
by Sloth
Kurai wrote:Is it for the next release that each card will have it's own file? The 9-12 one I downloaded still has the cards.txt.
This Version already has the new card structure: viewtopic.php?f=26&t=3264

Kurai wrote:That would be a great addition and would mean that users could upload cards which can just be downloaded and slotted straight into the game!
Yes. That would be welcome.

Re: Adding counters

PostPosted: 10 Oct 2010, 19:47
by zerker2000
Kurai wrote:That would be a great addition and would mean that users could upload cards which can just be downloaded and slotted straight into the game!
Well, it wouldn't be quite that simple, since complicated cards would also involve swapping in updated classfiles into run-forge.jar.
That being said, "Vanilla" or "French vanilla"(anything using only the implemented keywords) cards can easily be added, and have been for a long time(pasting the same info into cards.txt and card-pictures.txt).