Card Development Questions
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: Card Development Questions
by jeffwadsworth » 14 Oct 2011, 02:29
Testing Kaalia of the Vast.
The creature comes into play tapped, but not attacking.
- | Open
- Name:Kaalia of the Vast
ManaCost:1 W B R
Types:Legendary Creature Human Cleric
Text:no text
PT:2/2
K:Flying
T:Mode$ Attacks | ValidCard$ Card.Self | Execute$ TrigChangeZone | TriggerDescription$ Whenever CARDNAME attacks an opponent, you may put an Angel, Demon, or Dragon creature card from your hand onto the battlefield tapped and attacking that opponent.
SVar:TrigChangeZone:AB$ ChangeZone | Cost$ 0 | Origin$ Hand | Destination$ Battlefield | Hidden$ True | ChangeType$ Creature.Angel+YouCtrl,Creature.Demon+YouCtrl,Creature.Dragon+YouCtrl | ChangeNum$ 1 | Tapped$ True | Attacking$ True
SVar:Rarity:Mythic
SVar:Picture:http://www.wizards.com/global/images/magic/general/kaalia_of_the_vast.jpg
End
The creature comes into play tapped, but not attacking.
- 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 » 14 Oct 2011, 05:08
The Attacking param doesn't work with Hidden$ True.
-slapshot5
-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 » 14 Oct 2011, 14:19
It doesn't work without it, either. Oh well.slapshot5 wrote:The Attacking param doesn't work with Hidden$ True.
-slapshot5
- 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 » 14 Oct 2011, 21:34
Does anybody know what's wrong with Planar Guide? Did it work in the past?
- | Open
- Name:Planar Guide
ManaCost:W
Types:Creature Human Cleric
Text:no text
PT:1/1
A:AB$ ChangeZoneAll | Cost$ 3 W Exile<1/CARDNAME> | ChangeType$ Creature | Origin$ Battlefield | Destination$ Exile | RememberChanged$ True | SubAbility$ DelTrig | SpellDescription$ Exile all creatures. At the beginning of the next end step, return those cards to the battlefield under their owners' control.
SVar:DelTrig:DB$DelayedTrigger | Mode$ Phase | Phase$ End of Turn | Execute$ TrigReturn | TriggerDescription$ Return cards exiled by CARDNAME to the battlefield.
SVar:TrigReturn:AB$ChangeZone | Cost$ 0 | Defined$ Remembered | Origin$ Exile | Destination$ Battlefield | SubAbility$ DBCleanup
SVar:DBCleanup:DB$Cleanup | ClearRemembered$ True
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/planar_guide.jpg
SetInfo:LGN|Rare|http://magiccards.info/scans/en/le/18.jpg
Oracle:{3}{W}, Exile Planar Guide: Exile all creatures. At the beginning of the next end step, return those cards to the battlefield under their owners' control.
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 » 14 Oct 2011, 21:59
I am pretty sure I did that one and it was working. Long time ago though.Sloth wrote:Does anybody know what's wrong with Planar Guide? Did it work in the past?
- | Open
- Name:Planar Guide
ManaCost:W
Types:Creature Human Cleric
Text:no text
PT:1/1
A:AB$ ChangeZoneAll | Cost$ 3 W Exile<1/CARDNAME> | ChangeType$ Creature | Origin$ Battlefield | Destination$ Exile | RememberChanged$ True | SubAbility$ DelTrig | SpellDescription$ Exile all creatures. At the beginning of the next end step, return those cards to the battlefield under their owners' control.
SVar:DelTrig:DB$DelayedTrigger | Mode$ Phase | Phase$ End of Turn | Execute$ TrigReturn | TriggerDescription$ Return cards exiled by CARDNAME to the battlefield.
SVar:TrigReturn:AB$ChangeZone | Cost$ 0 | Defined$ Remembered | Origin$ Exile | Destination$ Battlefield | SubAbility$ DBCleanup
SVar:DBCleanup:DB$Cleanup | ClearRemembered$ True
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/planar_guide.jpg
SetInfo:LGN|Rare|http://magiccards.info/scans/en/le/18.jpg
Oracle:{3}{W}, Exile Planar Guide: Exile all creatures. At the beginning of the next end step, return those cards to the battlefield under their owners' control.
End
Okay, it turns out some clown must have screwed around with the script. Here is a working version of it.
- | Open
- Name:Planar Guide
ManaCost:W
Types:Creature Human Cleric
Text:no text
PT:1/1
A:AB$ ChangeZoneAll | Cost$ 3 W Exile<1/CARDNAME> | ChangeType$ Creature | Origin$ Battlefield | Destination$ Exile | RememberChanged$ True | SubAbility$ DelTrig | SpellDescription$ Exile all creatures. At the beginning of the next end step, return those cards to the battlefield under their owners' control.
SVar:DelTrig:DB$DelayedTrigger | Mode$ Phase | Phase$ End of Turn | Execute$ TrigReturn | TriggerDescription$ Return cards exiled by CARDNAME to the battlefield.
SVar:TrigReturn:AB$ChangeZoneAll | Cost$ 0 | Defined$ Remembered | Origin$ Exile | Destination$ Battlefield | SubAbility$ DBCleanup
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/planar_guide.jpg
SetInfo:LGN|Rare|http://magiccards.info/scans/en/le/18.jpg
Oracle:{3}{W}, Exile Planar Guide: Exile all creatures. At the beginning of the next end step, return those cards to the battlefield under their owners' control.
End
EDIT: I spoke too soon. The first test of this looked fine, but then Instants from the graveyard started being pulled into the battlefield. Very strange.
Last edited by jeffwadsworth on 14 Oct 2011, 22:36, edited 1 time in total.
- 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 » 14 Oct 2011, 22:14
Testing Quest for Ula's Temple. Cool card that begs to be done.
Okay, I need to make the reveal optional if it's a creature. Right now, if Reveal$ True is there, it reveals the card no matter what. Does anyone (I am looking at you Sol) know what can be done here?
- | Open
- Name:Quest for Ula's Temple
ManaCost:U
Types:Enchantment
Text:no text
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | Execute$ TrigDig | TriggerZones$ Battlefield | OptionalDecider$ You | TriggerDescription$ At the beginning of your upkeep, you may look at the top card of your library. If it's a creature card, you may reveal it and put a quest counter on Quest for CARDNAME.
SVar:TrigDig:AB$ Dig | Cost$ 0 | DigNum$ 1 | ChangeNum$ All | ChangeValid$ Creature | Optional$ True | DestinationZone$ Library | LibraryPosition$ 0 | LibraryPosition2$ 0 | RememberChanged$ True | SubAbility$ DBPutCounter
SVar:DBPutCounter:DB$ PutCounter | CounterType$ QUEST | CounterNum$ 1 | Defined$ Self | ConditionDefined$ Remembered | ConditionPresent$ Creature | ConditionCompare$ EQ1 | SubAbility$ DBCleanup
T:Mode$ Phase | Phase$ End of Turn | ValidPlayer$ Each | Execute$ TrigChangeZone | TriggerZones$ Battlefield | IsPresent$ Card.Self+counters_GE3_QUEST | PresentCompare$ EQ1 | TriggerDescription$ At the beginning of each end step, if there are three or more quest counters on Quest for CARDNAME, you may put a Kraken, Leviathan, Octopus, or Serpent creature card from your hand onto the battlefield.
SVar:TrigChangeZone:AB$ ChangeZone | Cost$ 0 | Origin$ Hand | Destination$ Battlefield | ChangeType$ Creature.Kraken,Creature.Leviathan,Creature.Octopus,Creature.Serpent | ChangeNum$ 1 | Hidden$ True
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/quest_for_ulas_temple.jpg
End
Okay, I need to make the reveal optional if it's a creature. Right now, if Reveal$ True is there, it reveals the card no matter what. Does anyone (I am looking at you Sol) know what can be done here?
- 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 » 14 Oct 2011, 22:17
It would be pretty simple to add a RevealValid param. Then if Reveal is True, only reveal those card(s) that match valid.jeffwadsworth wrote:Okay, I need to make the reveal optional if it's a creature. Right now, if Reveal$ True is there, it reveals the card no matter what. Does anyone (I am looking at you Sol) know what can be done here?
-slapshot5
Edit:
Try it with latest SVN. RevealValid$ Creature
No need for Reveal$ 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 » 14 Oct 2011, 22:30
Gracias Senor!slapshot5 wrote:It would be pretty simple to add a RevealValid param. Then if Reveal is True, only reveal those card(s) that match valid.jeffwadsworth wrote:Okay, I need to make the reveal optional if it's a creature. Right now, if Reveal$ True is there, it reveals the card no matter what. Does anyone (I am looking at you Sol) know what can be done here?
-slapshot5
Edit:
Try it with latest SVN. RevealValid$ Creature
No need for Reveal$ True
-slapshot5
- 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 » 15 Oct 2011, 03:47
Re: Prismatic Strandsjeffwadsworth wrote:So it would require something like "RememberColor$ ChosenColor" within the Effect line similar to "RememberCard$ Remembered".
Give it another try with latest SVN. It should work without adding anything to the card.txt
-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 Iran » 15 Oct 2011, 04:12
Exists In this Topic (Card Development Question) many script cards that has some sort of problem and because of this were not added to SVN.
It would be nice if the problems with these cards were solved and then adds them to SVN.
Thanks
It would be nice if the problems with these cards were solved and then adds them to SVN.
Thanks
Re: Card Development Questions
by jeffwadsworth » 15 Oct 2011, 15:40
Slapshot, I tested this script for Prismatic Strands.slapshot5 wrote:Re: Prismatic Strandsjeffwadsworth wrote:So it would require something like "RememberColor$ ChosenColor" within the Effect line similar to "RememberCard$ Remembered".
Give it another try with latest SVN. It should work without adding anything to the card.txt
-slapshot5
- | Open
- Name:Prismatic Strands
ManaCost:2 W
Types:Instant
Text:no text
A:SP$ ChooseColor | Cost$ 2 W | Defined$ You | AILogic$ MostProminentInHumanDeck | SubAbility$ DBEffect
SVar:DBEffect:DB$ Effect | Name$ Prismatic Strands Effect | StaticAbilities$ STPrevent | SpellDescription$ Prevent all damage that sources of the color of your choice would deal this turn.
SVar:STPrevent:Mode$ PreventDamage | Target$ Creature,Player | Source$ Card.ChosenColor | Description$ Prevent all damage that sources of the chosen color would deal this turn.
A:SP$ ChooseColor | Cost$ tapXType<1/Creature.YouCtrl+White+untapped> | Defined$ You | AILogic$ MostProminentInHumanDeck | SubAbility$ DBEffect | Flashback$ True | CostDesc$ Flashback - Tap an untapped white creature you control. | SpellDescription$ (You may cast this card from your graveyard for its flashback cost. Then exile it.)
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/prismatic_strands.jpg
End
I used a Serra Angel and chose white. It still did 4 points to the AI. Do you see any issues with it?
- 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 » 15 Oct 2011, 18:11
No, your script is correct. I introduced a bug with the ChosenColor property when I added support for Scuttlemutt and the like. It's fixed now in SVN. I tested your Prismatic Strands and it works for me now.jeffwadsworth wrote:I used a Serra Angel and chose white. It still did 4 points to the AI. Do you see any issues with it?
-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 » 15 Oct 2011, 19:46
Works perfectly. Thanks.slapshot5 wrote:No, your script is correct. I introduced a bug with the ChosenColor property when I added support for Scuttlemutt and the like. It's fixed now in SVN. I tested your Prismatic Strands and it works for me now.jeffwadsworth wrote:I used a Serra Angel and chose white. It still did 4 points to the AI. Do you see any issues with it?
-slapshot5
- 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 » 16 Oct 2011, 02:44
Trying to script Sisters of the Stone Death.
I found one problem in script =>
1) The Third Ability don't return any creature exiled with Sisters of the Stone Death to battlefied. I'd like to know why. Did I made a mistake?
Thanks
I found one problem in script =>
1) The Third Ability don't return any creature exiled with Sisters of the Stone Death to battlefied. I'd like to know why. Did I made a mistake?
- 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$ MustBlock | Cost$ G | ValidTgts$ Creature | TgtPrompt$ Select target creature | SpellDescription$ Target creature blocks CARDNAME this turn if able.
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 CARDNAME 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
Thanks
Re: Card Development Questions
by friarsol » 16 Oct 2011, 02:55
The third ability isn't targeted, it's defined.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Who is online
Users browsing this forum: No registered users and 28 guests