Card Contributions
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: Card Contributions
by ArsenalNut » 29 Jul 2011, 14:20
If fixed the cards in the original post. I am working through the missing cards in the Future Sight set. I have notes on why certain cards in the set are not currently script-able. I also have notes for the Morningtide set. Is it worth while to post them somewhere? If so, where?Sloth wrote:They all look good. Little corrctions:
1. Riddle of Lightning needs RemAIDeck.
2. Steamflogger Boss is missing YouCtrl in the Affected parameter and doesn't need SVar:RemRandomDeck:True (it's better than Hill Giant).
So many cards, so little time
-
ArsenalNut - Posts: 512
- Joined: 08 Jul 2011, 03:49
- Has thanked: 27 times
- Been thanked: 121 times
Re: Card Contributions
by friarsol » 29 Jul 2011, 14:23
http://www.slightlymagic.net/wiki/Forge ... quite_workArsenalNut wrote:I have notes on why certain cards in the set are not currently script-able. I also have notes for the Morningtide set. Is it worth while to post them somewhere? If so, where?
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Card Contributions
by friarsol » 30 Jul 2011, 22:40
If anyone is looking for some cards to do I just scripted up Endoskeleton (using some special sauce) which can be used as a structure for most of these cards: http://magiccards.info/query?q=o%3Achoo ... rd&s=cname
- Code: Select all
Name:Endoskeleton
ManaCost:2
Types:Artifact
Text:no text
K:You may choose not to untap CARDNAME during your untap step.
A:AB$ Pump | Cost$ 2 T | ValidTgts$ Creature | RememberTargets$ True | SpellDescription$ Target creature gets +0/+3 for as long as Endoskeleton remains tapped.
# Need to Remember the Target up there, so the Static ability here can pump it.
S:Mode$ Continuous | Affected$ Creature.IsRemembered | AddToughness$ 3
# And here's the special sauce
T:Mode$ Untaps | ValidCard$ Card.Self | TriggerZones$ Battlefield | Execute$ TrigClearRemember | Static$ True
SVar:TrigClearRemember:DB$Cleanup | ClearRemembered$ True
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/endoskeleton.jpg
End
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Card Contributions
by jeffwadsworth » 31 Jul 2011, 00:48
*pulls out the BBQ mitts*friarsol wrote:If anyone is looking for some cards to do I just scripted up Endoskeleton (using some special sauce) which can be used as a structure for most of these cards
- 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 Sloth » 01 Aug 2011, 12:25
You still haven't submited these ArsenalNut. (I'm pretty sure that you did commit something already - so you have the possibilty?)ArsenalNut wrote:Here's some card from the Future Sight set
Emblem of the Warmind
- | Open
- Name:Emblem of the Warmind
ManaCost:1 R
Types:Enchantment Aura
Text:no text
K:Enchant creature you control
A:SP$ Attach | Cost$ 1 R | ValidTgts$ Creature.YouCtrl | AILogic$ Pump | TgtPrompt$ Select target you control
S:Mode$ Continuous | Affected$ Creature.YouCtrl| AddKeyword$ Haste | Description$ Creatures you control have haste.
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/emblem_of_the_warmind.jpg
SetInfo:FUT|Uncommon|http://magiccards.info/scans/en/fut/112.jpg
End
Pact of the Titan
- | Open
- Name:Pact of the Titan
ManaCost:0
Types:Instant
Text:no text
K:CARDNAME is red.
A:SP$ Token | Cost$ 0| TokenAmount$ 1 | TokenName$ Giant | TokenTypes$ Creature,Giant | TokenOwner$ You | TokenColors$ Red | TokenPower$ 4 | TokenToughness$ 4 | SubAbility$ SVar=DBDelTrig | SpellDescription$ Put a 4/4 red Giant creature token onto the battlefield. At the beginning of your next upkeep, pay 4 R. If you don't, you lose the game.
SVar:DBDelTrig:DB$DelayedTrigger | Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | Execute$ TrigLoseGame | TriggerDescription$ At the beginning of your next upkeep, pay 4 R. If you don't, you lose the game.
SVar:TrigLoseGame:SP$LosesGame | Cost$ 0 | UnlessCost$ 4 R | UnlessPayer$ You | Defined$ You
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/pact_of_the_titan.jpg
SetInfo:FUT|Rare|http://magiccards.info/scans/en/fut/103.jpg
End
Riddle of Lightning
- | Open
- Name:Riddle of Lightning
ManaCost:3 R R
Types:Instant
Text:no text
A:SP$Scry | Cost$ 3 R R | ScryNum$ 3 | SubAbility$ SVar=DBReveal | SpellDescription$ Choose target creature or player. Scry 3, then reveal the top card of your library. CARDNAME deals damage equal to that card's converted mana cost to that creature or player. (To scry 3, look at the top three cards of your library, then put any number of them on the bottom of your library and the rest on top in any order.)
SVar:DBReveal:DB$ Dig | Cost$ 0 | DigNum$ 1 | Reveal$ True | DestinationZone$ Library | LibraryPosition$ 0 | SubAbility$ SVar=DBDamage
SVar:DBDamage:DB$ DealDamage | Cost$ 0 | Tgt$ TgtCP | NumDmg$ X
SVar:X:Count$TopOfLibraryCMC
SVar:RemAIDeck:True
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/riddle_of_lightning.jpg
SetInfo:FUT|Common|http://magiccards.info/scans/en/fut/105.jpg
End
Saltskitter (What an annoying creature to test!)
- | Open
- Name:Saltskitter
ManaCost:3 W
Types:Creature Wurm
Text:no text
PT:3/4
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Creature.Other |TriggerZones$ Battlefield | Execute$ TrigExile | TriggerDescription$ Whenever another creature enters the battlefield, exile CARDNAME. | Static$ True
SVar:TrigExile:AB$ChangeZone | Cost$ 0 | Defined$ Self | Origin$ Battlefield | Destination$ Exile | SubAbility$ DBDelTrig
SVar:DBDelTrig:DB$DelayedTrigger | Mode$ Phase | Phase$ End of Turn | Execute$ TrigBack | TriggerDescription$ Return CARDNAME to the battlefield under its owner's control at the beginning of the next end step.
SVar:TrigBack:DB$ChangeZone | Cost$ 0 | Defined$ Self | Origin$ Exile | Destination$ Battlefield
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/saltskitter.jpg
SetInfo:FUT|Common|http://magiccards.info/scans/en/fut/14.jpg
End
Steamflogger Boss
- | Open
- Name:Steamflogger Boss
ManaCost:3 R
Types:Creature Goblin Rigger
Text:Other Rigger creatures you control get +1/+0 and have haste.\r\n\r\nIf a Rigger you control would assemble a Contraption, it assembles two Contraptions instead.
#Ruling 5/1/2007 - Contraption is a new artifact type. There are currently no artifacts with this type. And there's no current game meaning of "assemble."
PT:3/3
S:Mode$ Continuous | Affected$ Creature.Other+Rigger+YouCtrl | AddKeyword$ Haste | AddPower$ 1
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/steamflogger_boss.jpg
SetInfo:FUT|Rare|http://magiccards.info/scans/en/fut/121.jpg
End
The second ability is currently meaningless
EDITED :
1. RemAIDeck added to Riddle of Lightning
2. Steamflogger Boss added YouCtrl in the Affected parameter and removed RemRandomDeck
We need more cards.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Card Contributions
by jeffwadsworth » 01 Aug 2011, 15:43
I will have more of those cards that Sol mentioned earlier done soon. My internet service was down during the weekend.
Giant Oyster and Coffin Queen. These are close, but probably not doable in script yet.
Giant Oyster and Coffin Queen. These are close, but probably not doable in script yet.
- 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 ArsenalNut » 01 Aug 2011, 20:48
I was kind of posting them here for peer review since I am still learning the scripting API.Sloth wrote:You still haven't submited these ArsenalNut. (I'm pretty sure that you did commit something already - so you have the possibilty?)
We need more cards.
I was having trouble with my repository yesterday. I'll try to commit them tonight. If I commit a card, should I still post here to let people know?
So many cards, so little time
-
ArsenalNut - Posts: 512
- Joined: 08 Jul 2011, 03:49
- Has thanked: 27 times
- Been thanked: 121 times
Re: Card Contributions
by Sloth » 01 Aug 2011, 21:00
No, I don't think it's necessary. Only if you are suspicious that it might cause problems.ArsenalNut wrote:I was kind of posting them here for peer review since I am still learning the scripting API.
I was having trouble with my repository yesterday. I'll try to commit them tonight. If I commit a card, should I still post here to let people know?
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Card Contributions
by ArsenalNut » 16 Aug 2011, 04:46
I am working my way through the missing Lorwyn cards. I came to Crush Underfoot. At first I thought it couldn't be scripted, then a little inspiration hit me.
Crush Underfoot
Works like a charm!!!
Is it copacetic to implement the card this way? Somehow it feels like cheating
Crush Underfoot
- | Open
- Name:Crush Underfoot
ManaCost:1 R
Types:Tribal Instant Giant
Text:no text
A:SP$ Pump | Cost$ 1 R | ValidTgts$ Giant.YouCtrl | TgtPrompt$ Select Giant you control | NumAtt$ +0 | NumDef$ +0 | SubAbility$ SVar=DBDamage | RememberTargets$ True | SpellDescription$ Choose a Giant creature you control. It deals damage equal to its power to target creature.
SVar:DBDamage:DB$ DealDamage | Cost$ 0 | Tgt$ TgtC | NumDmg$ X
SVar:X:Remembered$CardPower
SVar:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/crush_underfoot.jpg
End
Works like a charm!!!
Is it copacetic to implement the card this way? Somehow it feels like cheating

So many cards, so little time
-
ArsenalNut - Posts: 512
- Joined: 08 Jul 2011, 03:49
- Has thanked: 27 times
- Been thanked: 121 times
Re: Card Contributions
by Hellfish » 16 Aug 2011, 08:31
That is clever. The only problem is that it shouldn't target the giant, i.e. a giant enchanted with Crystallization should still be usable for Crush Underfoot without being exiled.
So now you're
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
-
Hellfish - Programmer
- Posts: 1297
- Joined: 07 Jun 2009, 10:41
- Location: South of the Pumphouse
- Has thanked: 110 times
- Been thanked: 169 times
Re: Card Contributions
by friarsol » 16 Aug 2011, 12:22
It also doesn't seem like the chosen giant is doing the damage. Check out Repentance for how that would happen.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Card Contributions
by ArsenalNut » 16 Aug 2011, 13:37
Tried adding DamageSource$ Remembered to fix, but that causes Forge to crash. Nothing gets added to the Remembered list until the spell resolves but the source is checked before then.friarsol wrote:It also doesn't seem like the chosen giant is doing the damage. Check out Repentance for how that would happen.
I knew there was something I was overlooking. Oh well, I guess that's another one for the not quite scriptable pile.Hellfish wrote:That is clever. The only problem is that it shouldn't target the giant, i.e. a giant enchanted with Crystallization should still be usable for Crush Underfoot without being exiled.
Anyone every thought of putting a place in the code repository for card scripts like this. Some place where they wouldn't get used but other developers could see what you tried.
So many cards, so little time
-
ArsenalNut - Posts: 512
- Joined: 08 Jul 2011, 03:49
- Has thanked: 27 times
- Been thanked: 121 times
Re: Card Contributions
by friarsol » 16 Aug 2011, 13:51
It's on the wiki http://www.slightlymagic.net/wiki/Forge ... quite_work
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Card Contributions
by ArsenalNut » 18 Aug 2011, 14:13
The wiki only has notes on what cards have been tried and why they didn't work. I was thinking more along the lines of capturing the actual card scripts. I have saved off my attempts to didn't quite work outside the project so I can revisit them at a later date.friarsol wrote:It's on the wiki http://www.slightlymagic.net/wiki/Forge ... quite_work
So many cards, so little time
-
ArsenalNut - Posts: 512
- Joined: 08 Jul 2011, 03:49
- Has thanked: 27 times
- Been thanked: 121 times
Re: Card Contributions
by jeffwadsworth » 18 Aug 2011, 16:52
I must have a few hundred of those cases. It doesn't take long to re-script something anyway.ArsenalNut wrote:The wiki only has notes on what cards have been tried and why they didn't work. I was thinking more along the lines of capturing the actual card scripts. I have saved off my attempts to didn't quite work outside the project so I can revisit them at a later date.friarsol wrote:It's on the wiki http://www.slightlymagic.net/wiki/Forge ... quite_work
- jeffwadsworth
- Super Tester Elite
- Posts: 1172
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 70 times
Who is online
Users browsing this forum: No registered users and 19 guests