It is currently 29 Oct 2025, 00:14
   
Text Size

New Here, Love Magic, Do Not Know Java...

Post MTG Forge Related Programming Questions Here

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

New Here, Love Magic, Do Not Know Java...

Postby RedSypher » 31 Oct 2010, 22:17

So, I've been fiddling around with the .txt files for some of the cards, and i have made 2 successes (cards that work like the real card) and a few almosts.
Here are (what I think) are my successes:
Code: Select all
Name:Tireless Tribe
ManaCost:W
Types:Creature Human Nomad
Text:no text
PT:1/1
K:abPump Discard<1/Any>:+0/+4
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/tireless_tribe.jpg
End
Code: Select all
Name:Breakthrough
ManaCost:X U
Types:Sorcery
Text:Draw four cards, then choose and discard all but X cards in your hand
K:spDrawCards:4:Drawback$YouDiscard:X:Draw 4 cards.:Breakthrough - Draw four cards, then choose and discard all but X cards in your hand.
SVar:X:Count$CardsInYourHand/Minus.Count$xPaid
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/breakthrough.jpg
End
Code: Select all
Name:Stinkweed Imp
ManaCost:2 B
Types:Creature Imp
Text:no text
PT:1/2
K:Flying
K:Deathtouch
K:Dredge 5
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/stinkweed_imp.jpg
End
And here Are the cards I just cannot get to work, mostly due to little things:

Cannot get it to put it on top of deck, right now it just sends it to the library...
Code: Select all
Name:Golgari Thug
ManaCost:1 B
Types:Creature Human Warrior
Text:no text
PT:1/1
K:WheneverKeyword:PermanentIntoGraveyard:Self:Graveyard:MoveFrom-Graveyard-Library:SearchShuffle_Type/Creature/Graveyard:ASAP:No_Condition:SearchType/Creature:When Golgari Thug is put into a graveyard from play, put target creature card in your graveyard on top of your library.
K:Dredge 4
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/Golgari_Thug.jpg
End
Have no idea how to get it to give a cost to exile cards in graveyards, right now its just set to Yes_No
Code: Select all
Name:Ichorid
ManaCost:3 B
Types:Creature Horror
Text:no text
PT:3/1
K:Haste
K:At the beginning of the end step, sacrifice CARDNAME.
K:WheneverKeyword:BeginningOfUpkeep:No_Initiator:Graveyard:MoveFrom-Graveyard-Play:Self:ASAP:Yes_No:ControllerUpkeep!No_Initiator:At the beginning of your upkeep, if Ichorid is in your graveyard, you may exile a black creature card other than Ichorid from your graveyard. If you do, return Ichorid to the battlefield.

SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/Ichorid.jpg
End
Both of these cards are fine (and pretty simple), though i have no idea how to make static or activated abilities only available under a condition (in this case Threshold).
Code: Select all
Name:Cephalid Coliseum
ManaCost:no cost
Types:Land
Text:no text
K:paintap:1:U
K:abDrawCards U T Sac<1/CARDNAME>:3:Drawback$YouDiscard/3:Draw three cards, then discard three cards.:Cephalid Coliseum - draw cards and discard cards
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/grand_coliseum.jpg
End
Code: Select all
Name:Putrid Imp
ManaCost:B
Types:Creature Zombie Imp
Text:no text
PT:1/1
K:abPump Discard<1/Any>:Flying
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/tireless_tribe.jpg
End
I have other questions, but those can be for later.

(PS, Forge rocks and is super fun)
(PPS I like Dredge if you could not tell)
RedSypher
 
Posts: 25
Joined: 31 Oct 2010, 06:48
Has thanked: 0 time
Been thanked: 0 time

Re: New Here, Love Magic, Do Not Know Java...

Postby jeffwadsworth » 01 Nov 2010, 02:20

For your last card issue, check this thread.
viewtopic.php?f=52&t=3370&p=44725&hilit=Threshold#p44725
jeffwadsworth
Super Tester Elite
 
Posts: 1172
Joined: 20 Oct 2010, 04:47
Location: USA
Has thanked: 287 times
Been thanked: 70 times

Re: New Here, Love Magic, Do Not Know Java...

Postby friarsol » 01 Nov 2010, 03:04

Hah. Yep, the SA_Restriction should be able to do that "soon"-ish I've been tied up in some Infrastructure work the last few weeks, that stemmed from the Restriction work. For Putrid Imp it should be able to use one of the st keywords I think? Maybe Sloth can pop in and say which one. It may be stPumpSelf.

As for Stinkweed Imp, it doesn't quite have Deathtouch since it only cares about combat damage. Feel free to look at the API for some more information.

I'd say it'd be better to use the new AbilityFactory instead of using the older keywords, as they give a bit more flexibility in general.

So Tireless Tribe's ability
Code: Select all
K:abPump Discard<1/Any>:+0/+4
would look like this
Code: Select all
A:AB$Pump|Cost$Discard<1/Any>|NumDef$+4|SpellDescription$Tireless Tribe gets +0/+4 until end of turn.
it may be a bit more verbose, but will allow for much more flexibility, since it can include optional parameters like the above SA_Restriction.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: New Here, Love Magic, Do Not Know Java...

Postby silly freak » 01 Nov 2010, 14:42

I noticed that the SVar:Pictures for the last two are mixed up...
___

where's the "trust me, that will work!" switch for the compiler?
Laterna Magica - blog, forum, project, 2010/09/06 release!
silly freak
DEVELOPER
 
Posts: 598
Joined: 26 Mar 2009, 07:18
Location: Vienna, Austria
Has thanked: 93 times
Been thanked: 25 times

Re: New Here, Love Magic, Do Not Know Java...

Postby RedSypher » 01 Nov 2010, 20:47

oh, heh, sorry, that comes from what files I started with....
RedSypher
 
Posts: 25
Joined: 31 Oct 2010, 06:48
Has thanked: 0 time
Been thanked: 0 time

Re: New Here, Love Magic, Do Not Know Java...

Postby RedSypher » 06 Nov 2010, 02:11

Hey, quick question. Is there any way in ability factory to give a spell 2 drawbacks? Like lifegain and discard on a draw spell?
RedSypher
 
Posts: 25
Joined: 31 Oct 2010, 06:48
Has thanked: 0 time
Been thanked: 0 time

Re: New Here, Love Magic, Do Not Know Java...

Postby friarsol » 06 Nov 2010, 02:26

Not yet. What card are you talking about? We might be able to handle it in a different way though.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: New Here, Love Magic, Do Not Know Java...

Postby RedSypher » 06 Nov 2010, 22:46

Im talking about frantic search. it needs both a discard and untap lands drawback.
RedSypher
 
Posts: 25
Joined: 31 Oct 2010, 06:48
Has thanked: 0 time
Been thanked: 0 time


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 20 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 20 users online :: 0 registered, 0 hidden and 20 guests (based on users active over the past 10 minutes)
Most users ever online was 9298 on 10 Oct 2025, 12:54

Users browsing this forum: No registered users and 20 guests

Login Form