Page 81 of 86

Re: Card Contributions

PostPosted: 03 May 2017, 18:28
by Jobexi
By Force was previously nonfunctional (could not target artifacts), and had an anomaly where it referenced snow lands. The following code was functional in my testing.

I had to remove the line where it fetches the image, because I'm classified as a new user.

Code: Select all
Name:By Force
ManaCost:X R
Types:Sorcery
A:SP$ Destroy | Cost$ X R | TargetMin$ 0 | TargetMax$ MaxTgts | ValidTgts$ Artifact | TgtPrompt$ Select target artifacts | References$ X,MaxTgts | SpellDescription$ Destroy X target artifacts.
SVar:X:Targeted$Amount
SVar:MaxTgts:Count$Valid Artifact

Oracle:Destroy X target artifacts.

Re: Card Contributions

PostPosted: 05 May 2017, 17:44
by Jobexi
Benefactor's Draught previously crashed the game on cast. The version below should fix that problem.

I had to remove the line that grabs the image, because I'm classified as a new user.

Code: Select all
Name:Benefactor's Draught
ManaCost:1 G
Types:Instant
A:SP$ UntapAll | Cost$ 1 G | ValidCards$ Creature | SubAbility$ DBEffect | SpellDescription$ Untap all creatures. Until end of turn, whenever a creature an opponent controls blocks, draw a card. Draw a card.
SVar:DBEffect:DB$ Effect | Name$ Benefactor's Draught Effect | Triggers$ TrigBlock | SVars$ EffDraw | SubAbility$ DBDraw
SVar:TrigBlock:Mode$ Blocks | ValidCard$ Creature.OppCtrl | Execute$ EffDraw | TriggerDescription$ Whenever a creature an opponent controls blocks, draw a card.
SVar:EffDraw:DB$ Draw | NumCards$ 1
SVar:DBDraw:DB$ Draw | NumCards$ 1

Oracle:Untap all creatures. Until end of turn, whenever a creature an opponent controls blocks, draw a card.\nDraw a card.

Re: Card Contributions

PostPosted: 11 Jul 2017, 04:31
by schnautzr
Code: Select all
Name:Meddle
ManaCost:1 U
Types:Instant
A:SP$ ChangeTargets | Cost$ 1 U | TargetType$ Spell | ValidTgts$ Spell | ConditionTargetValidTargeting$ Creature | ConditionTargetsSingleTarget$ True | TargetRestriction$ Creature.Other | SpellDescription$ If target spell has only one target and that target is a creature, change that spell's target to another creature.
Oracle:If target spell has only one target and that target is a creature, change that spell's target to another creature.

Re: Card Contributions

PostPosted: 03 Oct 2018, 19:58
by fsecco
This is a working Mission Briefing
Code: Select all
Name:Mission Briefing
ManaCost:U U
Types:Instant
A:SP$ Dig | Cost$ U U | DigNum$ 2 | AnyNumber$ True | DestinationZone$ Graveyard | LibraryPosition2$ 0 | SubAbility$ DBChooseCard | SpellDescription$ Look at the top two cards of your library, then put any number of them into your graveyard and the rest on top of your library in any order.

SVar:DBChooseCard:DB$ ChooseCard | Choices$ Instant.YouCtrl,Sorcery.YouCtrl | ChoiceZone$ Graveyard | AILogic$ CastFromGraveThisTurn | Mandatory$ True | RememberChosen$ True | SubAbility$ DBEffect | SpellDescription$ You may cast that card this turn. If that card would be put into your graveyard this turn, exile it instead.

SVar:DBEffect:DB$ Effect | RememberObjects$ RememberedCard | StaticAbilities$ Play |  SubAbility$ DBCleanup | ExileOnMoved$ Stack | ReplacementEffects$ ReplaceGraveyard | SVars$ MoveExile

SVar:Play:Mode$ Continuous | MayPlay$ True | EffectZone$ Command | Affected$ Card.IsRemembered | AffectedZone$ Graveyard | Description$ You may play remembered card.


SVar:ReplaceGraveyard:Event$ Moved | ValidCard$ Card.IsRemembered | Origin$ Stack | Destination$ Graveyard | ReplaceWith$ MoveExile | Description$ If that card would be put into your graveyard this turn, exile it instead.

SVar:MoveExile:DB$ ChangeZone | Defined$ ReplacedCard | Origin$ Stack | Destination$ Exile
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
SVar:RemAIDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/mission_briefing.jpg
Oracle:Surveil 2, then choose an instant or sorcery card in your graveyard. You may cast that card this turn. If that card would be put into your graveyard this turn, exile it instead.

Re: Card Contributions

PostPosted: 04 Oct 2018, 16:13
by austinio7116
We have Surveil coded - so no need to use dig - in fact it needs to be surveil so that it triggers "whenever you surveil..." etc.

Re: Card Contributions

PostPosted: 04 Oct 2018, 16:19
by austinio7116
I updated the script and submitted an MR: https://git.cardforge.org/core-develope ... quests/987

Re: Card Contributions

PostPosted: 04 Oct 2018, 17:30
by stormcat
Because it will not be fixed, I contribute the cards that I manually repaired.
If its helpful then happy.

1.House Guildmage
Amount -> Amount$
Code: Select all
Name:House Guildmage
ManaCost:U B
Types:Creature Human Wizard
PT:2/2
A:AB$ Pump | Cost$ 1 U T | ValidTgts$ Creature | TgtPrompt$ Select target creature | KW$ HIDDEN This card doesn't untap during your next untap step. | Permanent$ True | IsCurse$ True | SpellDescription$ Target creature doesn't untap during its controller's next untap step.
A:AB$ Surveil | Cost$ 2 B T | Amount$ 2 | SpellDescription$ Surveil 2. (Look at the top two cards of your library, then put any number of them into your graveyard and the rest on top of your library in any order.)
Oracle:{1}{U}, {T}: Target creature doesn't untap during its controller's next untap step.\n{2}{B}, {T}: Surveil 2. (Look at the top two cards of your library, then put any number of them into your graveyard and the rest on top of your library in any order.)
2.Suspicious Bookcase
In oracle {3}{T} -> {3}, {T}
Code: Select all
Name:Suspicious Bookcase
ManaCost:2
Types:Artifact Creature Wall
PT:0/4
K:Defender
A:AB$ Pump | Cost$ 3 T | ValidTgts$ Creature | KW$ HIDDEN Unblockable | SpellDescription$ Target creature can't be blocked this turn. | TgtPrompt$ Select target creature.
SVar:Picture:http://www.wizards.com/global/images/magic/general/suspicious_bookcase.jpg
Oracle:Defender\n{3}, {T}: Target creature can't be blocked this turn.
3.Vivien's Jaguar
add K:Reach
Code: Select all
Name:Vivien's Jaguar
ManaCost:2 G
Types:Creature Cat Spirit
K:Reach
A:AB$ ChangeZone | Cost$ 2 G | Origin$ Graveyard | Destination$ Hand | ActivationZone$ Graveyard | IsPresent$ Planeswalker.Vivien+YouCtrl | SpellDescription$ Return CARDNAME from your graveyard to your hand. Activate this ability only if you control a Vivien planeswalker.
Oracle:Reach\n{2}{G}: Return Vivien's Jaguar from your graveyard to your hand. Activate this ability only if you control a Vivien planeswalker.
PT:3/2

Re: Card Contributions

PostPosted: 14 Oct 2018, 15:47
by Eehoe
Working Godsend - AI doesn't cast exiled cards anymore
(used Circu, Dimir Lobotomist for reference)

Updated

From
Code: Select all
S:Mode$ CantBeCast | ValidCard$ Card.sharesNameWith Remembered+ExiledWithSource | Caster$ Opponent


To

Code: Select all
S:Mode$ CantBeCast | ValidCard$ Card.nonLand+sharesNameWith Remembered.ExiledWithSource | Caster$ Opponent


Code: Select all
Name:Godsend
ManaCost:1 W W
Types:Legendary Artifact Equipment
S:Mode$ Continuous | Affected$ Creature.EquippedBy | AddPower$ 3 | AddToughness$ 3 | Description$ Equipped creature gets +3/+3.
T:Mode$ Blocks | ValidCard$ Card.EquippedBy | ValidBlocked$ Creature | Execute$ TrigChooseAttackers | OptionalDecider$ You | TriggerDescription$ Whenever equipped creature blocks or becomes blocked by one or more creatures, you may exile one of those creatures.
T:Mode$ AttackerBlocked | ValidCard$ Card.EquippedBy | ValidBlocker$ Creature | Execute$ TrigChooseBlockers | OptionalDecider$ You | Secondary$ True | TriggerDescription$ Whenever equipped creature blocks or becomes blocked by one or more creatures, you may exile one of those creatures.
SVar:TrigChooseAttackers:DB$ ChooseCard | DefinedCards$ TriggeredAttackers | SubAbility$ DBExile
SVar:TrigChooseBlockers:DB$ ChooseCard | DefinedCards$ TriggeredBlockers | SubAbility$ DBExile
SVar:DBExile:DB$ ChangeZone | Defined$ ChosenCard | Origin$ Battlefield | Destination$ Exile | RememberChanged$ True
S:Mode$ CantBeCast | ValidCard$ Card.nonLand+sharesNameWith Remembered.ExiledWithSource | Caster$ Opponent |  Description$ Your opponents can't cast spells with the same name as a card exiled with CARDNAME.
T:Mode$ ChangesZone | Origin$ Exile | Destination$ Any | Static$ True | ValidCard$ Card.IsRemembered+ExiledWithSource | Execute$ DBForget
SVar:DBForget:DB$ Pump | ForgetObjects$ TriggeredCard
T:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Battlefield | Destination$ Any | Execute$ DBCleanup | Static$ True | Secondary$ True | TriggerDescription$ Forget all remembered cards.
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
K:Equip:3
SVar:Picture:http://www.wizards.com/global/images/magic/general/godsend.jpg
Oracle:Equipped creature gets +3/+3.\nWhenever equipped creature blocks or becomes blocked by one or more creatures, you may exile one of those creatures.\nYour opponents can't cast spells with the same name as a card exiled with Godsend.\nEquip {3}

Re: Card Contributions

PostPosted: 18 Oct 2018, 22:16
by stormcat
Generous Patron's second triggered ability does not matter the type of counter.
It works correctly by deleting the part to check the type of counter.

Code: Select all
Name:Generous Patron
ManaCost:2 G
Types:Creature Elf Advisor
PT:1/4
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigPut | TriggerDescription$ When CARDNAME enters the battlefield, support 2. (Put a +1/+1 counter on each of up to two other target creatures.)
SVar:TrigPut:DB$PutCounter | ValidTgts$ Creature.Other | TgtPrompt$ Select target creature other than CARDNAME | TargetMin$ 0 | TargetMax$ 2 | CounterType$ P1P1 | CounterNum$ 1
T:Mode$ CounterAddedOnce | ValidCard$ Creature.YouDontCtrl | ValidSource$ You | TriggerZones$ Battlefield | Execute$ DBDraw | TriggerDescription$ Whenever you put one or more counters on a creature you don't control, draw a card.
SVar:DBDraw:DB$ Draw | Defined$ You | NumCards$ 1
DeckHas:Ability$Counters
DeckHints:Ability$Counters
Oracle:When Generous Patron enters the battlefield, support 2. (Put a +1/+1 counter on each of up to two other target creatures.)\nWhenever you put one or more counters on a creature you don't control, draw a card.

Re: Card Contributions

PostPosted: 08 Nov 2018, 14:44
by gos
Is there any interest in adding the Arena exclusive cards? I made an attempt at scripting them - I think they're correct.

Angelic Reward
Blinding Radiance
Confront the Assault
Cruel Cut
Feral Roar
Goblin Bruiser
Goblin Gang Leader
Inspiring Commander
Nimble Pilferer
Ogre Painbringer
River's Favor
Shorecomber Crab
Shrine Keeper
Soulhunter Rakshasa
Tactical Advantag
Titanic Pelagosaur
Treetop Warden
Zephyr Gull

Re: Card Contributions

PostPosted: 11 Nov 2018, 01:30
by friarsol
Eehoe wrote:Working Godsend - AI doesn't cast exiled cards anymore
(used Circu, Dimir Lobotomist for reference)

Updated

From
Code: Select all
S:Mode$ CantBeCast | ValidCard$ Card.sharesNameWith Remembered+ExiledWithSource | Caster$ Opponent


To

Code: Select all
S:Mode$ CantBeCast | ValidCard$ Card.nonLand+sharesNameWith Remembered.ExiledWithSource | Caster$ Opponent


Code: Select all
Name:Godsend
ManaCost:1 W W
Types:Legendary Artifact Equipment
S:Mode$ Continuous | Affected$ Creature.EquippedBy | AddPower$ 3 | AddToughness$ 3 | Description$ Equipped creature gets +3/+3.
T:Mode$ Blocks | ValidCard$ Card.EquippedBy | ValidBlocked$ Creature | Execute$ TrigChooseAttackers | OptionalDecider$ You | TriggerDescription$ Whenever equipped creature blocks or becomes blocked by one or more creatures, you may exile one of those creatures.
T:Mode$ AttackerBlocked | ValidCard$ Card.EquippedBy | ValidBlocker$ Creature | Execute$ TrigChooseBlockers | OptionalDecider$ You | Secondary$ True | TriggerDescription$ Whenever equipped creature blocks or becomes blocked by one or more creatures, you may exile one of those creatures.
SVar:TrigChooseAttackers:DB$ ChooseCard | DefinedCards$ TriggeredAttackers | SubAbility$ DBExile
SVar:TrigChooseBlockers:DB$ ChooseCard | DefinedCards$ TriggeredBlockers | SubAbility$ DBExile
SVar:DBExile:DB$ ChangeZone | Defined$ ChosenCard | Origin$ Battlefield | Destination$ Exile | RememberChanged$ True
S:Mode$ CantBeCast | ValidCard$ Card.nonLand+sharesNameWith Remembered.ExiledWithSource | Caster$ Opponent |  Description$ Your opponents can't cast spells with the same name as a card exiled with CARDNAME.
T:Mode$ ChangesZone | Origin$ Exile | Destination$ Any | Static$ True | ValidCard$ Card.IsRemembered+ExiledWithSource | Execute$ DBForget
SVar:DBForget:DB$ Pump | ForgetObjects$ TriggeredCard
T:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Battlefield | Destination$ Any | Execute$ DBCleanup | Static$ True | Secondary$ True | TriggerDescription$ Forget all remembered cards.
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
K:Equip:3
SVar:Picture:http://www.wizards.com/global/images/magic/general/godsend.jpg
Oracle:Equipped creature gets +3/+3.\nWhenever equipped creature blocks or becomes blocked by one or more creatures, you may exile one of those creatures.\nYour opponents can't cast spells with the same name as a card exiled with Godsend.\nEquip {3}
I pushed the change here:

https://git.cardforge.org/core-develope ... uests/1089

Re: Card Contributions

PostPosted: 30 Nov 2018, 01:26
by nayozzz
fixed necravolver no longer crash the game

Code: Select all
Name:Necravolver
ManaCost:2 B
Types:Creature Volver
PT:2/2
K:Kicker:1 G:W
K:ETBReplacement:Other:VolverStrength:Mandatory::Card.Self+kicked 1
K:ETBReplacement:Other:VolverPumped:Mandatory::Card.Self+kicked 2
SVar:VolverStrength:DB$ PutCounter | Defined$ Self | CounterType$ P1P1 | CounterNum$ 2 | ETB$ True | SubAbility$ VolverStomp | SpellDescription$ If CARDNAME was kicked with its {1}{G} kicker, it enters the battlefield with two +1/+1 counters on it and with trample.
SVar:VolverStomp:DB$ Animate | Defined$ Self | Keywords$ Trample | Permanent$ True
SVar:VolverPumped:DB$ PutCounter | Defined$ Self | CounterType$ P1P1 | CounterNum$ 1 | ETB$ True | SubAbility$ VolverLife | SpellDescription$ If CARDNAME was kicked with its {W} kicker, it enters the battlefield with a +1/+1 counter on it and with "Whenever CARDNAME deals damage, you gain that much life."
SVar:VolverLife:DB$ Animate | Defined$ Self | Triggers$ PseudoLifelink | sVars$ VolverTrigGain,VolverX | Permanent$ True
SVar:PseudoLifelink:Mode$ DamageDealtOnce | ValidSource$ Card.Self | Execute$ VolverTrigGain | TriggerZones$ Battlefield | TriggerDescription$ Whenever CARDNAME deals damage, you gain that much life.
SVar:VolverTrigGain:DB$ GainLife | Defined$ You | LifeAmount$ VolverX | References$ VolverX
SVar:VolverX:TriggerCount$DamageAmount
SVar:RemRandomDeck:True
DeckNeeds:Color$Green|White
DeckHas:Ability$Counters
SVar:Picture:http://www.wizards.com/global/images/magic/general/necravolver.jpg
Oracle:Kicker {1}{G} and/or {W} (You may pay an additional {1}{G} and/or {W} as you cast this spell.)\nIf Necravolver was kicked with its {1}{G} kicker, it enters the battlefield with two +1/+1 counters on it and with trample.\nIf Necravolver was kicked with its {W} kicker, it enters the battlefield with a +1/+1 counter on it and with "Whenever Necravolver deals damage, you gain that much life."

new card: nacatl war-pride

Code: Select all

Name:Nacatl War-Pride
ManaCost:3 G G G
Types:Creature Cat Warrior
PT:3/3
K:CARDNAME must be blocked if able.
T:Mode$ Attacks | ValidCard$ Card.Self | Execute$ TrigCopy | TriggerDescription$ Whenever CARDNAME attacks, create X tokens that are copies of Nacatl War-Pride and that are tapped and attacking, where X is the number of creatures defending player controls. Exile the tokens at the beginning of the next end step.
SVar:TrigCopy:DB$CopyPermanent | Defined$ Self | NumCopies$ Z | Tapped$ True | CopyAttacking$ True | AtEOT$ Exile
SVar:Z:Count$Valid Creature.DefenderCtrl
SVar:Picture:https://img.scryfall.com/cards/large/en/fut/147.jpg
Oracle:Nacatl War-Pride must be blocked by exactly one creature if able.\nWhenever Nacatl War-Pride attacks, create X tokens that are copies of Nacatl War-Pride and that are tapped and attacking, where X is the number of creatures defending player controls. Exile the tokens at the beginning of the next end step.



new card: shadowbane

Code: Select all

Name:Shadowbane
ManaCost:1 W
Types:Instant
A:SP$ ChooseSource | Cost$ 1 W | Choices$ Card,Emblem | AILogic$ NeedsPrevention | SubAbility$ DBEffect | StackDescription$ SpellDescription | SpellDescription$ Prevent all damage to you or a creature you control from any one source. If that source is black, gain 1 life for each 1 damage prevented in this way.
SVar:DBEffect:DB$ Effect | ReplacementEffects$ RepDmg | SVars$ GainLifeYou,RepDmg,X,Y | SubAbility$ DBCleanup | ConditionDefined$ ChosenCard | ConditionPresent$ Card,Emblem | ConditionCompare$ GE1
SVar:RepDmg:Event$ DamageDone | ValidTarget$ You,Creature.YouCtrl | ValidSource$ Card.ChosenCard,Emblem.ChosenCard | ReplaceWith$ GainLifeYou | PreventionEffect$ True | Description$ Prevent all damage to you or a creature you control from any one source. If that source is black, gain 1 life for each 1 damage prevented in this way.
SVar:GainLifeYou:DB$ GainLife | Defined$ You | LifeAmount$ X | References$ X,Y | ConditionCheckSVar$ Y | ConditionSVarCompare$ GE1
SVar:DBCleanup:DB$ Cleanup | ClearChosenCard$ True
SVar:X:ReplaceCount$DamageAmount
SVar:Y:ReplacedSource$Valid Card.BlackSource
SVar:Picture:http://www.wizards.com/global/images/magic/general/shadowbane.jpg
Oracle:The next time a source of your choice would deal damage to you and/or creatures you control this turn, prevent that damage. If damage from a black source is prevented this way, you gain that much life.




Re: Card Contributions

PostPosted: 08 Dec 2018, 10:14
by nayozzz
buggy version of ertai's meddling :D

i just wanted to remake the slivers theme deck of tempest expansion...

my ertai's meddling is a little modified delay spell... it does use X U, it doesn't accept X = 0

unfortunately it still use the counterspell (the correct ertai's meddling would be able to "counter" even uncounterable spells, or at least delay them)

also this version of ertai's meddling use the suspend mechanic. (probably a casted creature shouldn't be able to attack the same turn it is casted)

edit: ai bug it cast it with X = 0

Code: Select all
Name:Ertai's Meddling
ManaCost:X U
Types:Instant
A:SP$ Counter | Cost$ XCantBe0 X U | References$ X | TargetType$ Spell | TgtPrompt$ Select target spell | ValidTgts$ Card | RememberCountered$ True | Destination$ Exile | SubAbility$ DBPutCounter | SpellDescription$ X can't be 0. Target spell's controller exiles it with X delay counters on it. At the beginning of each of that player's upkeeps, if that card is exiled, remove a delay counter from it. If the card has no delay counters on it, the player puts it onto the stack as a copy of the original spell.
SVar:X:Count$xPaid
SVar:DBPutCounter:DB$ PutCounter | Defined$ Remembered | CounterNum$ X | CounterType$ TIME | SubAbility$ DBPump
SVar:DBPump:DB$ PumpAll | ValidCards$ Card.IsRemembered+withoutSuspend | PumpZone$ Exile | KW$ Suspend | Permanent$ True | SubAbility$ DBCleanup | StackDescription$ SpellDescription
SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True
SVar:Picture:http://www.wizards.com/global/images/magic/general/ertais_meddling.jpg
Oracle:X can't be 0. Target spell's controller exiles it with X delay counters on it. At the beginning of each of that player's upkeeps, if that card is exiled, remove a delay counter from it. If the card has no delay counters on it, the player puts it onto the stack as a copy of the original spell.

Re: Card Contributions

PostPosted: 16 Dec 2018, 04:13
by nayozzz
Fade Away, fully working :D

Code: Select all

Name:Fade Away
ManaCost:2 U
Types:Sorcery
A:SP$ RepeatEach | Cost$ 2 U | RepeatPlayers$ Player | RepeatSubAbility$  DBRepeatCreature | SpellDescription$ For each creature, its controller sacrifices a permanent unless they pay 1.
SVar:DBRepeatCreature:DB$ RepeatEach | RepeatCards$ Creature.RememberedPlayerCtrl | Zone$ Battlefield | TargetControls$ True | RepeatSubAbility$  DBSac
SVar:DBSac:DB$ Sacrifice | Defined$ Player.IsRemembered | SacValid$ Permanent | SacMessage$ permanent | UnlessCost$ 1 | UnlessPayer$ Player.IsRemembered
SVar:Picture:http://www.wizards.com/global/images/magic/general/fade_away.jpg
SVar:RemAIDeck:True
Oracle:For each creature, its controller sacrifices a permanent unless they pay 1.


Re: Card Contributions

PostPosted: 17 Dec 2018, 15:23
by drdev
Could somebody please script the 5 exclusive cards from the Game Night product? I use one in several paper decks I'd like to be able to playtest in Forge. Obviously including those preconstructed decklists in Forge would be good too. Same goes for the exclusive cards from the Magic Gift Pack 2018. Screenshots of those 10 cards can be found here:

https://www.phdgames.com/magic-game-nig ... pack-wotc/