It is currently 12 Nov 2025, 23:06
   
Text Size

Help on these 3 cards.

Moderator: CCGHQ Admins

Help on these 3 cards.

Postby alexandreonly » 13 Sep 2012, 11:27

Vastwood Animist, Harabaz Druid and Tuktuk Scrapper are the only allies i still don't coded, and i don't know how to implement them. Ideas?
alexandreonly
 
Posts: 145
Joined: 04 Jul 2011, 17:27
Has thanked: 0 time
Been thanked: 8 times

Re: Help on these 3 cards.

Postby Persee » 13 Sep 2012, 11:35

Harabaz Druid will be easy to code with mana token.
User avatar
Persee
 
Posts: 168
Joined: 02 Jun 2011, 08:33
Has thanked: 42 times
Been thanked: 24 times

Re: Help on these 3 cards.

Postby RiiakShiNal » 13 Sep 2012, 12:14

Well, Vastwood Animist should be easy by looking at Awakener Druid (coded by Wizards) and using part of it for the card.

And Tuktuk Scrapper should be relatively easy by just having a triggered ability that destroys a target artifact when an ally comes into play and creates a delayed trigger that triggers if the artifact goes to the graveyard and cleans up at either end of turn or once it is triggered that does damage to the controller equal to the number of allies you currently control.

So for Tuktuk Scrapper I would probably create a chest on the EffectDC and pass the card and current controller via that.
Code: Select all
EffectDC():Make_Chest(0)
EffectDC():Get_Chest(0):Set_CardPtr(0, oTarget)
EffectDC():Get_Chest(0):Set_PlayerPtr(1, oTarget:GetController())
MTG():CreateDelayedTrigger(ResourceId, EffectDC():Get_Chest(0))
Then I would destroy the artifact (that way the delayed trigger is created first) and in the delayed trigger I would check to see that the card going to the graveyard is equal to EffectDC():Get_CardPtr(0) so that it only triggers when that artifact goes to the graveyard. Then if you can't get the current controller you at least know the last controller because you have it saved off in EffectDC():Get_PlayerPtr(1).
RiiakShiNal
Programmer
 
Posts: 2189
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 497 times


Return to Programming Talk

Who is online

Users browsing this forum: No registered users and 13 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 13 users online :: 0 registered, 0 hidden and 13 guests (based on users active over the past 10 minutes)
Most users ever online was 9824 on 10 Nov 2025, 04:33

Users browsing this forum: No registered users and 13 guests

Login Form