It is currently 05 Jun 2025, 07:25
   
Text Size

Card Development Questions

Post MTG Forge Related Programming Questions Here

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

Re: Card Development Questions

Postby friarsol » 03 Oct 2011, 11:56

jeffwadsworth wrote:It would be nice if "remembered" was extended to all the AB's.
Which AbilityFactory are you looking for? It's not as simple to do in some based on the underlying structure
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Card Development Questions

Postby jeffwadsworth » 03 Oct 2011, 14:07

friarsol wrote:
jeffwadsworth wrote:It would be nice if "remembered" was extended to all the AB's.
Which AbilityFactory are you looking for? It's not as simple to do in some based on the underlying structure
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.
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

Postby friarsol » 03 Oct 2011, 14:59

jeffwadsworth wrote:
friarsol wrote:
jeffwadsworth wrote:It would be nice if "remembered" was extended to all the AB's.
Which AbilityFactory are you looking for? It's not as simple to do in some based on the underlying structure
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.
Well we should get that resolved so you can script away :)
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Card Development Questions

Postby jeffwadsworth » 03 Oct 2011, 20:05

friarsol wrote:
jeffwadsworth wrote:
friarsol wrote:Well we should get that resolved so you can script away :)
I finally got the bug to reinstall everything. Fixed. Now to add my long lost Revered Unicorn.
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

Postby 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. :D

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.
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 Development Questions

Postby jeffwadsworth » 04 Oct 2011, 17:22

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

Postby Sloth » 04 Oct 2011, 18:11

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?
Did you try "SVar:X:TriggeredCard$CardCounters.AGE"? This should use the last known information of the card.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Card Development Questions

Postby jeffwadsworth » 04 Oct 2011, 20:40

Sloth wrote:
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?
Did you try "SVar:X:TriggeredCard$CardCounters.AGE"? This should use the last known information of the card.
That's got to be it. I have been out of the loop. Thanks.
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

Postby 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

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

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.
Iran
 
Posts: 251
Joined: 11 Jul 2011, 04:36
Has thanked: 61 times
Been thanked: 4 times

Re: Card Development Questions

Postby slapshot5 » 05 Oct 2011, 01:34

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?
This should be able to be done with:

Code: Select all
Creature.blockingSource,Creature.blockedBySource
-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 Development Questions

Postby slapshot5 » 05 Oct 2011, 02:08

Does my math just suck this bad, or doesn't this work like I think it does?

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
Block Johtull Wurm with 3 creatures, it ends up as 8/4 (from 6/6). It should be 2/4.

-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

Postby jeffwadsworth » 05 Oct 2011, 04:00

slapshot5 wrote:Does my math just suck this bad, or doesn't this work like I think it does?

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
Block Johtull Wurm with 3 creatures, it ends up as 8/4 (from 6/6). It should be 2/4.

-slapshto5
Can the code handle /Times.Z? I remember fooling with this guy a while back and never could get it to work.
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

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

Postby slapshot5 » 05 Oct 2011, 04:09

jeffwadsworth wrote:Can the code handle /Times.Z? I remember fooling with this guy a while back and never could get it to work.
Yeah, that's somewhat recent. I used it in Shapeshifter and the Mana Batteries use it.

-slapshot5
slapshot5
Programmer
 
Posts: 1391
Joined: 03 Jan 2010, 17:47
Location: Mac OS X
Has thanked: 25 times
Been thanked: 68 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 41 guests


Who is online

In total there are 41 users online :: 0 registered, 0 hidden and 41 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 41 guests

Login Form