It is currently 13 Jun 2025, 13:24
   
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 » 27 Jan 2011, 03:45

You can't link it? Did you try doing
Code: Select all
A:AB$Pump | Cost$ X | NumAtt$ 0 | NumDef$ -X | ValidTgts$ Creature | TgtPrompt$ Select target creature | SubAbility$ SVar=DBPump | SpellDescription$ Target creature gets -0/-X until end of turn.
SVar:DBPump:DB$Pump | NumAtt$ X | Defined$ Self
SVar:X:Count$xPaid
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Card Development Questions

Postby lazylockie » 27 Jan 2011, 04:34

Thanks sol and jeff. I'm gonna post the full card on Card contributions topic.
lazylockie
 
Posts: 508
Joined: 13 Jul 2010, 22:44
Has thanked: 74 times
Been thanked: 15 times

Re: Card Development Questions

Postby jeffwadsworth » 27 Jan 2011, 04:37

lazylockie wrote:Thanks sol and jeff. I'm gonna post the full card on Card contributions topic.
Hehe, yeah Sol beat me to it. I will post your contribution soon.
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 Jaedayr » 27 Jan 2011, 19:25

r5817

I put together the following but when I tested it with one goblin on the battlefield and attacking, it triggered eight times. Should this work or am I improperly trying to use the trigger? #-o

Code: Select all
Name:Cabal Slaver
ManaCost:2 B
Types:Creature Human Cleric
Text:no text
PT:2/1
T:Mode$ DamageDone | ValidSource$ Card.Goblin | ValidTarget$ Opponent | Execute$ TrigDiscard | TriggerDescription$ Whenever a Goblin deals combat damage to a player, that player discards a card.
SVar:TrigDiscard:AB$Discard | Cost$ 0 | Defined$ Opponent | NumCards$ 1 | Mode$ TgtChoose
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/cabal_slaver.jpg
SetInfo:ONS|Uncommon|http://magiccards.info/scans/en/on/131.jpg
End
Jaedayr
Tester
 
Posts: 523
Joined: 08 Jul 2010, 00:06
Has thanked: 16 times
Been thanked: 13 times

Re: Card Development Questions

Postby friarsol » 27 Jan 2011, 19:54

This seems wrong for a handful of reasons.

The first two are simple: I don't see a TriggerZone (which multiple triggers is a major symptom of) and the other is this is Combat damage so it needs the CombatDamage$ True flag.

Since the Slaver also triggers for when Goblins deals combat damage to you, there needs to be a secondary Trigger that handles when Combat Damage is dealt to you.

Code: Select all
T:Mode$ DamageDone | ValidSource$ Card.Goblin | ValidTarget$ Opponent | TriggerZones$ Battlefield | CombatDamage$ True | Execute$ TrigDiscardOpp | TriggerDescription$ Whenever a Goblin deals combat damage to a player, that player discards a card.
SVar:TrigDiscardOpp:AB$Discard | Cost$ 0 | Defined$ Opponent | NumCards$ 1 | Mode$ TgtChoose

T:Mode$ DamageDone | ValidSource$ Card.Goblin | ValidTarget$ You | TriggerZones$ Battlefield | CombatDamage$ True | Execute$ TrigDiscardYou | Secondary$ True
SVar:TrigDiscardYou:AB$Discard | Cost$ 0 | Defined$ You | NumCards$ 1 | Mode$ TgtChoose
I haven't tested this. So make sure it works. I think it does, but it may need a bit more tweaks.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Card Development Questions

Postby Jaedayr » 27 Jan 2011, 21:11

friarsol wrote:This seems wrong for a handful of reasons.

The first two are simple: I don't see a TriggerZone (which multiple triggers is a major symptom of) and the other is this is Combat damage so it needs the CombatDamage$ True flag.

Since the Slaver also triggers for when Goblins deals combat damage to you, there needs to be a secondary Trigger that handles when Combat Damage is dealt to you.

Thank you Sol! It appears to work when the player uses it as well as when the AI uses it.
Jaedayr
Tester
 
Posts: 523
Joined: 08 Jul 2010, 00:06
Has thanked: 16 times
Been thanked: 13 times

Re: Card Development Questions

Postby lazylockie » 28 Jan 2011, 00:42

Anyone thought about implementing Rebound (Staggershock) using triggers? The template is similar to Arc Blade, suspending with 1 counter after cast. The only problem: is there a variable to tell if the card was cast from hand?
lazylockie
 
Posts: 508
Joined: 13 Jul 2010, 22:44
Has thanked: 74 times
Been thanked: 15 times

Re: Card Development Questions

Postby jeffwadsworth » 28 Jan 2011, 02:47

Hmmm, this card appears to be fine, but it does not work. It allows you to pay the U U, but does not allow you to choose your target permanent(s). The card was scripted by jhhh.

Code: Select all
Name:Reality Spasm
ManaCost:X U U
Types:Instant
Text:no text
A:SP$Tap | Cost$ X U U | TargetMin$ 0 | TargetMax$ X | ValidTgts$ Permanent | TgtPrompt$ Select target permanents | SpellDescription$ Choose one - Tap X target permanents;
A:SP$Untap | Cost$ X U U | TargetMin$ 0 | TargetMax$ X | ValidTgts$ Permanent | TgtPrompt$ Select target permanents | SpellDescription$ or untap X target permanents.
# 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:RemAIDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/reality_spasm.jpg
End
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 » 28 Jan 2011, 03:47

jeffwadsworth wrote:Hmmm, this card appears to be fine, but it does not work. It allows you to pay the U U, but does not allow you to choose your target permanent(s). The card was scripted by jhhh.
Hmmm... Probably has to do with how targeting and payment is handled right now. Hellfish and I will take a look at in the next coding cycle to see if we can streamline things.
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 » 28 Jan 2011, 13:01

Can Blood Clock be done? I'm fine with the upkeep trigger and change zone but I don't know what to do with the unless pays life part. I've only seen an UnlessCost$ for SP$ Counter and that seems to only be used for mana costs.

Also, I've been away for a few weeks, has there been a recent change that would prevent pictures from showing up in game? I have Sangromancer ready to commit. The card works fine. However, I've placed the picture in the pics folder, verified the name in both the pics and the cardsfolder multiple times, but the picture still doesn't show up in game.
SoulStorm
 
Posts: 423
Joined: 24 Jun 2010, 22:48
Has thanked: 16 times
Been thanked: 11 times

Re: Card Development Questions

Postby slapshot5 » 28 Jan 2011, 15:25

SoulStorm wrote:Also, I've been away for a few weeks, has there been a recent change that would prevent pictures from showing up in game? I have Sangromancer ready to commit. The card works fine. However, I've placed the picture in the pics folder, verified the name in both the pics and the cardsfolder multiple times, but the picture still doesn't show up in game.
The Sangromancer pic is available at:
http://www.wizards.com/global/images/magic/general/sangromancer.jpg

However, I think the concensus is to hold off checking in Mirrodin: Besieged stuff until Wizards officially releases it on Feb 4.

-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 SoulStorm » 28 Jan 2011, 15:35

Yeah, I have the picture, it just doesn't show up in game for some reason. Also, didn't know about not adding cards from the new set. Sorry about that. Any particular reason for waiting?
SoulStorm
 
Posts: 423
Joined: 24 Jun 2010, 22:48
Has thanked: 16 times
Been thanked: 11 times

Re: Card Development Questions

Postby friarsol » 28 Jan 2011, 15:46

SoulStorm, cards now require SetInfo before their picture will properly show up in the game.

I just updated the SetInfoScript to handle MBS cards, so the next time it gets run for all the cards it will show up fine.

We were mostly waiting for magiccards.info to have the cards up so this whole problem of not having pictures, and general confusion wouldn't occur. But now that we've already had confusion and the Script is now functional, I don't see any reason to wait now.
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 » 28 Jan 2011, 15:59

LOL, thanks! Hey anytime you need an infusion of chaos just give me a call and I'll see what I can do! :twisted:
SoulStorm
 
Posts: 423
Joined: 24 Jun 2010, 22:48
Has thanked: 16 times
Been thanked: 11 times

Re: Card Development Questions

Postby Chris H. » 28 Jan 2011, 16:12

I am planning to use rev 5853 for this weekend's beta. The following beta can include the new Mirrodin: Besieged cards. :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

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 13 guests


Who is online

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

Login Form