It is currently 18 Sep 2025, 14:28
   
Text Size

Card Contributions

Post MTG Forge Related Programming Questions Here

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

Re: Card Contributions

Postby jeffwadsworth » 22 Feb 2011, 20:19

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.
Awesome. Man, I could have used this in the past.
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

Postby friarsol » 22 Feb 2011, 20:31

jeffwadsworth wrote:Awesome. Man, I could have used this in the past.
The hard part will be removing cards from the Wiki that are finished.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Card Contributions

Postby 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
ZzzzSleep
 
Posts: 182
Joined: 29 Oct 2010, 02:19
Has thanked: 18 times
Been thanked: 18 times

Re: Card Contributions

Postby slapshot5 » 23 Feb 2011, 03:49

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
No there's currently no keyword for it. I'll add one quick and post back.

-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

Postby slapshot5 » 23 Feb 2011, 04:00

slapshot5 wrote:No there's currently no keyword for it. I'll add one quick and post back.

-slapshot5
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
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

Postby 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

Postby 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

Postby ZzzzSleep » 23 Feb 2011, 23:41

slapshot5 wrote:
slapshot5 wrote:No there's currently no keyword for it. I'll add one quick and post back.

-slapshot5
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
Thanks slapshot!

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
ZzzzSleep
 
Posts: 182
Joined: 29 Oct 2010, 02:19
Has thanked: 18 times
Been thanked: 18 times

Re: Card Contributions

Postby slapshot5 » 24 Feb 2011, 00:48

ZzzzSleep wrote:
slapshot5 wrote:
slapshot5 wrote:No there's currently no keyword for it. I'll add one quick and post back.

-slapshot5
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
Thanks slapshot!

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
Both added. Thanks!

-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

Postby 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
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.
ZzzzSleep
 
Posts: 182
Joined: 29 Oct 2010, 02:19
Has thanked: 18 times
Been thanked: 18 times

Re: Card Contributions

Postby slapshot5 » 24 Feb 2011, 05:13

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
Ok. This appears to work fine. I've added it to SVN.

-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

Postby slapshot5 » 24 Feb 2011, 05:18

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

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
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.
I'm pretty isNotPresent isn't implemented.

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

Postby Zirbert » 24 Feb 2011, 05:58

ZzzzSleep wrote:More ancient cards...
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
My first attempt at Gangrenous Zombie used isNotPresent instead of IsPresent with PresentCompare of EQ0.
I love ancient cards. Bring 'em on, the ancienter the better!

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.
Zirbert
 
Posts: 512
Joined: 13 Oct 2010, 16:04
Has thanked: 104 times
Been thanked: 19 times

Re: Card Contributions

Postby Zirbert » 24 Feb 2011, 06:01

slapshot5 wrote:
ZzzzSleep wrote: Is isNotPresent a valid comparison? Vintara Snapper uses it, but it didn't seem to work when I tested that either.
I'm pretty isNotPresent isn't implemented.
Sol did something neat as a workaround for isNotPresent in this post, when I was working on Kookus. Could be worth checking out:

http://www.slightlymagic.net/forum/viewtopic.php?f=52&t=3760&p=53306&hilit=Kookus#p53306
Zirbert
 
Posts: 512
Joined: 13 Oct 2010, 16:04
Has thanked: 104 times
Been thanked: 19 times

Re: Card Contributions

Postby ZzzzSleep » 24 Feb 2011, 06:39

slapshot5 wrote:
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
Re: Elvish Scout - The ability ordering is backwards. It should had AB$ Untap with DB$ Pump. Take a look at Foxfire .

-slapshot5
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.

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
I've reworked both Elvish Scout and Maze of Ith. In my testing (with 28 Jan 2011 version), if I used Maze of Ith or Elvish Scout on a blocked creature with trample (a groundbreaker, for example) I still had to assign trample damage, even though it wasn't applied.
ZzzzSleep
 
Posts: 182
Joined: 29 Oct 2010, 02:19
Has thanked: 18 times
Been thanked: 18 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 33 guests

Main Menu

User Menu

Our Partners


Who is online

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

Login Form