It is currently 16 Apr 2024, 10:20
   
Text Size

Card Contributions

Post MTG Forge Related Programming Questions Here

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

Re: Card Contributions

Postby squee1968 » 09 Feb 2021, 04:09

forge no longer uses that method for pictures, so you don't need that SVar. your script looks good, but it's already been added.
squee1968
 
Posts: 254
Joined: 18 Nov 2011, 03:28
Has thanked: 110 times
Been thanked: 45 times

Re: Card Contributions

Postby Flexy » 11 Feb 2021, 22:54

squee1968 wrote:forge no longer uses that method for pictures, so you don't need that SVar. your script looks good, but it's already been added.
I wasn't sure, I just started doing it and wasn't getting many responses. Thank you for the info.
Flexy
 
Posts: 37
Joined: 04 Oct 2019, 17:35
Has thanked: 5 times
Been thanked: 1 time

Commander Legends.txt

Postby Flexy » 11 Feb 2021, 23:04

Code: Select all
[metadata]
Code=CMR
Date=2020-15-20
Name=Commander Legends
Type=Expansion

[cards]
079 U Malcom, Keen-Eyed Navigator
074 R Hullbreacher
165 U Breeches, Brazen Plunderer
169 R Coercive Recruiter
204 U Toggo, Goblin Weaponsmith
239 R Kodama of the East Tree
242 R Magus of the Order
560 U Malcom, Keen-Eyed Navigator
571 U Breeches, Brazen Plunderer

[tokens]
Rock
Flexy
 
Posts: 37
Joined: 04 Oct 2019, 17:35
Has thanked: 5 times
Been thanked: 1 time

Kaldheim cards Elderfang Venom, Maskwood Nexus

Postby Flexy » 05 Mar 2021, 01:28

Code: Select all
Name:Elderfang Venom
ManaCost:2 B G
Types:Enchantment
S:Mode$ Continuous | Affected$ Creature.attacking+YouCtrl | AddKeyword$ Deathtouch | Description$ Attacking creatures you control have deathtouch.
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ValidCard$ Creature.YouCtrl+Elf | TriggerZones$ Battlefield |  Execute$ TrigDealDamage | TriggerDescription$ Whenever an Elf you control dies, each opponent loses 1 life and you gain 1 life.
SVar:TrigLoseLife:DB$ LoseLife | Defined$ Player.Opponent | LifeAmount$ 1 | DB$GainLife | Defined$ You | LifeAmount$ 1
SVar:Picture:http://www.wizards.com/global/images/magic/general/hissing_iguanar.jpg
Oracle: Attacking Elves you control have deathtouch. \nWhenever an Elf you control dies, each opponent loses 1 life and you gain 1 life.
Code: Select all
Name:Maskwood Nexus
ManaCost:4
Types:Artifact
S:Mode$ Continuous | Affected$ Creature.YouCtrl | AddKeyword$ Changeling | AddType$ Shapeshifter
A:AB$ Token | Cost$ 3 T | TokenAmount$ 1 | TokenScript$ u_2_2_shapeshifter | TokenOwner$ You | TriggerDescription$ Creatures you control are every creature type. The same is true for creatures spells you control and creature cards you own that aren't on the battlefield. \n3, T: Create a 2/2 blue Shapeshifter creature token with changeling. (It is every creature type.)
Oracle:Creatures you control are every creature type. The same is true for creatures spells you control and creature cards you own that aren't on the battlefield. \n3, T: Create a 2/2 blue Shapeshifter creature token with changeling. (It is every creature type.)
Last edited by Flexy on 06 Mar 2021, 00:06, edited 1 time in total.
Flexy
 
Posts: 37
Joined: 04 Oct 2019, 17:35
Has thanked: 5 times
Been thanked: 1 time

Commander Legends Abomination of Llanowar

Postby Flexy » 05 Mar 2021, 01:29

Code: Select all
Name:Abomination of Llanowar
ManaCost:1 B G
Types:Legendary Creature Elf Horror
PT:*/*
K:Vigilance
K:Menace
S:Mode$ Continuous | Affected$ Card.Self| EffectZone$ All | CharacteristicDefining$ True | SetPower$ X | SetToughness$ X | Description$ CARDNAME's power and toughness are each equal to the number of Elves you control plus the number of Elf cards in your graveyard.
SVar:X:Count$Valid Elf.YouCtrl/Plus.DEADELF
SVar:DEADELF:Count$TypeInYourYard.Elf
Oracle: Abomination of Llanowar's power and toughness are each equal to the number of Elves you control plus the number of Elf cards in your graveyard.
Flexy
 
Posts: 37
Joined: 04 Oct 2019, 17:35
Has thanked: 5 times
Been thanked: 1 time

Re: Card Contributions

Postby Jobexi » 01 Apr 2021, 14:32

Someone, at some point, fixed Blood of the Martyr so it no longer crashes the game (Thank you!). However, the correct version didn't make it into the snapshots. (Or perhaps the main release, I haven't tested). The version that comes with the snapshots has an incorrectly-named SVar which crashes the game.

The attached file corrects the sVar name, and does not crash the game.
Attachments
blood_of_the_martyr.txt
(769 Bytes) Downloaded 352 times
Jobexi
 
Posts: 13
Joined: 03 May 2017, 16:31
Has thanked: 3 times
Been thanked: 3 times

Re: Card Contributions

Postby squee1968 » 30 Jun 2021, 02:16

Haven't playtested this yet, but since both triggers are already in Forge, I don't forsee any issues

[/quote]
Name:Grazilaxx, Illithid Scholar
ManaCost:1 U U
Types:Legendary Creature Horror
PT:3/2
T:Mode$ AttackerBlocked | ValidCard$ Creature.YouCtrl | Execute$ TrigBounce | OptionalDecider$ You | TriggerZones$ Battlefield | TriggerDescription$ Whenever a creature you control becomes blocked, you may return it to its owner's hand.
SVar:TrigBounce:DB$ ChangeZone | Origin$ Battlefield | Destination$ Hand | Defined$ TriggeredAttackerLKICopy
T:Mode$ DamageDoneOnce | CombatDamage$ True | ValidSource$ Creature.YouCtrl | TriggerZones$ Battlefield | ValidTarget$ Player | Execute$ TrigDraw | TriggerDescription$ Whenever one or more creatures you control deal combat damage to a player, draw a card.
SVar:TrigDraw:DB$ Draw | Defined$ You | NumCards$ 1
Oracle:Whenever a creature you control becomes blocked, you may return it to its owner's hand.\nWhenever one or more creatures you control deal combat damage to a player, draw a card.
[/quote]
squee1968
 
Posts: 254
Joined: 18 Nov 2011, 03:28
Has thanked: 110 times
Been thanked: 45 times

Re: Card Contributions

Postby squee1968 » 30 Jun 2021, 02:19

Haven't playtested this yet, but since both triggers are already in Forge, I don't forsee any issues

Code: Select all
Name:Grazilaxx, Illithid Scholar
ManaCost:1 U U
Types:Legendary Creature Horror
PT:3/2
T:Mode$ AttackerBlocked | ValidCard$ Creature.YouCtrl | Execute$ TrigBounce | OptionalDecider$ You | TriggerZones$ Battlefield | TriggerDescription$ Whenever a creature you control becomes blocked, you may return it to its owner's hand.
SVar:TrigBounce:DB$ ChangeZone | Origin$ Battlefield | Destination$ Hand | Defined$ TriggeredAttackerLKICopy
T:Mode$ DamageDoneOnce | CombatDamage$ True | ValidSource$ Creature.YouCtrl | TriggerZones$ Battlefield | ValidTarget$ Player | Execute$ TrigDraw | TriggerDescription$ Whenever one or more creatures you control deal combat damage to a player, draw a card.
SVar:TrigDraw:DB$ Draw | Defined$ You | NumCards$ 1
Oracle:Whenever a creature you control becomes blocked, you may return it to its owner's hand.\nWhenever one or more creatures you control deal combat damage to a player, draw a card.
[/code]
squee1968
 
Posts: 254
Joined: 18 Nov 2011, 03:28
Has thanked: 110 times
Been thanked: 45 times

Re: Card Contributions

Postby squee1968 » 30 Jun 2021, 02:20

Haven't playtested this yet, but since both triggers are already in Forge, I don't forsee any issues

Code: Select all
Name:Grazilaxx, Illithid Scholar
ManaCost:1 U U
Types:Legendary Creature Horror
PT:3/2
T:Mode$ AttackerBlocked | ValidCard$ Creature.YouCtrl | Execute$ TrigBounce | OptionalDecider$ You | TriggerZones$ Battlefield | TriggerDescription$ Whenever a creature you control becomes blocked, you may return it to its owner's hand.
SVar:TrigBounce:DB$ ChangeZone | Origin$ Battlefield | Destination$ Hand | Defined$ TriggeredAttackerLKICopy
T:Mode$ DamageDoneOnce | CombatDamage$ True | ValidSource$ Creature.YouCtrl | TriggerZones$ Battlefield | ValidTarget$ Player | Execute$ TrigDraw | TriggerDescription$ Whenever one or more creatures you control deal combat damage to a player, draw a card.
SVar:TrigDraw:DB$ Draw | Defined$ You | NumCards$ 1
Oracle:Whenever a creature you control becomes blocked, you may return it to its owner's hand.\nWhenever one or more creatures you control deal combat damage to a player, draw a card.
squee1968
 
Posts: 254
Joined: 18 Nov 2011, 03:28
Has thanked: 110 times
Been thanked: 45 times

Re: Card Contributions

Postby squee1968 » 02 Jul 2021, 06:22

Code: Select all
Name:Gretchen Titchwillow
ManaCost:G U
Types:Legendary Creature
PT:0/4
A:AB$ Draw | Cost$ 2 G U | NumCards$ 1 | SpellDescription$ Draw a card. You may put a land card from your hand onto the battlefield. | SubAbility$ DBLand
SVar:DBLand:DB$ ChangeZone | Origin$ Hand | Destination$ Battlefield | ChangeType$ Land | ChangeNum$ 1 | Optional$ You
Oracle:{2}{G}{U}: Draw a card. You may put a land card from your hand onto the battlefield.
Last edited by squee1968 on 02 Jul 2021, 10:57, edited 1 time in total.
squee1968
 
Posts: 254
Joined: 18 Nov 2011, 03:28
Has thanked: 110 times
Been thanked: 45 times

Re: Card Contributions

Postby squee1968 » 02 Jul 2021, 06:56

Code: Select all
Name:Deadly Priestess
ManaCost:2 B B
Types:Creature Tiefling Cleric
PT:2/2
S:Mode$ Continuous | Affected$ Skeleton.YouCtrl | Affected$ Vampire.YouCtrl | Affected$ Zombie.YouCtrl | AddPower$ 1 | AddToughness$ 1 | Description$ Skeletons, Vampires, and Zombies you control get +1/+1.
SVar:PlayMain1:TRUE
DeckHints:Type$Zombie
DeckHints:Type$Skeleton
DeckHints:Type$Vampire
T:Mode$ Phase | Phase$ End of Turn | ValidPlayer$ You | TriggerZones$ Battlefield | CheckSVar$ X | SVarCompare$ GE1 | OptionalDecider$ You | Execute$ TrigToken | TriggerDescription$ At the beginning of your end step, if a creature died this turn, you may pay {1}. If you do, create 1/1 black Skeleton creature token.
SVar:TrigToken:AB$ Token | Cost$ 1 | TokenAmount$ 1 | TokenScript$ b_1_1_skeleton | TokenOwner$ You
SVar:X:Count$ThisTurnEntered_Graveyard_from_Battlefield_Creature
DeckHas:Ability$Token
Oracle:Skeletons, Vampires, and Zombies you control get +1/+1.\nAt the beginning of your end step, if a creature died this turn, you may pay {1}. If you do, create a 1/1 black Skeleton creature token.
squee1968
 
Posts: 254
Joined: 18 Nov 2011, 03:28
Has thanked: 110 times
Been thanked: 45 times

Re: Card Contributions

Postby squee1968 » 11 Nov 2021, 00:19

Code: Select all
Name:Scion of Opulence
Types:Creature Vampire Noble
ManaCost:2 R
PT:3/1
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ValidCard$ Card.Self | Execute$ TrigToken | TriggerController$ TriggeredCardController | TriggerDescription$ Whenever CARDNAME or another nontoken Vampire you control dies, create a Treasure token.
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ValidCard$ Vampire.Other+nonToken+YouCtrl | Execute$ TrigToken | TriggerZones$ Battlefield | TriggerController$ TriggeredCardController | Secondary$ True | TriggerDescription$ Whenever CARDNAME or another nontoken Vampire you control dies, create a Treasure token.
SVar:TrigToken:DB$ Token | TokenAmount$ 1 | TokenScript$ c_a_treasure_sac | TokenOwner$ You
DeckHas:Ability$Token
A:AB$ Dig | Cost$ R Sac<2/Artifact> | Defined$ You | DigNum$ 1 | ChangeNum$ All | DestinationZone$ Exile | RememberChanged$ True | SubAbility$ DBEffect | SpellDescription$ Exile the top card of your library. You may play that card this turn.
SVar:DBEffect:DB$ Effect | RememberObjects$ RememberedCard | StaticAbilities$ Play | SubAbility$ DBCleanup | ExileOnMoved$ Exile
SVar:Play:Mode$ Continuous | MayPlay$ True | EffectZone$ Command | Affected$ Card.IsRemembered | AffectedZone$ Exile | Description$ You may play remembered card.
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
Oracle:Whenever Scion of Opulence or another nontoken Vampire you control dies, create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.")\n{R}, Sacrifice two artifacts: Exile the top card of your library. You may play that card this turn.
squee1968
 
Posts: 254
Joined: 18 Nov 2011, 03:28
Has thanked: 110 times
Been thanked: 45 times

Re: Card Contributions

Postby squee1968 » 11 Nov 2021, 09:57

Code: Select all
Name:Glass-Cast Heart
ManaCost:2 B
Types:Artifact
T:Mode$ AttackersDeclared | ValidAttackers$ Vampire.YouCtrl | Execute$ TrigToken | TriggerZones$ Battlefield | TriggerDescription$ Whenever one or more Vampires you control attack, create a Blood token. (It's an artifact with "{1}, {T}, Discard a card, Sacrifice this artifact: Draw a card.")
SVar:TrigToken:DB$ Token | TokenAmount$ 1 | TokenScript$ c_a_blood_draw
A:AB$ Token | Cost$ B T PayLife<1> | TokenAmount$ 1 | LegacyImage$ w 1 1 vampire lifelink xln | TokenScript$ w_1_1_vampire_lifelink | TokenOwner$ You | SpellDescription$ Create a 1/1 white Vampire creature token with lifelink.
A:AB$ LoseLife | Cost$ B B T Sac<1/CARDNAME> Sac<13/Blood> | Defined$ Player.Opponent | LifeAmount$ 13 | SubAbility$ DBGainLife | SpellDescription$ Each opponent loses 13 life and you gain 13 life.
SVar:DBGainLife:DB$ GainLife | Defined$ You | LifeAmount$ 13
DeckHints:Type$Vampire
DeckHas:Ability$Token & Ability$Sacrifice & Type$Blood
Oracle:Whenever one or more Vampires you control attack, create a Blood token. (It's an artifact with "{1}, {T}, Discard a card, Sacrifice this artifact: Draw a card.")
\n{B}, {T}, Pay 1 life: Create a 1/1 white Vampire creature token with lifelink.\n{B}, {B}, {T}, Sacrifice Glass-Cast Heart and thirteen Blood tokens: Each opponent loses 13 life and you gain 13 life.
squee1968
 
Posts: 254
Joined: 18 Nov 2011, 03:28
Has thanked: 110 times
Been thanked: 45 times

Has anybody done Old Stickfingers yet?

Postby Flexy » 18 Jan 2022, 13:57

When you cast this spell, reveal cards from the top of your library until you reveal X creature cards. Put all creature cards revealed this way into your graveyard, then put the rest on the bottom of your library in a random order.
Old Stickfinger's power and toughness are each equal to the number of creature cards in your graveyard
Flexy
 
Posts: 37
Joined: 04 Oct 2019, 17:35
Has thanked: 5 times
Been thanked: 1 time

Re: Card Contributions

Postby squee1968 » 18 Jan 2022, 21:34

it's in. the file will be migrated along with some other MID/MIC cards in the near future.

Code: Select all
Name:Old Stickfingers
ManaCost:X B G
Types:Legendary Creature Horror
PT:*/*
T:Mode$ SpellCast | ValidCard$ Card.Self | Execute$ TrigDigUntil | TriggerDescription$ When you cast CARDNAME, reveal cards from the top of your library until you reveal X creature cards. Put all the creature cards revealed this way into your graveyard and the rest on the bottom of your library in a random order.
SVar:TrigDigUntil:DB$ DigUntil | Amount$ X | Valid$ Creature | FoundDestination$ Graveyard | RevealedDestination$ Library | RevealedLibraryPosition$ -1 | RevealRandomOrder$ True
SVar:X:Count$xPaid
S:Mode$ Continuous | EffectZone$ All | CharacteristicDefining$ True | SetPower$ Y | SetToughness$ Y | Description$ CARDNAME's power and toughness are each equal to the number of creature cards in your graveyard.
SVar:Y:Count$TypeInYourYard.Creature
DeckHas:Ability$Graveyard
Oracle:When you cast this spell, reveal cards from the top of your library until you reveal X creature cards. Put all the creature cards revealed this way into your graveyard and the rest on the bottom of your library in a random order.\nOld Stickfingers's power and toughness are each equal to the number of creature cards in your graveyard.

squee1968
 
Posts: 254
Joined: 18 Nov 2011, 03:28
Has thanked: 110 times
Been thanked: 45 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 73 guests


Who is online

In total there are 73 users online :: 0 registered, 0 hidden and 73 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 73 guests

Login Form