It is currently 24 Mar 2025, 03:31
   
Text Size

Help needed with custom card script

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

Help needed with custom card script

Postby qwertyuiop265000 » 12 Mar 2025, 14:57

So I need help with this card. You see, it's supposed to let me gqin control of any creature it deals combat damage to, but it just... doesn't? Help me!

Name:The Corruption
ManaCost:W U B R G C
Types:Creature Horror
PT:2/1
K:Echo:3
K:CARDNAME must be blocked if able.
T:Mode$ DamageDone | ValidSource$ Card.Self | ValidTarget$ Creature | CombatDamage$ True | TriggerZones$ Battlefield | Execute$ DBGainControl | Execute$ DBCopy | TriggerDescription$ Whenever CARDNAME deals combat damage to a creature, create a token copy of The Corruption and gain control of the defending creature (if it's still alive, of course.)
SVar:DBGainControl:DB$ GainControl | Defined$ TriggeredTargetLKI | NewController$ You
SVar:DBCopy:DB$ CopyPermanent | Defined$ Self | NumCopies$ 1
S:Mode$ Continuous | Affected$ Card.Self | AddPower$ X | AddToughness$ X | TriggerDescription$ The Corruption gets +1/+1 for each other creature named The Corruption.
SVar:X:Count$Valid Creature.namedThe Corruption+Other
SVar:BuffedBy:Creature.namedThe Corruption
SVar:PlayMain1:TRUE
Oracle:Whenever The Corruption deals combat damage to a creature, create a token copy of The Corruption. Gain control of the defending creature. The Corruption gets +1/+1 for each other creature named The Corruption.
qwertyuiop265000
 
Posts: 1
Joined: 12 Mar 2025, 14:35
Has thanked: 0 time
Been thanked: 0 time

Re: Help needed with custom card script

Postby lyly19 » 19 Mar 2025, 03:55

It looks like the problem is with how you reference the GainControl target. You're using TriggeredTargetLKI, but you may want to replace it with TriggeredTarget to ensure you can still control the creature even if it survives combat.

Try replacing the line:
SVar:DBGainControl:DB$ GainControl | Defined$ TriggeredTargetLKI | NewController$ You

with:
SVar:DBGainControl:DB$ GainControl | Defined$ TriggeredTarget | NewController$ You

If it still doesn't work, check if TriggerZones$ Battlefield needs to be modified, as sometimes a creature can be destroyed before the effect can be applied.
lyly19
 
Posts: 3
Joined: 16 Jul 2024, 08:19
Has thanked: 0 time
Been thanked: 0 time


Return to Forge

Who is online

Users browsing this forum: No registered users and 14 guests


Who is online

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

Login Form