Re: Card Development Questions
Other cards that will benefit from Sol's work on targeting are Jilt and Consume Strength.
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 haven't seen one. I don't remember exactly which card I was trying to script probably something with a coin flip. I'll look at my notes when I get home and write more details. I remember the problem with adding a IsTargeted property has to do with the targeted objects being associated with the ability instance and not the host card instance so there's no list to check against in the source card.friarsol wrote:I'll take a look at it, since Target is one of mine. Does an Issue already exist for this?
I was trying to script Incremental Blight that is the same case. Will be need alter the Targeting code?ArsenalNut wrote: Edit: The card I was trying to script was Incremental Growth which needs to target three unique targets.
A:SP$ DealDamage | Cost$ 1 R | ValidTgts$ Creature,Player,Planeswalker | TgtPrompt$ Select target creature or player (2 damage) | NumDmg$ 2 | SubAbility$ SVar=DBDealDamage | SpellDescription$ CARDNAME deals 2 damage to target creature or player and 1 damage to another target creature or player.
SVar:DBDealDamage:DB$ DealDamage | ValidTgts$ Creature,Player,Planeswalker | TgtPrompt$ Select target creature or player (1 damage) | TargetUnique$ True | NumDmg$ 1
Name:Incremental Blight
ManaCost:3 B B
Types:Sorcery
Text:no text
A:SP$ PutCounter | Cost$ 3 B B | ValidTgts$ Creature | TgtPrompt$ Select target creature |
TargetUnique$ True | CounterType$ M1M1 | CounterNum$ 1 | SubAbility$ DBTwoCounters |
SpellDescription$ Put a -1/-1 counter on target creature, two -1/-1 counters on another target creature, and three -1/-1 counters on a third creature.
SVar:DBTwoCounters:DB$ PutCounter | Cost$ 0 | ValidTgts$ Creature |TgtPrompt$ Select another
target creature | TargetUnique$ True | CounterType$ M1M1 | CounterNum$ 2 |SubAbility$ DBThreeCounters
SVar:DBThreeCounters:DB$ PutCounter | Cost$ 0 | ValidTgts$ Creature |TgtPrompt$ Select a third
target creature | TargetUnique$ True | CounterType$ M1M1 | CounterNum$ 3
End I committed Incremental Blight to the code repository. Thank you.Iran wrote:I Make the script for Incremental Blight, almost same script of the Incremental Growth.
- Code: Select all
Name:Incremental Blight
ManaCost:3 B B
Types:Sorcery
Text:no text
A:SP$ PutCounter | Cost$ 3 B B | ValidTgts$ Creature | TgtPrompt$ Select target creature |
TargetUnique$ True | CounterType$ M1M1 | CounterNum$ 1 | SubAbility$ DBTwoCounters |
SpellDescription$ Put a -1/-1 counter on target creature, two -1/-1 counters on another target creature, and three -1/-1 counters on a third creature.
SVar:DBTwoCounters:DB$ PutCounter | Cost$ 0 | ValidTgts$ Creature |TgtPrompt$ Select another
target creature | TargetUnique$ True | CounterType$ M1M1 | CounterNum$ 2 |SubAbility$ DBThreeCounters
SVar:DBThreeCounters:DB$ PutCounter | Cost$ 0 | ValidTgts$ Creature |TgtPrompt$ Select a third
target creature | TargetUnique$ True | CounterType$ M1M1 | CounterNum$ 3
End
Name:Endless Ranks of the Dead
Cost:2 B B
Types:Enchantment
Text:no text
T:Mode$ Phase | Phase$ Upkeep | TriggerZones$ Battlefield | Execute$ TrigToken | TriggerDescription$
At the beginning of your upkeep, put X 2/2 black zombie creature tokens onto the battlefield, where X is half the number of the zombies you control, rounded down.
SVar:TrigToken:AB$Token | Cost$ 0 | TokenImage$ B 2 2 Zombie | TokenAmount$ X | TokenName$ Zombie | TokenTypes$ Creature,Zombie | TokenOwner$ You | TokenPower$ 2 | TokenToughness$ 2 | TokenColors$ Black
SVar:X:Count$Valid Creature.zombie+YouCtrl/HalfDown
End
You'd want the AltCost SVar for this. Look at the script for Bringer of the Black Dawn for an example. I don't think Fist of Suns would currently be doable.Iran wrote:How do works the CostChange:{params} keyword?.Which params this keyword use?. Is possible make a spell you cast cost B G W B U with this keyword?. Is possible to script Fist of Suns with this keyword?
thanks
Please use this topic for Innistrad cards: viewtopic.php?f=52&t=5315Iran wrote:I Make the script for Innistrad card Endless Ranks of the Dead. I'm not sure is 100% correct.
Is possible to script Olivia Voldaren (card of the Innistrad Set) or is not scriptable?
The mechanism of transform in this set (Innistrad) will be dificult to implement in forge.
http://mtgsalvation.com/innistrad-spoiler.html
- Code: Select all
Name:Endless Ranks of the Dead
Cost:2 B B
Types:Enchantment
Text:no text
T:Mode$ Phase | Phase$ Upkeep | TriggerZones$ Battlefield | Execute$ TrigToken | TriggerDescription$
At the beginning of your upkeep, put X 2/2 black zombie creature tokens onto the battlefield, where X is half the number of the zombies you control, rounded down.
SVar:TrigToken:AB$Token | Cost$ 0 | TokenImage$ B 2 2 Zombie | TokenAmount$ X | TokenName$ Zombie | TokenTypes$ Creature,Zombie | TokenOwner$ You | TokenPower$ 2 | TokenToughness$ 2 | TokenColors$ Black
SVar:X:Count$Valid Creature.zombie+YouCtrl/HalfDown
End