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).