Card Development Questions
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: Card Development Questions
by friarsol » 03 Oct 2011, 11:56
Which AbilityFactory are you looking for? It's not as simple to do in some based on the underlying structurejeffwadsworth wrote:It would be nice if "remembered" was extended to all the AB's.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Card Development Questions
by jeffwadsworth » 03 Oct 2011, 14:07
None in particular. I couldn't use it anyway as I can't get Forge to compile...otherwise your scripting card posts would all be done.friarsol wrote:Which AbilityFactory are you looking for? It's not as simple to do in some based on the underlying structurejeffwadsworth wrote:It would be nice if "remembered" was extended to all the AB's.
- jeffwadsworth
- Super Tester Elite
- Posts: 1172
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 70 times
Re: Card Development Questions
by friarsol » 03 Oct 2011, 14:59
Well we should get that resolved so you can script awayjeffwadsworth wrote:None in particular. I couldn't use it anyway as I can't get Forge to compile...otherwise your scripting card posts would all be done.friarsol wrote:Which AbilityFactory are you looking for? It's not as simple to do in some based on the underlying structurejeffwadsworth wrote:It would be nice if "remembered" was extended to all the AB's.

- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Card Development Questions
by jeffwadsworth » 03 Oct 2011, 20:05
I finally got the bug to reinstall everything. Fixed. Now to add my long lost Revered Unicorn.friarsol wrote:jeffwadsworth wrote:friarsol wrote:Well we should get that resolved so you can script away
- jeffwadsworth
- Super Tester Elite
- Posts: 1172
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 70 times
Re: Card Development Questions
by Chris H. » 04 Oct 2011, 10:58
`jeffwadsworth wrote:I finally got the bug to reinstall everything. Fixed. Now to add my long lost Revered Unicorn.
Great news.

Your request to join the group "Developers – Forge" has been approved but it may take a few hours before you notice that you have commit status.
-
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 Development Questions
by jeffwadsworth » 04 Oct 2011, 17:22
Revered Unicorn.
I do not pay the cumulative upkeep cost. The trigger fires, but no life is gained. Apparently the sacrifice spoils the show. Does anyone know of a workaround?
- | Open
- Name:Revered Unicorn
ManaCost:1 W
Types:Creature Unicorn
Text:no text
PT:2/3
K:Cumulative upkeep:1
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Any | ValidCard$ Card.Self | Execute$ TrigGainLife | TriggerDescription$ When CARDNAME leaves the battlefield, you gain life equal to the number of age counters on it.
SVar:TrigGainLife:AB$GainLife | Cost$ 0 | Defined$ You | LifeAmount$ X
SVar:X:Count$CardCounters.AGE
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/revered_unicorn.jpg
End
I do not pay the cumulative upkeep cost. The trigger fires, but no life is gained. Apparently the sacrifice spoils the show. Does anyone know of a workaround?
- jeffwadsworth
- Super Tester Elite
- Posts: 1172
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 70 times
Re: Card Development Questions
by Sloth » 04 Oct 2011, 18:11
Did you try "SVar:X:TriggeredCard$CardCounters.AGE"? This should use the last known information of the card.jeffwadsworth wrote:Revered Unicorn.
- | Open
- Name:Revered Unicorn
ManaCost:1 W
Types:Creature Unicorn
Text:no text
PT:2/3
K:Cumulative upkeep:1
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Any | ValidCard$ Card.Self | Execute$ TrigGainLife | TriggerDescription$ When CARDNAME leaves the battlefield, you gain life equal to the number of age counters on it.
SVar:TrigGainLife:AB$GainLife | Cost$ 0 | Defined$ You | LifeAmount$ X
SVar:X:Count$CardCounters.AGE
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/revered_unicorn.jpg
End
I do not pay the cumulative upkeep cost. The trigger fires, but no life is gained. Apparently the sacrifice spoils the show. Does anyone know of a workaround?
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Card Development Questions
by jeffwadsworth » 04 Oct 2011, 20:40
That's got to be it. I have been out of the loop. Thanks.Sloth wrote:Did you try "SVar:X:TriggeredCard$CardCounters.AGE"? This should use the last known information of the card.jeffwadsworth wrote:Revered Unicorn.
- | Open
- Name:Revered Unicorn
ManaCost:1 W
Types:Creature Unicorn
Text:no text
PT:2/3
K:Cumulative upkeep:1
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Any | ValidCard$ Card.Self | Execute$ TrigGainLife | TriggerDescription$ When CARDNAME leaves the battlefield, you gain life equal to the number of age counters on it.
SVar:TrigGainLife:AB$GainLife | Cost$ 0 | Defined$ You | LifeAmount$ X
SVar:X:Count$CardCounters.AGE
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/revered_unicorn.jpg
End
I do not pay the cumulative upkeep cost. The trigger fires, but no life is gained. Apparently the sacrifice spoils the show. Does anyone know of a workaround?
- jeffwadsworth
- Super Tester Elite
- Posts: 1172
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 70 times
Re: Card Development Questions
by jeffwadsworth » 04 Oct 2011, 23:03
I did not notice a "comment" section on the SVN. Doesn't the recently added Teferi's Moat need "Affected$ Creature.withoutFlying+ChosenColor+YouDontCtrl"?
- jeffwadsworth
- Super Tester Elite
- Posts: 1172
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 70 times
Re: Card Development Questions
by Iran » 05 Oct 2011, 01:22
Trying to script Sisters of the Stone Death.
I found some problems in script =>
1) The Third Ability don't return any creature exiled (remembered) with Sisters of the Stone Death to battlefied. How to do this? Remembered doesn't work with ValidTgts$ and TgtPrompt$ ?
3) Exists the First ability of this card, but I need a AF that target creature blocks CARDNAME (Sisters of the Stone Death) this turn if able.
Edit: With suggestions of Slapshot5
Thanks
I found some problems in script =>
1) The Third Ability don't return any creature exiled (remembered) with Sisters of the Stone Death to battlefied. How to do this? Remembered doesn't work with ValidTgts$ and TgtPrompt$ ?
3) Exists the First ability of this card, but I need a AF that target creature blocks CARDNAME (Sisters of the Stone Death) this turn if able.
- Sisters of Stone Death | Open
- Name:Sisters of Stone Death
ManaCost:4 B B G G
Types:Legendary Creature Gorgon
Text:no text
PT:7/5
A:AB$ ChangeZone | Cost$ B G | ValidTgts$ Creature.blockingSource,Creature.blockedBySource | TgtPrompt$ Choose target creature blocking or blocked by Sisters of the Stone Death. | Origin$ Battlefield | Destination$ Exile | RememberTargets$ True | SpellDescription$ Exile target creature blocking or blocked by CARDNAME.
A:AB$ ChangeZone | Cost$ 2 B | ValidTgts$ Remembered.Creature | TgtPrompt$ Choose target creature exiled with CARDNAME. | Origin$ Exile | Destination$ Battlefield | ChangeNum$ 1 | GainControl$ True | SpellDescription$ Put a creature card exiled with Sisters of Stone Death onto the battlefield under your control.
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/sisters_of_the_stone_death.jpg
End
Edit: With suggestions of Slapshot5
Thanks
Last edited by Iran on 05 Oct 2011, 03:21, edited 11 times in total.
Re: Card Development Questions
by slapshot5 » 05 Oct 2011, 01:34
This should be able to be done with:Iran wrote:Trying to script Sisters of the Stone Death.
I found some problems in script =>
1) The Second Ability target any creature blocking or blocked by any card, how to do with this ability for it target only creature blocking or blocked by Sisters of the Stone Death?
- Code: Select all
Creature.blockingSource,Creature.blockedBySource
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: Card Development Questions
by slapshot5 » 05 Oct 2011, 02:08
Does my math just suck this bad, or doesn't this work like I think it does?
-slapshto5
- Code: Select all
Name:Johtull Wurm
ManaCost:5 G
Types:Creature Wurm
Text:no text
PT:6/6
T:Mode$ AttackerBlocked | ValidCard$ Card.Self | Execute$ TrigPump | TriggerDescription$ Whenever CARDNAME becomes blocked, it gets -2/-1 until end of turn for each creature blocking it beyond the first.
SVar:TrigPump:AB$Pump | Cost$ 0 | Defined$ Self | NumAtt$ -X | NumDef$ -Y
SVar:X:Number$2/Times.Z
SVar:Z:TriggerCount$NumBlockers/Minus.1
SVar:Y:TriggerCount$NumBlockers/Minus.1
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/johtull_wurm.jpg
End
-slapshto5
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: Card Development Questions
by jeffwadsworth » 05 Oct 2011, 04:00
Can the code handle /Times.Z? I remember fooling with this guy a while back and never could get it to work.slapshot5 wrote:Does my math just suck this bad, or doesn't this work like I think it does?Block Johtull Wurm with 3 creatures, it ends up as 8/4 (from 6/6). It should be 2/4.
- Code: Select all
Name:Johtull Wurm
ManaCost:5 G
Types:Creature Wurm
Text:no text
PT:6/6
T:Mode$ AttackerBlocked | ValidCard$ Card.Self | Execute$ TrigPump | TriggerDescription$ Whenever CARDNAME becomes blocked, it gets -2/-1 until end of turn for each creature blocking it beyond the first.
SVar:TrigPump:AB$Pump | Cost$ 0 | Defined$ Self | NumAtt$ -X | NumDef$ -Y
SVar:X:Number$2/Times.Z
SVar:Z:TriggerCount$NumBlockers/Minus.1
SVar:Y:TriggerCount$NumBlockers/Minus.1
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/johtull_wurm.jpg
End
-slapshto5
- jeffwadsworth
- Super Tester Elite
- Posts: 1172
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 70 times
Re: Card Development Questions
by jeffwadsworth » 05 Oct 2011, 04:03
Rakdos Riteknife
Archery Training
Is there a way to for a permanent to reference its enchantment or equipment? Just checking to see if any progress was made along these lines.
Archery Training
Is there a way to for a permanent to reference its enchantment or equipment? Just checking to see if any progress was made along these lines.
- jeffwadsworth
- Super Tester Elite
- Posts: 1172
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 70 times
Re: Card Development Questions
by slapshot5 » 05 Oct 2011, 04:09
Yeah, that's somewhat recent. I used it in Shapeshifter and the Mana Batteries use it.jeffwadsworth wrote:Can the code handle /Times.Z? I remember fooling with this guy a while back and never could get it to work.
-slapshot5
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Who is online
Users browsing this forum: No registered users and 41 guests