It is currently 10 Jun 2025, 06:13
   
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 Hellfish » 05 Feb 2011, 11:01

Anybody know of a card that creates token(s) with triggered abilities?
EDIT: Copy tokens and Precursor Golem won't work, unfortunately.
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
User avatar
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 Development Questions

Postby Jaedayr » 05 Feb 2011, 18:17

Hellfish wrote:Anybody know of a card that creates token(s) with triggered abilities?
EDIT: Copy tokens and Precursor Golem won't work, unfortunately.
It isn't implemented yet but what about Dance of Many?
Jaedayr
Tester
 
Posts: 523
Joined: 08 Jul 2010, 00:06
Has thanked: 16 times
Been thanked: 13 times

Re: Card Development Questions

Postby friarsol » 05 Feb 2011, 18:20

Jaedayr wrote:It isn't implemented yet but what about Dance of Many?
We really need an AF_Copy before we should be doing that (or any other copy type of card). I notice a lot of bugs when using the few we have in the game. And it's quite bothersome.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Card Development Questions

Postby Hellfish » 05 Feb 2011, 19:07

Dance of Many creates copy tokens, so that's way off in the future. I was asking in order to find a test case for AF_Token's ability/trigger & SVar granting. I have combed gatherer without finding any so I guess we'll cross this bridge when it gets built.
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
User avatar
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 Development Questions

Postby PhoenixAvenger » 05 Feb 2011, 22:24

On a different subject, would this be considered an acceptable way of scripting the Graft keyword from Dissension?

Code: Select all
K:etbCounter:P1P1:N (N being the number of the Graft N on the card)
T:Mode$ ChangesZone | ValidCard$ Creature.Other | Origin$ Any | Destination$ Battlefield | TriggerZones$ Battlefield | Execute$ TrigGraft | Optional$ True | TriggerDescription$ Graft (Whenever another creature enters the battlefield, you may move a +1/+1 counter from this creature onto it.)
SVar:TrigGraft:AB$PutCounter | Cost$ SubCounter<1/P1P1> | Defined$ Triggered | CounterType$ P1P1 | CounterNum$ 1
The fact that the removal of the counter is a cost here bugs me, but I can't think of any other way to make it work (unless Defined$Triggered works with SubAbilities, which I doubt it does). Also, is there any way to hide the etbCounter's description so as to keep the text as close to Oracle as possible? HIDDEN doesn't work since it's a complex keyword... any tips here?
User avatar
PhoenixAvenger
 
Posts: 62
Joined: 31 Aug 2010, 23:34
Location: NorCal
Has thanked: 0 time
Been thanked: 0 time

Re: Card Development Questions

Postby jeffwadsworth » 06 Feb 2011, 21:23

I believe Flesh Reaver needs extra code to script.

On another note, I was testing Imaginary Pet and the computer nabbed it with a Treachery. Does the trigger work for the owner or the controller? It currently triggers for the owner.
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 SoulStorm » 06 Feb 2011, 22:54

I'm having difficulty implementing Psionic Sliver. The tap to deal 2 damage works for all slivers, but the 3 damage to self only works for the Psionic Sliver. I'm assuming it's because the Svar=DB1 isn't defined by the PumpAll keyword, but I don't know how to fix that except by putting SVar:DB1:DB$DealDamage | NumDmg$ 3 | Defined$ Self on every sliver card. :mrgreen: Any suggestions?

Name:Psionic Sliver
ManaCost:4 U
Types:Creature Sliver
Text:no text
PT:2/2
K:stPumpAll:Sliver:0/0/SVar=Damage:no Condition:All Sliver creatues have "tap: This creature deals 2 damage to target creature or player and 3 damage to itself."
SVar:Damage:AB$DealDamage | Cost$ T | Tgt$ CP | NumDmg$ 2 | SubAbility$ SVar=DB1 | SpellDescription$ This creature deals 2 damage to target creature or player and 3 damage to itself.
SVar:DB1:DB$DealDamage | NumDmg$ 3 | Defined$ Self
SVar:BuffedBy:Sliver
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/psionic_sliver.jpg
End
SoulStorm
 
Posts: 423
Joined: 24 Jun 2010, 22:48
Has thanked: 16 times
Been thanked: 11 times

Re: Card Development Questions

Postby friarsol » 06 Feb 2011, 23:10

SoulStorm wrote:I'm having difficulty implementing Psionic Sliver. The tap to deal 2 damage works for all slivers, but the 3 damage to self only works for the Psionic Sliver. I'm assuming it's because the Svar=DB1 isn't defined by the PumpAll keyword, but I don't know how to fix that except by putting SVar:DB1:DB$DealDamage | NumDmg$ 3 | Defined$ Self on every sliver card. :mrgreen: Any suggestions?
Did you check out Magma Sliver? It looks like it does something similar to what you are trying to do.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Card Development Questions

Postby SoulStorm » 06 Feb 2011, 23:14

I'll take a look and let you know how it goes. Thanks!
SoulStorm
 
Posts: 423
Joined: 24 Jun 2010, 22:48
Has thanked: 16 times
Been thanked: 11 times

Re: Card Development Questions

Postby SoulStorm » 06 Feb 2011, 23:38

I added the Svar=DB1 to the PumpALL keyword but it still doesn't work, and I didn't see anything else that would help. Though it's likely the answer is there, I'm not seeing it. :-k

Name:Psionic Sliver
ManaCost:4 U
Types:Creature Sliver
Text:no text
PT:2/2
K:stPumpAll:Sliver:0/0/SVar=Damage & Svar=DB1:no Condition:All Sliver creatues have "tap: This creature deals 2 damage to target creature or player and 3 damage to itself."
SVar:Damage:AB$DealDamage | Cost$ T | Tgt$ CP | NumDmg$ 2 | SubAbility$ SVar=DB1 | SpellDescription$ This creature deals 2 damage to target creature or player and 3 damage to itself.
SVar:DB1:DB$DealDamage | NumDmg$ 3 | Defined$ Self
SVar:BuffedBy:Sliver
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/psionic_sliver.jpg
End
SoulStorm
 
Posts: 423
Joined: 24 Jun 2010, 22:48
Has thanked: 16 times
Been thanked: 11 times

Re: Card Development Questions

Postby lazylockie » 07 Feb 2011, 00:01

SoulStorm wrote:I added the Svar=DB1 to the PumpALL keyword but it still doesn't work, and I didn't see anything else that would help. Though it's likely the answer is there, I'm not seeing it. :-k

Name:Psionic Sliver
ManaCost:4 U
Types:Creature Sliver
Text:no text
PT:2/2
K:stPumpAll:Sliver:0/0/SVar=Damage & Svar=DB1:no Condition:All Sliver creatues have "tap: This creature deals 2 damage to target creature or player and 3 damage to itself."
SVar:Damage:AB$DealDamage | Cost$ T | Tgt$ CP | NumDmg$ 2 | SubAbility$ SVar=DB1 | SpellDescription$ This creature deals 2 damage to target creature or player and 3 damage to itself.
SVar:DB1:DB$DealDamage | NumDmg$ 3 | Defined$ Self
SVar:BuffedBy:Sliver
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/psionic_sliver.jpg
End
SS, did you try this one? I can't test right now, but the code comes from Reckless Embermage

Code: Select all
Name:Psionic Sliver
ManaCost:4 U
Types:Creature Sliver
Text:no text
PT:2/2
K:stPumpAll:Sliver:0/0/SVar=Damage:no Condition:All Sliver creatues have "tap: This creature deals 2 damage to target creature or player and 3 damage to itself."
SVar:Damage:AB$DealDamage | Cost$ T | Tgt$ CP | NumDmg$ 2 | SubAbility$ DamageSelf/3 | SpellDescription$ This creature deals 2 damage to target creature or player and 3 damage to itself.
SVar:BuffedBy:Sliver
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/psionic_sliver.jpg
End
lazylockie
 
Posts: 508
Joined: 13 Jul 2010, 22:44
Has thanked: 74 times
Been thanked: 15 times

Re: Card Development Questions

Postby SoulStorm » 07 Feb 2011, 00:09

I'll give it a try and let you know. Thanks Lazylockie!
SoulStorm
 
Posts: 423
Joined: 24 Jun 2010, 22:48
Has thanked: 16 times
Been thanked: 11 times

Re: Card Development Questions

Postby SoulStorm » 07 Feb 2011, 00:28

Works perfectly, thanks Lazylockie!
SoulStorm
 
Posts: 423
Joined: 24 Jun 2010, 22:48
Has thanked: 16 times
Been thanked: 11 times

Re: Card Development Questions

Postby Chris H. » 07 Feb 2011, 00:53

Thanks guys. According to my list we already have 366 new cards for the next version. :D
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 SoulStorm » 07 Feb 2011, 01:42

Wow! The pace of development has been astounding!
SoulStorm
 
Posts: 423
Joined: 24 Jun 2010, 22:48
Has thanked: 16 times
Been thanked: 11 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 7 guests

cron

Who is online

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

Login Form