Card Contributions
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: Card Contributions
by Hellfish » 07 Mar 2011, 15:26
Just a heads-up, there's some projectspanning syntax changes coming up for the triggers and AF_Token.
The Optional$ parameter on all triggers will be renamed "OptionalDecider$" and will work as a Defined$ parameter for players. (i.e. you will be able to use "You","Opponent", all Triggered-Variables that return a player.)
The TokenOwner$ parameter on AF_Token will also change to become a Defined$-like, so instead of using "Controller" for it, all existing AF_Token cards should use TokenOwner$ You and such.
EDIT: This is in effect as of r7241.
The Optional$ parameter on all triggers will be renamed "OptionalDecider$" and will work as a Defined$ parameter for players. (i.e. you will be able to use "You","Opponent", all Triggered-Variables that return a player.)
The TokenOwner$ parameter on AF_Token will also change to become a Defined$-like, so instead of using "Controller" for it, all existing AF_Token cards should use TokenOwner$ You and such.
EDIT: This is in effect as of r7241.
So now you're
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
-
Hellfish - Programmer
- Posts: 1297
- Joined: 07 Jun 2009, 10:41
- Location: South of the Pumphouse
- Has thanked: 110 times
- Been thanked: 169 times
Re: Card Contributions
by Zirbert » 07 Mar 2011, 19:08
I got an unexpected snow day from work today, so several days earlier than I had expected, here's Zombie Pack 2: "I'm Gonna Try...Not to Come Back!"
This pack contains:
Plague Dogs
Shepherd of Rot
Nim Replica
Call to the Grave
Strength of Night
Sarcomancy (which may need updating as to token controller definition, as per Hellfish's comment above - works correctly in the 3-04 beta, but I'm not sure whether that'll change as of r7241.)
This pack contains:
Plague Dogs
Shepherd of Rot
Nim Replica
Call to the Grave
Strength of Night
Sarcomancy (which may need updating as to token controller definition, as per Hellfish's comment above - works correctly in the 3-04 beta, but I'm not sure whether that'll change as of r7241.)
- Attachments
-
Zombie Pack 2.zip
- (3.08 KiB) Downloaded 416 times
Re: Card Contributions
by Hellfish » 07 Mar 2011, 20:17
Thanks! I added them with minor changes. (Updated the TokenOwner for Sarcomancy and simplified Call to the Grave to a single upkeep trigger using the new TriggeredVariables)
So now you're
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
-
Hellfish - Programmer
- Posts: 1297
- Joined: 07 Jun 2009, 10:41
- Location: South of the Pumphouse
- Has thanked: 110 times
- Been thanked: 169 times
Re: Card Contributions
by ZzzzSleep » 09 Mar 2011, 02:31
More randomness!

- Code: Select all
Name:Wave of Terror
ManaCost:2 B
Types:Enchantment
Text:no text
K:Cumulative upkeep:1
T:Mode$ Phase | Phase$ Draw | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigDestroy | TriggerDescription$ At the beginning of your draw step, destroy each creature with converted mana cost equal to the number of age counters on Wave of Terror. They can't be regenerated.
SVar:TrigDestroy:AB$DestroyAll | Cost$ 0 | ValidCards$ Creature.cmcEQX | NoRegen$ True | SpellDescription$ Destroy each creature with converted mana cost equal to the number of age counters on CARDNAME.
SVar:X:Count$CardCounters.AGE
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/wave_of_terror.jpg
End
Name:Mwonvuli Ooze
ManaCost:G
Types:Creature Ooze
Text:no text
PT:1/1
K:Cumulative upkeep:2
K:stPumpSelf:Creature:X/X:No Condition:CARDNAME's power and toughness are each equal to 1 plus twice the number of age counters on it.
SVar:X:Count$CardCounters.AGE/Times.2
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/mwonvuli_ooze.jpg
End
Name:Spike Soldier
ManaCost:2 G G
Types:Creature Spike
Text:no text
PT:0/0
K:etbCounter:P1P1:3
A:AB$PutCounter | Cost$ 2 SubCounter<1/P1P1> | ValidTgts$ Creature | CounterType$ P1P1 | CounterNum$ 1 | SpellDescription$ Put a +1/+1 counter on target creature.
A:AB$Pump | Cost$ SubCounter<1/P1P1> | NumAtt$ +2 | NumDef$ +2 | SpellDescription$ CARDNAME gets +2/+2 until end of turn.
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/spike_soldier.jpg
End

- Code: Select all
Name:Bottomless Pit
ManaCost:1 B B
Types:Enchantment
Text:At the beginning of each player's upkeep, that player discards a card at random.
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ Each | TriggerZones$ Battlefield | Execute$ TrigDiscard | TriggerDescription$ At the beginning of each player's upkeep, that player discards a card at random.
SVar:TrigDiscard:AB$Discard | Cost$ 0 | Defined$ TriggeredPlayer | NumCards$ 1 | Mode$ Random
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/bottomless_pit.jpg
End
Re: Card Contributions
by Chris H. » 09 Mar 2011, 03:29
`ZzzzSleep wrote:I've also coded Bottomless Pit, but since I haven't got a SVN version running, I can't test it.
Yeah, not having access to the SVN can be a hardship. After Dennis set up the SVN, it took me several months to get the needed software installed and I needed the time to figure out how to use it.

I will try to release the next beta on Friday or Saturday.

-
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: Card Contributions
by Zirbert » 13 Mar 2011, 00:46
Zombie Pack 3: "Zombies, Man. They Creep Me Out."
This pack contains:
Nim Abomination
Nim Devourer
Tribal Golem
Zombie Cannibal
Alas, only four this time out. I think that's all the zombie cards (including zombie boosters and hangers-on like the Tribal Golem above) that can/should be scripted as of the 3-04 Beta. Feel free to tell me otherwise, and I'll add any others to my list. It looks like a few more will be possible when the new Beta is released, with the new AFs and trigger techniques. A couple more have already recently been added in SVN.
I hope I get to do more - I still have more pack titles that I want to use. Bonus nerd points to anyone who recognizes all of them (not that they're tough for a proper zombie geek).
This pack contains:
Nim Abomination
Nim Devourer
Tribal Golem
Zombie Cannibal
Alas, only four this time out. I think that's all the zombie cards (including zombie boosters and hangers-on like the Tribal Golem above) that can/should be scripted as of the 3-04 Beta. Feel free to tell me otherwise, and I'll add any others to my list. It looks like a few more will be possible when the new Beta is released, with the new AFs and trigger techniques. A couple more have already recently been added in SVN.
I hope I get to do more - I still have more pack titles that I want to use. Bonus nerd points to anyone who recognizes all of them (not that they're tough for a proper zombie geek).
- Attachments
-
Zombie Pack 3.zip
- (2.12 KiB) Downloaded 483 times
Re: Card Contributions
by Zirbert » 13 Mar 2011, 13:14
As penance for making all those zombies...
- Code: Select all
Name:Orim's Prayer
ManaCost:1 W W
Types:Enchantment
Text:no text
T:Mode$ Attacks | ValidCard$ Creature.YouDontCtrl | TriggerZones$ Battlefield | Execute$ TrigGainLife | TriggerDescription$ Whenever one or more creatures attack you, you gain 1 life for each attacking creature.
SVar:TrigGainLife:AB$GainLife | Cost$ 0 | LifeAmount$ 1 | SpellDescription$ You gain 1 life for each attacking creature.
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/orims_prayer.jpg
SetInfo:TMP|Uncommon|http://magiccards.info/scans/en/tp/245.jpg
End
Re: Card Contributions
by Zirbert » 13 Mar 2011, 23:49
This started out as a seven-card pack, but I couldn't get Thought Gorger working (it can't remember how many counters it had when it leaves the battlefield), and I only noticed after testing that somebody else beat me to Crab Umbra. That leaves:
Bear Umbra
Domestication
Dormant Gomazoa
Fissure Vent
Lord of Shatterskull Pass
All tested and working. Bear Umbra keeps the triggered ability itself instead of pushing it onto the creature; I figured since Snake Umbra is implemented the same way, that's presumably OK. It would cause corner problems with any "creature loses all abilities" cards. Also, the descriptions on Lord of Shatterskull Pass are a little weird, reading as though he always has his level 6+ ability, but all the levellers seem to look a little weird like that. It triggers correctly, when he's at level 6+ only.
Bear Umbra
Domestication
Dormant Gomazoa
Fissure Vent
Lord of Shatterskull Pass
All tested and working. Bear Umbra keeps the triggered ability itself instead of pushing it onto the creature; I figured since Snake Umbra is implemented the same way, that's presumably OK. It would cause corner problems with any "creature loses all abilities" cards. Also, the descriptions on Lord of Shatterskull Pass are a little weird, reading as though he always has his level 6+ ability, but all the levellers seem to look a little weird like that. It triggers correctly, when he's at level 6+ only.
- Attachments
-
Rise Pack.zip
- (2.46 KiB) Downloaded 452 times
Re: Card Contributions
by jhhh » 14 Mar 2011, 18:17
- Code: Select all
Name:Form of the Dragon
ManaCost:4 R R R
Types:Enchantment
Text:no text
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigDamage | TriggerDescription$ At the beginning of your upkeep, CARDNAME deals 5 damage to target creature or player.
SVar:TrigDamage:AB$DealDamage | Cost$ 0 | ValidTgts$ Creature,Player | TgtPrompt$ Select target creature or player | NumDmg$ 5
T:Mode$ Phase | Phase$ End of Turn | ValidPlayer$ Each | TriggerZones$ Battlefield | Execute$ TrigLife | TriggerDescription$ At the beginning of each end step, your life total becomes 5.
SVar:TrigLife:AB$SetLife | Cost$ 0 | Defined$ You | LifeAmount$ 5
K:stPumpAll:Creature.withoutFlying+YouDontCtrl:0/0/HIDDEN CARDNAME can't attack.:No Condition:Creatures without flying can't attack.
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://magiccards.info/scans/en/fvd/7.jpg
End
- jhhh
- Posts: 58
- Joined: 15 Oct 2010, 23:40
- Has thanked: 0 time
- Been thanked: 0 time
Re: Card Contributions
by Zirbert » 17 Mar 2011, 01:57
Woohoo, combo engines! These guys really like Spellbook and Reliquary Tower, but they want to be played before their buddies.
Hopefully these ones will be committed by some kind soul before someone else commits their own (better) implementation, unlike some of the cards I posted here on the 13th, which still haven't been committed - whine, whine... (kidding, in case anybody thinks I'm actually complaining - I don't care whether it's me or somebody else who writes 'em, as long as the new cards keep coming!)
Anyway, here are Recycle and Null Profusion, tested and working:
Hopefully these ones will be committed by some kind soul before someone else commits their own (better) implementation, unlike some of the cards I posted here on the 13th, which still haven't been committed - whine, whine... (kidding, in case anybody thinks I'm actually complaining - I don't care whether it's me or somebody else who writes 'em, as long as the new cards keep coming!)
Anyway, here are Recycle and Null Profusion, tested and working:
- Code: Select all
Name:Recycle
ManaCost:4 G G
Types:Enchantment
Text:Skip your draw step. Your maximum hand size is 2.
# hardcoded for draw step to be skipped in r6069.
T:Mode$ SpellCast | ValidCard$ Card.YouCtrl | TriggerZones$ Battlefield | Execute$ TrigDraw | TriggerDescription$ Whenever you play a card, draw a card.
T:Mode$ LandPlayed | ValidCard$ Land.YouCtrl | TriggerZones$ Battlefield | Execute$ TrigDraw | Secondary$ True | TriggerDescription$ Whenever you play a card, draw a card.
SVar:TrigDraw:AB$Draw | Cost$ 0 | Defined$ You | NumCards$ 1
K:HandSize = 2 Self
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/recycle.jpg
SetInfo:TMP|Rare|http://magiccards.info/scans/en/tp/142.jpg
End
- Code: Select all
Name:Null Profusion
ManaCost:4 B B
Types:Enchantment
Text:Skip your draw step. Your maximum hand size is 2.
# hardcoded for draw step to be skipped in r6069.
T:Mode$ SpellCast | ValidCard$ Card.YouCtrl | TriggerZones$ Battlefield | Execute$ TrigDraw | TriggerDescription$ Whenever you play a card, draw a card.
T:Mode$ LandPlayed | ValidCard$ Land.YouCtrl | TriggerZones$ Battlefield | Execute$ TrigDraw | Secondary$ True | TriggerDescription$ Whenever you play a card, draw a card.
SVar:TrigDraw:AB$Draw | Cost$ 0 | Defined$ You | NumCards$ 1
K:HandSize = 2 Self
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/null_profusion.jpg
SetInfo:PLC|Rare|http://magiccards.info/scans/en/pc/89.jpg
End
Re: Card Contributions
by Zirbert » 17 Mar 2011, 02:12
Homelands cards. Yes, I said it. At least we've got Serrated Arrows now, and one bonus card, so hopefully there's some incentive to give this pack a second glance.
This pack contains:
Ambush
Ghost Hounds
Labyrinth Minotaur
Primal Order
Rashka the Slayer
Root Spider
Serrated Arrows
Non-HL Bonus card: Skyshroud War Beast (because I happened to notice it while working on Primal Order)
A couple of notes: Labyrinth Minotaur works correctly in the 3-04 beta, but judging by the SVN version of Wall of Frost, which has the identical ability, we may want to change Defined$ Triggered to Defined$ TriggeredAttacker for the SVN commit.
The code for Primal Order feels a bit clunky, but works. Maybe the fancy new Defined Triggers could make it a little more elegant by counting the lands of the player whose turn it is, but I'm not that smart.
Skyshroud War Beast doesn't bother asking you whose nonbasic lands to count, since Forge only offers one opponent.
(Edited for typos / incoherence, as always.)
This pack contains:
Ambush
Ghost Hounds
Labyrinth Minotaur
Primal Order
Rashka the Slayer
Root Spider
Serrated Arrows
Non-HL Bonus card: Skyshroud War Beast (because I happened to notice it while working on Primal Order)
A couple of notes: Labyrinth Minotaur works correctly in the 3-04 beta, but judging by the SVN version of Wall of Frost, which has the identical ability, we may want to change Defined$ Triggered to Defined$ TriggeredAttacker for the SVN commit.
The code for Primal Order feels a bit clunky, but works. Maybe the fancy new Defined Triggers could make it a little more elegant by counting the lands of the player whose turn it is, but I'm not that smart.
Skyshroud War Beast doesn't bother asking you whose nonbasic lands to count, since Forge only offers one opponent.
(Edited for typos / incoherence, as always.)
- Attachments
-
Homelands.zip
- (3.78 KiB) Downloaded 469 times
Re: Card Contributions
by Chris H. » 17 Mar 2011, 13:02
Added 15 cards for Zirbert and jhhh. I did not add Dormant Gomazoa or Lord of Shatterskull Pass as they were already added to Forge at an earlier date. Note that I did not test these cards nor did I examine them in great detail. Hope they work.
Cards added include:
Ambush
Bear Umbra
Domestication
Fissure Vent
Form of the Dragon
Ghost Hounds
Labyrinth Minotaur
Null Profusion
Orim's Prayer
Primal Order
Rashka the Slayer
Recycle
Root Spider
Serrated Arrows
Skyshroud War Beast

Cards added include:
Ambush
Bear Umbra
Domestication
Fissure Vent
Form of the Dragon
Ghost Hounds
Labyrinth Minotaur
Null Profusion
Orim's Prayer
Primal Order
Rashka the Slayer
Recycle
Root Spider
Serrated Arrows
Skyshroud War Beast
-
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: Card Contributions
by Zirbert » 17 Mar 2011, 23:53
I'm really going to try to hold myself to just one card for today. I wasn't sure this would work, given that the Attacks$ and Blocks$ triggers don't do anything except set up the delayed trigger, but my fears were for naught. Tested and working:
- Code: Select all
Name:Cunning
ManaCost:1 U
Types:Enchantment Aura
Text:no text
K:Enchant creature
K:enPump:+3/+3
T:Mode$ Attacks | ValidCard$ Card.AttachedBy | TriggerZones$ Battlefield | DelayedTrigger$ DelayedTrig | TriggerDescription$ When enchanted creature attacks or blocks, sacrifice CARDNAME at the beginning of the next cleanup step.
T:Mode$ Blocks | ValidCard$ Card.AttachedBy | TriggerZones$ Battlefield| DelayedTrigger$ DelayedTrig | Secondary$ True | TriggerDescription$ When enchanted creature attacks or blocks, sacrifice CARDNAME at the beginning of the next cleanup step.
SVar:DelayedTrig:Mode$ Phase | Phase$ Cleanup | ValidPlayer$ Each | Execute$ TrigSac | TriggerDescription$ Sacrifice CARDNAME.
SVar:TrigSac:AB$Sacrifice | Cost$ 0 | Defined$ Self
SVar:PlayMain1:TRUE
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/cunning.jpg
SetInfo:EXO|Common|http://magiccards.info/scans/en/ex/28.jpg
End
Re: Card Contributions
by Zirbert » 19 Mar 2011, 18:16
This is the last of the draw-step-skippers that were hardcoded in r6069, except for Psychic Possession, which can't be done for now because "Enchant Opponent" isn't supported. It could be done easily enough as a non-aura, but that would be a hack and wouldn't interact correctly with any Aura-counting (or targeting) cards.
Tested and seems to be working fine:
Tested and seems to be working fine:
- Code: Select all
Name:Symbiotic Deployment
ManaCost:2 G
types:Enchantment
Text:Skip your draw step.
#Note: r6069 hardcoded skipping draw step for this card, among others.
A:AB$Draw | Cost$ 1 tapXType<2/Creature> | NumCards$ 1 | SpellDescription$ Draw a card.
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/symbiotic_deployment.jpg
SetInfo:APC|Rare|http://magiccards.info/scans/en/ap/88.jpgpg
End
Last edited by Zirbert on 19 Mar 2011, 19:30, edited 2 times in total.
Re: Card Contributions
by friarsol » 19 Mar 2011, 18:29
Zirbert, don't forget the 1 cost that the Deployment has in addition to tapping two creatures.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Who is online
Users browsing this forum: No registered users and 27 guests