It is currently 06 Mar 2021, 17:42
   
Text Size

Developing a Custom Card Script is Pretty Hard...

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

Developing a Custom Card Script is Pretty Hard...

Postby hamhub7 » 02 Nov 2020, 01:11

Hello everyone,

I have been trying to create a custom card script for a commander I designed. I cannot post a url to an image, but it reads:

Whenever you cast an instant or sorcery spell, you get {E} {E}, then you may pay X {E}, where X is the spell’s converted mana cost. If you do, copy that spell. You may choose new targets for the copy.

I have been able to get the first half, where it gives the player 2 energy when they cast an instant or sorcery spell. However, I have not been able to get it to copy the spell. I have tried using Mirari and Confiscation Coup as examples, but I don't understand quite how they work and what changes I would need to make to get mine to work. Mirari is an optonail ability, where I want mine to trigger always but have an optional payment. Confiscation Coup has a target, which mine does not, and I can't figure out how to trigger the second part off the energy gain part anyways.

Here is the current script with just the energy part:

T:Mode$ SpellCast | ValidCard$ Instant,Sorcery | ValidActivatingPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigEnergy | TriggerDescription$ Whenever you cast an instant or sorcery spell, you get {E} {E}, then you may pay X {E}, where X is the spell’s converted mana cost. If you do, copy that spell. You may choose new targets for the copy.
SVar:TrigEnergy:DB$ PutCounter | Defined$ You | CounterType$ ENERGY | CounterNum$ 2

Any help is appreciated. Thank you!!
hamhub7
 
Posts: 1
Joined: 02 Nov 2020, 01:01
Has thanked: 0 time
Been thanked: 0 time

Re: Developing a Custom Card Script is Pretty Hard...

Postby friarsol » 03 Nov 2020, 01:58

I Would recommend jumping into the discord and asking the #card-scripting channel. Its a better location for this type of question.
friarsol
Global Moderator
 
Posts: 7565
Joined: 15 May 2010, 04:20
Has thanked: 242 times
Been thanked: 953 times


Return to Forge

Who is online

Users browsing this forum: No registered users and 16 guests


Who is online

In total there are 16 users online :: 0 registered, 0 hidden and 16 guests (based on users active over the past 10 minutes)
Most users ever online was 1371 on 09 Feb 2020, 16:22

Users browsing this forum: No registered users and 16 guests

Login Form