Innistrad Scripts
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: Innistrad Scripts
by slapshot5 » 05 Sep 2011, 15:27
Blank/unknown/"?"/whatever. Whatever you think looks best.Max mtg wrote:Deckeditor needs rarity in SetInfo to display them in a list of cards, or would you like just to see blank fields for the cards in development?
-slapshot5
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: Innistrad Scripts
by Max mtg » 05 Sep 2011, 15:30
Ok, will be there soonslapshot5 wrote:Blank/unknown/"?"/whatever. Whatever you think looks best.Max mtg wrote:Deckeditor needs rarity in SetInfo to display them in a list of cards, or would you like just to see blank fields for the cards in development?
-slapshot5
Single class for single responsibility.
- Max mtg
- Programmer
- Posts: 1997
- Joined: 02 Jul 2011, 14:26
- Has thanked: 173 times
- Been thanked: 334 times
- Max mtg
- Programmer
- Posts: 1997
- Joined: 02 Jul 2011, 14:26
- Has thanked: 173 times
- Been thanked: 334 times
Re: Innistrad Scripts
by ArsenalNut » 05 Sep 2011, 18:35
The Phase trigger needs "ValidPlayer$ You" so it only trigger during the controllers upkeep phase. Otherwise it works. Cool when used with "Army of the Damned".Sloth wrote:The script looks good Iran. You have to log yourself in the wiki (Username and Password is the same as for this forum) to edit the page.Iran wrote:I make this script for Endless Ranks of the Dead . I'm not sure this is 100% correct.
How can i claim this card? I could not.
- 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
So many cards, so little time
-
ArsenalNut - Posts: 512
- Joined: 08 Jul 2011, 03:49
- Has thanked: 27 times
- Been thanked: 121 times
Re: Innistrad Scripts
by friarsol » 05 Sep 2011, 22:12
Thanks for getting this fixed up so quickly Max. In general, SetInfo will exist, so it'll only be noticeable in the primary deck editor for the short amount of time cards are missing SetInfo.Max mtg wrote:Ok, will be there soonslapshot5 wrote:Blank/unknown/"?"/whatever. Whatever you think looks best.Max mtg wrote:Deckeditor needs rarity in SetInfo to display them in a list of cards, or would you like just to see blank fields for the cards in development?
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Innistrad Scripts
by Iran » 06 Sep 2011, 03:38
I think ArsenalNut make changes in GainControl AF. Would this fix the problem of Olivia Voldaren?Hellfish wrote:Olivia Voldaren is affected by a bug in the GainControl abilityfactory that is currently being looked into.
Re: Innistrad Scripts
by ArsenalNut » 06 Sep 2011, 04:13
Yes, the rev I checked in fixed the problems with not returning all the controlled permanents. I used Olivia Voldaren as one of my test cases.Iran wrote:I think ArsenalNut make changes in GainControl AF. Would this fix the problem of Olivia Voldaren?Hellfish wrote:Olivia Voldaren is affected by a bug in the GainControl abilityfactory that is currently being looked into.
So many cards, so little time
-
ArsenalNut - Posts: 512
- Joined: 08 Jul 2011, 03:49
- Has thanked: 27 times
- Been thanked: 121 times
Re: Innistrad Scripts
by ArsenalNut » 06 Sep 2011, 04:35
Some equipment for the Vampire hunter 
The AI was not very bright about blocking creatures equipped with Wooden Stake. It blocked my Devout Monk equipped with Wooden Stake with an Arrogant Bloodlord.
Blazing Torch is a reprint from Odyssey so I am going to go ahead and check it into the repository.

- Wooden Stake | Open
- Name:Wooden Stake
ManaCost:2
Types:Artifact Equipment
Text:Equipped creature gets +1/+0.
K:eqPump 1:+1/+0
T:Mode$ Blocks | ValidCard$ Card.AttachedBy | ValidBlocked$ Creature.Vampire | Execute$ TrigDestroyBlocked | TriggerDescription$ Whenever equipped creature blocks or becomes blocked by a Vampire, destroy that creature. It can't be regenerated.
T:Mode$ Blocks | ValidCard$ Creature.Vampire | ValidBlocked$ Card.AttachedBy | Execute$ TrigDestroyBlocker | Secondary$ True | TriggerDescription$ Whenever equipped creature blocks or becomes blocked by a Vampire, destroy that creature. It can't be regenerated.
SVar:TrigDestroyBlocked:AB$Destroy | Cost$ 0 | Defined$ TriggeredAttacker | NoRegen$ True
SVar:TrigDestroyBlocker:AB$Destroy | Cost$ 0 | Defined$ TriggeredBlocker | NoRegen$ True
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/wooden_stake.jpg
End
The AI was not very bright about blocking creatures equipped with Wooden Stake. It blocked my Devout Monk equipped with Wooden Stake with an Arrogant Bloodlord.
Blazing Torch is a reprint from Odyssey so I am going to go ahead and check it into the repository.
So many cards, so little time
-
ArsenalNut - Posts: 512
- Joined: 08 Jul 2011, 03:49
- Has thanked: 27 times
- Been thanked: 121 times
Re: Innistrad Scripts
by inb63 » 06 Sep 2011, 05:39
A blue/black legend!
I didn't know how to script "destroy target creature defending player controls" and instead used
EDIT:
- Grimgrin, Corpse-Born | Open
- Name:Grimgrin, Corpse-Born
ManaCost:3 U B
Types:Legendary Creature Zombie Warrior
Text:no text
PT:5/5
K:CARDNAME enters the battlefield tapped.
K:CARDNAME doesn't untap during your untap step.
A:AB$ Untap | Cost$ Sac<1/Creature.Other> | SubAbility$ SVar=DBPutCounter | SpellDescription$ Untap CARDNAME and put a +1/+1 counter on it.
SVar:DBPutCounter:DB$PutCounter | Cost$ 0 | CounterType$ P1P1 | CounterNum$1
T:Mode$ Attacks | ValidCard$ Card.Self | Execute$ TrigDestroy | TriggerDescription$ Whenever CARDNAME attacks, destroy target creature defending player controls, then put a +1/+1 counter on CARDNAME.
SVar:TrigDestroy:AB$Destroy | Cost$ 0 | ValidTgts$ Creature.YouDontCtrl | TgtPrompt$ Select target creature | SubAbility$ SVar=DBPutCounter
SVar:DBPutCounter:DB$PutCounter | Cost$ 0 | CounterType$ P1P1 | CounterNum$1
SVar:Rarity:Mythic
SVar:Picture:http://www.wizards.com/global/images/magic/general/grimgrin_corpse_born.jpg
End
I didn't know how to script "destroy target creature defending player controls" and instead used
- Code: Select all
SVar:TrigDestroy:AB$Destroy | Cost$ 0 | ValidTgts$ Creature.YouDontCtrl | TgtPrompt$ Select target creature
EDIT:
Seeing I don't even know what the word "commit" means, I probably dont have privileges to do such thing. I'll add this to every post I made with scripts.friarsol wrote:Each individual should commit their claimed scripts once magiccards.info has the spoiler up. If you want to script cards but don't have commit privileges, please mention that in the posting where you add a script, so we can know that someone will need to add them up for you.
Last edited by inb63 on 08 Sep 2011, 19:38, edited 1 time in total.
Re: Innistrad Scripts
by slapshot5 » 06 Sep 2011, 12:29
We have several cards that handle this exactly the way you did. I'm not sure it's perfect, but I think it's acceptable.inb63 wrote:I didn't know how to script "destroy target creature defending player controls" and instead usedIs that how cards of this type are supposed to work? Or is there another way?
- Code: Select all
SVar:TrigDestroy:AB$Destroy | Cost$ 0 | ValidTgts$ Creature.YouDontCtrl | TgtPrompt$ Select target creature
-slapshot5
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: Innistrad Scripts
by ZzzzSleep » 06 Sep 2011, 12:43
Sorry for the delay!
Here's Stormkirk Noble!
Here's Stormkirk Noble!
- "Stormkirk Noble" | Open
- Name:Stormkirk Noble
ManaCost:R
Types:Creature Vampire
Text:CARDNAME can't be blocked Humans.
PT:1/1
K:CantBeBlockedBy Creature.Human
T:Mode$ DamageDone | ValidSource$ Card.Self | ValidTarget$ Opponent | CombatDamage$ True | Execute$ TrigPutCounter | TriggerZones$ Battlefield | TriggerDescription$ Whenever CARDNAME deals combat damage to a player, put a +1/+1 counter on it.
SVar:TrigPutCounter:AB$PutCounter | Cost$ 0 | Defined$ Self | CounterType$ P1P1 | CounterNum$ 1
SVar:Rarity:Rare
End
Re: Innistrad Scripts
by Sloth » 06 Sep 2011, 13:59
The script of Blazing Torch is wrong. Currently it can be sacrificed without being equipped. You can make it work (almost) correctly if Blazing Torch is granting the ability to the equipped creature and the cost of the ability includes Sac<1/Card.Equipped+namedBlazing Torch>.ArsenalNut wrote:Blazing Torch is a reprint from Odyssey so I am going to go ahead and check it into the repository.
EDIT: I just realized that we have the properties equipped and Equipped meaning two different things (what a mess).
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Innistrad Scripts
by ArsenalNut » 07 Sep 2011, 03:49
I checked in a fixed version of Blazing Torch. I used Attached rather than equipped or Equipped. The card works but the text for the sacrifice prompt doesn't look very prettySloth wrote:The script of Blazing Torch is wrong. Currently it can be sacrificed without being equipped. You can make it work (almost) correctly if Blazing Torch is granting the ability to the equipped creature and the cost of the ability includes Sac<1/Card.Equipped+namedBlazing Torch>.ArsenalNut wrote:Blazing Torch is a reprint from Odyssey so I am going to go ahead and check it into the repository.
EDIT: I just realized that we have the properties equipped and Equipped meaning two different things (what a mess).
So many cards, so little time
-
ArsenalNut - Posts: 512
- Joined: 08 Jul 2011, 03:49
- Has thanked: 27 times
- Been thanked: 121 times
Re: Innistrad Scripts
by slapshot5 » 07 Sep 2011, 04:21
Here's Kessig Wolf Run, just saw it spoiled on Facebook:
-slapshot5
- | Open
- Name:Kessig Wolf Run
ManaCost:no cost
Types:Land
Text:no text
A:AB$ Mana | Cost$ T | Produced$ 1 | SpellDescription$ Add 1 to your mana pool.
A:AB$ Pump | Cost$ X R G T | ValidTgts$ Creature | TgtPrompt$ Select target creature | NumAtt$ +X | KW$ Trample | SpellDescription$ Target creature gets +X/+0 and gains trample until end of turn.
SVar:X:Count$xPaid
SVar:RemAIDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/kessig_wolf_run.jpg
End
-slapshot5
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: Innistrad Scripts
by inb63 » 07 Sep 2011, 04:45
Champion of the Parish
EDIT 2:
EDIT 3: Added "SVar:BuffedBy:Human" and "SVar:PlayMain1:TRUE" to Champion of the Parish.
- Champion of the Parish | Open
- Name:Champion of the Parish
ManaCost:W
Types:Creature Human Soldier
Text:no text
PT:1/1
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Human.Other+YouCtrl | TriggerZones$ Battlefield | Execute$ TrigPutCounter | TriggerDescription$ Whenever another Human enters the battlefield under your control, put a +1/+1 counter on CARDNAME.
SVar:TrigPutCounter:AB$PutCounter | Cost$ 0 | CounterType$ P1P1 | CounterNum$ 1
SVar:BuffedBy:Human
SVar:PlayMain1:TRUE
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/champion_of_the_parish.jpg
End
EDIT 2:
Seeing I don't even know what the word "commit" means, I probably dont have privileges to do such thing. I'll add this to every post I made with scripts.friarsol wrote:Each individual should commit their claimed scripts once magiccards.info has the spoiler up. If you want to script cards but don't have commit privileges, please mention that in the posting where you add a script, so we can know that someone will need to add them up for you.
EDIT 3: Added "SVar:BuffedBy:Human" and "SVar:PlayMain1:TRUE" to Champion of the Parish.
Last edited by inb63 on 16 Sep 2011, 12:44, edited 3 times in total.
Who is online
Users browsing this forum: No registered users and 34 guests