It is currently 12 Sep 2025, 15:09
   
Text Size

Innistrad Scripts

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Re: Innistrad Scripts

Postby slapshot5 » 05 Sep 2011, 15:27

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?
Blank/unknown/"?"/whatever. Whatever you think looks best.

-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

Postby Max mtg » 05 Sep 2011, 15:30

slapshot5 wrote:
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?
Blank/unknown/"?"/whatever. Whatever you think looks best.


-slapshot5
Ok, will be there soon
Single class for single responsibility.
Max mtg
Programmer
 
Posts: 1997
Joined: 02 Jul 2011, 14:26
Has thanked: 173 times
Been thanked: 334 times

Re: Innistrad Scripts

Postby Max mtg » 05 Sep 2011, 15:38

10253
Single class for single responsibility.
Max mtg
Programmer
 
Posts: 1997
Joined: 02 Jul 2011, 14:26
Has thanked: 173 times
Been thanked: 334 times

Re: Innistrad Scripts

Postby ArsenalNut » 05 Sep 2011, 18:35

Sloth wrote:
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
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.
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".
So many cards, so little time
User avatar
ArsenalNut
 
Posts: 512
Joined: 08 Jul 2011, 03:49
Has thanked: 27 times
Been thanked: 121 times

Re: Innistrad Scripts

Postby friarsol » 05 Sep 2011, 22:12

Max mtg wrote:
slapshot5 wrote:
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?
Blank/unknown/"?"/whatever. Whatever you think looks best.
Ok, will be there soon
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.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Innistrad Scripts

Postby Iran » 06 Sep 2011, 03:38

Hellfish wrote:Olivia Voldaren is affected by a bug in the GainControl abilityfactory that is currently being looked into.
I think ArsenalNut make changes in GainControl AF. Would this fix the problem of Olivia Voldaren?
Iran
 
Posts: 251
Joined: 11 Jul 2011, 04:36
Has thanked: 61 times
Been thanked: 4 times

Re: Innistrad Scripts

Postby ArsenalNut » 06 Sep 2011, 04:13

Iran wrote:
Hellfish wrote:Olivia Voldaren is affected by a bug in the GainControl abilityfactory that is currently being looked into.
I think ArsenalNut make changes in GainControl AF. Would this fix the problem of Olivia Voldaren?
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.
So many cards, so little time
User avatar
ArsenalNut
 
Posts: 512
Joined: 08 Jul 2011, 03:49
Has thanked: 27 times
Been thanked: 121 times

Re: Innistrad Scripts

Postby ArsenalNut » 06 Sep 2011, 04:35

Some equipment for the Vampire hunter :)

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
User avatar
ArsenalNut
 
Posts: 512
Joined: 08 Jul 2011, 03:49
Has thanked: 27 times
Been thanked: 121 times

Re: Innistrad Scripts

Postby inb63 » 06 Sep 2011, 05:39

A blue/black legend!

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
Is that how cards of this type are supposed to work? Or is there another way?
EDIT:
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.
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.
Last edited by inb63 on 08 Sep 2011, 19:38, edited 1 time in total.
User avatar
inb63
 
Posts: 24
Joined: 03 Sep 2011, 23:28
Has thanked: 5 times
Been thanked: 3 times

Re: Innistrad Scripts

Postby slapshot5 » 06 Sep 2011, 12:29

inb63 wrote: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
Is that how cards of this type are supposed to work? Or is there another way?
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.

-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

Postby ZzzzSleep » 06 Sep 2011, 12:43

Sorry for the delay!
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
ZzzzSleep
 
Posts: 182
Joined: 29 Oct 2010, 02:19
Has thanked: 18 times
Been thanked: 18 times

Re: Innistrad Scripts

Postby Sloth » 06 Sep 2011, 13:59

ArsenalNut wrote:Blazing Torch is a reprint from Odyssey so I am going to go ahead and check it into the repository.
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>.

EDIT: I just realized that we have the properties equipped and Equipped meaning two different things (what a mess).
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Innistrad Scripts

Postby ArsenalNut » 07 Sep 2011, 03:49

Sloth wrote:
ArsenalNut wrote:Blazing Torch is a reprint from Odyssey so I am going to go ahead and check it into the repository.
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>.

EDIT: I just realized that we have the properties equipped and Equipped meaning two different things (what a mess).
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 pretty
So many cards, so little time
User avatar
ArsenalNut
 
Posts: 512
Joined: 08 Jul 2011, 03:49
Has thanked: 27 times
Been thanked: 121 times

Re: Innistrad Scripts

Postby slapshot5 » 07 Sep 2011, 04:21

Here's Kessig Wolf Run, just saw it spoiled on Facebook:

| 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

Postby inb63 » 07 Sep 2011, 04:45

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:
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.
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.
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.
User avatar
inb63
 
Posts: 24
Joined: 03 Sep 2011, 23:28
Has thanked: 5 times
Been thanked: 3 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 34 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 34 users online :: 0 registered, 0 hidden and 34 guests (based on users active over the past 10 minutes)
Most users ever online was 7967 on 09 Sep 2025, 23:08

Users browsing this forum: No registered users and 34 guests

Login Form