Re: Card Development Questions
The last time I tried working on it, I almost had it fixed. I'll try to take a crack at it the next time I get some coding time.
High Quality Resources for Collectible Card Games and Home of the CCGHQ Team
https://www.slightlymagic.net/forum/
https://www.slightlymagic.net/forum/viewtopic.php?f=52&t=3760
I've gotten as far as seeing that the entire spell fizzles because there is no target for the ReturnCreature drawback. For most triggers, targeting happens when it's put on stack, and I don't think that that code checks wether the subabilities need to target. I am not at home right now and cannot verify, but could you try using Hidden$ True (I think that's it, the parameter that specifies that the target be chosen on resolution). It's a long-shot but still.Jaedayr wrote:Hmm, I made the change you suggested and now it does not exile or trigger the drawback. Now what?Hellfish wrote:should be a drawback. i.e
- Code: Select all
SVar:ReturnCreature:AB$ChangeZone | Cost$ 0 | Origin$ Graveyard | Destination$ Hand | TgtPrompt$ Select target creature card in your graveyard | ValidTgts$ Creature.YouCtrl | SpellDescription$ Return target creature card from your graveyard to your hand.
- Code: Select all
SVar:ReturnCreature:DB$ChangeZone | Origin$ Graveyard | Destination$ Hand | TgtPrompt$ Select target creature card in your graveyard | ValidTgts$ Creature.YouCtrl
Name:Lethal Vapors
ManaCost:2 B B
Types:Enchantment
Text:no text
A:AB$ Destroy | Cost$ 0 | Defined$ Self | AnyPlayer$ True | SubAbility$ SVar=DBSkipTurn | SpellDescription$ Destroy CARDNAME. You skip your next turn. Any player may activate this ability.
T:Mode$ ChangesZone | ValidCard$ Creature | Origin$ Any | Destination$ Battlefield | TriggerZones$ Battlefield | Execute$ TrigDestroy | TriggerDescription$ Whenever a creature enters the battlefield, destroy it.
SVar:TrigDestroy:AB$Destroy | Cost$ 0 | Defined$ TriggeredCard
SVar:DBSkipTurn:DB$AddTurn | NumTurns$ 1 | Defined$ You
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/lethal_vapors.jpg
EndName:Overburden
ManaCost:1 U
Types:Enchantment
Text:no text
T:Mode$ ChangeZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Creature.nonToken+YouCtrl | TriggerZones$ Battlefield | Execute$ TrigBounceYou | TriggerDescription$ Whenever a player puts a nontoken creature onto the battlefield, that player returns a land he or she controls to its owner's hand.
T:Mode$ ChangeZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Creature.nonToken+YouDontCtrl | TriggerZones$ Battlefield | Execute$ TrigBounceOpp | Secondary$ True | TriggerDescription$ Whenever a player puts a nontoken creature onto the battlefield, that player returns a land he or she controls to its owner's hand.
SVar:TrigBounceYou:AB$ ChangeZone | Cost$ 0 | Origin$ Battlefield | Destination$ Hand | ValidTgts$ Land.YouCtrl | ChangeNum$ 1 | TgtPrompt$ Select target land | Defined$ You
SVar:TrigBounceOpp:AB$ ChangeZone | Cost$ 0 | Origin$ Battlefield | Destination$ Hand | ChangeType$ Land.YouDontCtrl | ChangeNum$ 1 | Defined$ Opponent | Hidden$ True
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/overburden.jpg
EndName:Daru Spiritualist
ManaCost:1 W
Types:Creature Human Cleric
Text:no text
PT:1/1
T:Mode$ SpellAbilityCast | TargetsValid$ Cleric.YouCtrl | Execute$ TrigPump | TriggerZones$ Battlefield | TriggerDescription$ Whenever a Cleric creature you control becomes the target of a spell or ability, it gets +0/+2 until end of turn.
SVar:TrigPump:AB$Pump | Cost$ 0 | Defined$ TriggeredTarget | NumDef$ +2
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/daru_spiritualist.jpg
EndSpellCast doesn't define the target variable at the moment.jeffwadsworth wrote:Script for Daru Spiritualist:Is there an issue with AB$ Pump and Defined$ TriggerTarget? The trigger goes off by the pump is never executed on the cleric.
- Code: Select all
Name:Daru Spiritualist
ManaCost:1 W
Types:Creature Human Cleric
Text:no text
PT:1/1
T:Mode$ SpellAbilityCast | TargetsValid$ Cleric.YouCtrl | Execute$ TrigPump | TriggerZones$ Battlefield | TriggerDescription$ Whenever a Cleric creature you control becomes the target of a spell or ability, it gets +0/+2 until end of turn.
SVar:TrigPump:AB$Pump | Cost$ 0 | Defined$ TriggeredTarget | NumDef$ +2
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/daru_spiritualist.jpg
End
A:AB$DealDamage | Cost$ Sac<1/Land.countersGE1TRAP> | CostDesc$ Sacrifice a land with a trap counter on it: | ValidTgts$ Creature.attacking+withoutFlying | TgtPrompt$ Select target attacking creature without flying | NumDmg$ 3 | SpellDescription$ CARDNAME deals 3 damage to target attacking creature without flying.
Name:Foil
ManaCost:2 U U
Types:Instant
Text:no text
A:SP$ Counter | Cost$ 2 U U | Type$ Spell | Destination$ Graveyard | SpellDescription$ Counter target spell.
SVar:AltCost:Discard<1/Island> Discard<1/Card>$You may discard an Island card and another card rather than pay CARDNAME's mana cost.
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/foil.jpg
End
An error has occured. You can copy/paste this message or save it to a file.
Please report this, plus what you tried to do, to:
http://www.slightlymagic.net/forum/viewforum.php?f=26
If you don't want to register an account, you can mail it directly to
mtgerror@yahoo.com
Mana_Part : checkMana() error, argument mana is invalid mana, mana - D
Version:
Forge -- official beta: $Date: 2011-01-06 10:34:48 -0600 (Thu, 06 Jan 2011) $, SVN revision: $Revision: 4891 $
OS: Windows 7 Version: 6.1 Architecture: amd64
Java Version: 1.6.0_22 Vendor: Sun Microsystems Inc.
Detailed error trace:
java.lang.RuntimeException: Mana_Part : checkMana() error, argument mana is invalid mana, mana - D
at forge.card.mana.Mana_Part.checkSingleMana(Mana_Part.java:32)
at forge.card.mana.Mana_PartColor.<init>(Mana_PartColor.java:17)
at forge.card.mana.ManaCost.getManaPart(ManaCost.java:293)
at forge.card.mana.ManaCost.split(ManaCost.java:263)
at forge.card.mana.ManaCost.<init>(ManaCost.java:33)
at forge.card.spellability.Cost.changeCost(Cost.java:292)
at forge.card.spellability.Cost_Payment.changeCost(Cost_Payment.java:655)
at forge.GameAction.playSpellAbility(GameAction.java:3216)
at forge.GameAction.playCard(GameAction.java:2712)
at forge.gui.input.Input_PassPriority.selectCard(Input_PassPriority.java:52)
at forge.GuiInput.selectCard(GuiInput.java:49)
at forge.GuiDisplay4$11.mousePressed(GuiDisplay4.java:393)
at java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Name:Powerstone Minefield
ManaCost:2 R W
Types:Enchantment
Text:no text
T:Mode$ Attacks | ValidCard$ Creature | Execute$ TrigDamageAttacker | TriggerZones$ Battlefield | TriggerDescription$ Whenever a creature attacks or blocks, CARDNAME deals 2 damage to it.
T:Mode$ Blocks | ValidCard$ Creature | Execute$ TrigDamageBlocker | Secondary$ True | TriggerZones$ Battlefield | TriggerDescription$ Whenever a creature attacks or blocks, CARDNAME deals 2 damage to it.
SVar:TrigDamageAttacker:AB$DealDamage | Cost$ 0 | Defined$ TriggeredAttacker | NumDmg$ 2
SVar:TrigDamageBlocker:AB$DealDamage | Cost$ 0 | Defined$ TriggeredBlocker | NumDmg$ 2
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/powerstone_minefield.jpg
End