Page 1 of 1

removing a card from the game

PostPosted: 12 Apr 2015, 11:32
by logoliv
I'm trying to code a card that removes all other instances of itself (all cards with the same name) from the game when entering the battlefield. The problem is that i don't want to exile them but remove them completely from the game, is it possible in Magic 2014 ?

In the first DotP i coded a card that did the job, but i suppose it won't work with the 2014 version :
Code: Select all
<TRIGGERED_ABILITY layer="0" zone="Any">
         
   <TRIGGER value="COMES_INTO_PLAY">
   return SelfTriggered()
   </TRIGGER>
         
   <FILTER>
   return SubjectType() == SUBJECT_OBJECT
     and Object():GetRef() == Subject():GetRef()
     and Object():GetPlayer() == Subject():GetPlayer()
     and ( Subject():GetZone() == ZONE_GRAVEYARD or
       Subject():GetZone() == ZONE_HAND or
       Subject():GetZone() == ZONE_LIBRARY )
   </FILTER>
         
   <EFFECT>
   Subject():RemoveFromGame()
   </EFFECT>
         
</TRIGGERED_ABILITY>
Any help would be welcome :)

Re: removing a card from the game

PostPosted: 13 Apr 2015, 10:51
by RiiakShiNal
In DotP 2010 RemoveFromGame() is the exact same thing as exiling. It was renamed in later iterations of the DotP engine. So your card that "did the job" simply exiled the other copies of itself and did not actually remove them.

There is no way to completely remove a non-token card from the game. Tokens are deleted (completely removed) when they leave play, but there is no way to delete a non-token card.

Re: removing a card from the game

PostPosted: 13 Apr 2015, 12:39
by logoliv
thanks :) if i remember correctly, we could not see the exile zone in DotP right ? that's why i thought they were completely removed from game.

Re: removing a card from the game

PostPosted: 14 Apr 2015, 10:46
by RiiakShiNal
logoliv wrote:thanks :) if i remember correctly, we could not see the exile zone in DotP right ? that's why i thought they were completely removed from game.
That's correct, in DotP 2010 we could not see the exile zone. The closest we can get now is with ZONE_CEASED_TO_EXIST, but it may not work as expected and there is no easy function to send a card to that zone. If I remember correctly one of the modders on the forum was experimenting with this and said that using QueueZoneChange() they were able to send cards to that zone.

Re: removing a card from the game

PostPosted: 14 Apr 2015, 12:41
by sweetLu
I think neo used it for phasing when he was trying to make that. I'd suggest checking there if you want to look into it.