Board index
Programs with AI or Rules Enforcement
Magic: The Gathering - Duels of the Planeswalkers
Programming Talk



Ashen-Skin Zubera
Moderator: CCGHQ Admins
Ashen-Skin Zubera
by spiwy » 17 Mar 2011, 00:58
Hello guys, I'm kind of new to the community, and I want to help as much as possible, but first I have to learn
, so I started to code some cards for DOPT from my favourite block (Kamigawa), and I got to this card, and I can't make it work for some reason, I managed to put it as a plain 1/2 black creature, but when I write the abilities it just doesn't show in the deck. Any suggestion please? Thanks in advance!!



- Code: Select all
<TRIGGERED_ABILITY zone="any" internal="1">
<TRIGGER value="HIT_GRAVEYARD">
return CreaturesYouControlOfType( CREATURE_TYPE_ZUBERA ) and OtherCreatures()
</TRIGGER>
<EFFECT>
Object():Register_Set( 0, Object():Register_Get(0)+1)
<EFFECT>
</TRIGGERED_ABILITY>
<TRIGGERED_ABILITY layer="0" tag="ASHEN_SKIN_ZUBERA_RULE_1">
<TRIGGER value="HIT_GRAVEYARD">
return SelfTriggered()
</TRIGGER>
<TARGET_DETERMINATION>
return TargetOpponent( Object():GetPlayer() )
</TARGET_DETERMINATION>
<PLAYTIME>
ChooseTarget( "ChooseOpponentDiscardOne" )
</PLAYTIME>
<EFFECT>
local n=Register_Get(0)
for i=0 n do
TargetPlayerDiscardsACard()
</TRIGGERED_ABILITY>
<TRIGGERED_ABILITY zone="any" internal="1">
<TRIGGER value="BEGINNING_OF_STEP">
return EveryUpkeep()
</TRIGGER>
<EFFECT>
Object():Register_Set( 0, 0)
</EFFECT>
</TRIGGERED_ABILITY>
Re: Ashen-Skin Zubera
by Shatterhouse » 17 May 2011, 02:47
I just read this for the first time.
You've probably figured out the problem by now, two months later. But for everybody else:
When cards suddenly stop showing up in game, it's usually because you didn't close all your XML tags properly.
You've probably figured out the problem by now, two months later. But for everybody else:
When cards suddenly stop showing up in game, it's usually because you didn't close all your XML tags properly.
- Shatterhouse
- Posts: 72
- Joined: 20 Apr 2011, 00:07
- Has thanked: 0 time
- Been thanked: 2 times
Re: Ashen-Skin Zubera
by spiwy » 17 May 2011, 11:00
Yep i did
, thanks for the answer anyway, it was very frustrating to try to start coding and nobody was here to help! But now we are recovering ^.^

3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 4 guests