It is currently 17 Sep 2025, 13:14
   
Text Size

Card Contributions

Post MTG Forge Related Programming Questions Here

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

Re: Card Contributions

Postby moomarc » 25 May 2012, 16:58

Just added Archangel of Strife. Thanks Sloth, for the final implementation idea. I had to add some things to the Effect AF and in order to count the effects I had to make immutables valid for counting if they're remembered by the source card.
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: Card Contributions

Postby moomarc » 30 May 2012, 09:25

I've cracked the code for the Tempest block en-Kor critters....
Spirit en-Kor | Open
Code: Select all
Name:Spirit en-Kor
ManaCost:3 W
Types:Creature Kor Spirit
Text:no text
PT:2/2
K:Flying
A:AB$ Effect | Cost$ 0 | Name$ en-Kor Redirection | ValidTgts$ Creature.YouCtrl | TgtPrompt$ Select target creature you control to redirect the damage to | ReplacementEffects$ EnKorCombat,EnKorNonCombat | Triggers$ OutOfSight | SVars$ CombatDmg,NonCombatDmg,ExileEffect,RestDmgCombat,RestDmg,X | Duration$ HostLeavesOrEOT | RememberObjects$ Self | ImprintCards$ Targeted | SpellDescription$ The next 1 damage that would be dealt to CARDNAME this turn is dealt to target creature you control instead.
SVar:EnKorCombat:Event$ DamageDone | ValidTarget$ Creature.IsRemembered | IsCombat$ True | ReplaceWith$ CombatDmg | Description$ The next 1 damage that would be dealt to Spirit en-Kor this turn is dealt to target creature you control instead.
SVar:EnKorNonCombat:Event$ DamageDone | ValidTarget$ Creature.IsRemembered | IsCombat$ False | ReplaceWith$ NonCombatDmg | Secondary$ True | Description$ The next 1 damage that would be dealt to Spirit en-Kor this turn is dealt to target creature you control instead.
SVar:CombatDmg:AB$DealDamage | Cost$ 0 | Defined$ Imprinted | DamageSource$ ReplacedSource | CombatDamage$ True | NumDmg$ 1 | SubAbility$ RestDmgCombat
SVar:NonCombatDmg:AB$DealDamage | Cost$ 0 | Defined$ Imprinted | DamageSource$ ReplacedSource | NumDmg$ 1 | SubAbility$ RestDmg
SVar:RestDmgCombat:DB$DealDamage | Cost$ 0 | Defined$ Remembered | DamageSource$ ReplacedSource | CombatDamage$ True | NumDmg$ X | SubAbility$ ExileEffect
SVar:RestDmg:DB$DealDamage | Cost$ 0 | Defined$ Remembered | DamageSource$ ReplacedSource | NumDmg$ X | SubAbility$ ExileEffect
SVar:OutOfSight:Mode$ChangesZone | Origin$ Battlefield | Destination$ Any | Defined$ Imprinted | Execute$ ExileEffect | Static$ True
SVar:ExileEffect:DB$ ChangeZone | Defined$ Self | Origin$ Battlefield | Destination$ Exile | Static$ True
SVar:X:ReplaceCount$DamageAmount/Minus.1
SVar:RemAIDeck:True
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/spirit_en_kor.jpg
SetInfo:STH|Common|http://magiccards.info/scans/en/sh/119.jpg
Oracle:Flying\n{0}: The next 1 damage that would be dealt to Spirit en-Kor this turn is dealt to target creature you control instead.
End
I've tested straight redirect of single damage, multiple redirects from one source of more than one damage to single/multiple redirect targets, and redirect-bounce between two en-Kor then onto final target. Is there anything else I need to test?

Edit: Tested the above scenarios with deathtouch and infect sources. Passed the test.
Edit2: I love these guys so hate to ask this, but is it fair to the AI letting the human have one of these?
Edit3: Improved script to track targeting. Effect is exiled now if targeted creature is blinked or leaves play
Last edited by moomarc on 01 Jun 2012, 07:16, edited 2 times in total.
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: Card Contributions

Postby moomarc » 30 May 2012, 11:59

Squee, just added Blind Fury. Keep in mind that replacement effects have to be on a card in play, either a permanent or an effect card.

Also added Bloodcurdler. Only a few small fixes.
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: Card Contributions

Postby moomarc » 01 Jun 2012, 07:15

Squee, there doesn't seem to be a way to make Bend or Break work at the moment. First problem is that the TabAll abilities you used had to either have cost values or had to be changed to DB's. But that still didn't work, I think because of the... nevermind. Saw the problem while typing this up and checking a few last things: DestroyAll, TapAll (and ChangeZoneAll I think) must use the ValidCards parameter, not Defined. Also, ForgetOtherRemembered isn't necessary (or supported) because the method involves clearing the remembered list.

Just so you know, there's no real AI-logic supporting this card. The bit of logic in TwoPiles basically uses CMC so doesn't affect lands (generally), so the AI will basically try split it's cards as evenly as possible (not taking any sort of usefulness into account). It will also just choose your pile that has the most cards in it. But sometimes having half your lands destroyed is enough to sway the game for the AI anyway, so adding the card.
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: Card Contributions

Postby squee1968 » 01 Jun 2012, 17:31

That's good information, marc. I'll try to keep those in mind. And seeing how that was the last card for that batch, I'll post the next.

Code: Select all
Name:Bog Elemental
ManaCost:3 B B
Types:Creature Elemental
Text:no text
PT:5/4
K:Protection from white
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | Execute$ TrigSac | TriggerZones$ Battlefield | TriggerDescription$ At the beginning of your upkeep, sacrifice CARDNAME unless you sacrifice a land.
SVar:TrigSac:AB$ Sacrifice | Cost$ 0 | Amount$ 1 | SacValid$ Land | RememberSacrificed$ True | Optional$ True | SubAbility$ DBSacSelf
SVar:DBSacSelf:DB$ Sacrifice | Defined$ Self | SubAbility$ DBCleanup | ConditionCheckSVar$ X | ConditionSVarCompare$ LT1
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
SVar:X:Remembered$Amount
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/bog_elemental.jpg
End
Code: Select all
Name:Bone Shaman
ManaCost:2 R R
Types:Creature Giant Shaman
Text:no text
PT:3/3
A:AB$ Effect | Cost$ B | SVars$ PumpAll | Name$ Bone Shaman Effect
SVar:PumpAll:AB$ PumpAll | Cost$ 0 | ValidCards$ Creature.DamagedBy | KW$ HIDDEN CARDNAME can't be regenerated. | SpellDescription$ Until end of turn, Bone Shaman gains “Creatures dealt damage by Bone Shaman this turn can’t be regenerated this turn.”
SVar:RemAIDeck:True
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/bone_shaman.jpg
End
Code: Select all
Name:Brace for Impact
ManaCost:4 W
Types:Instant
Text:no text
A:SP$ Effect | Cost$ 4 W | Name$ Brace Effect | Triggers$ EndTrackingEffect | ReplacementEffects$ BraceReplace | SVars$ ImpactCounters,X,ExileEffect
SVar:BraceReplace:Event$ DamageDone | ValidTarget$ Creature.MultiColor | ReplaceWith$ ImpactCounters | PreventionEffect$ True | Description$ Prevent all damage that would be dealt to target multicolored creature this turn. For each 1 damage prevented this way, put a +1/+1 counter on that creature.
SVar:ImpactCounters:AB$PutCounter | Cost$ 0 | Defined$ ReplacedTarget | CounterType$ P1P1 | CounterNum$ X
SVar:X:ReplaceCount$DamageAmount
SVar:EndTrackingEffect:Mode$ ChangesZone | ValidCard$ Targeted | Origin$ Battlefield | Destination$ Any | Execute$ ExileEffect | Static$ True
SVar:ExileEffect:DB$ ChangeZone | Defined$ Self | Origin$ Battlefield | Destination$ Exile
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/brace_for_impact.jpg
End
Code: Select all
Name:Brawl
ManaCost:3 R R
Types:Instant
Text:no text
A:SP$ AnimateAll | ValidCards$ Creature | Abilities$ ThrowPunch | AddSVar$ ThrowX | SpellDescription$ Until end of turn, all creatures gain “{T}: This creature deals damage equal to its power to target creature.”
SVar:ThrowPunch:AB$ DealDamage | Cost$ T | ValidTgts$ Creature | TgtPrompt$ Select target creature | NumDmg$ ThrowX
SVar:ThrowX:Count$CardPower
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/brawl.jpg
End
Code: Select all
Name:Bulwark
ManaCost:3 R R
Types:Enchantment
Text:no text
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | Execute$ PsychicSlap | TriggerZones$ Battlefield | TriggerDescription$ At the beginning of your upkeep, CARDNAME deals X damage to target opponent, where X is the number of cards in your hand minus the number of cards in that player's hand.
SVar:PsychicSlap:AB$DealDamage | Cost$ 0 | ValidTgts$ Opponent | NumDmg$ X
SVar:A:Count$InYourHand
SVar:B:Count$InOppHand
SVar:X:SVar$A/Minus.B
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/bulwark.jpg
End
Code: Select all
Name:Cabal Interrogator
ManaCost:1 B
Types:Creature Zombie Wizard
Text:no text
PT:1/1
A:AB$ Discard | Cost$ X B T | ValidTgts$ Player | NumCards$ 1 | RevealNumber$ X | Mode$ RevealYouChoose | DiscardValid$ Card | SorcerySpeed$ True | SpellDescription$ Target player reveals X cards from his or her hand and you choose one of them. That player discards that card. Activate this ability only any time you could cast a sorcery.
SVar:X:Count$xPaid
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/cabal_interrogator.jpg
End
Code: Select all
Name:Captivating Glance
ManaCost:2 U
Types:Enchantment Aura
Text:no text
K:Enchant creature
A:SP$ Attach | Cost$ 2 U | ValidTgts$ Creature | AILogic$ GainControl
T:Mode$ Phase | Phase$ End of Turn | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ CaptiveClash | TriggerDescription$ At the beginning of your end step, clash with an opponent. If you win, gain control of enchanted creature. Otherwise, that player gains control of enchanted creature.
SVar:CaptiveClash:DB$ Clash | ValidTgts$ Player | TgtPrompt$ Select target player | WinSubAbility$ YouControl | OtherwiseSubAbility$ OppControl
SVar:YouControl:DB$ GainControl | Defined$ Enchanted | NewController$ You
SVar:OppControl:DB$ GainControl | Defined$ Enchanted | NewController$ Opponent
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/captivating_glance.jpg
End
Code: Select all
Name:Cataclysm
ManaCost:2 W W
Types:Sorcery
Text:no text
# You can not clear a remembered object from a card on the stack, so this card is cleaned beforehand.
A:SP$ Pump | Cost$ 2 W W | SubAbility$ DBCleanup | Static$ True | StackDescription$ None | SpellDescription$ Each player chooses from the permanents he or she controls an artifact, a creature, an enchantment, and a land, then sacrifices the rest.
SVar:ChooseArtfYou:DB$ ChooseCard | Defined$ You | Amount$ 1 | Choices$ Artifact.YouCtrl | SubAbility$ ChooseCrtrYou | RememberChosen$ True
SVar:ChooseCrtrYou:DB$ ChooseCard | Defined$ You | Amount$ 1 | Choices$ Creature.YouCtrl | SubAbility$ ChooseEnchYou | RememberChosen$ True
SVar:ChooseEnchYou:DB$ ChooseCard | Defined$ You | Amount$ 1 | Choices$ Enchantment.YouCtrl | SubAbility$ ChooseLandYou | RememberChosen$ True
SVar:ChooseLandYou:DB$ ChooseCard | Defined$ You | Amount$ 1 | Choices$ Land.YouCtrl | SubAbility$ ChooseArtfOpp | RememberChosen$ True
SVar:ChooseArtfOpp:DB$ ChooseCard | Defined$ Opponent | Amount$ 1 | Choices$ Artifact.YouDontCtrl | SubAbility$ ChooseCrtrOpp | RememberChosen$ True
SVar:ChooseCrtrOpp:DB$ ChooseCard | Defined$ Opponent | Amount$ 1 | Choices$ Creature.YouDontCtrl | SubAbility$ ChooseEnchOpp | RememberChosen$ True
SVar:ChooseEnchOpp:DB$ ChooseCard | Defined$ Opponent | Amount$ 1 | Choices$ Enchantment.YouDontCtrl | SubAbility$ ChooseLandOpp | RememberChosen$ True
SVar:DBChooseLandOpp:DB$ ChooseCard | Defined$ Opponent | Amount$ 1 | Choices$ Land.YouDontCtrl | SubAbility$ SacAllArtf | RememberChosen$ True
SVar:SacAllArtf:DB$SacrificeAll | ValidCards$ Artifact.IsNotRemembered | SubAbility$ SacAllCrtr
SVar:SacAllCrtr:DB$SacrificeAll | ValidCards$ Creature.IsNotRemembered | SubAbility$ SacAllEnch
SVar:SacAllEnch:DB$SacrificeAll | ValidCards$ Enchantment.IsNotRemembered | SubAbility$ SacAllLand
SVar:SacAllLand:DB$SacrificeAll | ValidCards$ Land.IsNotRemembered
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True | SubAbility$ ChooseArtfYou
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/cataclysm.jpg
End
Code: Select all
Name:Cathedral Membrane
ManaCost:1 PW
Types:Artifact Creature Wall
Text:no text
PT:0/3
K:Defender
T:Mode$ AttackerBlocked | ValidCard$ Creature | ValidBlocker$ Card.Self | Execute$ ChurchPump | TriggerZones$ Battlefield
SVar:ChurchPump:AB$ Pump | Cost$ 0 | Defined$ TriggeredAttacker | RememberObjects$ TriggeredAttacker
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ValidCard$ Card.Self | Execute$ WallDies | TriggerController$ TriggeredCardController | TriggerPhases$ BeginCombat->EndCombat | TriggerDescription$ When CARDNAME dies during combat, it deals 6 damage to each creature it blocked this combat.
SVar:WallDies:DB$ DamageAll | ValidCards$ Creature.IsRemembered | NumDmg$ 6 | SubAbility$ DBCleanup | ValidDescription$ each creature it blocked this combat.
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/cathedral_membrane.jpg
End
Originally, I had Brine Seer scripted, but just now I looked at it, and remembered that unless costs don't work within subabilities, so to make it an even 10, I've got this.

Code: Select all
Name:Thing from the Deep
ManaCost:6 U U U
Types:Creature Leviathan
Text:no text
PT:9/9
T:Mode$ Attacks | ValidCard$ Card.Self | TriggerZones$ Battlefield | Execute$ DeepDooDoo | TriggerDescription$ Whenever CARDNAME attacks, sacrifice it unless you sacrifice an Island.
SVar:DeepDooDoo:AB$ Sacrifice | Cost$ 0 | Amount$ 1 | SacValid$ Island | RememberSacrificed$ True | Optional$ True | SubAbility$ DeepSink
SVar:DeepSink:DB$ Sacrifice | Defined$ Self | SubAbility$ DeepClean | ConditionCheckSVar$ X | ConditionSVarCompare$ LT1
SVar:DeepClean:DB$ Cleanup | ClearRemembered$ True
SVar:X:Remembered$Amount
SVar:NeedsToPlay:Island.YouCtrl
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/thing_from_the_deep.jpg
End
squee1968
 
Posts: 254
Joined: 18 Nov 2011, 03:28
Has thanked: 110 times
Been thanked: 45 times

Re: Card Contributions

Postby moomarc » 01 Jun 2012, 18:05

I'll try get a few of these done over the weekend. I did spot a potential combo that the AI won't like: Brawl + Stuffy Doll + Warrior en-Kor (and friends) makes for a very one-sided brawl that the ai won't see. :mrgreen:
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: Card Contributions

Postby zzzdude » 02 Jun 2012, 22:31

Am I doing this right?

Code: Select all
Name:Maelstrom Wanderer
ManaCost:5 U R G
Types:Legendary Creature Elemental
Text:no text
PT:7/5
S:Mode$ Continuous | Affected$ Creature.YouCtrl | AddKeyword$ Haste | Description$ Creatures you control have haste.
SVar:PlayMain1:TRUE
SVar:BuffedBy:Creature
K:Cascade
K:Cascade
SVar:Rarity:Mythic
Oracle:Cascade, cascade (When you cast this spell, exile cards from the top of your library until you exile a nonland card that costs less. You may cast it without paying its mana cost. Put the exiled cards on the bottom in a random order. Then do it again.)\nCreatures you control have haste.
End
Code: Select all
Name:Shardless Agent
ManaCost:1 G U
Types:Artifact Creature Human Rogue
Text:no text
PT:2/2
K:Cascade
SVar:Rarity:Uncommon
Oracle:Cascade (When you cast this spell, exile cards from the top of your library until you exile a nonland card that costs less. You may cast it without paying its mana cost. Put the exiled cards on the bottom in a random order.)
End
Code: Select all
Name:Illusory Angel
ManaCost:2 U
Types:Creature Angel Illusion
Text:no text
PT:4/4
K:Flying
S:Mode$ CantBeCast | ValidCard$ Card.Self | EffectZone$ All | CheckSVar$ X | SVarCompare$ LE0 | Description$ Cast CARDNAME only if you've cast another

spell this turn.
SVar:X:Count$ThisTurnCast_Card.YouCtrl
SVar:Rarity:Uncommon
Oracle:Flying\nCast Illusory Angel only if you've cast another spell this turn.
End
Code: Select all
Name:Etherium-Horn Sorcerer
ManaCost:4 U R
Types:Artifact Creature Minotaur Wizard
Text:no text
PT:3/6
A:AB$ ChangeZone | Cost$ 1 U R | Origin$ Battlefield | Destination$ Hand | SpellDescription$ Return CARDNAME to its owner's hand.
K:Cascade
SVar:Rarity:Rare
Oracle:{1}{U}{R}: Return Etherium-Horn Sorcerer to its owner's hand.\nCascade (When you cast this spell, exile cards from the top of your library until you exile a nonland card that costs less. You may cast it without paying its mana cost. Put the exiled cards on the bottom in a random order.)
End
Code: Select all
Name:Mass Mutiny
ManaCost:3 R R
Types:Sorcery
Text:no text
A:SP$ GainControl | Cost$ 3 R R| ValidTgts$ Creature.YouDontCtrl | TgtPrompt$ Select target creature opponent controls. | LoseControl$EOT | Untap$ True | AddKWs$ Haste | SpellDescription$ For each opponent, gain control of up to one target creature that player controls until end of turn. Untap those creatures. They gain haste until end of turn.
SVar:Rarity:Rare
Oracle:For each opponent, gain control of up to one target creature that player controls until end of turn. Untap those creatures. They gain haste until end of turn.
End
Code: Select all
Name:Fractured Powerstone
ManaCost:2
Types:Artifact
Text:no text
A:AB$ Mana | Cost$ T | Produced$ 1 | SpellDescription$ Add 1 to your mana pool.
SVar:Rarity:Common
Oracle:{T}: Add {1} to your mana pool.\n{T}: Roll the planar die. Activate this ability only any time you could cast a sorcery.
End
Images excluded due to "new registrant" on the forum.

I am curious about Rivals' Duel being implemented, too.
zzzdude
 
Posts: 2
Joined: 02 Jun 2012, 21:27
Has thanked: 0 time
Been thanked: 0 time

Re: Card Contributions

Postby Sloth » 05 Jun 2012, 10:46

@Squee: Added Bog Elemental and Thing from the Deep. Thanks.

@zzzdude: Added your Shardless Agent, Etherium-Horn Sorcerer and Mass Mutiny. Fractured Powerstone should wait until we have the planar mechanic implemented. The others were sripted already. Thanks.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Card Contributions

Postby Grunt » 13 Jun 2012, 20:58

the database to forget this card Aven Mindcensor
Grunt
 
Posts: 1
Joined: 13 Jun 2012, 20:54
Has thanked: 0 time
Been thanked: 0 time

Re: Card Contributions

Postby Enom » 13 Jun 2012, 20:58

My first contribution is Devastation Tide:
Code: Select all
Name:Devastation Tide
ManaCost:3 U U
Types:Sorcery
Text:no text
K:Miracle:1 U
A:SP$ ChangeZoneAll | Cost$ 3 U U | ValidCards$ Permanent.nonLand | Origin$ Battlefield | Destination$ Hand |SpellDescription$ Return all nonland permanents to their owners' hands.
SVar:Rarity:Rare
SVar:Picture:
SetInfo:AVR|Rare|
Oracle:Return all nonland permanents to their owners' hands.\nMiracle {1}{U} (You may cast this card for its miracle cost when you draw it if it's the first card you drew this turn.)
End
I couldn't post the link for the setinfo and the picture because the Forum classified it as spam :p
Warning: It's my first card, so it might be buggy. Actually, I believe this is causing the game to display an error during load. I reccomend that a more experienced developper check my code.
Enom
 
Posts: 12
Joined: 13 Jun 2012, 20:55
Has thanked: 0 time
Been thanked: 0 time

Re: Card Contributions

Postby Sloth » 13 Jun 2012, 21:21

Enom wrote:My first contribution is Devastation Tide:
Code: Select all
Name:Devastation Tide
ManaCost:3 U U
Types:Sorcery
Text:no text
K:Miracle:1 U
A:SP$ ChangeZoneAll | Cost$ 3 U U | ValidCards$ Permanent.nonLand | Origin$ Battlefield | Destination$ Hand |SpellDescription$ Return all nonland permanents to their owners' hands.
SVar:Rarity:Rare
SVar:Picture:
SetInfo:AVR|Rare|
Oracle:Return all nonland permanents to their owners' hands.\nMiracle {1}{U} (You may cast this card for its miracle cost when you draw it if it's the first card you drew this turn.)
End
I couldn't post the link for the setinfo and the picture because the Forum classified it as spam :p
Warning: It's my first card, so it might be buggy. Actually, I believe this is causing the game to display an error during load. I reccomend that a more experienced developper check my code.
This card is and was present in the last two betas already.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Card Contributions

Postby Enom » 13 Jun 2012, 22:19

Sloth wrote:
Enom wrote:My first contribution is Devastation Tide:
Code: Select all
Name:Devastation Tide
ManaCost:3 U U
Types:Sorcery
Text:no text
K:Miracle:1 U
A:SP$ ChangeZoneAll | Cost$ 3 U U | ValidCards$ Permanent.nonLand | Origin$ Battlefield | Destination$ Hand |SpellDescription$ Return all nonland permanents to their owners' hands.
SVar:Rarity:Rare
SVar:Picture:
SetInfo:AVR|Rare|
Oracle:Return all nonland permanents to their owners' hands.\nMiracle {1}{U} (You may cast this card for its miracle cost when you draw it if it's the first card you drew this turn.)
End
I couldn't post the link for the setinfo and the picture because the Forum classified it as spam :p
Warning: It's my first card, so it might be buggy. Actually, I believe this is causing the game to display an error during load. I reccomend that a more experienced developper check my code.
This card is and was present in the last two betas already.
:shock: Was it? I'm quite surpresed hahahahha
I'll check it again. Sorry
Enom
 
Posts: 12
Joined: 13 Jun 2012, 20:55
Has thanked: 0 time
Been thanked: 0 time

Re: Card Contributions

Postby Scerkor » 16 Jun 2012, 04:34

I've thrown together a M13 Liliana, as it seemed that nobody from the devs claimed it. ( I just really needed to test if MBC is going to be viable on standard, with her).
The second ability is really clunky, but I found no other way to do it. If someone could polish it a bit I'd be happy.

Code: Select all
Name:Liliana Of The Dark Realms
ManaCost:2 B B
Types:Planeswalker Liliana
Text:no text
Loyalty:3
A:AB$ ChangeZone | Cost$ AddCounter<1/LOYALTY> | Origin$ Library | Destination$ Hand | Planeswalker$ True | NumCards$ 1 | ChangeType$ Swamp | Mandatory$ True | SpellDescription$ Search your library for a swamp card, reveal it, and put it into your hand. Then shuffle your library.
A:AB$ Pump | Cost$ SubCounter<3/LOYALTY> | Planeswalker$ True | ValidTgts$ Creature | NumAtt$ X | NumDef$ X | SpellDescription$ Target creature gets +X/+X until end of turn, where X is the number of swamps you control.
A:AB$ Pump | Cost$ SubCounter<3/LOYALTY> | Planeswalker$ True | ValidTgts$ Creature | NumAtt$ -X | NumDef$ -X | IsCurse$ True | SpellDescription$ Target creature gets -X/-X until end of turn, where X is the number of swamps you control.
A:AB$ Effect | Cost$ SubCounter<6/LOYALTY> | Planeswalker$ True | Ultimate$ True | Name$ Liliana Of The Dark Realms Emblem | Image$ liliana_of_the_dark_realms_emblem | StaticAbilities$ SwampBoost | SVars$ BlackTap | Stackable$ False | Duration$ Permanent | SpellDescription$ You get an emblem with "Swamps you control have '{T}:Add {B}{B}{B}{B} to your mana pool.'".
SVar:X:Count$Valid Swamp.YouCtrl
SVar:SwampBoost:Mode$ Continuous | Affected$ Swamp.YouCtrl | AddAbility$ BlackTap | Description$ Swamps you control have '{T}:Add {B}{B}{B}{B} to your mana pool.'
SVar:BlackTap:AB$Mana | Cost$ T | Produced$ B | Amount$ 4 | SpellDescription$ Add B B B B to your mana pool.
SVar:Rarity:Mythic
Oracle:[+1] Search your library for a swamp card, reveal it, and put it into your hand. Then shuffle your library.\n[-3] Target creature gets +X/+X or -X/-X until end of turn, where X is the number of swamps you control.\n[-6] You get an emblem with "Swamps you control have '{T}:Add {B}{B}{B}{B} to your mana pool.'".
End
Scerkor
 
Posts: 3
Joined: 16 Jun 2012, 04:00
Has thanked: 0 time
Been thanked: 0 time

Re: Card Contributions

Postby Sloth » 16 Jun 2012, 06:07

Scerkor wrote:I've thrown together a M13 Liliana, as it seemed that nobody from the devs claimed it. ( I just really needed to test if MBC is going to be viable on standard, with her).
The second ability is really clunky, but I found no other way to do it. If someone could polish it a bit I'd be happy.

Code: Select all
Name:Liliana Of The Dark Realms
ManaCost:2 B B
Types:Planeswalker Liliana
Text:no text
Loyalty:3
A:AB$ ChangeZone | Cost$ AddCounter<1/LOYALTY> | Origin$ Library | Destination$ Hand | Planeswalker$ True | NumCards$ 1 | ChangeType$ Swamp | Mandatory$ True | SpellDescription$ Search your library for a swamp card, reveal it, and put it into your hand. Then shuffle your library.
A:AB$ Pump | Cost$ SubCounter<3/LOYALTY> | Planeswalker$ True | ValidTgts$ Creature | NumAtt$ X | NumDef$ X | SpellDescription$ Target creature gets +X/+X until end of turn, where X is the number of swamps you control.
A:AB$ Pump | Cost$ SubCounter<3/LOYALTY> | Planeswalker$ True | ValidTgts$ Creature | NumAtt$ -X | NumDef$ -X | IsCurse$ True | SpellDescription$ Target creature gets -X/-X until end of turn, where X is the number of swamps you control.
A:AB$ Effect | Cost$ SubCounter<6/LOYALTY> | Planeswalker$ True | Ultimate$ True | Name$ Liliana Of The Dark Realms Emblem | Image$ liliana_of_the_dark_realms_emblem | StaticAbilities$ SwampBoost | SVars$ BlackTap | Stackable$ False | Duration$ Permanent | SpellDescription$ You get an emblem with "Swamps you control have '{T}:Add {B}{B}{B}{B} to your mana pool.'".
SVar:X:Count$Valid Swamp.YouCtrl
SVar:SwampBoost:Mode$ Continuous | Affected$ Swamp.YouCtrl | AddAbility$ BlackTap | Description$ Swamps you control have '{T}:Add {B}{B}{B}{B} to your mana pool.'
SVar:BlackTap:AB$Mana | Cost$ T | Produced$ B | Amount$ 4 | SpellDescription$ Add B B B B to your mana pool.
SVar:Rarity:Mythic
Oracle:[+1] Search your library for a swamp card, reveal it, and put it into your hand. Then shuffle your library.\n[-3] Target creature gets +X/+X or -X/-X until end of turn, where X is the number of swamps you control.\n[-6] You get an emblem with "Swamps you control have '{T}:Add {B}{B}{B}{B} to your mana pool.'".
End
Welcome Scerkor.
Please post and claim M13 cards here: viewtopic.php?f=52&t=7158. To correct the second ability take a look at the script of Shaper Parasite.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Card Contributions

Postby PowerClaws » 26 Jun 2012, 15:10

Ok, so i noticed that someone had said Gauntlet of Power wasnt in forge, so i decided id see if i could find cards that did its effect and kinda blend them together, so heres my attempt, i did try adding it to the cards folder zip and testing it but it gave me an error, which leads me to think that... i have no idea what im doing, but if it helps anyone, ive included the error

Gauntlet of Power | Open
Name:Gauntlet of Power
ManaCost:5
Types:Artifact
Text:no text
T:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Any | Destination$ Battlefield | Execute$ ChooseColor | Static$ True | TriggerDescription$ As CARDNAME enters the battlefield, choose a color.
SVar:ChooseColor:AB$ ChooseColor | Defined$ You
T:Mode$ Continuous | Affected$ Creature.ChosenColor | AddPower$ 1 | AddToughness$ 1 | Description$ Creatures of the chosen color get +1/+1.
T:Mode$ TapsForMana | ValidCard$ Land.Basic | Execute$ TrigMana | TriggerZones$ Battlefield | Static$ True | TriggerDescription$ Whenever a basic land is tapped for mana of the chosen color, its controller adds one mana of that color to his mana pool.
SVar:TrigMana:AB$ ManaReflected | Cost$ 0 | ColorOrType$ Color | Valid$ Defined.Triggered | ReflectProperty$ Produced | Defined$ TriggeredPlayer
SVar:RemRandomDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/gauntlet_of_power.jpg
SetInfo:TSP|Rare|http://magiccards.info/scans/en/ts/255.jpg
Oracle:As Gauntlet of Power enters the battlefield, choose a color.\nCreatures of the chosen color get +1/+1.\nWhenever a basic land is tapped for mana of the chosen color, its controller adds one mana of that color to his or her mana pool (in addition to the mana the land produces).
End

The Error | Open
This is a Crash Report. An error has occurred. Please save this message to a file.
Please follow the instructions at this address to submit this Crash Report, plus what you were doing at the time:
http://tinyurl.com/3zzrnyb
Reporting bugs in Forge is very important. We thank you for your time.

Element Continuous not found in TriggerType enum


Version:
Forge version 1.2.9-r15979

OS: Windows 7 Version: 6.1 Architecture: x86

Java Version: 1.6.0_31 Vendor: Sun Microsystems Inc.

Detailed error trace:
java.lang.RuntimeException: Element Continuous not found in TriggerType enum
at forge.card.trigger.TriggerType.smartValueOf(TriggerType.java:69)
at forge.card.trigger.TriggerHandler.parseTrigger(TriggerHandler.java:205)
at forge.card.trigger.TriggerHandler.parseTrigger(TriggerHandler.java:186)
at forge.CardReader.readCard(CardReader.java:473)
at forge.CardReader.loadCard(CardReader.java:359)
at forge.CardReader.loadCard(CardReader.java:569)
at forge.CardReader.loadCardsUntilYouFind(CardReader.java:317)
at forge.CardReader.run(CardReader.java:251)
at forge.card.cardfactory.PreloadingCardFactory.readCards(PreloadingCardFactory.java:128)
at forge.card.cardfactory.PreloadingCardFactory.<init>(PreloadingCardFactory.java:85)
at forge.AllZone.getCardFactory(AllZone.java:208)
at forge.control.FControl.initialize(FControl.java:146)
at forge.view.Main.main(Main.java:67)
PowerClaws
 
Posts: 131
Joined: 30 Jan 2012, 11:33
Has thanked: 28 times
Been thanked: 8 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 29 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 29 users online :: 0 registered, 0 hidden and 29 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 29 guests

Login Form