It is currently 14 Dec 2017, 04:21
   
Text Size

Card Contributions

Post MTG Forge Related Programming Questions Here

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

Re: Card Contributions

Postby Jobexi » 03 May 2017, 18:28

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.
Jobexi
 
Posts: 6
Joined: 03 May 2017, 16:31
Has thanked: 3 times
Been thanked: 1 time

Re: Card Contributions

Postby Jobexi » 05 May 2017, 17:44

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.
Jobexi
 
Posts: 6
Joined: 03 May 2017, 16:31
Has thanked: 3 times
Been thanked: 1 time

Re: Card Contributions

Postby schnautzr » 11 Jul 2017, 04:31

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.
User avatar
schnautzr
 
Posts: 99
Joined: 23 Aug 2012, 01:13
Has thanked: 17 times
Been thanked: 4 times

Previous

Return to Developer's Corner

Who is online

Users browsing this forum: Google [Bot] and 5 guests


Who is online

In total there are 6 users online :: 1 registered, 0 hidden and 5 guests (based on users active over the past 10 minutes)
Most users ever online was 279 on 11 Jul 2013, 22:03

Users browsing this forum: Google [Bot] and 5 guests

Login Form