It is currently 15 Sep 2025, 21:26
   
Text Size

Card Contributions

Post MTG Forge Related Programming Questions Here

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

Re: Card Contributions

Postby friarsol » 05 Jun 2011, 16:45

Sloth wrote:Don't forget that conditions based on target won't work with AF Counter! Pyroblast is not possible at the moment.
Oh right, I've been super-debugging this Multitargeting stuff now that everything has been converted over, so I hadn't really even thought about Conditionals not being able to handle it yet.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Card Contributions

Postby Starcrash » 06 Jun 2011, 04:36

You guys are right. *sigh* I thought Pyroblast would act just like Guttural Response, but I wasn't reading very closely. But on the bright side, I think I have some actual working cards. I playtested them extensively, and they even react the way they're supposed to if you stack multiples on the same land [url](http://mtgsalvation.com/1182-cranial-in ... clock.html)[/url].
Name:Corrupted Zendikon
ManaCost:1 B
Types:Enchantment Aura
Text:no text
K:Enchant Land
K:stAnimateEnchanted:Land:3/3:Creature,Ooze:Black:No Abilities:isPresent Card.AttachedBy:Enchanted land is a 3/3 black Ooze creature. It's still a land.
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ValidCard$ Card.AttachedBy | Execute$ TrigChangeZone | TriggerDescription$ When enchanted land is put into a graveyard, return that card to its owner's hand.
SVar:TrigChangeZone:AB$ChangeZone | Cost$ 0 | Defined$ TriggeredCard | Origin$ Graveyard | Destination$ Hand
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/corrupted_zendikon.jpg
SetInfo:WWK|Common|http://magiccards.info/scans/en/wwk/55.jpg
End
Name:Crusher Zendikon
ManaCost:2 R
Types:Enchantment Aura
Text:no text
K:Enchant Land
K:stAnimateEnchanted:Land:4/2/Trample:Creature,Beast:Red:No Abilities:isPresent Card.AttachedBy:Enchanted land is a 4/2 red Beast creature with trample. It's still a land.
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ValidCard$ Card.AttachedBy | Execute$ TrigChangeZone | TriggerDescription$ When enchanted land is put into a graveyard, return that card to its owner's hand.
SVar:TrigChangeZone:AB$ChangeZone | Cost$ 0 | Defined$ TriggeredCard | Origin$ Graveyard | Destination$ Hand
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/crusher_zendikon.jpg
SetInfo:WWK|Common|http://magiccards.info/scans/en/wwk/78.jpg
End
Name:Guardian Zendikon
ManaCost:2 W
Types:Enchantment Aura
Text:no text
K:Enchant Land
K:stAnimateEnchanted:Land:2/6/Defender:Creature,Wall:White:No Abilities:isPresent Card.AttachedBy:Enchanted land is a 2/6 white Wall creature with defender. It's still a land.
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ValidCard$ Card.AttachedBy | Execute$ TrigChangeZone | TriggerDescription$ When enchanted land is put into a graveyard, return that card to its owner's hand.
SVar:TrigChangeZone:AB$ChangeZone | Cost$ 0 | Defined$ TriggeredCard | Origin$ Graveyard | Destination$ Hand
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/guardian_zendikon.jpg
SetInfo:WWK|Common|http://magiccards.info/scans/en/wwk/6.jpg
End
Name:Vastwood Zendikon
ManaCost:4 G
Types:Enchantment Aura
Text:no text
K:Enchant Land
K:stAnimateEnchanted:Land:6/4:Creature,Elemental:Green:No Abilities:isPresent Card.AttachedBy:Enchanted land is a 6/4 green Elemental creature. It's still a land.
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ValidCard$ Card.AttachedBy | Execute$ TrigChangeZone | TriggerDescription$ When enchanted land is put into a graveyard, return that card to its owner's hand.
SVar:TrigChangeZone:AB$ChangeZone | Cost$ 0 | Defined$ TriggeredCard | Origin$ Graveyard | Destination$ Hand
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/vastwood_zendikon.jpg
SetInfo:WWK|Common|http://magiccards.info/scans/en/wwk/117.jpg
End
Name:Wind Zendikon
ManaCost:U
Types:Enchantment Aura
Text:no text
K:Enchant Land
K:stAnimateEnchanted:Land:2/2/Flying:Creature,Elemental:Blue:No Abilities:isPresent Card.AttachedBy:Enchanted land is a 2/2 blue Elemental creature with flying. It's still a land.
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ValidCard$ Card.AttachedBy | Execute$ TrigChangeZone | TriggerDescription$ When enchanted land is put into a graveyard, return that card to its owner's hand.
SVar:TrigChangeZone:AB$ChangeZone | Cost$ 0 | Defined$ TriggeredCard | Origin$ Graveyard | Destination$ Hand
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/wind_zendikon.jpg
SetInfo:WWK|Common|http://magiccards.info/scans/en/wwk/46.jpg
End
Starcrash
 
Posts: 96
Joined: 30 May 2011, 18:39
Has thanked: 2 times
Been thanked: 1 time

Re: Card Contributions

Postby Starcrash » 06 Jun 2011, 06:39

Name:Liege of the Tangle
ManaCost:6 G G
Types:Creature Elemental
Text:no text
PT:8/8
K:Trample
K:stAnimateAll:Land.countersGE1QUEST:8/8:Creature,Elemental:Green:No Abilities:No Condition:Each of those lands is an 8/8 green Elemental creature for as long as it has [a quest] counter on it. They're still lands.
T:Mode$ DamageDone | ValidSource$ Card.Self | ValidTarget$ Player | CombatDamage$ True | Execute$ TrigPutCounter | TriggerZones$ Battlefield | TriggerDescription$ Whenever CARDNAME deals combat damage to a player, you may choose any number of lands you control and put [a quest] counter on them.
SVar:TrigPutCounter:AB$PutCounter | Cost$ 0 | ValidTgts$ Land.YouCtrl | OptionalDecider$ You | TargetMax$ X | TgtPrompt$ Select lands you control | CounterType$ QUEST | CounterNum$ 1
SVar:X:Count$Valid Land.YouCtrl
SVar:RemRandomDeck:True
SVar:RemAIDeck:True
SVar:Rarity:Mythic
SVar:Picture:http://www.wizards.com/global/images/magic/general/liege_of_the_tangle.jpg
SetInfo:SOM|Mythic|http://magiccards.info/scans/en/som/123.jpg
End
This is a mock-up. You'll notice I replaced AWAKENING counters with QUEST counters so you can actually test it. And you'll also notice that killing the Liege will end the effect. But if the counters are programmed in by a real programmer, much like the BLAZE counters of the Obsidian Fireheart, I imagine this card will work fine.
Starcrash
 
Posts: 96
Joined: 30 May 2011, 18:39
Has thanked: 2 times
Been thanked: 1 time

Re: Card Contributions

Postby Sloth » 06 Jun 2011, 07:32

Starcrash wrote:Name:Liege of the Tangle

This is a mock-up. You'll notice I replaced AWAKENING counters with QUEST counters so you can actually test it. And you'll also notice that killing the Liege will end the effect. But if the counters are programmed in by a real programmer, much like the BLAZE counters of the Obsidian Fireheart, I imagine this card will work fine.
I think you can actually script it right by using DB$ Effect. See here: http://www.slightlymagic.net/wiki/Forge ... ory#Effect (Examples are Glimpse of Nature and Channel). I will add AWAKENING counters so you can use them.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Card Contributions

Postby slapshot5 » 06 Jun 2011, 12:46

Starcrash wrote:You guys are right. *sigh* I thought Pyroblast would act just like Guttural Response, but I wasn't reading very closely. But on the bright side, I think I have some actual working cards. I playtested them extensively, and they even react the way they're supposed to if you stack multiples on the same land [url](http://mtgsalvation.com/1182-cranial-in ... clock.html)[/url].
Name:Corrupted Zendikon
ManaCost:1 B
Types:Enchantment Aura
Text:no text
K:Enchant Land
K:stAnimateEnchanted:Land:3/3:Creature,Ooze:Black:No Abilities:isPresent Card.AttachedBy:Enchanted land is a 3/3 black Ooze creature. It's still a land.
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ValidCard$ Card.AttachedBy | Execute$ TrigChangeZone | TriggerDescription$ When enchanted land is put into a graveyard, return that card to its owner's hand.
SVar:TrigChangeZone:AB$ChangeZone | Cost$ 0 | Defined$ TriggeredCard | Origin$ Graveyard | Destination$ Hand
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/corrupted_zendikon.jpg
SetInfo:WWK|Common|http://magiccards.info/scans/en/wwk/55.jpg
End
Name:Crusher Zendikon
ManaCost:2 R
Types:Enchantment Aura
Text:no text
K:Enchant Land
K:stAnimateEnchanted:Land:4/2/Trample:Creature,Beast:Red:No Abilities:isPresent Card.AttachedBy:Enchanted land is a 4/2 red Beast creature with trample. It's still a land.
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ValidCard$ Card.AttachedBy | Execute$ TrigChangeZone | TriggerDescription$ When enchanted land is put into a graveyard, return that card to its owner's hand.
SVar:TrigChangeZone:AB$ChangeZone | Cost$ 0 | Defined$ TriggeredCard | Origin$ Graveyard | Destination$ Hand
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/crusher_zendikon.jpg
SetInfo:WWK|Common|http://magiccards.info/scans/en/wwk/78.jpg
End
Name:Guardian Zendikon
ManaCost:2 W
Types:Enchantment Aura
Text:no text
K:Enchant Land
K:stAnimateEnchanted:Land:2/6/Defender:Creature,Wall:White:No Abilities:isPresent Card.AttachedBy:Enchanted land is a 2/6 white Wall creature with defender. It's still a land.
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ValidCard$ Card.AttachedBy | Execute$ TrigChangeZone | TriggerDescription$ When enchanted land is put into a graveyard, return that card to its owner's hand.
SVar:TrigChangeZone:AB$ChangeZone | Cost$ 0 | Defined$ TriggeredCard | Origin$ Graveyard | Destination$ Hand
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/guardian_zendikon.jpg
SetInfo:WWK|Common|http://magiccards.info/scans/en/wwk/6.jpg
End
Name:Vastwood Zendikon
ManaCost:4 G
Types:Enchantment Aura
Text:no text
K:Enchant Land
K:stAnimateEnchanted:Land:6/4:Creature,Elemental:Green:No Abilities:isPresent Card.AttachedBy:Enchanted land is a 6/4 green Elemental creature. It's still a land.
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ValidCard$ Card.AttachedBy | Execute$ TrigChangeZone | TriggerDescription$ When enchanted land is put into a graveyard, return that card to its owner's hand.
SVar:TrigChangeZone:AB$ChangeZone | Cost$ 0 | Defined$ TriggeredCard | Origin$ Graveyard | Destination$ Hand
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/vastwood_zendikon.jpg
SetInfo:WWK|Common|http://magiccards.info/scans/en/wwk/117.jpg
End
Name:Wind Zendikon
ManaCost:U
Types:Enchantment Aura
Text:no text
K:Enchant Land
K:stAnimateEnchanted:Land:2/2/Flying:Creature,Elemental:Blue:No Abilities:isPresent Card.AttachedBy:Enchanted land is a 2/2 blue Elemental creature with flying. It's still a land.
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ValidCard$ Card.AttachedBy | Execute$ TrigChangeZone | TriggerDescription$ When enchanted land is put into a graveyard, return that card to its owner's hand.
SVar:TrigChangeZone:AB$ChangeZone | Cost$ 0 | Defined$ TriggeredCard | Origin$ Graveyard | Destination$ Hand
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/wind_zendikon.jpg
SetInfo:WWK|Common|http://magiccards.info/scans/en/wwk/46.jpg
End
When I tried adding these after I wrote the stAnimate stuff, the "return to hand" part didn't work. But it seems to now. I'll add these to SVN.

-slapshot5
slapshot5
Programmer
 
Posts: 1391
Joined: 03 Jan 2010, 17:47
Location: Mac OS X
Has thanked: 25 times
Been thanked: 68 times

Re: Card Contributions

Postby Akim » 06 Jun 2011, 16:13

Hello everybody, I'm new here and this is my first card - Crypt Rats. I checked it and it works fine.

Name:Crypt Rats
ManaCost:2 B
Types:Creature Rat
Text:no text
PT:1/1
SVar:TrigSac:AB$Sacrifice | Cost$ 0 | Defined$ Self
A:AB$ DamageAll | Cost$ B | NumDmg$ 1 | ValidCards$ Creature | ValidPlayers$ Each | ValidDescription$ each creature and each player. | SpellDescription$ CARDNAME deals 1 damage to each creature and each player.
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/crypt_rats.jpg
SetInfo:VIS|Common|http://magiccards.info/scans/en/vi/125.jpg
End
Akim
 
Posts: 2
Joined: 06 Jun 2011, 14:39
Has thanked: 0 time
Been thanked: 0 time

Re: Card Contributions

Postby Sloth » 06 Jun 2011, 16:38

Akim wrote:Hello everybody, I'm new here and this is my first card - Crypt Rats. I checked it and it works fine.

Name:Crypt Rats
ManaCost:2 B
Types:Creature Rat
Text:no text
PT:1/1
SVar:TrigSac:AB$Sacrifice | Cost$ 0 | Defined$ Self
A:AB$ DamageAll | Cost$ B | NumDmg$ 1 | ValidCards$ Creature | ValidPlayers$ Each | ValidDescription$ each creature and each player. | SpellDescription$ CARDNAME deals 1 damage to each creature and each player.
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/crypt_rats.jpg
SetInfo:VIS|Common|http://magiccards.info/scans/en/vi/125.jpg
End
The card is not completely right ruleswise. Lymph Sliver for example can't be killed with your version.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Card Contributions

Postby Akim » 06 Jun 2011, 18:05

You have right but Pestilence also isn't finished! I took pestilence as an example - I'll try to fix this - tnx :)
Akim
 
Posts: 2
Joined: 06 Jun 2011, 14:39
Has thanked: 0 time
Been thanked: 0 time

Re: Card Contributions

Postby friarsol » 06 Jun 2011, 18:57

Akim wrote:You have right but Pestilence also isn't finished! I took pestilence as an example - I'll try to fix this - tnx :)
Actually those cards are different. Pestilence only pings one damage at a time, where Crypt Rats deals X damage at a time, and limits the paid mana to Black.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Card Contributions

Postby jeffwadsworth » 06 Jun 2011, 22:41

Akim wrote:You have right but Pestilence also isn't finished! I took pestilence as an example - I'll try to fix this - tnx :)
Crypt Rats can not be scripted at this time. I just want to save you some time.
jeffwadsworth
Super Tester Elite
 
Posts: 1172
Joined: 20 Oct 2010, 04:47
Location: USA
Has thanked: 287 times
Been thanked: 70 times

Re: Card Contributions

Postby Starcrash » 07 Jun 2011, 13:00

Just a couple overlooked...
Name:Hell Swarm
ManaCost:B
Types:Instant
Text:no text
A:SP$ PumpAll | Cost$ B | ValidCards$ Creature | NumAtt$ -1 | NumDef$ -0 | IsCurse$ True | SpellDescription$ All creatures get -1/-0 until end of turn.
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/hell_swarm.jpg
SetInfo:LEG|Common|http://magiccards.info/scans/en/lg/17.jpg
End
Name:Rabid Elephant
ManaCost:4 G
Types:Creature Elephant
Text:no text
PT:3/4
T:Mode$ AttackerBlocked | ValidCard$ Card.Self | Execute$ TrigPump | TriggerDescription$ Whenever CARDNAME becomes blocked, it gets +2/+2 until end of turn for each creature blocking it.
SVar:TrigPump:AB$Pump | Cost$ 0 | Defined$ Self | NumAtt$ +X | NumDef$ +X
SVar:X:Count$NumBlockingMe/Times.2
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/rabid_elephant.jpg
SetInfo:ODY|Common|http://magiccards.info/scans/en/od/263.jpg
End
I worked on Liege of the Tangle for quite a while, but couldn't get the Effect ability to work... it's not modeled for Keywords, and I couldn't make the ability Animate do the same thing, so I'm stumped. If you know the answer, Sloth, go ahead and correct my work for the SVN.
Starcrash
 
Posts: 96
Joined: 30 May 2011, 18:39
Has thanked: 2 times
Been thanked: 1 time

Re: Card Contributions

Postby Sloth » 07 Jun 2011, 15:16

I've added your two cards. Thanks Starcrash.

Starcrash wrote:I worked on Liege of the Tangle for quite a while, but couldn't get the Effect ability to work... it's not modeled for Keywords, and I couldn't make the ability Animate do the same thing, so I'm stumped. If you know the answer, Sloth, go ahead and correct my work for the SVN.
Mmh, did you take a look at Titania's Song?
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Card Contributions

Postby Starcrash » 07 Jun 2011, 18:37

Mmh, did you take a look at Titania's Song?
I feel like a moron now. #-o I imagine I'll have a working version later today.
Starcrash
 
Posts: 96
Joined: 30 May 2011, 18:39
Has thanked: 2 times
Been thanked: 1 time

Re: Card Contributions

Postby Sloth » 07 Jun 2011, 19:27

Starcrash wrote:
Mmh, did you take a look at Titania's Song?
I feel like a moron now. #-o I imagine I'll have a working version later today.
Different people have written different keywords and our scripting styles can be very confusing. It always helps to search the cardsfolder for examples (I searched for "$ Effect ").
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Card Contributions

Postby Starcrash » 07 Jun 2011, 22:27

Name:Liege of the Tangle
ManaCost:6 G G
Types:Creature Elemental
Text:no text
PT:8/8
K:Trample
K:stAnimateAll:Land.countersGE1AWAKENING:8/8:Creature,Elemental:Green:No Abilities:No Condition:no text
T:Mode$ DamageDone | ValidSource$ Card.Self | ValidTarget$ Player | CombatDamage$ True | Execute$ TrigPutCounter | TriggerZones$ Battlefield | TriggerDescription$ Whenever CARDNAME deals combat damage to a player, you may choose any number of lands you control and put an awakening counter on them.
SVar:TrigPutCounter:AB$PutCounter | Cost$ 0 | ValidTgts$ Land.YouCtrl | OptionalDecider$ You | TargetMax$ X | TgtPrompt$ Select lands you control | CounterType$ AWAKENING | CounterNum$ 1
SVar:X:Count$Valid Land.YouCtrl
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Any | ValidCard$ Card.Self | Execute$ TrigEffect | TriggerDescription$ Each of those lands is an 8/8 green Elemental for as long as it has an awakening counter on it.
SVar:TrigEffect:AB$ Effect | Cost$ 0 | Name$ Awakening Effect | Keywords$ KWAnimateAll | Duration$ Permanent
SVar:KWAnimateAll:stAnimateAll:Land.countersGE1AWAKENING:8/8:Creature,Elemental:Green:No Abilities:No Condition:Each of those lands is an 8/8 green Elemental creature for as long as it has an awakening counter on it. They're still lands.
SVar:RemRandomDeck:True
SVar:RemAIDeck:True
SVar:Rarity:Mythic
SVar:Picture:http://www.wizards.com/global/images/magic/general/liege_of_the_tangle.jpg
SetInfo:SOM|Mythic|http://magiccards.info/scans/en/som/123.jpg
End
It's a working version. That was easy. Thx, Sloth.
Starcrash
 
Posts: 96
Joined: 30 May 2011, 18:39
Has thanked: 2 times
Been thanked: 1 time

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 34 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 34 users online :: 0 registered, 0 hidden and 34 guests (based on users active over the past 10 minutes)
Most users ever online was 7967 on 09 Sep 2025, 23:08

Users browsing this forum: No registered users and 34 guests

Login Form