Card Development Questions
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: Card Development Questions
by jeffwadsworth » 07 Jul 2011, 04:02
Alliances is definitely a great set.
Does anyone see the issue here? This is a conversion to the new StaticAbility for the card Vibrating Sphere.
A creature I control on my turn gets +2/-2 and +0/+0 on the AI's turn with this script.
Does anyone see the issue here? This is a conversion to the new StaticAbility for the card Vibrating Sphere.
- | Open
- Name:Vibrating Sphere
ManaCost:4
Types:Artifact
Text:no text
S:Mode$ Continuous | Affected$ Creature.YouCtrl | AddPower$ 2 | PlayerTurn$ True | Description$ As long as it's your turn, creatures you control get +2/+0.
S:Mode$ Continuous | Affected$ Creature.YouCtrl | AddToughness$ -2 | PlayerTurn$ False | Description$ As long as it's not your turn, creatures you control get -0/-2.
SVar:RemRandomDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/vibrating_sphere.jpg
SetInfo:ICE|Rare|http://magiccards.info/scans/en/ia/320.jpg
End
A creature I control on my turn gets +2/-2 and +0/+0 on the AI's turn with this script.
- 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 » 07 Jul 2011, 04:15
It's probably just checking params.containsKey("PlayerTurn") and taking that as true. Several things do that. Try OpponentTurn$ True.
- 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 » 07 Jul 2011, 04:31
Ok, now try the latest SVN. That OpponentTurn should work now.slapshot5 wrote:It's probably just checking params.containsKey("PlayerTurn") and taking that as true. Several things do that. Try OpponentTurn$ True.
-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
by jeffwadsworth » 07 Jul 2011, 04:36
Excellent. Here is another one: Vedalken Orrery. Vernal Equinox is basically the same deal.
Did the original actually give cards not in play Flash? This one does once they are in play...is there a way to fix this?
Did the original actually give cards not in play Flash? This one does once they are in play...is there a way to fix this?
- | Open
- Name:Vedalken Orrery
ManaCost:4
Types:Artifact
Text:no text
S:Mode$ Continuous | Affected$ Card.nonLand+YouCtrl | AddKeyword$ HIDDEN Flash | Description$ You may cast nonland cards as though they had flash.
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/vedalken_orrery.jpg
SetInfo:5DN|Rare|http://magiccards.info/scans/en/5dn/163.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
by slapshot5 » 07 Jul 2011, 04:52
From what I remember, the original did as you ask. There was logic that "if I'm granting Flash, include the cards in hand, otherwise, just the cards on the battlefield".
This probably just needs an "AffectedZone" param.
-slapshot5
This probably just needs an "AffectedZone" param.
-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
by Sloth » 07 Jul 2011, 10:33
I will add just that. And next is "EffectZone" for Anger and friends.slapshot5 wrote:From what I remember, the original did as you ask. There was logic that "if I'm granting Flash, include the cards in hand, otherwise, just the cards on the battlefield".
This probably just needs an "AffectedZone" param.
-slapshot5
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Card Development Questions
by jeffwadsworth » 07 Jul 2011, 15:30
Thanks. I assume conditionals will be in there eventually for stuff like:
- | Open
- Name:Vampire Nocturnus
ManaCost:1 B B B
Types:Creature Vampire
Text:no text
PT:3/3
K:Play with the top card of your library revealed.
K:stPumpSelf:Permanent:2/1/Flying:TopCardOfLibraryIsBlack:As long as the top card of your library is black, CARDNAME and other Vampire creatures you control get +2/+1 and have flying.
K:stPumpAll:Creature.Vampire+Other+YouCtrl:2/1/Flying:TopCardOfLibraryIsBlack:no text
SVar:PlayMain1:TRUE
SVar:RemRandomDeck:True
SVar:Rarity:Mythic
SVar:Picture:http://www.wizards.com/global/images/magic/general/vampire_nocturnus.jpg
SetInfo:M10|Mythic|http://magiccards.info/scans/en/m10/118.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
by jeffwadsworth » 07 Jul 2011, 20:06
Cards like this may be trickier:
- | Open
- Name:Undergrowth
ManaCost:G
Types:Instant
Text:no text
A:SP$ Fog | Cost$ G | SpellDescription$ Prevent all combat damage that would be dealt this turn.
A:SP$ Effect | Cost$ G 2 R | Name$ Undergrowth Effect | Keywords$ KWPump | SpellDescription$ If its additional cost was paid, CARDNAME doesn't affect combat damage that would be dealt by red creatures.
SVar:KWPump:stPumpAll:Creature.nonRed:0/0/HIDDEN Prevent all combat damage that would be dealt by CARDNAME.:no Condition:Prevent all combat damage this turn except that from red creatures.
SVar:RemAIDeck:True
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/undergrowth.jpg
SetInfo:ALL|Common|http://magiccards.info/scans/en/ai/87.jpg|2
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
by friarsol » 07 Jul 2011, 20:09
Are you saying they are trickier because Effect can't handle having a Static Effect right now?
- 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 » 07 Jul 2011, 20:52
I did not try it...maybe it can. Its placement within an SVar made me question it.friarsol wrote:Are you saying they are trickier because Effect can't handle having a Static Effect right now?
- 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 » 08 Jul 2011, 00:01
We will need Types$ handled...
- | Open
- Name:Stormtide Leviathan
ManaCost:5 U U U
Types:Creature Leviathan
Text:no text
PT:8/8
K:Islandwalk
K:stPumpAll:Land:0/0/Types=Island:No Condition:All lands are Islands in addition to their other types.
K:stPumpAll:Creature.withoutFlying+withoutIslandwalk:0/0/HIDDEN CARDNAME can't attack.:No Condition:Creatures without flying or islandwalk can't attack.
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/stormtide_leviathan.jpg
SetInfo:M11|Rare|http://magiccards.info/scans/en/m11/74.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
by jeffwadsworth » 08 Jul 2011, 04:06
Any ideas on how this can be handled?
Doesn't work as is.
- | Open
- Name:Root Sliver
ManaCost:3 G
Types:Creature Sliver
Text:no text
PT:2/2
K:CARDNAME can't be countered.
S:Mode$ Continuous | Affected$ Card.Sliver | AddKeyword$ HIDDEN CARDNAME can't be countered. | AffectedZone$ Stack | Description$ Sliver spells can't be countered by spells or abilities.
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/root_sliver.jpg
SetInfo:LGN|Uncommon|http://magiccards.info/scans/en/le/137.jpg
End
Doesn't work as is.
- 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 » 08 Jul 2011, 07:18
I implemented this restriction more generally. Mul Daya Channelers can also be converted now.jeffwadsworth wrote:Cards like this may be trickier:
- | Open
- Name:Undergrowth
ManaCost:G
Types:Instant
Text:no text
A:SP$ Fog | Cost$ G | SpellDescription$ Prevent all combat damage that would be dealt this turn.
A:SP$ Effect | Cost$ G 2 R | Name$ Undergrowth Effect | Keywords$ KWPump | SpellDescription$ If its additional cost was paid, CARDNAME doesn't affect combat damage that would be dealt by red creatures.
SVar:KWPump:stPumpAll:Creature.nonRed:0/0/HIDDEN Prevent all combat damage that would be dealt by CARDNAME.:no Condition:Prevent all combat damage this turn except that from red creatures.
SVar:RemAIDeck:True
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/undergrowth.jpg
SetInfo:ALL|Common|http://magiccards.info/scans/en/ai/87.jpg|2
End
This is next on my list.jeffwadsworth wrote:We will need Types$ handled...
- | Open
- Name:Stormtide Leviathan
ManaCost:5 U U U
Types:Creature Leviathan
Text:no text
PT:8/8
K:Islandwalk
K:stPumpAll:Land:0/0/Types=Island:No Condition:All lands are Islands in addition to their other types.
K:stPumpAll:Creature.withoutFlying+withoutIslandwalk:0/0/HIDDEN CARDNAME can't attack.:No Condition:Creatures without flying or islandwalk can't attack.
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/stormtide_leviathan.jpg
SetInfo:M11|Rare|http://magiccards.info/scans/en/m11/74.jpg
End
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Card Development Questions
by jeffwadsworth » 08 Jul 2011, 16:25
This script will put multiple "descriptions" on the affected cards as more come into play...
Ideas?
- | Open
- Name:Mephidross Vampire
ManaCost:4 B B
Types:Creature Vampire
Text:no text
PT:3/4
K:Flying
S:Mode$ Continuous | Affected$ Creature.YouCtrl | AddType$ Vampire | AddTrigger$ TrigPutCounter | AddSVar$ PutCounter | Description$ Each creature you control is a Vampire in addition to its other types and has "Whenever this creature deals damage to a creature, put a +1/+1 counter on this creature."
SVar:TrigPutCounter:Mode$ DamageDone | ValidSource$ Card.Self | ValidTarget$ Creature | Execute$ PutCounter | TriggerDescription$ Whenever this creature deals damage to a creature, put a +1/+1 counter on this creature.
SVar:PutCounter:AB$PutCounter | Cost$ 0 | Defined$ TriggeredSource | CounterType$ P1P1 | CounterNum$ 1
SVar:PlayMain1:TRUE
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/mephidross_vampire.jpg
SetInfo:5DN|Rare|http://magiccards.info/scans/en/5dn/53.jpg
End
Ideas?
- 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 » 08 Jul 2011, 17:12
Fixed!jeffwadsworth wrote:This script will put multiple "descriptions" on the affected cards as more come into play...
- | Open
- Name:Mephidross Vampire
ManaCost:4 B B
Types:Creature Vampire
Text:no text
PT:3/4
K:Flying
S:Mode$ Continuous | Affected$ Creature.YouCtrl | AddType$ Vampire | AddTrigger$ TrigPutCounter | AddSVar$ PutCounter | Description$ Each creature you control is a Vampire in addition to its other types and has "Whenever this creature deals damage to a creature, put a +1/+1 counter on this creature."
SVar:TrigPutCounter:Mode$ DamageDone | ValidSource$ Card.Self | ValidTarget$ Creature | Execute$ PutCounter | TriggerDescription$ Whenever this creature deals damage to a creature, put a +1/+1 counter on this creature.
SVar:PutCounter:AB$PutCounter | Cost$ 0 | Defined$ TriggeredSource | CounterType$ P1P1 | CounterNum$ 1
SVar:PlayMain1:TRUE
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/mephidross_vampire.jpg
SetInfo:5DN|Rare|http://magiccards.info/scans/en/5dn/53.jpg
End
Ideas?
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Who is online
Users browsing this forum: No registered users and 25 guests