Custom Card Thread
by mtgrares
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: Custom Card Thread
by Taris36 » 08 Mar 2016, 21:39
Thanks for the help. Now it gains charge counters as intended, but it crashes when it goes to trigger for the exile bit. I put in the changes you suggested. Am I blind or derping or something?
Edit 1: After further testing, the triple damage didn't work for my Lightning Bolt.
Edit 2: I have narrowed it down to the exile trigger and the triple damage for spells. Creatures seem to do triple as expected, but my Lightning Bolt did not. The game crashed as it tried to resolve the damage from the spell. I reuploaded the script for the card. When it reaches the third upkeep after I played it, it crashes as well.
Edit 1: After further testing, the triple damage didn't work for my Lightning Bolt.
Edit 2: I have narrowed it down to the exile trigger and the triple damage for spells. Creatures seem to do triple as expected, but my Lightning Bolt did not. The game crashed as it tried to resolve the damage from the spell. I reuploaded the script for the card. When it reaches the third upkeep after I played it, it crashes as well.
- Attachments
-
sozins_comet.txt
- (1.8 KiB) Downloaded 235 times
Re: Custom Card Thread
by edessa » 09 Mar 2016, 03:04
My third miniset is ready, I will upload the first 20 spoilers. As always suggestions are accepted.
Re: Custom Card Thread
by edessa » 09 Mar 2016, 03:07
This week I will focus in the scripting and playtesting part. I hope you like the cards.
Re: Custom Card Thread
by Taris36 » 09 Mar 2016, 15:50
For triple spell damage, is it possible to use "three times X" instead of dmgthrice?
Original code (crashes as it tries to resolve damage)
R:Event$ DamageDone | ActiveZones$ Battlefield | ValidSource$ Card.Red | ValidTarget$ Creature,Player | ReplaceWith$ DmgThrice | IsCombat$ False | Description$ If a red source would deal damage to a creature or player, it deals triple that damage to that creature or player instead.
Because as far as I know, there aren't any cards that do triple spell damage, are there?
Original code (crashes as it tries to resolve damage)
R:Event$ DamageDone | ActiveZones$ Battlefield | ValidSource$ Card.Red | ValidTarget$ Creature,Player | ReplaceWith$ DmgThrice | IsCombat$ False | Description$ If a red source would deal damage to a creature or player, it deals triple that damage to that creature or player instead.
Because as far as I know, there aren't any cards that do triple spell damage, are there?
Re: Custom Card Thread
by friarsol » 09 Mar 2016, 16:25
We use Thrice in a few places:Taris36 wrote:Because as far as I know, there aren't any cards that do triple spell damage, are there?
Crypt Incursion
Devouring Rage
Glacial Plating
It looks like the SVar is named incorrectly:
SVar:DmgTwice:AB$DealDamage | Cost$ 0 | Defined$ ReplacedTarget | DamageSource$ ReplacedSource | NumDmg$ X | References$ X
Where it should be named "DmgThrice"
Also, it would help to post the errors. I didn't notice before, but the exile effect is definitely wrong.. Not sure where you got it from originally?
- Code: Select all
SVar:TrigExile:AB$ ChangeZone | Cost$ 0 | Defined$ Self | Origin$ Battlefield | Destination$ Exile
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Custom Card Thread
by Taris36 » 09 Mar 2016, 16:43
Here's the current version of the code and the two errors I'm getting. So far, the enchantment gains charges as expected, it causes red creatures to do triple damage, and it has shroud, but that's all.
Edit 1: I tried matching the exile SVar you had and it still crashed. Uploaded new versions. I feel really stupid at the moment.
Edit 1: I tried matching the exile SVar you had and it still crashed. Uploaded new versions. I feel really stupid at the moment.

- Attachments
-
errors.txt
- (3.07 KiB) Downloaded 223 times
-
sozins_comet.txt
- (1.87 KiB) Downloaded 234 times
Re: Custom Card Thread
by friarsol » 09 Mar 2016, 17:23
Well, as I said. API is wrong for the Effect "Exile" instead of ChangeZone. Not sure what's going on with the other thing. Looks fine to me. And Lightning Bolt + Furnace are working in the engine.
- Code: Select all
Name:Sozin's Comet
ManaCost:4 R R R
Types:Legendary Enchantment
K:Shroud
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | Execute$ TrigPutCounter | TriggerZones$ Battlefield | TriggerDescription$ At the beginning of your upkeep, put a charge counter on CARDNAME.
SVar:TrigPutCounter:AB$PutCounter | Cost$ 0 | CounterType$ CHARGE | CounterNum$ 1 | Defined$ Self
T:Mode$ Always | TriggerZones$ Battlefield | IsPresent$ Card.Self+counters_GE3_CHARGE | Execute$ TrigExile | Origin$ Battlefield | Destination$ Exile | ValidCard$ Card.Self | TriggerDescription$ When CARDNAME has three or more charge counters on it, exile CARDNAME.
SVar:TrigExile:AB$ ChangeZone | Cost$ 0 | Defined$ Self | Origin$ Battlefield | Destination$ Exile
R:Event$ DamageDone | ActiveZones$ Battlefield | ValidSource$ Card.Red | ValidTarget$ Creature,Player | ReplaceWith$ DmgThrice | IsCombat$ False | Description$ If a red source would deal damage to a creature or player, it deals triple that damage to that creature or player instead.
R:Event$ DamageDone | ActiveZones$ Battlefield | ValidSource$ Card.Red | ValidTarget$ Creature,Player | ReplaceWith$ DmgThriceCombat | IsCombat$ True | Secondary$ True | Description$ If a red source would deal damage to a creature or player, it deals triple that damage to that creature or player instead.
SVar:DmgThrice:AB$DealDamage | Cost$ 0 | CombatDamage$ False | Defined$ ReplacedTarget | DamageSource$ ReplacedSource | NumDmg$ Y | References$ Y
SVar:DmgThriceCombat:AB$DealDamage | Cost$ 0 | CombatDamage$ True | Defined$ ReplacedTarget | DamageSource$ ReplacedSource | NumDmg$ X | References$ X
SVar:X:ReplaceCount$DamageAmount/Thrice
SVar:PlayMain1:TRUE
SVar:RemRandomDeck:True
Oracle:Shroud\nAt the beginning of your upkeep, put a charge counter on Sozin's Comet.\nWhen Sozin's Comet has three or more charge counters on it, exile it.\nWhenever a red source deals damage, it deals triple that damage instead.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Custom Card Thread
by Taris36 » 09 Mar 2016, 18:01
Furnace of Rath only doubles, it doesn't triple.
I'm an idiot because I forgot to change the file the game was using. *facepalm* I was editing the extra I had as a backup. I updated the file the game uses. So now the exile part works fine. Yay!!! But now the Lightning Bolt does no damage at all. It also doesn't crash the game anymore. Weird.
Edit 1: I changed Y to X and it gives me this error.
Original code:
SVar:DmgThrice:AB$DealDamage | Cost$ 0 | CombatDamage$ False | Defined$ ReplacedTarget | DamageSource$ ReplacedSource | NumDmg$ Y | References$ Y
New Code:
SVar:DmgThrice:AB$DealDamage | Cost$ 0 | CombatDamage$ False | Defined$ ReplacedTarget | DamageSource$ ReplacedSource | NumDmg$ X | References$ X
I'm an idiot because I forgot to change the file the game was using. *facepalm* I was editing the extra I had as a backup. I updated the file the game uses. So now the exile part works fine. Yay!!! But now the Lightning Bolt does no damage at all. It also doesn't crash the game anymore. Weird.
Edit 1: I changed Y to X and it gives me this error.
Original code:
SVar:DmgThrice:AB$DealDamage | Cost$ 0 | CombatDamage$ False | Defined$ ReplacedTarget | DamageSource$ ReplacedSource | NumDmg$ Y | References$ Y
New Code:
SVar:DmgThrice:AB$DealDamage | Cost$ 0 | CombatDamage$ False | Defined$ ReplacedTarget | DamageSource$ ReplacedSource | NumDmg$ X | References$ X
- Attachments
-
2016-03-09-00.txt
- (3.01 KiB) Downloaded 272 times
-
sozins_comet.txt
- (1.91 KiB) Downloaded 230 times
Re: Custom Card Thread
by correioalternativo » 09 Mar 2016, 19:22
Blazing Runes: very good.edessa wrote:My third miniset is ready, I will upload the first 20 spoilers. As always suggestions are accepted.
Ancient Tome: interesting.
Ancient Shipwreck: cheap and reusable, I think it is overpowered this way.
Abyss Assassin: nice card, combo fuel.
Abandoned Library: very good, maybe dangerous.
Electroblaze: great card.
Connecting Ray: should be rare.
-
correioalternativo - Posts: 279
- Joined: 23 Jul 2012, 12:01
- Has thanked: 255 times
- Been thanked: 23 times
Re: Custom Card Thread
by friarsol » 09 Mar 2016, 19:35
My point was that Furnace of Rath works, and your card doesn't, so there must still be an issue with your script. What happens to X doesn't matter. The problem is X isn't even being passed through properly.Taris36 wrote:Furnace of Rath only doubles, it doesn't triple.
Compare your code -
- Code: Select all
SVar:DmgThrice:AB$DealDamage | Cost$ 0 | CombatDamage$ False | Defined$ ReplacedTarget | DamageSource$ ReplacedSource | NumDmg$ X | References$ X
SVar:DmgThriceCombat:AB$DealDamage | Cost$ 0 | CombatDamage$ True | Defined$ ReplacedTarget | DamageSource$ ReplacedSource | NumDmg$ X | References$ X
- Code: Select all
SVar:DmgTwice:AB$DealDamage | Cost$ 0 | Defined$ ReplacedTarget | DamageSource$ ReplacedSource | NumDmg$ X | References$ X
SVar:DmgTwiceCombat:AB$DealDamage | Cost$ 0 | CombatDamage$ True | Defined$ ReplacedTarget | DamageSource$ ReplacedSource | NumDmg$ X | References$ X
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Custom Card Thread
by Taris36 » 09 Mar 2016, 20:00
edessa:
Your Ice Shards card's effect confuses me. Did you want to damage an opponent's creature then add a +1/+1 counter to one of your creatures?
friarsol: I got the card working. It is now fully functional. Thanks a lot for the help. I really do appreciate it.
Edit 1: I didn't read edessa's card right. My bad. Keep up the good work edessa!!!
Your Ice Shards card's effect confuses me. Did you want to damage an opponent's creature then add a +1/+1 counter to one of your creatures?
friarsol: I got the card working. It is now fully functional. Thanks a lot for the help. I really do appreciate it.

Edit 1: I didn't read edessa's card right. My bad. Keep up the good work edessa!!!
Re: Custom Card Thread
by edessa » 09 Mar 2016, 20:52
Thanks, I hope the rest of the set like you. I have a question for you, are you developing some kind of Avatar set??? That would be interesting.Taris36 wrote:edessa:
Your Ice Shards card's effect confuses me. Did you want to damage an opponent's creature then add a +1/+1 counter to one of your creatures?
friarsol: I got the card working. It is now fully functional. Thanks a lot for the help. I really do appreciate it.
Edit 1: I didn't read edessa's card right. My bad. Keep up the good work edessa!!!
Who is online
Users browsing this forum: No registered users and 37 guests