It is currently 16 May 2025, 11:01
   
Text Size

Help with a custom mechanic

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

Help with a custom mechanic

Postby freddyjsg » 19 Aug 2013, 15:18

I'm working on putting a certain custom set named Caeia into Forge, and needed some help coding some new mechanics. The first is Purity, an ability word that checks for two characteristics. First it checks that the player controls a permanent with X color, and second, it checks that the same player doesn't control any permanent with any other color than X. Said in other words, it checks that X is the only color among permanents you control. I've tried to code it in the same way that metalcraft is coded for some cards, but it doesn't works. First I made:

Arathan Inquisition 1 B
Sorcery
Target player discards a card. If black is the only color among permanents you control, that players loses 1 life and you gain 1 life.
Arathan Inquisition | Open
Name:Arathan Inquisition

ManaCost:1 B

Types:Sorcery

A:SP$ Discard | Cost$ 1 B | ValidTgts$ Player | NumCards$ 1 | Mode$ TgtChoose | SubAbility$ DBDrain | SpellDescription$ Target player discards a card. If black is the only color among permanents you control, that player loses one life and you gain one life.
SVar:DBDrain:DB$ LoseLife | Defined$ Targeted | LifeAmount$ 1 | SubAbility$ DBGainLife | ConditionPresent$ Permanent.Black+YouCtrl | ConditionCompare$ GE1 | CheckSVar$ Permanents | SVarCompare$ EQ0
SVar:Permanents:Count$Permanent.White+YouCtrl,Permanent.Green+YouCtrl,Permanent.Red+YouCtrl,Permanent.Blue+YouCtrl
SVar:DBGainLife:DB$ GainLife | Defined$ You | LifeAmount$ 1 | ConditionPresent$ Permanent.Black+YouCtrl | ConditionCompare$ GE1 | CheckSVar$ Permanents | SVarCompare$ EQ0
Oracle:Target player discards a card. If black is the only color among permanents you control, that player loses one life and you gain one life.


Actually, the life drain (Purity) effect doesn't trigger (Don't remember the exact word) only when the Permanents SVar is 0.

The second ability is a Keyword named Prismatic. It says, when this permanent enters the battlefield and at the beggining of you upkeep chose a color. This permanent becomes that color. The mechanic is perfectly coded, but the problem comes with cards that grant Prismatic. I'm able to give both triggers, but I don't know how to code the static ability of SetColor to chosen color.

| Open
Name:Prismatic Armory Construct
ManaCost:5
Types:Artifact Creature Golem
PT:3/3
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigCL | TriggerDescription$ When CARDNAME enters the battlefield, choose a color. This permanent becomes that color
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigCL | TriggerDescription$ At the beginning of your upkeep, choose a color. This permanent becomes that color
SVar:TrigCL:AB$ ChooseColor | Cost$ 0 | Defined$ You
S:Mode$ Continuous| Affected$ Card.Self | SetColor$ ChosenColor | Description$ CARDNAME is the chosen color. (It's still an artifact.)
S:Mode$ ReduceCost | ValidTarget$ Card.Self | Type$ Equip | Amount$ 1 | Description$ Equipment costs 1 less to attach to CARDNAME
Oracle:Prismatic\nEquipment costs 1 less to attach to Prismatic Armory Construct


I would be very thankful to anybody that could help me.
freddyjsg
 
Posts: 66
Joined: 12 Feb 2013, 13:24
Has thanked: 18 times
Been thanked: 1 time

Re: Help with a custom mechanic

Postby friarsol » 19 Aug 2013, 16:27

Your SVar is 0, because you need to use Count$ Valid here.
SVar:Permanents:Count$ Valid Permanent.White+YouCtrl,Permanent.Green+YouCtrl,Permanent.Red+YouCtrl,Permanent.Blue+YouCtrl

For Prismatic, why aren't you using the ability that Alchor's Tomb has?

A:AB$ ChooseColor | Cost$ 2 T | Defined$ You | SubAbility$ Animate | SpellDescription$ Target permanent you control becomes the color of your choice. (This effect lasts indefinitely.)
SVar:Animate:DB$ Animate | ValidTgts$ Permanent.YouCtrl | TgtPrompt$ Select target permanent you control | Colors$ ChosenColor | OverwriteColors$ True | Permanent$ True
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Help with a custom mechanic

Postby freddyjsg » 23 Aug 2013, 01:22

About the Purity issue, its still giving me problems. The templating now is:

| Open
Name:Arathan Inquisition

ManaCost:1 B

Types:Sorcery

A:SP$ Discard | Cost$ 1 B | ValidTgts$ Player | NumCards$ 1 | Mode$ TgtChoose | SubAbility$ DBDrain | SpellDescription$ Target player discards a card. If black is the only color among permanents you control, that player loses one life and you gain one life.
SVar:DBDrain:DB$ LoseLife | Defined$ Targeted | LifeAmount$ 1 | SubAbility$ DBGainLife | ConditionPresent$ Permanent.Black+YouCtrl | ConditionCompare$ GE1 | CheckSVar$ Permanents | SVarCompare$ EQ0
SVar:Permanents:Count$Valid Permanent.White+YouCtrl,Permanent.Green+YouCtrl,Permanent.Red+YouCtrl,Permanent.Blue+YouCtrl
SVar:DBGainLife:DB$ GainLife | Defined$ You | LifeAmount$ 1 | ConditionPresent$ Permanent.Black+YouCtrl | ConditionCompare$ GE1 | CheckSVar$ Permanents | SVarCompare$ EQ0
Oracle:Target player discards a card. If black is the only color among permanents you control, that player loses one life and you gain one life.



And for prismatic thanks, didn't remember that card. Just one problem, i don't remember what should i put on defined. Triggered or TriggeredCreature?
freddyjsg
 
Posts: 66
Joined: 12 Feb 2013, 13:24
Has thanked: 18 times
Been thanked: 1 time


Return to Forge

Who is online

Users browsing this forum: No registered users and 30 guests


Who is online

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

Login Form