Card Contributions
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: Card Contributions
by jeffwadsworth » 22 Feb 2011, 20:19
Awesome. Man, I could have used this in the past.friarsol wrote:Instead of putting Nemesis up on the Forum i'm going to put it on the Wiki. This way people can "claim" certain cards, and repeats will be less likely to occur. That way we'll also know what cards people tried to script but weren't able to do:
http://www.slightlymagic.net/wiki/Forge_Scriptables
Before you start a new block, just edit the wiki saying you are going to do a section, or if that section isn't there yet just add it on. Once the card is submitted you can remove it from the wiki. If the card was posted to the forums, but not submitted please note that on the wiki as well.
- jeffwadsworth
- Super Tester Elite
- Posts: 1172
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 70 times
Re: Card Contributions
by friarsol » 22 Feb 2011, 20:31
The hard part will be removing cards from the Wiki that are finished.jeffwadsworth wrote:Awesome. Man, I could have used this in the past.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Card Contributions
by ZzzzSleep » 23 Feb 2011, 03:15
Do we have a keyword for the snow covered landwalks?
If not, is the following snippet a reasonable replacement?
Snow covered swampwalk test:
K:stPumpSelf:Creature:0/0/HIDDEN Unblockable:isPresent Swamp.Snow+YouDontCtrl:Snow covered swampwalk
If not, is the following snippet a reasonable replacement?
Snow covered swampwalk test:
K:stPumpSelf:Creature:0/0/HIDDEN Unblockable:isPresent Swamp.Snow+YouDontCtrl:Snow covered swampwalk
Re: Card Contributions
by slapshot5 » 23 Feb 2011, 03:49
No there's currently no keyword for it. I'll add one quick and post back.ZzzzSleep wrote:Do we have a keyword for the snow covered landwalks?
If not, is the following snippet a reasonable replacement?
Snow covered swampwalk test:
K:stPumpSelf:Creature:0/0/HIDDEN Unblockable:isPresent Swamp.Snow+YouDontCtrl:Snow covered swampwalk
-slapshot5
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: Card Contributions
by slapshot5 » 23 Feb 2011, 04:00
Ok. The keywords now exist. I added Legions of Lim-Dul as an example. I'll leave you with Rime Dryad and Zombie Musher . I was going to add these the other day anyway.slapshot5 wrote:No there's currently no keyword for it. I'll add one quick and post back.
-slapshot5
-slapshot5
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: Card Contributions
by jhhh » 23 Feb 2011, 19:38
Name:Dregs of Sorrow
ManaCost:X 4 B
Types:Sorcery
Text:no text
A:SP$Destroy | Cost$ X 4 B | TargetMin$ 0 | TargetMax$ MaxTgts | ValidTgts$ Creature.nonBlack | TgtPrompt$ Select target nonBlack creature | SpellDescription$ Destroy X target nonblack creatures. Draw X cards. | SubAbility$ SVar=DB
# It may seem wrong to not use X in the target, but since the Targets are what defines X, it's redundant (and not supported by the code)
SVar:X:Targeted$Amount
SVar:MaxTgts:Count$Valid Creature.nonBlack
SVar:DB:DB$Draw | Defined$ You | NumCards$ X
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://magiccards.info/scans/en/7e/129.jpg
End
- jhhh
- Posts: 58
- Joined: 15 Oct 2010, 23:40
- Has thanked: 0 time
- Been thanked: 0 time
Re: Card Contributions
by jhhh » 23 Feb 2011, 20:09
Name:Decree of Justice
ManaCost:X X 2 W W
Types:Sorcery
Text:no text
K:Cycling:2 W
A:SP$ Token | Cost$ X X 2 W W | TokenAmount$ X | TokenName$ Angel | TokenTypes$ Creature,Angel | TokenOwner$ Controller | TokenColors$ White | TokenPower$ 4 | TokenToughness$ 4 | TokenKeywords$ Flying | SpellDescription$ Put X 4/4 white Angel creature tokens with flying onto the battlefield.
T:Mode$ Cycled | ValidCard$ Card.Self | Execute$ TrigToken | Optional$ True | TriggerDescription$ When you cycle CARDNAME, you may pay X. If you do, put X 1/1 white Soldier creature tokens onto the battlefield.
SVar:TrigToken:AB$ Token | Cost$ X | TokenAmount$ X | TokenName$ Soldier | TokenTypes$ Creature,Soldier | TokenOwner$ Controller | TokenColors$ White | TokenPower$ 1 | TokenToughness$ 1
SVar:X:Count$xPaid
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/decree_of_justice.jpg
SetInfo:SCG|Rare|http://magiccards.info/scans/en/sc/8.jpg
End
- jhhh
- Posts: 58
- Joined: 15 Oct 2010, 23:40
- Has thanked: 0 time
- Been thanked: 0 time
Re: Card Contributions
by ZzzzSleep » 23 Feb 2011, 23:41
Thanks slapshot!slapshot5 wrote:Ok. The keywords now exist. I added Legions of Lim-Dul as an example. I'll leave you with Rime Dryad and Zombie Musher . I was going to add these the other day anyway.slapshot5 wrote:No there's currently no keyword for it. I'll add one quick and post back.
-slapshot5
-slapshot5
- Code: Select all
Name:Zombie Musher
ManaCost:3 B
Types:Snow Creature Zombie
Text:no text
PT:2/3
K:Snow landwalk
A:AB$Regenerate | Cost$ S | SpellDescription$ Regenerate CARDNAME.
SVar:Rarity:Common
End
Name:Rime Dryad
ManaCost:G
Types:Creature Dryad
Text:no text
PT:1/2
K:Snow forestwalk
SVar:Rarity:Common
End
Re: Card Contributions
by slapshot5 » 24 Feb 2011, 00:48
Both added. Thanks!ZzzzSleep wrote:Thanks slapshot!slapshot5 wrote:Ok. The keywords now exist. I added Legions of Lim-Dul as an example. I'll leave you with Rime Dryad and Zombie Musher . I was going to add these the other day anyway.slapshot5 wrote:No there's currently no keyword for it. I'll add one quick and post back.
-slapshot5
-slapshot5
- Code: Select all
Name:Zombie Musher
ManaCost:3 B
Types:Snow Creature Zombie
Text:no text
PT:2/3
K:Snow landwalk
A:AB$Regenerate | Cost$ S | SpellDescription$ Regenerate CARDNAME.
SVar:Rarity:Common
End
Name:Rime Dryad
ManaCost:G
Types:Creature Dryad
Text:no text
PT:1/2
K:Snow forestwalk
SVar:Rarity:Common
End
-slapshot5
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: Card Contributions
by ZzzzSleep » 24 Feb 2011, 03:02
More ancient cards...
- Code: Select all
Name:Elvish Scout
ManaCost:G
Types:Creature Elf Scout
Text:no text
PT:1/1
A:AB$Pump | Cost$ G T | ValidTgts$ Creature.attacking+YouCtrl | TgtPrompt$ Select target attacking creature you control | KW$ HIDDEN Prevent all combat damage that would be dealt to and dealt by CARDNAME. | SpellDescription$ Untap target attacking creature you control. Prevent all combat damage that would be dealt to and dealt by that creature this turn. | SubAbility$ UntapTgt
SVar:RemAIDeck:True
SVar:Rarity:Common
End
Name:Gangrenous Zombie
ManaCost:1 B B
Types:Creature Zombie
Text:no text
PT:2/2
A:AB$ DamageAll | Cost$ T Sac<1/CARDNAME> | IsPresent$ Swamp.Snow+YouCtrl | PresentCompare$ EQ0 | ValidCards$ Creature | ValidPlayers$ Each | NumDmg$ 1 | ValidDescription$ each creature and each player. | SpellDescription$ CARDNAME deals 1 damage to each creature and each player. If you control a snow Swamp, Gangrenous Zombies deals 2 damage to each creature and each player instead.
A:AB$ DamageAll | Cost$ T Sac<1/CARDNAME> | IsPresent$ Swamp.Snow+YouCtrl | ValidCards$ Creature | ValidPlayers$ Each | NumDmg$ 2 | ValidDescription$ each creature and each player.
SVar:Rarity:Common
End
Re: Card Contributions
by slapshot5 » 24 Feb 2011, 05:13
Ok. This appears to work fine. I've added it to SVN.jhhh wrote:Name:Dregs of Sorrow
ManaCost:X 4 B
Types:Sorcery
Text:no text
A:SP$Destroy | Cost$ X 4 B | TargetMin$ 0 | TargetMax$ MaxTgts | ValidTgts$ Creature.nonBlack | TgtPrompt$ Select target nonBlack creature | SpellDescription$ Destroy X target nonblack creatures. Draw X cards. | SubAbility$ SVar=DB
# It may seem wrong to not use X in the target, but since the Targets are what defines X, it's redundant (and not supported by the code)
SVar:X:Targeted$Amount
SVar:MaxTgts:Count$Valid Creature.nonBlack
SVar:DB:DB$Draw | Defined$ You | NumCards$ X
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://magiccards.info/scans/en/7e/129.jpg
End
-slapshot5
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: Card Contributions
by slapshot5 » 24 Feb 2011, 05:18
I'm pretty isNotPresent isn't implemented.ZzzzSleep wrote:More ancient cards...My first attempt at Gangrenous Zombie used isNotPresent instead of IsPresent with PresentCompare of EQ0. Is isNotPresent a valid comparison? Vintara Snapper uses it, but it didn't seem to work when I tested that either.
- Code: Select all
Name:Elvish Scout
ManaCost:G
Types:Creature Elf Scout
Text:no text
PT:1/1
A:AB$Pump | Cost$ G T | ValidTgts$ Creature.attacking+YouCtrl | TgtPrompt$ Select target attacking creature you control | KW$ HIDDEN Prevent all combat damage that would be dealt to and dealt by CARDNAME. | SpellDescription$ Untap target attacking creature you control. Prevent all combat damage that would be dealt to and dealt by that creature this turn. | SubAbility$ UntapTgt
SVar:RemAIDeck:True
SVar:Rarity:Common
End
Name:Gangrenous Zombie
ManaCost:1 B B
Types:Creature Zombie
Text:no text
PT:2/2
A:AB$ DamageAll | Cost$ T Sac<1/CARDNAME> | IsPresent$ Swamp.Snow+YouCtrl | PresentCompare$ EQ0 | ValidCards$ Creature | ValidPlayers$ Each | NumDmg$ 1 | ValidDescription$ each creature and each player. | SpellDescription$ CARDNAME deals 1 damage to each creature and each player. If you control a snow Swamp, Gangrenous Zombies deals 2 damage to each creature and each player instead.
A:AB$ DamageAll | Cost$ T Sac<1/CARDNAME> | IsPresent$ Swamp.Snow+YouCtrl | ValidCards$ Creature | ValidPlayers$ Each | NumDmg$ 2 | ValidDescription$ each creature and each player.
SVar:Rarity:Common
End
Re: Elvish Scout - The ability ordering is backwards. It should had AB$ Untap with DB$ Pump. Take a look at Foxfire .
-slapshot5
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: Card Contributions
by Zirbert » 24 Feb 2011, 05:58
I love ancient cards. Bring 'em on, the ancienter the better!ZzzzSleep wrote:More ancient cards...My first attempt at Gangrenous Zombie used isNotPresent instead of IsPresent with PresentCompare of EQ0.
- Code: Select all
Name:Gangrenous Zombie
ManaCost:1 B B
Types:Creature Zombie
Text:no text
PT:2/2
A:AB$ DamageAll | Cost$ T Sac<1/CARDNAME> | IsPresent$ Swamp.Snow+YouCtrl | PresentCompare$ EQ0 | ValidCards$ Creature | ValidPlayers$ Each | NumDmg$ 1 | ValidDescription$ each creature and each player. | SpellDescription$ CARDNAME deals 1 damage to each creature and each player. If you control a snow Swamp, Gangrenous Zombies deals 2 damage to each creature and each player instead.
A:AB$ DamageAll | Cost$ T Sac<1/CARDNAME> | IsPresent$ Swamp.Snow+YouCtrl | ValidCards$ Creature | ValidPlayers$ Each | NumDmg$ 2 | ValidDescription$ each creature and each player.
SVar:Rarity:Common
End
Watch out for the name of Gangrenous Zombies - it needs the S on the end. Sometimes you put it there, sometimes you didn't. It's missing from the first line of the card script.
Re: Card Contributions
by Zirbert » 24 Feb 2011, 06:01
Sol did something neat as a workaround for isNotPresent in this post, when I was working on Kookus. Could be worth checking out:slapshot5 wrote:I'm pretty isNotPresent isn't implemented.ZzzzSleep wrote: Is isNotPresent a valid comparison? Vintara Snapper uses it, but it didn't seem to work when I tested that either.
http://www.slightlymagic.net/forum/viewtopic.php?f=52&t=3760&p=53306&hilit=Kookus#p53306
Re: Card Contributions
by ZzzzSleep » 24 Feb 2011, 06:39
Okie dokie! I guess I looked at the wrong card to template this from. I looked at Maze of Ith, which was in my local cardsfolder, while Foxfire was not.slapshot5 wrote:Re: Elvish Scout - The ability ordering is backwards. It should had AB$ Untap with DB$ Pump. Take a look at Foxfire .ZzzzSleep wrote:More ancient cards...
- Code: Select all
Name:Elvish Scout
ManaCost:G
Types:Creature Elf Scout
Text:no text
PT:1/1
A:AB$Pump | Cost$ G T | ValidTgts$ Creature.attacking+YouCtrl | TgtPrompt$ Select target attacking creature you control | KW$ HIDDEN Prevent all combat damage that would be dealt to and dealt by CARDNAME. | SpellDescription$ Untap target attacking creature you control. Prevent all combat damage that would be dealt to and dealt by that creature this turn. | SubAbility$ UntapTgt
SVar:RemAIDeck:True
SVar:Rarity:Common
End
-slapshot5
- Code: Select all
Name:Elvish Scout
ManaCost:G
Types:Creature Elf Scout
Text:no text
PT:1/1
A:AB$Untap | Cost$ G T | ValidTgts$ Creature.attacking+YouCtrl | TgtPrompt$ Select target attacking creature you control | SubAbility$ SVar=DBPump | SpellDescription$ Untap target attacking creature you control. Prevent all combat damage that would be dealt to and dealt by that creature this turn.
SVar:DBPump:DB$Pump | Cost$ 0 | Defined$ Targeted | KW$ HIDDEN Prevent all combat damage that would be dealt to and dealt by CARDNAME.
SVar:RemAIDeck:True
SVar:Rarity:Common
End
Name:Maze of Ith
ManaCost:no cost
Types:Land
Text:no text
A:AB$Untap | Cost$ T | ValidTgts$ Creature.attacking | TgtPrompt$ Select target attacking creature | SubAbility$ SVar=DBPump | SpellDescription$ Untap target attacking creature. Prevent all combat damage that would be dealt to and dealt by that creature this turn.
SVar:DBPump:DB$Pump | Cost$ 0 | Defined$ Targeted | KW$ HIDDEN Prevent all combat damage that would be dealt to and dealt by CARDNAME.
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/maze_of_ith.jpg
SetInfo:DRK|Uncommon|http://magiccards.info/scans/en/dk/114.jpg
End
Who is online
Users browsing this forum: No registered users and 24 guests