It is currently 14 Sep 2025, 08:23
   
Text Size

Card Contributions

Post MTG Forge Related Programming Questions Here

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

Re: Card Contributions

Postby ArsenalNut » 08 Jan 2012, 00:06

ArsenalNut wrote:The remove counters line should be
Code: Select all
SVar:TrigRemove:AB$ RemoveCounterAll | Cost$ 0 | CounterType$ CHARGE | SubAbility$ TrigGetMana
If no "ValidCards" is specified, the counters are removed from the card itself by default.
"AllCounters" removes all counters created by the card when it leaves the battlefield but it is not necessary since Coalition Relic only puts counters on itself.
This is actually wrong, "ValidCards" is required for RemoveCounterAll. The card I looked at, Witherscale Wurm, was incorrect. Also there is also no "CountersRemoved" Svar.

I made the trigger work with following script
Code: Select all
T:Mode$ Phase | Phase$ Main1 | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigGetMana | TriggerDescription$ At the beginning of your precombat main phase, remove all charge counters from CARDNAME. Add one mana of any color to your mana pool for each charge counter removed this way.
SVar:TrigGetMana:AB$ Mana | Cost$ 0 | Produced$ Any | Amount$ X | SubAbility$ TrigRemove | SpellDescription$ Add one mana of any color to your mana pool for each charge counter removed this way.
SVar:TrigRemove:DB$ RemoveCounter | Cost$ 0 | CounterType$ CHARGE | CounterNum$ X
SVar:X:Count$CardCounters.CHARGE
Since there is no "CountersRemoved" SVar, the mana has to be created before the counters are removed otherwise the mana ability will always produce zero mana. I checked the working version of the card into the repository.
So many cards, so little time
User avatar
ArsenalNut
 
Posts: 512
Joined: 08 Jul 2011, 03:49
Has thanked: 27 times
Been thanked: 121 times

Re: Card Contributions

Postby moomarc » 08 Jan 2012, 16:35

I was going to commit Squee's sliver scripts but just have a quick technical question. Currently these cards are set up as a trigger on the original sliver rather than pumping all slivers with the ETB trigger and ability. Is there any card that would care about this? Perhaps one of the cards that make a creature lose its abilities? I'm not sure on the ruling but want to confirm. If it needs to pump the slivers I'll apply the change to Dormant Sliver as well.
-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 Sloth » 08 Jan 2012, 17:12

moomarc wrote:I was going to commit Squee's sliver scripts but just have a quick technical question. Currently these cards are set up as a trigger on the original sliver rather than pumping all slivers with the ETB trigger and ability. Is there any card that would care about this? Perhaps one of the cards that make a creature lose its abilities? I'm not sure on the ruling but want to confirm. If it needs to pump the slivers I'll apply the change to Dormant Sliver as well.
If a red sliver would enter the battlefield, with squee's script of Harmonic Sliver, the triggered ability could target an artifact with protection from red, which is incorrect.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Card Contributions

Postby squee1968 » 09 Jan 2012, 12:02

Sloth wrote:
moomarc wrote:I was going to commit Squee's sliver scripts but just have a quick technical question. Currently these cards are set up as a trigger on the original sliver rather than pumping all slivers with the ETB trigger and ability. Is there any card that would care about this? Perhaps one of the cards that make a creature lose its abilities? I'm not sure on the ruling but want to confirm. If it needs to pump the slivers I'll apply the change to Dormant Sliver as well.
If a red sliver would enter the battlefield, with squee's script of Harmonic Sliver, the triggered ability could target an artifact with protection from red, which is incorrect.
Did some research and I think I've found the solution. Does this look right?
Code: Select all
Name:Harmonic Sliver
ManaCost:1 G W
Types:Creature Sliver
Text:no text
PT:1/1
S:Mode$ Continuous | Affected$ Sliver | AddTrigger$ TrigDestroy | AddSVar$ Destroy | Description$ All Slivers have "When this permanent enters the battlefield, destroy target artifact or enchantment."
SVar:TrigDestroy:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Sliver | TriggerZones$ Battlefield | Execute$ TrigDestroy | TriggerDescription$ All Slivers have "When this permanent enters the battlefield, destroy target artifact or enchantment."
SVar:Destroy:DB$Destroy | Cost$ 0 | ValidTgts$ Artifact,Enchantment | TgtPrompt$ Select target artifact or enchantment.
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/harmonic_sliver.jpg
SetInfo:TSP|Uncommon|http://magiccards.info/scans/ts/en/240.jpg
Oracle:All Slivers have “When this permanent enters the battlefield, destroy target artifact or enchantment.”
End
It's probably still not completely right, but is it closer than it was? If so, I think I can fix Mesmeric Sliver, the same way.
Also, isn't Sedge Sliver correct?
BTW, what's the status on Hunter Sliver, and provoke triggers not firing when attackers have been declared?
squee1968
 
Posts: 254
Joined: 18 Nov 2011, 03:28
Has thanked: 110 times
Been thanked: 45 times

Re: Card Contributions

Postby moomarc » 09 Jan 2012, 13:50

squee1968 wrote:
Sloth wrote:
moomarc wrote:I was going to commit Squee's sliver scripts but just have a quick technical question. Currently these cards are set up as a trigger on the original sliver rather than pumping all slivers with the ETB trigger and ability. Is there any card that would care about this? Perhaps one of the cards that make a creature lose its abilities? I'm not sure on the ruling but want to confirm. If it needs to pump the slivers I'll apply the change to Dormant Sliver as well.
If a red sliver would enter the battlefield, with squee's script of Harmonic Sliver, the triggered ability could target an artifact with protection from red, which is incorrect.
Did some research and I think I've found the solution. Does this look right?
Code: Select all
Name:Harmonic Sliver
ManaCost:1 G W
Types:Creature Sliver
Text:no text
PT:1/1
S:Mode$ Continuous | Affected$ Sliver | EffectZone$ Battlefield | AffectedZone$ Battlefield,Stack | AddTrigger$ HarmonicETB | AddSVar$ HarmonicDestroy | Description$ All Slivers have "When this permanent enters the battlefield, destroy target artifact or enchantment."
SVar:HarmonicETB:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Sliver | TriggerZones$ Battlefield | Execute$ HarmonicDestroy | TriggerDescription$ When this permanent enters the battlefield, destroy target artifact or enchantment.
SVar:HarmonicDestroy:DB$Destroy | Cost$ 0 | ValidTgts$ Artifact,Enchantment | TgtPrompt$ Select target artifact or enchantment.
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/harmonic_sliver.jpg
SetInfo:TSP|Uncommon|http://magiccards.info/scans/ts/en/240.jpg
Oracle:All Slivers have “When this permanent enters the battlefield, destroy target artifact or enchantment.”
End
It's probably still not completely right, but is it closer than it was? If so, I think I can fix Mesmeric Sliver, the same way.
Also, isn't Sedge Sliver correct?
BTW, what's the status on Hunter Sliver, and provoke triggers not firing when attackers have been declared?
I've been trying since yesterday to get this to work, but the ETB trigger doesn't go of for the original sliver, only for subsequent ones. I've tried changing EffectZone to All but even that doesn't help. Anyway, I've adjusted your script above as much as I can. You'll see I changed the variable names to something less generic. This is to prevent issues like the one I caused with Predatory Urge when pumped SVars end up overwriting existing ones. I also tried Mesmeric Sliver but it has the same issues. It has to be done this way though because of the way fateseal is scripted. If there was a TriggeredCardOpponent for Defined in Dig it could be done the same as Dormant Sliver and Sledge Sliver (which seems to be working fine). Edit: Just saw that there is one (Kokusho, the Evening Star). Edit2: Still can't doMesmeric Sliver because even though the right person gets to choose whether the trigger goes off and the right library is looked at, YOU always get to choose whether the card goes on the top or bottom of library. So we just need to get a pumpable ETB trigger working on the host card...

Then a quick note on Dead Reckoning. I was just doing final playtests and checking rules compliance and it's not quite scriptable at the moment. It uses the dreaded "If you do..." clause so if the targeted card in your graveyard is removed before the ability resolves (maybe exiled from grave by some spell), then 0 damage should be dealt. I tried scripting it like below, but it didn't help because of timing on the subability (@Sol: THAT was actually why I requested that subability that waits for the first part to resolve... for these if you do clauses)
Dead Reckoning | Open
Code: Select all
Name:Dead Reckoning
ManaCost:1 B B
Types:Sorcery
Text:no text
A:SP$ChangeZone | Cost$ 1 B B | ValidTgts$ Creature.YouCtrl | Origin$ Graveyard | Destination$ Library | TgtPrompt$ Choose target creature card in your graveyard. | RememberChanged$ True | SubAbility$ DBDamage | SpellDescription$ You may put target creature card from your graveyard on top of your library. If you do, CARDNAME deals damage equal to that card's power to target creature.
SVar:DBDamage:DB$DealDamage | Cost$ 0 | ValidTgts$ Creature | TgtPrompt$ Select target creature | CheckSVar$ Y | NumDmg$ X | SubAbility$ DBCleanup
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
SVar:X:Targeted$CardPower
SVar:Y:Remembered$Amount
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/dead_reckoning.jpg
SetInfo:WWK|Common|http://magiccards.info/scans/en/wwk/56.jpg
Oracle:You may put target creature card from your graveyard on top of your library. If you do, Dead Reckoning deals damage equal to that card's power to target creature.
End
-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 Sloth » 09 Jan 2012, 15:48

Sedge Sliver is not correct, the script only checks swamps for the controller of Sedge Sliver. If your opponent controls a sliver it might get the bonus even when he controls no swamps or vice versa.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Card Contributions

Postby moomarc » 09 Jan 2012, 16:42

Sloth wrote:Sedge Sliver is not correct, the script only checks swamps for the controller of Sedge Sliver. If your opponent controls a sliver it might get the bonus even when he controls no swamps or vice versa.
#-o I knew I'd missed something! ](*,) I'm seeing if there's anything I can do to fix it, otherwise I'll remove... :-k
-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 » 09 Jan 2012, 17:20

moomarc wrote:
Sloth wrote:Sedge Sliver is not correct, the script only checks swamps for the controller of Sedge Sliver. If your opponent controls a sliver it might get the bonus even when he controls no swamps or vice versa.
#-o I knew I'd missed something! ](*,) I'm seeing if there's anything I can do to fix it, otherwise I'll remove... :-k
I tried to add "AddStaticAbility" to staticAbilityContinuous.java (lines 202-208:
Code: Select all
        if (params.containsKey("AddStaticAbility")) {
            final String[] sVars = params.get("AddStaticAbility").split(" & ");
            for (int i = 0; i < sVars.length; i++) {
                sVars[i] = hostCard.getSVar(sVars[i]);
            }
            addAbilities = sVars;
        }
Its just a copy of "AddAbility" (or AddTrigger") with names replaced, which, as far as I can see is the case With adding static effect svars in EffectAF and AnimateAF. I then used the following script but still doesn't work :( What am I missing?
Sedge Sliver | Open
Code: Select all
Name:Sedge Sliver
ManaCost:2 R
Types:Creature Sliver
Text:no text
PT:2/2
S:Mode$ Continuous | Affected$ Creature.Sliver | AddStaticAbility$ SedgeStat | AddSVar$ SedgeX | Description$ All Sliver creatures have "This creature gets +1/+1 as long as you control a Swamp."
S:Mode$ Continuous | Affected$ Sliver | AddAbility$ SedgePump | Description$ All Slivers have "B: Regenerate this permanent."
SVar:SedgeStat:Mode$ Continuous | Affected$ Card.Self | AddPower$ 1 | AddToughness$ 1 | CheckSVar$ SedgeX | SVarCompare$ GE1 | Description$ This creature gets +1/+1 as long as you control a Swamp.
SVar:SedgeX:Count$Valid Swamp.YouCtrl
SVar:SedgePump:AB$ Regenerate | Cost$ B | SpellDescription$ Regenerate CARDNAME.
SVar:BuffedBy:Sliver,Swamp
SVar:PlayMain1:TRUE
SVar:RemRandomDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/sedge_sliver.jpg
SetInfo:TSP|Rare|http://magiccards.info/scans/en/ts/177.jpg
Oracle:All Sliver creatures have "This creature gets +1/+1 as long as you control a Swamp."\nAll Slivers have "{B}: Regenerate this permanent."
End
EDIT: I've removed Sedge Sliver from svn for now.
-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 Sloth » 09 Jan 2012, 18:09

moomarc wrote:I tried to add "AddStaticAbility" to staticAbilityContinuous.java (lines 202-208:
Code: Select all
        if (params.containsKey("AddStaticAbility")) {
            final String[] sVars = params.get("AddStaticAbility").split(" & ");
            for (int i = 0; i < sVars.length; i++) {
                sVars[i] = hostCard.getSVar(sVars[i]);
            }
            addAbilities = sVars;
        }
Its just a copy of "AddAbility" (or AddTrigger") with names replaced, which, as far as I can see is the case With adding static effect svars in EffectAF and AnimateAF. I then used the following script but still doesn't work :( What am I missing?
Sedge Sliver | Open
Code: Select all
Name:Sedge Sliver
ManaCost:2 R
Types:Creature Sliver
Text:no text
PT:2/2
S:Mode$ Continuous | Affected$ Creature.Sliver | AddStaticAbility$ SedgeStat | AddSVar$ SedgeX | Description$ All Sliver creatures have "This creature gets +1/+1 as long as you control a Swamp."
S:Mode$ Continuous | Affected$ Sliver | AddAbility$ SedgePump | Description$ All Slivers have "B: Regenerate this permanent."
SVar:SedgeStat:Mode$ Continuous | Affected$ Card.Self | AddPower$ 1 | AddToughness$ 1 | CheckSVar$ SedgeX | SVarCompare$ GE1 | Description$ This creature gets +1/+1 as long as you control a Swamp.
SVar:SedgeX:Count$Valid Swamp.YouCtrl
SVar:SedgePump:AB$ Regenerate | Cost$ B | SpellDescription$ Regenerate CARDNAME.
SVar:BuffedBy:Sliver,Swamp
SVar:PlayMain1:TRUE
SVar:RemRandomDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/sedge_sliver.jpg
SetInfo:TSP|Rare|http://magiccards.info/scans/en/ts/177.jpg
Oracle:All Sliver creatures have "This creature gets +1/+1 as long as you control a Swamp."\nAll Slivers have "{B}: Regenerate this permanent."
End
EDIT: I've removed Sedge Sliver from svn for now.
It's not so easy, because all continuous static effects are constantly removed and added all the time. When a new ability gets added, it will be removed before being applied.

Let me think about a solution.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Card Contributions

Postby moomarc » 09 Jan 2012, 18:44

Thanks Sloth. I don't think you need to rush it. Everyone's going to be way more interested in the new cards from Dark Ascension for the next few weeks :D
-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 xanbie » 10 Jan 2012, 03:23

Here is some cards. One is a real card, the other 3 I made up all using Triggers. Sword I made last year with MSE.

Hedron-Field Purists :

| Open
Code: Select all
Name:Hedron-Field Purists
ManaCost:2 W
Types:Creature Cleric
Text:no text
PT:0/3
K:Level up:2 W
K:maxLevel:5
S:Mode$ Continuous | Affected$ Card.Self | SetPower$ 1 | SetToughness$ 4 | CheckSVar$ X | SVarCompare$ EQ1
S:Mode$ Continuous | Affected$ Card.Self | SetPower$ 2 | SetToughness$ 5 | CheckSVar$ Y | SVarCompare$ EQ1
S:Mode$ Continuous | Affected$ Creature.YouCtrl | AddKeyword$ Absorb 1 | CheckSVar$ X | SVarCompare$ EQ1 | Description$ LEVEL 1-4 1/4 If a source would deal damage to you or a creature you control prevent 1 of that damage.
S:Mode$ Continuous | Affected$ Creature.YouCtrl | AddKeyword$ Absorb 2 | CheckSVar$ Y | SVarCompare$ EQ1 | Description$ LEVEL 5+ 2/5 If a source would deal damage to you or a creature you control prevent 2 of that damage.
S:Mode$ PreventDamage | Target$ You | Source$ Card | Amount$ 1 | CheckSVar$ X | SVarCompare$ EQ1
S:Mode$ PreventDamage | Target$ You | Source$ Card | Amount$ 2 | CheckSVar$ Y | SVarCompare$ EQ1
SVar:Mana:AB$Mana | Cost$ T | Produced$ G | Amount$ 2 | SpellDescription$ Add G G to your mana pool.
SVar:Pself:
SVar:Pc:
SVar:Pselftwo:
SVar:Pctwo:
SVar:X:Count$Valid Card.Self+counters_GE1_LEVEL+counters_LT5_LEVEL
SVar:Y:Count$Valid Card.Self+counters_GE5_LEVEL
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/hedron-field_purists.jpg
SetInfo:ROE|Uncommon|http://magiccards.info/scans/en/roe/25.jpg
Oracle:Level up {1}{G} ({1}{G}: Put a level counter on this. Level up only as a sorcery.)\nLEVEL 1-4\n1/2\n{T}: Add {G}{G} to your mana pool.\nLEVEL 5+\n1/4\nElves you control have "{T}: Add {G}{G} to your mana pool."
End
Sword of Mana :

| Open
Code: Select all
Name:Sword of Mana
ManaCost:3
Types:Artifact Equipment
Text:Equipped creature gets +2/+2 and has protection from colors.
K:eqPump 2:+2/+2/Protection from white & Protection from blue & Protection from black & Protection from red & Protection from green
T:Mode$ DamageDone | ValidSource$ Creature.AttachedBy | ValidTarget$ Player | CombatDamage$ True | Execute$ TrigLandhelp | TriggerZones$ Battlefield | TriggerDescription$ Whenever equipped creature deals combat damage to a player you add mana to your mana pool equal to the power of equipped creature in any color combination and you get an emblem with "Lands you control have hexproof and are indestructible."
SVar:TrigLandhelp:AB$Effect | Cost$ 0 | Name$ Sword of Mana emblem | StaticAbilities$ STIndestructible,STHexproof | Keywords$ Indestructible,Hexproof | Duration$ Permanent | SpellDescription$ You get an emblem with "lands you control have hexproof and are indestructible." | SubAbility$ DBAddPowerCounters
SVar:STIndestructible:Mode$ Continuous | Affected$ Land.YouCtrl | AffectedZone$ Battlefield | AddKeyword$ Indestructible
SVar:Indestructible:lands you control are indestructible and have hexproof.
SVar:STHexproof:Mode$ Continuous | Affected$ Land.YouCtrl | AffectedZone$ Battlefield | AddKeyword$ Hexproof
SVar:TrigManaAddCounters:AB$PutCounter | Cost$ 0 | Defined$ Equipped | CounterType$ CHARGE | CounterNum$ 0 | SubAbility$ DBAddPowerCounters
A:AB$PutCounter | Cost$ W | CounterType$ HEALING | CounterNum$ 1 | SpellDescription$ Put a HEALING Counter on Sword of Mana.
A:AB$PutCounter | Cost$ U | CounterType$ TIDE | CounterNum$ 1 | SpellDescription$ Put a TIDE Counter on Sword of Mana.
A:AB$PutCounter | Cost$ B | CounterType$ DEATH | CounterNum$ 1 | SpellDescription$ Put a DEATH Counter on Sword of Mana.
A:AB$PutCounter | Cost$ R | CounterType$ BLAZE | CounterNum$ 1 | SpellDescription$ Put a BLAZE Counter on Sword of Mana.
A:AB$PutCounter | Cost$ G | CounterType$ SPORE | CounterNum$ 1 | SpellDescription$ Put a SPORE Counter on Sword of Mana.
A:AB$ Mana | Cost$  SubCounter<X/CHARGE> | Produced$ W | Amount$ ChosenX | SpellDescription$ Add X W mana to your mana pool.
A:AB$ Mana | Cost$  SubCounter<X/CHARGE> | Produced$ U | Amount$ ChosenX | SpellDescription$ Add X U mana to your mana pool.
A:AB$ Mana | Cost$  SubCounter<X/CHARGE> | Produced$ B | Amount$ ChosenX | SpellDescription$ Add X B mana to your mana pool.
A:AB$ Mana | Cost$  SubCounter<X/CHARGE> | Produced$ R | Amount$ ChosenX | SpellDescription$ Add X R mana to your mana pool.
A:AB$ Mana | Cost$  SubCounter<X/CHARGE> | Produced$ G | Amount$ ChosenX | SpellDescription$ Add X G mana to your mana pool.
A:AB$ Mana | Cost$  SubCounter<X/MANA> | Produced$ 1 | Amount$ ChosenX | SpellDescription$ Add X Colorless mana to your mana pool.
A:AB$ Mana | Cost$  SubCounter<X/HEALING> | Produced$ W | Amount$ ChosenX | SpellDescription$ Add X W mana to your mana pool.
A:AB$ Mana | Cost$  SubCounter<X/TIDE> | Produced$ U | Amount$ ChosenX | SpellDescription$ Add X U mana to your mana pool.
A:AB$ Mana | Cost$  SubCounter<X/DEATH> | Produced$ B | Amount$ ChosenX | SpellDescription$ Add X B mana to your mana pool.
A:AB$ Mana | Cost$  SubCounter<X/BLAZE> | Produced$ R | Amount$ ChosenX | SpellDescription$ Add X R mana to your mana pool.
A:AB$ Mana | Cost$  SubCounter<X/SPORE> | Produced$ G | Amount$ ChosenX | SpellDescription$ Add X G mana to your mana pool.
SVar:X:XChoice
A:AB$ PutCounter | Cost$ X | CounterType$ MANA | CounterNum$ Y | SpellDescription$ Pay X mana Add X Colorless MANA counters to Sword of Mana.
SVar:Y:Count$xPaid
SVar:DBAddPowerCounters:DB$PutCounter | Cost$ 0 | Defined$ Self | CounterType$ CHARGE | CounterNum$ TrigSourcePower | SpellDescription$ Charge counters of current power
SVar:TrigSourcePower:TriggeredSource$CardPower
SVar:Rarity:Mythic
SVar:Picture:file:///Sword%20of%20Mana.jpg
SetInfo:SOM|Mythic|file:///Sword%20of%20Mana.jpg
Oracle:Equipped creature gets +2/+2 and has protection from Green.\nWhenever equipped creature deals combat damage to a player you add mana to your mana pool equal to the power of equipped creature in any color combination and you get an emblem with "Lands you control have hexproof and are indestructible."\nEquip {2}
End
Haunting Offerings :
| Open
Code: Select all
Name:Haunting Offerings
ManaCost:1 WU WU
Types:Enchantment
Text:no text
T:Mode$ Sacrificed | ValidCard$ Card.nonToken | Execute$ TrigCopyPermanet | TriggerDescription$ Whenever a nontoken permanent Sacrificed put a token copy of that permanent into battle field under your control, it gains flying and Spirt type.
SVar:TrigCopyPermanet:AB$CopyPermanent | Cost$ 0 | Defined$ TriggeredCard | SubAbility$ DBPump | SpellDescription$ Put a token onto the battlefield that's a copy of the Sacrificed card.
SVar:DBPump:DB$ Pump | Cost$ 0 | Defined$ Clones |  KW$ Flying | Permanent$ True | SubAbility$ DBPump2
SVar:DBPump2:DB$ Pump | Cost$ 0 | Defined$ Clones |  KW$ Flying
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/mimic_vat.jpg
SetInfo:SOM|Rare|http://magiccards.info/scans/en/som/175.jpg
Oracle:Imprint - Whenever a nontoken creature dies, you may exile that card. If you do, return each other card exiled with Mimic Vat to its owner's graveyard.\n{3}, {T}: Put a token onto the battlefield that's a copy of the exiled card. It gains haste. Exile it at the beginning of the next end step.
End
Ectoplasm Trash Defence:

| Open
Code: Select all
Name:Ectoplasm Trash Defence
ManaCost:U B
Types:Enchantment
Text:no text
T:Mode$ Discarded | ValidCard$ Card.Creature | Execute$ TrigCopyPermanet | TriggerDescription$ Whenever a Creature Discarded put a token copy of that Creature into battle field under your control, it gains Reach, Defender, and +0/+1.
SVar:TrigCopyPermanet:AB$CopyPermanent | Cost$ 0 | Defined$ TriggeredCard | SubAbility$ DBPump | SpellDescription$ Put a token onto the battlefield that's a copy of the Discarded Creature.
SVar:DBPump:DB$ Pump | Cost$ 0 | Defined$ Clones |  KW$ Reach | Permanent$ True | SubAbility$ DBPump2
SVar:DBPump2:DB$ Pump | Cost$ 0 | Defined$ Clones |  KW$ Defender | NumDef$ 1 | Permanent$ True
SVar:RemAIDeck:True
SVar:Rarity:Uncomon
SVar:Picture:http://www.wizards.com/global/images/magic/general/mimic_vat.jpg
SetInfo:SOM|Rare|http://magiccards.info/scans/en/som/175.jpg
Oracle:Imprint - Whenever a nontoken creature dies, you may exile that card. If you do, return each other card exiled with Mimic Vat to its owner's graveyard.\n{3}, {T}: Put a token onto the battlefield that's a copy of the exiled card. It gains haste. Exile it at the beginning of the next end step.
End
Some little furry incomplete friends to go with Purists, but they still get the job done with a Basilisk Collar

Crypt Rats :

| Open
Code: Select all
Name:Crypt Rats
ManaCost:2 B
Types:Creature Rat
Text:no text
PT:1/1
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:Uncommon
SVar:Picture:http://resources.wizards.com/magic/cards/uz/en-us/card5619.jpg
SetInfo:7ED|Uncommon|http://magiccards.info/scans/en/7e/149.jpg
End
Save state, puzzle kill AI by only poison when the state is loaded (you can play all lands):

| Open
Code: Select all
HumanLife=20
AILife=20
HumanCardsInPlay=Swamp; Hedron-Field Purists; Sword of Mana; Crypt Rats; Plains; Plains; Swamp; Mirran Crusader; Inkmoth Nexus; Kessig Wolf Run; Haunting Offerings; Haunting Offerings; Blood Pet; Ectoplasm Trash Defence
AICardsInPlay=Swamp; Sengir Vampire
HumanCardsInHand=Swamp; Hedron-Field Purists; Sword of Mana; Crypt Rats; Plains; Plains; Swamp; Crypt Rats; Crypt Rats; Crypt Rats; Crypt Rats
AICardsInHand=Swamp; Hedron-Field Purists; Sword of Mana; Crypt Rats; Plains; Plains; Swamp
ActivePlayer=Human
ActivePhase=Main1
Attachments
Sword of Mana.jpg
xanbie
 
Posts: 7
Joined: 01 Mar 2011, 21:59
Has thanked: 0 time
Been thanked: 0 time

Re: Card Contributions

Postby moomarc » 10 Jan 2012, 07:55

Crescendo of War | Open
Code: Select all
Name:Crescendo of War
ManaCost:3 W
Types:Enchantment
Text:no text
T:Mode$ Phase | Phase$ Upkeep | TriggerZones$ Battlefield | Execute$ TrigStrife | TriggerDescription$ At the beginning of each upkeep, put a strife counter on CARDNAME.
SVar:TrigStrife:AB$PutCounter | Cost$ 0 | Defined$ Self | CounterType$ STRIFE | CounterNum$ 1
S:Mode$ Continuous | Affected$ Creature.attacking | AddPower$ X | Description$ Attacking creatures get +1/+0 for each strife counter on CARDNAME.
S:Mode$ Continuous | Affected$ Creature.blocking+YouCtrl | AddPower$ X | Description$ Blocking creatures you control get +1/+0 for each strife counter on CARDNAME.
SVar:X:Count$CardCounters.STRIFE
SVar:RemRandomDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/crescendo_of_war.jpg
SetInfo:COM|Rare|http://magiccards.info/scans/en/cmd/12.jpg
Oracle:At the beginning of each upkeep, put a strife counter on Crescendo of War.\nAttacking creatures get +1/+0 for each strife counter on Crescendo of War.\nBlocking creatures you control get +1/+0 for each strife counter on Crescendo of War.
End
Is it too unfair to the AI?
-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 ArsenalNut » 10 Jan 2012, 14:59

moomarc wrote:I've been trying since yesterday to get this to work, but the ETB trigger doesn't go of for the original sliver, only for subsequent ones. I've tried changing EffectZone to All but even that doesn't help. Anyway, I've adjusted your script above as much as I can. You'll see I changed the variable names to something less generic. This is to prevent issues like the one I caused with Predatory Urge when pumped SVars end up overwriting existing ones.
As to getting Harmonic Sliver to work, try changing the static effect to "Affected$ Sliver.Other" and add a hardcoded ETB trigger that works for the original sliver only.
So many cards, so little time
User avatar
ArsenalNut
 
Posts: 512
Joined: 08 Jul 2011, 03:49
Has thanked: 27 times
Been thanked: 121 times

Re: Card Contributions

Postby moomarc » 10 Jan 2012, 15:53

ArsenalNut wrote:
moomarc wrote:I've been trying since yesterday to get this to work, but the ETB trigger doesn't go of for the original sliver, only for subsequent ones. I've tried changing EffectZone to All but even that doesn't help. Anyway, I've adjusted your script above as much as I can. You'll see I changed the variable names to something less generic. This is to prevent issues like the one I caused with Predatory Urge when pumped SVars end up overwriting existing ones.
As to getting Harmonic Sliver to work, try changing the static effect to "Affected$ Sliver.Other" and add a hardcoded ETB trigger that works for the original sliver only.
That's beyond my ability. I just dabble with code where I can see a pattern.
-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 Sloth » 10 Jan 2012, 16:03

moomarc wrote:
ArsenalNut wrote:
moomarc wrote:I've been trying since yesterday to get this to work, but the ETB trigger doesn't go of for the original sliver, only for subsequent ones. I've tried changing EffectZone to All but even that doesn't help. Anyway, I've adjusted your script above as much as I can. You'll see I changed the variable names to something less generic. This is to prevent issues like the one I caused with Predatory Urge when pumped SVars end up overwriting existing ones.
As to getting Harmonic Sliver to work, try changing the static effect to "Affected$ Sliver.Other" and add a hardcoded ETB trigger that works for the original sliver only.
That's beyond my ability. I just dabble with code where I can see a pattern.
The trigger doesn't have to be hardcoded. Just a normal trigger with "ValidCard$ Sliver.Self" should be enough.

I think Mesmeric Sliver can be scripted with two triggers one for your slivers and one for your opponents.

moomarc wrote:
Crescendo of War | Open
Code: Select all
Name:Crescendo of War
ManaCost:3 W
Types:Enchantment
Text:no text
T:Mode$ Phase | Phase$ Upkeep | TriggerZones$ Battlefield | Execute$ TrigStrife | TriggerDescription$ At the beginning of each upkeep, put a strife counter on CARDNAME.
SVar:TrigStrife:AB$PutCounter | Cost$ 0 | Defined$ Self | CounterType$ STRIFE | CounterNum$ 1
S:Mode$ Continuous | Affected$ Creature.attacking | AddPower$ X | Description$ Attacking creatures get +1/+0 for each strife counter on CARDNAME.
S:Mode$ Continuous | Affected$ Creature.blocking+YouCtrl | AddPower$ X | Description$ Blocking creatures you control get +1/+0 for each strife counter on CARDNAME.
SVar:X:Count$CardCounters.STRIFE
SVar:RemRandomDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/crescendo_of_war.jpg
SetInfo:COM|Rare|http://magiccards.info/scans/en/cmd/12.jpg
Oracle:At the beginning of each upkeep, put a strife counter on Crescendo of War.\nAttacking creatures get +1/+0 for each strife counter on Crescendo of War.\nBlocking creatures you control get +1/+0 for each strife counter on Crescendo of War.
End
Is it too unfair to the AI?
I think it's borderline ok. The AI will run into blockers that have more power than expected, but will block correctly if Crescendo of War is controlled by the human. It should have RemAIDeck:True though.
Last edited by Sloth on 10 Jan 2012, 16:10, edited 1 time in total.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 48 guests

Main Menu

User Menu

Our Partners


Who is online

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

Login Form