Magic 2012 Card Contributions
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
60 posts
• Page 3 of 4 • 1, 2, 3, 4
Re: Magic 2012 Card Contributions
by slapshot5 » 04 Jul 2011, 14:20
Using the latest SVN, use X for etbCounter, use Y for stPumpSelf in Card.countersGEYP1P1, and use Z in the AB$ PutCounter | CounterNum$ ZZzzzSleep wrote:I don't think that Primordial Hydra is doable at the moment, as it needs to define about three different things for X (mana cost, x > 10 and x to double the counters).
That should work. (I think.)
-slapshot5
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: Magic 2012 Card Contributions
by ZzzzSleep » 04 Jul 2011, 22:37
Thanks! If nobody else does it in the meantime, I'll have a look when the next beta is released.slapshot5 wrote:Using the latest SVN, use X for etbCounter, use Y for stPumpSelf in Card.countersGEYP1P1, and use Z in the AB$ PutCounter | CounterNum$ ZZzzzSleep wrote:I don't think that Primordial Hydra is doable at the moment, as it needs to define about three different things for X (mana cost, x > 10 and x to double the counters).
Benalish Veteran
- | Open
- Name:Benalish Veteran
ManaCost:2 W
Types:Creature Human Soldier
Text:no text
PT:2/2
T:Mode$ Attacks | ValidCard$ Card.Self | Execute$ TrigPump | TriggerDescription$ Whenever CARDNAME attacks, it gets +1/+1 until end of turn.
SVar:TrigPump:AB$Pump | Cost$ 0 | Defined$ Self | NumAtt$ 1 | NumDef$ 1
SVar:Rarity:Common
End
Guardians' Pledge
- | Open
- Name:Guardians' Pledge
ManaCost:1 W W
Types:Instant
Text:no text
A:SP$ PumpAll | Cost$ 1 W W | ValidCards$ Creature.White+YouCtrl | NumAtt$ +2 | NumDef$ +2 | SpellDescription$ White creatures you control get +2/+2 until end of turn.
SVar:Rarity:Common
End
I haven't tested these, but it should be okay as it's just a reskinned Soltari Trooper and a reskinned Morale.
Re: Magic 2012 Card Contributions
by Chris H. » 04 Jul 2011, 23:01
`ZzzzSleep wrote:Benalish Veteran
- | Open
- Name:Benalish Veteran
ManaCost:2 W
Types:Creature Human Soldier
Text:no text
PT:2/2
T:Mode$ Attacks | ValidCard$ Card.Self | Execute$ TrigPump | TriggerDescription$ Whenever CARDNAME attacks, it gets +1/+1 until end of turn.
SVar:TrigPump:AB$Pump | Cost$ 0 | Defined$ Self | NumAtt$ 1 | NumDef$ 1
SVar:Rarity:Common
End
Guardians' Pledge
- | Open
- Name:Guardians' Pledge
ManaCost:1 W W
Types:Instant
Text:no text
A:SP$ PumpAll | Cost$ 1 W W | ValidCards$ Creature.White+YouCtrl | NumAtt$ +2 | NumDef$ +2 | SpellDescription$ White creatures you control get +2/+2 until end of turn.
SVar:Rarity:Common
End
I haven't tested these, but it should be okay as it's just a reskinned Soltari Trooper and a reskinned Morale.
Thank you ZzzzSleep.
-
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: Magic 2012 Card Contributions
by Starcrash » 06 Jul 2011, 15:39
Adaptive Automaton
- | Open
- Name:Adaptive Automaton
ManaCost:3
Types:Artifact Creature Construct
Text:no text
PT:2/2
T:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Any | Destination$ Battlefield | Execute$ ChooseCT | TriggerDescription$ As CARDNAME enters the battlefield, choose a creature type.
SVar:ChooseCT:AB$ ChooseType | Cost$ 0 | Defined$ You | Type$ Creature
K:stPumpSelf:Creature:0/0/Types=ChosenType:No Condition:CARDNAME is the chosen type in addition to its other types.
K:stPumpAll:Creature.ChosenType+Other+YouCtrl:+1/+1:No Condition:Other creatures you control of the chosen type get +1/+1.
SVar:RemRandomDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/adaptive_automaton.jpg
SetInfo:M12|Rare|http://magiccards.info/scans/en/m12/201.jpg
End
Re: Magic 2012 Card Contributions
by Chris H. » 06 Jul 2011, 16:35
`Starcrash wrote:Adaptive Automaton
- | Open
- Name:Adaptive Automaton
ManaCost:3
Types:Artifact Creature Construct
Text:no text
PT:2/2
T:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Any | Destination$ Battlefield | Execute$ ChooseCT | TriggerDescription$ As CARDNAME enters the battlefield, choose a creature type.
SVar:ChooseCT:AB$ ChooseType | Cost$ 0 | Defined$ You | Type$ Creature
K:stPumpSelf:Creature:0/0/Types=ChosenType:No Condition:CARDNAME is the chosen type in addition to its other types.
K:stPumpAll:Creature.ChosenType+Other+YouCtrl:+1/+1:No Condition:Other creatures you control of the chosen type get +1/+1.
SVar:RemRandomDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/adaptive_automaton.jpg
SetInfo:M12|Rare|http://magiccards.info/scans/en/m12/201.jpg
End
Thank you Starcrash.
-
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: Magic 2012 Card Contributions
by friarsol » 06 Jul 2011, 16:49
Any card that is "As ~ ETB", is not a Trigger. It's a Static Effect.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Magic 2012 Card Contributions
by Starcrash » 07 Jul 2011, 05:53
Master Thief
Primordial Hydra
Yes, I've looked at the rulebook (http://www.wizards.com/magic/comprules/ ... 110617.txt). It isn't a trigger (which would begin with When, Whenever, or At) but it isn't a static ability. According to the rules, a static ability is continually applied, which would make a one-time choice something other than static. It's actually a replacement effect, and though it doesn't "trigger", it does pass priority, so for our purposes here it works just fine.
- | Open
- Name:Master Thief
ManaCost:2 U U
Types:Creature Human Rogue
Text:no text
PT:2/2
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigChange | TriggerDescription$ When CARDNAME enters the battlefield, gain control of target artifact for as long as you control CARDNAME.
SVar:TrigChange:AB$GainControl | Cost$ 0 | TgtPrompt$ Choose target artifact | ValidTgts$ Artifact | LoseControl$ LeavesPlay, LoseControl | SpellDescription$ Gain control of target artifact for as long as you control CARDNAME.
SVar:PlayMain1:TRUE
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/master_thief.jpg
SetInfo:M12|Uncommon|http://magiccards.info/scans/en/m12/64.jpg
End
Primordial Hydra
- | Open
- Name:Primordial Hydra
ManaCost:X G G
Types:Creature Hydra
Text:no text
PT:0/0
K:etbCounter:P1P1:X
K:stPumpSelf:Creature.countersGT9P1P1:0/0/Trample:No Condition:CARDNAME has trample as long as it has ten or more +1/+1 counters on it.
SVar:X:Count$xPaid
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigDoubleCounters | TriggerDescription$ At the beginning of your upkeep, double the number of +1/+1 counters on CARDNAME.
SVar:TrigDoubleCounters:AB$PutCounter | Cost$ 0 | Defined$ Self | CounterType$ P1P1 | CounterNum$ Double
SVar:Double:Count$CardCounters.P1P1
SVar:Rarity:Mythic
SVar:Picture:http://www.wizards.com/global/images/magic/general/primordial_hydra.jpg
SetInfo:M12|Mythic|http://magiccards.info/scans/en/m12/189.jpg
End
Are you trying to pick a fight with me? I took the code straight from Brass Herald, which was approved without complaint.friarsol wrote:Any card that is "As ~ ETB", is not a Trigger. It's a Static Effect.
Yes, I've looked at the rulebook (http://www.wizards.com/magic/comprules/ ... 110617.txt). It isn't a trigger (which would begin with When, Whenever, or At) but it isn't a static ability. According to the rules, a static ability is continually applied, which would make a one-time choice something other than static. It's actually a replacement effect, and though it doesn't "trigger", it does pass priority, so for our purposes here it works just fine.
Re: Magic 2012 Card Contributions
by Hellfish » 07 Jul 2011, 10:03
Brass Herald is probably a mistake, we've had quite a few instances of that kind of thing before. I believe the new StaticAbility-Factory will address this at some point.
- Code: Select all
603.6e. Some permanents have text that reads "[This permanent] enters the battlefield with... ," "As [this permanent] enters the battlefield... ," "[This permanent] enters the battlefield as... ," or "[This permanent] enters the battlefield tapped." Such text is a static ability--not a triggered ability--whose effect occurs as part of the event that puts the permanent onto the battlefield.
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: Magic 2012 Card Contributions
by friarsol » 07 Jul 2011, 12:01
Nope not with you. Just don't want any cards that are wrong, I tend to be very strict when it comes to that. But I don't have time to look over every single card that gets committed.Starcrash wrote:Are you trying to pick a fight with me? I took the code straight from Brass Herald, which was approved without complaint.
If I had noticed Brass Herald before it was committed I would have complained about that too. And as hellfish states above me, it is a static ability. There are many types of Static Abilities, not just Continuous ones.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Magic 2012 Card Contributions
by Chris H. » 07 Jul 2011, 12:29
I was never very strong in understanding the rules. I am trying to be helpful by moving the submissions into a single message. This topic is already 3 pages long and in the past some of the submissions were lost as new messages were posted.
I would like to thank everyone for the their time and help. Like Hellfish said, unintentional mistakes at times slip through the cracks and we try to fix them as quickly as we can.
The new StaticAbility-Factory will be a welcome addition and will make scripting cards far easier.
I will remove Adaptive Automaton from the first message for the moment.
And once again I would like to apologize for not being able to examine each and every submission in great detail. I did find one with a missing "End" and added that when I noticed. I do appreciate any notices in reference to any problems that there may be in the submissions.
I would like to thank everyone for the their time and help. Like Hellfish said, unintentional mistakes at times slip through the cracks and we try to fix them as quickly as we can.

I will remove Adaptive Automaton from the first message for the moment.
And once again I would like to apologize for not being able to examine each and every submission in great detail. I did find one with a missing "End" and added that when I noticed. I do appreciate any notices in reference to any problems that there may be in the submissions.
-
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: Magic 2012 Card Contributions
by Chris H. » 07 Jul 2011, 12:38
`Starcrash wrote:Master Thief
- | Open
- Name:Master Thief
ManaCost:2 U U
Types:Creature Human Rogue
Text:no text
PT:2/2
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigChange | TriggerDescription$ When CARDNAME enters the battlefield, gain control of target artifact for as long as you control CARDNAME.
SVar:TrigChange:AB$GainControl | Cost$ 0 | TgtPrompt$ Choose target artifact | ValidTgts$ Artifact | LoseControl$ LeavesPlay, LoseControl | SpellDescription$ Gain control of target artifact for as long as you control CARDNAME.
SVar:PlayMain1:TRUE
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/master_thief.jpg
SetInfo:M12|Uncommon|http://magiccards.info/scans/en/m12/64.jpg
End
Primordial Hydra
- | Open
- Name:Primordial Hydra
ManaCost:X G G
Types:Creature Hydra
Text:no text
PT:0/0
K:etbCounter:P1P1:X
K:stPumpSelf:Creature.countersGT9P1P1:0/0/Trample:No Condition:CARDNAME has trample as long as it has ten or more +1/+1 counters on it.
SVar:X:Count$xPaid
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigDoubleCounters | TriggerDescription$ At the beginning of your upkeep, double the number of +1/+1 counters on CARDNAME.
SVar:TrigDoubleCounters:AB$PutCounter | Cost$ 0 | Defined$ Self | CounterType$ P1P1 | CounterNum$ Double
SVar:Double:Count$CardCounters.P1P1
SVar:Rarity:Mythic
SVar:Picture:http://www.wizards.com/global/images/magic/general/primordial_hydra.jpg
SetInfo:M12|Mythic|http://magiccards.info/scans/en/m12/189.jpg
End
Thank you Starcrash.
-
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: Magic 2012 Card Contributions
by Starcrash » 07 Jul 2011, 14:09
Vengeful Pharaoh
Chandra's Phoenix
Chandra's Phoenix is a little more verbose than the actual card, but unless I was doing it wrong, you can't have more than one ValidSource separated by commas.
- | Open
- Name:Vengeful Pharaoh
ManaCost:2 B B B
Types:Creature Zombie
Text:no text
PT:5/4
K:Deathtouch
T:Mode$ DamageDone | ValidTarget$ You,Planeswalker.YouCtrl | CombatDamage$ True | TriggerZones$ Graveyard | Execute$ TrigDestroy | TriggerDescription$ Whenever combat damage is dealt to you or a planeswalker you control, if CARDNAME is in your graveyard, destroy targeting attacking creature, then put Vengeful Pharoah on top of your library.
SVar:TrigDestroy:AB$ Destroy | Cost$ 0 | ValidTgts$ Creature.attacking | TgtPrompt$ Select target attacking creature | SubAbility$ DBReturn
SVar:DBReturn:DB$ChangeZone | Cost$ 0 | Defined$ Self | Origin$ Graveyard | Destination$ Library
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/vengeful_pharoah.jpg
SetInfo:M12|Rare|http://magiccards.info/scans/en/m12/116.jpg
End
Chandra's Phoenix
- | Open
- Name:Chandra's Phoenix
ManaCost:1 R R
Types:Creature Phoenix
Text:no text
PT:2/2
K:Flying
K:Haste
T:Mode$ DamageDone | ValidSource$ Instant.YouCtrl+Red | ValidTarget$ Opponent | TriggerZones$ Graveyard | Execute$ TrigReturn | TriggerDescription$ Whenever an opponent is dealt damage by a red instant spell you control, return CARDNAME from your graveyard to your hand.
T:Mode$ DamageDone | ValidSource$ Sorcery.YouCtrl+Red | ValidTarget$ Opponent | TriggerZones$ Graveyard | Execute$ TrigReturn | TriggerDescription$ Whenever an opponent is dealt damage by a red sorcery spell you control, return CARDNAME from your graveyard to your hand.
T:Mode$ DamageDone | ValidSource$ Planeswalker.YouCtrl+Red | ValidTarget$ Opponent | TriggerZones$ Graveyard | Execute$ TrigReturn | TriggerDescription$ Whenever an opponent is dealt damage by a red planeswalker you control, return CARDNAME from your graveyard to your hand.
SVar:TrigReturn:AB$ChangeZone | Cost$ 0 | Defined$ Self | Origin$ Graveyard | Destination$ Hand
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/chandras_phoenix.jpg
SetInfo:M12|Rare|http://magiccards.info/scans/en/m12/126.jpg
End
Chandra's Phoenix is a little more verbose than the actual card, but unless I was doing it wrong, you can't have more than one ValidSource separated by commas.
Re: Magic 2012 Card Contributions
by Hellfish » 07 Jul 2011, 14:20
Huh, AFAIK Valids *can* be combined using commas... Either way, to make it a little less verbose, give the triggers oracle text and give all but one of them the "Secondary$ True" parameter. Not sure that parameter is documented on the wiki, now that I think about it :S
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: Magic 2012 Card Contributions
by Starcrash » 07 Jul 2011, 15:14
Chandra's Phoenix
Made changes. Secondary$ True is useful, I'd just never stumbled upon it. Yeah, I don't know what was going on with the ValidSource$ thing either, but in testing it just refused to look past the first comma.
- | Open
- Name:Chandra's Phoenix
ManaCost:1 R R
Types:Creature Phoenix
Text:no text
PT:2/2
K:Flying
K:Haste
T:Mode$ DamageDone | ValidSource$ Instant.YouCtrl+Red | ValidTarget$ Opponent | TriggerZones$ Graveyard | Execute$ TrigReturn | TriggerDescription$ Whenever an opponent is dealt damage by a red instant or sorcery spell you control or by a red planeswalker you control, return Chandra’s Phoenix from your graveyard to your hand.
T:Mode$ DamageDone | ValidSource$ Sorcery.YouCtrl+Red | ValidTarget$ Opponent | TriggerZones$ Graveyard | Execute$ TrigReturn | Secondary$ True | TriggerDescription$ Whenever an opponent is dealt damage by a red instant or sorcery spell you control or by a red planeswalker you control, return Chandra’s Phoenix from your graveyard to your hand.
T:Mode$ DamageDone | ValidSource$ Planeswalker.YouCtrl+Red | ValidTarget$ Opponent | TriggerZones$ Graveyard | Execute$ TrigReturn | Secondary$ True | TriggerDescription$ Whenever an opponent is dealt damage by a red instant or sorcery spell you control or by a red planeswalker you control, return Chandra’s Phoenix from your graveyard to your hand.
SVar:TrigReturn:AB$ChangeZone | Cost$ 0 | Defined$ Self | Origin$ Graveyard | Destination$ Hand
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/chandras_phoenix.jpg
SetInfo:M12|Rare|http://magiccards.info/scans/en/m12/126.jpg
End
Made changes. Secondary$ True is useful, I'd just never stumbled upon it. Yeah, I don't know what was going on with the ValidSource$ thing either, but in testing it just refused to look past the first comma.
Re: Magic 2012 Card Contributions
by Chris H. » 07 Jul 2011, 19:25
`Starcrash wrote:Vengeful Pharaoh
- | Open
- Name:Vengeful Pharaoh
ManaCost:2 B B B
Types:Creature Zombie
Text:no text
PT:5/4
K:Deathtouch
T:Mode$ DamageDone | ValidTarget$ You,Planeswalker.YouCtrl | CombatDamage$ True | TriggerZones$ Graveyard | Execute$ TrigDestroy | TriggerDescription$ Whenever combat damage is dealt to you or a planeswalker you control, if CARDNAME is in your graveyard, destroy targeting attacking creature, then put Vengeful Pharoah on top of your library.
SVar:TrigDestroy:AB$ Destroy | Cost$ 0 | ValidTgts$ Creature.attacking | TgtPrompt$ Select target attacking creature | SubAbility$ DBReturn
SVar:DBReturn:DB$ChangeZone | Cost$ 0 | Defined$ Self | Origin$ Graveyard | Destination$ Library
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/vengeful_pharoah.jpg
SetInfo:M12|Rare|http://magiccards.info/scans/en/m12/116.jpg
End
Thank you Starcrash.
-
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
60 posts
• Page 3 of 4 • 1, 2, 3, 4
Who is online
Users browsing this forum: No registered users and 32 guests