Help scripting a custom card
by mtgrares
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Help scripting a custom card
by Devlain » 10 Sep 2017, 22:10
Hi there, I was trying to script this card
Thanks in advance!
- Code: Select all
Changeling - 1B
Creature - Zerg Shapeshifter
Changeling can't be blocked unless defending player pays {1} for each other attacking creature.
Whenever Changeling attacks and isn't blocked, you draw a card and lose 1 life.
0/1
- Code: Select all
Name:Changeling
ManaCost:1 B
Types:Creature Zerg Shapeshifter
PT:0/1
S:Mode$ CantBlockUnless | Attacker$ Creature | Cost$ X | Description$ CARDNAME can't be blocked unless defending player pays {1} for each other attacking creature.
SVar:X:Count$Valid Creature.Other+YouCtrl+attacking
T:Mode$ AttackerUnblocked | ValidCard$ Card.Self | TriggerZones$ Battlefield | Execute$ TrigDraw | TriggerDescription$ Whenever CARDNAME attacks and isn't blocked, draw a card and lose 1 life.
SVar:TrigDraw:AB$Draw | Cost$ 0 | Defined$ You | NumCards$ 1 | SubAbility$ DBLoseLife
SVar:DBLoseLife:DB$LoseLife | Defined$ You | LifeAmount$ 1
Oracle:Changeling can't be blocked unless defending player pays {1} for each other attacking creature.\nWhenever Changeling attacks and isn't blocked, you draw a card and lose 1 life.
Thanks in advance!
Re: Help scripting a custom card
by friarsol » 10 Sep 2017, 22:18
Probably should be: S:Mode$ CantBlockUnless | Attacker$ Creature.Self
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Help scripting a custom card
by Devlain » 10 Sep 2017, 22:30
Now the AI is blocking Changeling without paying any mana
- Code: Select all
S:Mode$ CantBlockUnless | Attacker$ Creature.Self | Cost$ X | Description$ CARDNAME can't be blocked unless defending player pays {1} for each other attacking creature.
SVar:X:Count$Valid Creature.Other+YouCtrl+attacking
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 30 guests