It is currently 08 Jun 2025, 09:57
   
Text Size

Card Development Questions

Post MTG Forge Related Programming Questions Here

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

Re: Card Development Questions

Postby jeffwadsworth » 08 Jul 2011, 18:40

Thanks. Any word on cards like Root Sliver, Gaea's Herald, Leyline of the Lifeforce?
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

Postby Sloth » 08 Jul 2011, 19:15

jeffwadsworth wrote:Thanks. Any word on cards like Root Sliver, Gaea's Herald, Leyline of the Lifeforce?
I'm pretty sure that they are not functional with the old keyword. I think I will make a seperate keyword for them like:

Code: Select all
K:Spells can't be countered Creature:Creature spells can't be countered.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Card Development Questions

Postby 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

Postby Sloth » 08 Jul 2011, 19:54

friarsol wrote:There's no way to Statically Grant them to SAs on the Stack?
Yes of course, i will think about a good implementation.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Card Development Questions

Postby jeffwadsworth » 09 Jul 2011, 03:08

Sloth wrote:
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
I implemented this restriction more generally. Mul Daya Channelers can also be converted now.
Do you have a sample card? Hero of Oxid Ridge is another.
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

Postby Sloth » 09 Jul 2011, 08:24

jeffwadsworth wrote:
Sloth wrote:
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
I implemented this restriction more generally. Mul Daya Channelers can also be converted now.
Do you have a sample card? Hero of Oxid Ridge is another.
Urgh, wrong quote. Mul Daya Channelers should mimic Vampire Nocturnus.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Card Development Questions

Postby jeffwadsworth » 09 Jul 2011, 13:29

Myr Incubator script

| 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

Postby jeffwadsworth » 09 Jul 2011, 15:24

Puresteel Paladin:

| 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

Postby 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

Postby jeffwadsworth » 09 Jul 2011, 15:45

Sloth wrote:Urgh, wrong quote. Mul Daya Channelers should mimic Vampire Nocturnus.
Here is the script for Mul Daya Channelers, but I don't want to commit due to code you have in StaticEffects.java.

| 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

Postby Sloth » 09 Jul 2011, 16:21

jeffwadsworth wrote:
Sloth wrote:Urgh, wrong quote. Mul Daya Channelers should mimic Vampire Nocturnus.
Here is the script for Mul Daya Channelers, but I don't want to commit due to code you have in StaticEffects.java.

| 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
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.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Card Development Questions

Postby jeffwadsworth » 09 Jul 2011, 18:12

Sloth wrote:
jeffwadsworth wrote:
Sloth wrote:Urgh, wrong quote. Mul Daya Channelers should mimic Vampire Nocturnus.
Here is the script for Mul Daya Channelers, but I don't want to commit due to code you have in StaticEffects.java.

| 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
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.
Ok. I know people get cranky when someone starts fooling around with their work. Just checking. 8-[
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

Postby jeffwadsworth » 09 Jul 2011, 19:47

Kaalia of the Vast.

| 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

Postby friarsol » 09 Jul 2011, 23:45

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.
Does it have the attacking icon? It might just be the Combat Window isn't refreshing properly.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Card Development Questions

Postby jeffwadsworth » 10 Jul 2011, 00:31

friarsol wrote:
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.
Does it have the attacking icon? It might just be the Combat Window isn't refreshing properly.
No damage is done by the chosen creature...only by the Kaalia of the Vast.
jeffwadsworth
Super Tester Elite
 
Posts: 1172
Joined: 20 Oct 2010, 04:47
Location: USA
Has thanked: 287 times
Been thanked: 70 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 20 guests


Who is online

In total there are 20 users online :: 0 registered, 0 hidden and 20 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 20 guests

Login Form