Card Development Questions
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: Card Development Questions
by jeffwadsworth » 08 Jul 2011, 18:40
- 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 » 08 Jul 2011, 19:15
I'm pretty sure that they are not functional with the old keyword. I think I will make a seperate keyword for them like:jeffwadsworth wrote:Thanks. Any word on cards like Root Sliver, Gaea's Herald, Leyline of the Lifeforce?
- Code: Select all
K:Spells can't be countered Creature:Creature spells can't be countered.
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Card Development Questions
by friarsol » 08 Jul 2011, 19:30
There's no way to Statically Grant them to SAs on the Stack?
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Card Development Questions
by Sloth » 08 Jul 2011, 19:54
Yes of course, i will think about a good implementation.friarsol wrote:There's no way to Statically Grant them to SAs on the Stack?
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Card Development Questions
by jeffwadsworth » 09 Jul 2011, 03:08
Do you have a sample card? Hero of Oxid Ridge is another.Sloth wrote:I implemented this restriction more generally. Mul Daya Channelers can also be converted now.jeffwadsworth wrote:Cards like this may be trickier:
- | Open
- Name:Undergrowth
ManaCost:G
Types:Instant
Text:no text
A:SP$ Fog | Cost$ G | SpellDescription$ Prevent all combat damage that would be dealt this turn.
A:SP$ Effect | Cost$ G 2 R | Name$ Undergrowth Effect | Keywords$ KWPump | SpellDescription$ If its additional cost was paid, CARDNAME doesn't affect combat damage that would be dealt by red creatures.
SVar:KWPump:stPumpAll:Creature.nonRed:0/0/HIDDEN Prevent all combat damage that would be dealt by CARDNAME.:no Condition:Prevent all combat damage this turn except that from red creatures.
SVar:RemAIDeck:True
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/undergrowth.jpg
SetInfo:ALL|Common|http://magiccards.info/scans/en/ai/87.jpg|2
End
- 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 » 09 Jul 2011, 08:24
Urgh, wrong quote. Mul Daya Channelers should mimic Vampire Nocturnus.jeffwadsworth wrote:Do you have a sample card? Hero of Oxid Ridge is another.Sloth wrote:I implemented this restriction more generally. Mul Daya Channelers can also be converted now.jeffwadsworth wrote:Cards like this may be trickier:
- | Open
- Name:Undergrowth
ManaCost:G
Types:Instant
Text:no text
A:SP$ Fog | Cost$ G | SpellDescription$ Prevent all combat damage that would be dealt this turn.
A:SP$ Effect | Cost$ G 2 R | Name$ Undergrowth Effect | Keywords$ KWPump | SpellDescription$ If its additional cost was paid, CARDNAME doesn't affect combat damage that would be dealt by red creatures.
SVar:KWPump:stPumpAll:Creature.nonRed:0/0/HIDDEN Prevent all combat damage that would be dealt by CARDNAME.:no Condition:Prevent all combat damage this turn except that from red creatures.
SVar:RemAIDeck:True
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/undergrowth.jpg
SetInfo:ALL|Common|http://magiccards.info/scans/en/ai/87.jpg|2
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 » 09 Jul 2011, 13:29
Myr Incubator script
The card works, but the description on the stack is nutball. Is there a way to give an altenate stack description here?
- | Open
- Name:Myr Incubator
ManaCost:6
Types:Artifact
Text:no text
A:AB$ ChangeZone | Cost$ 6 Sac<1/CARDNAME> | Origin$ Library | Destination$ Exile | ChangeType$ Artifact | ChangeNum$ X | RememberChanged$ True | ForgetOtherRemembered$ True | Shuffle$ True | SubAbility$ Token | SpellDescription$ Search your library for any number of artifact cards, exile them, then put that many 1/1 colorless Myr artifact creature tokens onto the battlefield. Then shuffle your library.
SVar:Token:DB$Token | TokenAmount$ Y | TokenName$ Myr | TokenTypes$ Artifact,Creature,Myr | TokenOwner$ You | TokenColors$ Colorless | TokenPower$ 1 | TokenToughness$ 1 | SubAbility$ DBCleanup
SVar:DBCleanup:DB$Cleanup | ClearRemembered$ True
SVar:X:Count$InYourLibrary.Artifact
SVar:Y:Remembered$Amount
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/myr_incubator.jpg
End
The card works, but the description on the stack is nutball. Is there a way to give an altenate stack description 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 jeffwadsworth » 09 Jul 2011, 15:24
Puresteel Paladin:
Would something like this require an overwrite similar to what Animate does?
- | Open
- Name:Puresteel Paladin
ManaCost:W W
Types:Creature Human Knight
Text:no text
PT:2/2
T:Mode$ ChangesZone | ValidCard$ Equipment | Origin$ Any | Destination$ Battlefield | Execute$ TrigDraw | TriggerZones$ Battlefield | TriggerDescription$ Whenever an Equipment enters the battlefield under your control, you may draw a card.
SVar:TrigDraw:AB$Draw | Cost$ 0 | NumCards$ 1
S:Mode$ Continuous | Affected$ Equipment.YouCtrl | AddKeyword$ Equip 0 | Metalcraft$ True | Description$ Equipment you control have equip 0 as long as you control three or more artifacts.
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/puresteel_paladin.jpg
End
Would something like this require an overwrite similar to what Animate does?
- 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 friarsol » 09 Jul 2011, 15:30
It doesn't overwrite the existing Equip ability, just grants a new Equip ability (that's free)
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Card Development Questions
by jeffwadsworth » 09 Jul 2011, 15:45
Here is the script for Mul Daya Channelers, but I don't want to commit due to code you have in StaticEffects.java.Sloth wrote:Urgh, wrong quote. Mul Daya Channelers should mimic Vampire Nocturnus.
- | Open
- Name:Mul Daya Channelers
ManaCost:1 G G
Types:Creature Elf Druid Shaman
Text:no text
PT:2/2
K:Play with the top card of your library revealed.
S:Mode$ Continuous | Affected$ Card.Self | AddPower$ 3 | AddToughness$ 3 | TopCardOfLibraryIs$ Creature | Description$ As long as the top card of your library is a creature card, CARDNAME gets +3/+3.
S:Mode$ Continuous | Affected$ Card.Self | AddAbility$ WMana & UMana & BMana & RMana & GMana | TopCardOfLibraryIs$ Land | Description$ As long as the top card of your library is a land card, CARDNAME has "Tap: Add two mana of any one color to your mana pool."
SVar:WMana:AB$Mana | Cost$ T | Produced$ W | Amount$ 2 | SpellDescription$ Add W W to your mana pool.
SVar:UMana:AB$Mana | Cost$ T | Produced$ U | Amount$ 2 | SpellDescription$ Add U U to your mana pool.
SVar:BMana:AB$Mana | Cost$ T | Produced$ B | Amount$ 2 | SpellDescription$ Add B B to your mana pool.
SVar:RMana:AB$Mana | Cost$ T | Produced$ R | Amount$ 2 | SpellDescription$ Add R R to your mana pool.
SVar:GMana:AB$Mana | Cost$ T | Produced$ G | Amount$ 2 | SpellDescription$ Add G G to your mana pool.
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/mul_daya_channelers.jpg
SetInfo:ROE|Rare|http://magiccards.info/scans/en/roe/198.jpg
End
- 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 » 09 Jul 2011, 16:21
I didn't create StaticEffects.java. It was used for hardcoded static effects like Mul Daya Channelers. You can just remove everything related to cards you convert to script.jeffwadsworth wrote:Here is the script for Mul Daya Channelers, but I don't want to commit due to code you have in StaticEffects.java.Sloth wrote:Urgh, wrong quote. Mul Daya Channelers should mimic Vampire Nocturnus.
- | Open
- Name:Mul Daya Channelers
ManaCost:1 G G
Types:Creature Elf Druid Shaman
Text:no text
PT:2/2
K:Play with the top card of your library revealed.
S:Mode$ Continuous | Affected$ Card.Self | AddPower$ 3 | AddToughness$ 3 | TopCardOfLibraryIs$ Creature | Description$ As long as the top card of your library is a creature card, CARDNAME gets +3/+3.
S:Mode$ Continuous | Affected$ Card.Self | AddAbility$ WMana & UMana & BMana & RMana & GMana | TopCardOfLibraryIs$ Land | Description$ As long as the top card of your library is a land card, CARDNAME has "Tap: Add two mana of any one color to your mana pool."
SVar:WMana:AB$Mana | Cost$ T | Produced$ W | Amount$ 2 | SpellDescription$ Add W W to your mana pool.
SVar:UMana:AB$Mana | Cost$ T | Produced$ U | Amount$ 2 | SpellDescription$ Add U U to your mana pool.
SVar:BMana:AB$Mana | Cost$ T | Produced$ B | Amount$ 2 | SpellDescription$ Add B B to your mana pool.
SVar:RMana:AB$Mana | Cost$ T | Produced$ R | Amount$ 2 | SpellDescription$ Add R R to your mana pool.
SVar:GMana:AB$Mana | Cost$ T | Produced$ G | Amount$ 2 | SpellDescription$ Add G G to your mana pool.
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/mul_daya_channelers.jpg
SetInfo:ROE|Rare|http://magiccards.info/scans/en/roe/198.jpg
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 » 09 Jul 2011, 18:12
Ok. I know people get cranky when someone starts fooling around with their work. Just checking.Sloth wrote:I didn't create StaticEffects.java. It was used for hardcoded static effects like Mul Daya Channelers. You can just remove everything related to cards you convert to script.jeffwadsworth wrote:Here is the script for Mul Daya Channelers, but I don't want to commit due to code you have in StaticEffects.java.Sloth wrote:Urgh, wrong quote. Mul Daya Channelers should mimic Vampire Nocturnus.
- | Open
- Name:Mul Daya Channelers
ManaCost:1 G G
Types:Creature Elf Druid Shaman
Text:no text
PT:2/2
K:Play with the top card of your library revealed.
S:Mode$ Continuous | Affected$ Card.Self | AddPower$ 3 | AddToughness$ 3 | TopCardOfLibraryIs$ Creature | Description$ As long as the top card of your library is a creature card, CARDNAME gets +3/+3.
S:Mode$ Continuous | Affected$ Card.Self | AddAbility$ WMana & UMana & BMana & RMana & GMana | TopCardOfLibraryIs$ Land | Description$ As long as the top card of your library is a land card, CARDNAME has "Tap: Add two mana of any one color to your mana pool."
SVar:WMana:AB$Mana | Cost$ T | Produced$ W | Amount$ 2 | SpellDescription$ Add W W to your mana pool.
SVar:UMana:AB$Mana | Cost$ T | Produced$ U | Amount$ 2 | SpellDescription$ Add U U to your mana pool.
SVar:BMana:AB$Mana | Cost$ T | Produced$ B | Amount$ 2 | SpellDescription$ Add B B to your mana pool.
SVar:RMana:AB$Mana | Cost$ T | Produced$ R | Amount$ 2 | SpellDescription$ Add R R to your mana pool.
SVar:GMana:AB$Mana | Cost$ T | Produced$ G | Amount$ 2 | SpellDescription$ Add G G to your mana pool.
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/mul_daya_channelers.jpg
SetInfo:ROE|Rare|http://magiccards.info/scans/en/roe/198.jpg
End

- 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 » 09 Jul 2011, 19:47
Kaalia of the Vast.
When a creature is put into the battlefield tapped and attacking, it does not show up in the game info window as attacking. Ideas? Yore-Tiller Nephilim is similar, but uses ValidTgts$ due to it pulling from the graveyard.
- | 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$ TrigChange | TriggerZones$ Battlefield | 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:TrigChange:AB$ChangeZone | Cost$ 0 | Origin$ Hand | Destination$ Battlefield | ChangeType$ Creature.Angel,Creature.Demon,Creature.Dragon | ChangeNum$ 1 | Tapped$ True | Attacking$ True | Hidden$ True
SVar:Rarity:Mythic
SVar:Picture:http://media.wizards.com/images/magic/tcg/products/cmd/ahptptzayc_en.jpg
End
When a creature is put into the battlefield tapped and attacking, it does not show up in the game info window as attacking. Ideas? Yore-Tiller Nephilim is similar, but uses ValidTgts$ due to it pulling from the graveyard.
- 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 friarsol » 09 Jul 2011, 23:45
Does it have the attacking icon? It might just be the Combat Window isn't refreshing properly.jeffwadsworth wrote:When a creature is put into the battlefield tapped and attacking, it does not show up in the game info window as attacking. Ideas? Yore-Tiller Nephilim is similar, but uses ValidTgts$ due to it pulling from the graveyard.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Card Development Questions
by jeffwadsworth » 10 Jul 2011, 00:31
No damage is done by the chosen creature...only by the Kaalia of the Vast.friarsol wrote:Does it have the attacking icon? It might just be the Combat Window isn't refreshing properly.jeffwadsworth wrote:When a creature is put into the battlefield tapped and attacking, it does not show up in the game info window as attacking. Ideas? Yore-Tiller Nephilim is similar, but uses ValidTgts$ due to it pulling from the graveyard.
- jeffwadsworth
- Super Tester Elite
- Posts: 1172
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 70 times
Who is online
Users browsing this forum: No registered users and 27 guests