It is currently 15 Sep 2025, 10:08
   
Text Size

Card Contributions

Post MTG Forge Related Programming Questions Here

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

Re: Card Contributions

Postby Chris H. » 29 Mar 2012, 21:34

Sloth wrote:
DrMark wrote:For debugging, is it really necessary to re-compress cardfolder.zip every time I change one card? It works but it's *slow*.
I think you can unzip cardfolder.zip and put the content under res\cardfolder\ and then remove the zip file.
`
The remove the zip file is an important step. I believe that the code will read the card files from the zip file and ignore the separate txt card files if the "cardsfolder.zip" file is found.
User avatar
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

Postby squee1968 » 30 Mar 2012, 12:48

Hey marc, has Tuktuk Scrapper officially been scrapped or is it just that you haven't gotten around to it yet? It may be a few days before I finish the next batch anyway, I've got a big project here at home I've got to finish up, so no rush.
squee1968
 
Posts: 254
Joined: 18 Nov 2011, 03:28
Has thanked: 110 times
Been thanked: 45 times

Re: Card Contributions

Postby moomarc » 30 Mar 2012, 13:12

squee1968 wrote:Hey marc, has Tuktuk Scrapper officially been scrapped or is it just that you haven't gotten around to it yet? It may be a few days before I finish the next batch anyway, I've got a big project here at home I've got to finish up, so no rush.
I'm not actually too sure. I'd prefer if Sloth decides whether its fine or not. There aren't too many situations that break it... pretty much if your allies get flash so you can cast a second while the trigger is on the stack, or if you're doing some Kiki-Jiki, Rules Breaker chenanigans. Essentially each time you target a new artifact while the other triggers are on the stack, the ForgetOtherRemembered will do just that, so except for the first instance to resolve, no damage will be dealt.
-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 » 30 Mar 2012, 15:35

moomarc wrote:
squee1968 wrote:Hey marc, has Tuktuk Scrapper officially been scrapped or is it just that you haven't gotten around to it yet? It may be a few days before I finish the next batch anyway, I've got a big project here at home I've got to finish up, so no rush.
I'm not actually too sure. I'd prefer if Sloth decides whether its fine or not. There aren't too many situations that break it... pretty much if your allies get flash so you can cast a second while the trigger is on the stack, or if you're doing some Kiki-Jiki, Rules Breaker chenanigans. Essentially each time you target a new artifact while the other triggers are on the stack, the ForgetOtherRemembered will do just that, so except for the first instance to resolve, no damage will be dealt.
Shouldn't Tuktuk Scrapper use "RememberDestroyed" instead of "RememberTargets"?
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 » 30 Mar 2012, 17:36

Well spotted, Sloth. Works beautifully. Only other things that needed to change were ading a cleanup and Destroy subability had to be an AB, otherwise the TargetedController caused a NPE. I think those defined types have to have a root AB or SP. Anyway, Tuktuk Scrapper is added!
-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 Zirbert » 30 Mar 2012, 21:01

I want to massively thank the devs and cardscripters involved in 1.2.6, especially for two reasons: first, they brought in more of my beloved targeted graveyard recursion (Dwell on the Past, Memory's Journey, Stream of Consciousness). Second, they left my absolute favourite such card, Gaea's Blessing, undone so I could grab it! :-)

Code: Select all
Name:Gaea's Blessing
ManaCost:1 G
Types:Sorcery
Text:no text
A:SP$ Pump | Cost$ 1 G | ValidTgts$ Player | TgtPrompt$ Select target Player | SubAbility$ DBChangeZone | IsCurse$ True | SpellDescription$ Target player shuffles up to three target cards from his or her graveyard into his or her library.
SVar:DBChangeZone:DB$ ChangeZone | TargetMin$ 0 | TargetMax$ 3 | TargetsWithDefinedController$ Targeted | Origin$ Graveyard | Destination$ Library | Shuffle$ True | TgtPrompt$ Choose target card | ValidTgts$ Card | SubAbility$ DBDraw
SVar:DBDraw:DB$Draw | NumCards$ 1 | SpellDescription$ Draw a card.
T:Mode$ ChangesZone | Origin$ Library | Destination$ Graveyard | ValidCard$ Card.Self | Execute$ TrigChange | TriggerDescription$ When CARDNAME is put into your graveyard from your library, shuffle your graveyard into your library.
SVar:TrigChange:AB$ ChangeZoneAll | Cost$ 0 | ChangeType$ Card.YouOwn | Origin$ Graveyard | Destination$ Library | Shuffle$ True | SpellDescription$ Shuffle your graveyard into your library.
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/gaeas_blessing.jpg
SetInfo:WTH|Uncommon|http://magiccards.info/scans/en/wl/71.jpg
Oracle:
End
Tested, seems to work fine. I've been out of the loop, and don't know the current etiquette on Setinfo and Oracle lines; I filled in a Setinfo because Forge crashed when I left it empty. If they should be stripped for the scripts to fill in, hopefully some kind committer will do so.

By my count, this is my 99th scripted card. I really have to find (at least) one more....
Zirbert
 
Posts: 512
Joined: 13 Oct 2010, 16:04
Has thanked: 104 times
Been thanked: 19 times

Re: Card Contributions

Postby Sloth » 30 Mar 2012, 21:27

Zirbert wrote:I want to massively thank the devs and cardscripters involved in 1.2.6, especially for two reasons: first, they brought in more of my beloved targeted graveyard recursion (Dwell on the Past, Memory's Journey, Stream of Consciousness). Second, they left my absolute favourite such card, Gaea's Blessing, undone so I could grab it! :-)

| Open
Code: Select all
Name:Gaea's Blessing
ManaCost:1 G
Types:Sorcery
Text:no text
A:SP$ Pump | Cost$ 1 G | ValidTgts$ Player | TgtPrompt$ Select target Player | SubAbility$ DBChangeZone | IsCurse$ True | SpellDescription$ Target player shuffles up to three target cards from his or her graveyard into his or her library.
SVar:DBChangeZone:DB$ ChangeZone | TargetMin$ 0 | TargetMax$ 3 | TargetsWithDefinedController$ Targeted | Origin$ Graveyard | Destination$ Library | Shuffle$ True | TgtPrompt$ Choose target card | ValidTgts$ Card | SubAbility$ DBDraw
SVar:DBDraw:DB$Draw | NumCards$ 1 | SpellDescription$ Draw a card.
T:Mode$ ChangesZone | Origin$ Library | Destination$ Graveyard | ValidCard$ Card.Self | Execute$ TrigChange | TriggerDescription$ When CARDNAME is put into your graveyard from your library, shuffle your graveyard into your library.
SVar:TrigChange:AB$ ChangeZoneAll | Cost$ 0 | ChangeType$ Card.YouOwn | Origin$ Graveyard | Destination$ Library | Shuffle$ True | SpellDescription$ Shuffle your graveyard into your library.
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/gaeas_blessing.jpg
SetInfo:WTH|Uncommon|http://magiccards.info/scans/en/wl/71.jpg
Oracle:
End
Tested, seems to work fine. I've been out of the loop, and don't know the current etiquette on Setinfo and Oracle lines; I filled in a Setinfo because Forge crashed when I left it empty. If they should be stripped for the scripts to fill in, hopefully some kind committer will do so.
Added! Thanks Zirbert.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Card Contributions

Postby Crea » 31 Mar 2012, 21:03

Wanted to try out Chord of Calling earlier but found that Forge didn't have it yet, so I hacked this together based on the code for Scatter the Seeds, Reshape and Citanul Flute. Appears to work as intended but please do look it over.

Note: Since I'm a new user the system won't allow me to add offsite URLs, so I've left the two photo URLs blank. It's 156.jpg on maniccards.

Code: Select all
Name:Chord of Calling
ManaCost:X G G G
Types:Instant
Text:no text
K:Convoke
A:SP$ ChangeZone | Cost$ X G G G | Origin$ Library | Destination$ Battlefield | ChangeType$ Creature.cmcLEX | ChangeNum$ 1 | SpellDescription$ Search your library for a creature card with converted mana cost X or less and put it onto the battlefield. Then shuffle your library.
SVar:X:Count$xPaid
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:
SetInfo:RAV|Rare|
Oracle:Convoke (Each creature you tap while casting this spell reduces its cost by {1} or by one mana of that creature's color.)\nSearch your library for a creature card with converted mana cost X or less and put it onto the battlefield. Then shuffle your library.
End
By the way, is there a point to adding "Shuffle$ True"? It's in the code for Reshape but not Citanul Flute, even though they do similar things. I've tried it with and without the "Shuffle$ True" part and the library is shuffled in both cases.
Crea
 
Posts: 4
Joined: 27 Mar 2012, 18:17
Has thanked: 1 time
Been thanked: 0 time

Re: Card Contributions

Postby Sloth » 01 Apr 2012, 09:09

Crea wrote:Wanted to try out Chord of Calling earlier but found that Forge didn't have it yet, so I hacked this together based on the code for Scatter the Seeds, Reshape and Citanul Flute. Appears to work as intended but please do look it over.
This script doesn't work at the moment, because Convoke currently happens before the X is chosen.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Card Contributions

Postby Crea » 01 Apr 2012, 10:50

Sloth wrote:
Crea wrote:Wanted to try out Chord of Calling earlier but found that Forge didn't have it yet, so I hacked this together based on the code for Scatter the Seeds, Reshape and Citanul Flute. Appears to work as intended but please do look it over.
This script doesn't work at the moment, because Convoke currently happens before the X is chosen.
Ah, you're right, seems I only tested for colored mana cost and didn't think to check to see if X can be paid using Convoke.
Crea
 
Posts: 4
Joined: 27 Mar 2012, 18:17
Has thanked: 1 time
Been thanked: 0 time

Re: Card Contributions

Postby squee1968 » 05 Apr 2012, 02:17

The next batch is ready. I'm sorry it took so long, but things are still hectic here. Not sure when the next batch will be, maybe a week or so.

Code: Select all
Name:Vigorous Charge
ManaCost:G
Types:Instant
Text:no text
A:SP$ Pump | Cost$ G | ValidTgts$ Creature | KW$ Trample | SpellDescription$ Target creature gains trample until end of turn. Whenever that creature deals combat damage this turn, if CARDNAME was kicked, you gain life equal to that damage.
A:SP$ Pump | Cost$ G W | SetAsKicked$ True | ValidTgts$ Creature | KW$ Trample | RememberObjects$ Targeted | SubAbility$ VigorousPumping | SpellDescription$ Kicker W (You may pay an additional W as you cast this spell.)
SVar:VigorousPumping:Mode$ DamageDone | ValidSource$ Creature.IsRemembered | CombatDamage$ True | Execute$ VigorousLife
SVar:VigorousLife:DB$GainLife | Cost$ 0 | Defined$ You | LifeAmount$ X | SubAbility$ DBCleanup
SVar:X:TriggerCount$DamageAmount
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
SVar:RemAIDeck:True
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/vigorous_charge.jpg
End
Code: Select all
Name:Vintara Elephant
ManaCost:4 G
Types:Creature Elephant
Text:no text
PT:4/3
K:Trample
A:AB$Pump | Cost$ 3 | Defined$ Self | AnyPlayer$ True | IsCurse$ True | SubAbility$ DBDebuff | SpellDescription$ CARDNAME loses trample until end of turn. Any player may activate this ability.
SVar:DBDebuff:DB$Animate | Defined$ Self | RemoveKeywords$ Trample
SVar:RemAIDeck:True
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/vintara_elephant.jpg
End
Code: Select all
Name:Volley of Boulders
ManaCost:8 R
Types:Sorcery
Text:no text
K:Flashback R R R R R R
A:SP$DealDamage | Cost$ 8 R | Tgt$ TgtCP | TgtPrompt$ Select target creature or player (1) | NumDmg$ 1 | SubAbility$ Dmg2 | SpellDescription$ CARDNAME deals 6 damage divided as you choose among any number of target creatures and/or players.
SVar:Dmg2:DB$DealDamage | Tgt$ TgtCP | TgtPrompt$ Select target creature or player (2) | NumDmg$ 1 | SubAbility$ Dmg3
SVar:Dmg3:DB$DealDamage | Tgt$ TgtCP | TgtPrompt$ Select target creature or player (3) | NumDmg$ 1 | SubAbility$ Dmg4
SVar:Dmg4:DB$DealDamage | Tgt$ TgtCP | TgtPrompt$ Select target creature or player (4) | NumDmg$ 1 | SubAbility$ Dmg5
SVar:Dmg5:DB$DealDamage | Tgt$ TgtCP | TgtPrompt$ Select target creature or player (5) | NumDmg$ 1 | SubAbility$ Dmg6
SVar:Dmg6:DB$DealDamage | Tgt$ TgtCP | TgtPrompt$ Select target creature or player (6) | NumDmg$ 1
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/volley_of_boulders.jpg
End
Code: Select all
Name:Walking Sponge
ManaCost:1 U
Types:Creature Sponge
Text:no text
PT:1/1
A:AB$ Charm | Cost$ T | Choices$ DBSpongeFly,DBSpongeStrike,DBSpongeTramp | Defined$ You | SpellDescription$ Target creature loses your choice of flying, first strike, or trample until end of turn.
SVar:DBSpongeFly:DB$Animate | ValidTgts$ Creature | RemoveKeywords$ Flying
SVar:DBSpongeStrike:DB$Animate | ValidTgts$ Creature | RemoveKeywords$ First Strike
SVar:DBSpongeTramp:DB$Animate | ValidTgts$ Creature | RemoveKeywords$ Trample
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/walking_sponge.jpg
End
Code: Select all
Name:Wall of Vipers
ManaCost:2 B
Types:Creature Snake Wall
Text:no text
PT:2/4
K:Defender
A:AB$ Destroy | Cost$ 3 | Defined$ Self | AnyPlayer$ True | SubAbility$ SnakeBite | SpellDescription$ Destroy CARDNAME and target creature it's blocking. Any player may activate this ability.
SVar:SnakeBite:DB$ Destroy | ValidTgts$ Creature.blockedBySource
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/wall_of_vipers.jpg
End
Code: Select all
Name:Wandering Eye
ManaCost:2 U
Types:Creature Illusion
Text:no text
PT:1/3
K:Flying
S:Mode$ Continuous | Affected$ Player | AddKeyword$ Play with your hand revealed. | Description$ Players play with their hands revealed.
SVar:RemAIDeck:True
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/wandering_eye.jpg
End
Code: Select all
Name:Wash Out
ManaCost:3 U
Types:Sorcery
Text:no text
A:SP$ ChooseColor | Cost$ 3 U | Defined$ You | AILogic$ MostProminentInHumanDeck | SubAbility$ DBWash | SpellDescription$ Return all permanents of the color of your choice to their owners' hands.
SVar:DBWash:DB$ ChangeZoneAll | ChangeType$ Permanent.ChosenColor | Origin$ Battlefield | Destination$ Hand
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/wash_out.jpg
End
Code: Select all
Name:Weight of Spires
ManaCost:R
Types:Instant
Text:no text
A:SP$ Charm | Cost$ R | Choices$ DBSmartChoice, DBStupidChoice | Defined$ You | SpellDescription$ CARDNAME deals damage to target creature equal to the number of nonbasic lands that creature's controller controls.
SVar:DBSmartChoice:AB$ DealDamage | Cost$ 0 | ValidTgts$ Creature.YouDontCtrl| TgtPrompt$ Select target creature you don't control | NumDmg$ X
SVar:DBStupidChoice:AB$ DealDamage | Cost$ 0 | ValidTgts$ Creature.YouCtrl | Secondary$ True | TgtPrompt$ Select target creature you control | NumDmg$ Y
SVar:X:Count$Valid Land.nonBasic+YouDontCtrl
SVar:Y:Count$Valid Land.nonBasic+YouCtrl
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/weight_of_spires.jpg
End
Code: Select all
Name:Weird Harvest
ManaCost:X G G
Types:Sorcery
Text:no text
A:SP$ ChangeZone | Cost$ X G G | Origin$ Library | Destination$ Hand | DefinedPlayer$ Each | ChangeType$ Card.Creature | Reveal$ True | Shuffle$ True | ChangeNum$ X | SpellDescription$ Each player may search his or her library for up to X creature cards, reveal those cards, and put them into his or her hand. Then each player who searched his or her library this way shuffles it.
SVar:X:Count$xPaid
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/weird_harvest.jpg
End
Code: Select all
Name:Whirlpool Warrior
ManaCost:2 U
Types:Creature Merfolk Warrior
Text:no text
PT:2/2
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ WhirlYou | TriggerDescription$ When CARDNAME enters the battlefield, shuffle the cards from your hand into your library, then draw that many cards.
SVar:WhirlYou:DB$ ChangeZoneAll | Defined$ You | Origin$ Hand | Destination$ Library | LibraryPosition$ -1 | RememberChanged$ True | ForgetOtherRemembered$ True | Shuffle$ True | SubAbility$ DBDraw
SVar:DBDraw:DB$Draw | NumCards$ X | Defined$ You | SubAbility$ DBCleanup
A:AB$ ChangeZoneAll | Cost R Sac<1/CARDNAME> | Defined$ You | Origin$ Hand | Destination$ Library | LibraryPosition$ -1 | RememberChanged$ True | ForgetOtherRemembered$ True | Shuffle$ True | SubAbility$ WhirlDraw | SpellDescription$ Each player shuffles the cards from his or her hand into his or her library, then draws that many cards.
SVar:WhirlDraw:DB$Draw | NumCards$ X | Defined$ You | SubAbility$ CleanThePool
SVar:CleanThePool:DB$Cleanup | ClearRemembered$ True | SubAbility$ WhirlOpp
SVar:WhirlOpp:DB$ ChangeZoneAll | Defined$ Opponent | Origin$ Hand | Destination$ Library | LibraryPosition$ -1 | RememberChanged$ True | ForgetOtherRemembered$ True | Shuffle$ True | SubAbility$ WhirlDrawOpp
SVar:WhirlDrawOpp:DB$Draw | NumCards$ X | Defined$ Opponent | SubAbility$ DBCleanup
SVar:DBCleanup:DB$Cleanup | ClearRemembered$ True
SVar:X:Remembered$Amount
SVar:RemRandomDeck:True
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/whirlpool_warrior.jpg
End
As an added bonus, if Whirlpool Warrior is acceptable, then Winds of Change can be converted to script (And we would be halfway towards making Molten Psyche scriptable).

Code: Select all
Name:Winds of Change
ManaCost:R
Types:Sorcery
Text:no text
A:SP$ ChangeZoneAll | Cost R | Defined$ You | Origin$ Hand | Destination$ Library | LibraryPosition$ -1 | RememberChanged$ True | ForgetOtherRemembered$ True | Shuffle$ True | SubAbility$ WindDraw | SpellDescription$ Each player shuffles the cards from his or her hand into his or her library, then draws that many cards.
SVar:WindDraw:DB$Draw | NumCards$ X | Defined$ You | SubAbility$ CleanTheWind
SVar:CleanTheWind:DB$Cleanup | ClearRemembered$ True | SubAbility$ WindOpp
SVar:WindOpp:DB$ ChangeZoneAll | Defined$ Opponent | Origin$ Hand | Destination$ Library | LibraryPosition$ -1 | RememberChanged$ True | ForgetOtherRemembered$ True | Shuffle$ True | SubAbility$ WindDrawOpp
SVar:WindDrawOpp:DB$Draw | NumCards$ X | Defined$ Opponent | SubAbility$ DBCleanup
SVar:DBCleanup:DB$Cleanup | ClearRemembered$ True
SVar:X:Remembered$Amount
SVar:RemRandomDeck:True
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/winds_of_change.jpg
SetInfo:5ED|Rare|http://magiccards.info/scans/en/5e/275.jpg
SetInfo:4ED|Rare|http://magiccards.info/scans/en/4e/250.jpg
SetInfo:POR|Rare|http://magiccards.info/scans/en/po/162.jpg
SetInfo:LEG|Uncommon|http://magiccards.info/scans/en/lg/169.jpg
Oracle:Each player shuffles the cards from his or her hand into his or her library, then draws that many cards.
End
squee1968
 
Posts: 254
Joined: 18 Nov 2011, 03:28
Has thanked: 110 times
Been thanked: 45 times

Re: Card Contributions

Postby Sloth » 05 Apr 2012, 11:28

squee1968 wrote:The next batch is ready. I'm sorry it took so long, but things are still hectic here. Not sure when the next batch will be, maybe a week or so.
Vintara Elephant: Is there a need for the use of AF Pump in addition to AF Animate?

Walking Sponge: Should use AF GenericChoice instead of AF Charm (the mode is chosen at resolution).

Wall of Vipers: Added.

Wandering Eye: Added.

Wash Out: Added.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Card Contributions

Postby Sloth » 05 Apr 2012, 21:17

More comments:

Weight of Spires: Is not correct this way, the controller of the target may change (which would cause your version to fizzle).

Whirlpool Warrior: Added.

Winds of Change: Converted.

Thanks Squee. I will be away from keyboard for the next week. I hope someone else will check the other cards.
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 » 06 Apr 2012, 05:35

Sloth wrote:Thanks Squee. I will be away from keyboard for the next week. I hope someone else will check the other cards.
I'm trying to get the new pet images ready as my primary goal at the moment, but I'll try test the others in between.
Last edited by Chris H. on 06 Apr 2012, 13:45, edited 1 time in total.
Reason: fixed a broken quote
-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 » 13 Apr 2012, 14:13

Sloth wrote:Weight of Spires: Is not correct this way, the controller of the target may change (which would cause your version to fizzle).
I added support for TargetedControllerCtrl to isValid, so Weight of Spires is now added. Thanks Squee! For your interest, here's the final active lines of script:
Code: Select all
A:SP$ DealDamage | Cost$ R | ValidTgts$ Creature | TgtPrompt$ Select target creature | NumDmg$ X | SpellDescription$ CARDNAME deals damage to target creature equal to the number of nonbasic lands that creature's controller controls.
SVar:X:Count$Valid Land.nonBasic+TargetedControllerCtrl
Edit: fixed broken quote.
-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

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 26 guests

Main Menu

User Menu

Our Partners


Who is online

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

Login Form