Talk about new cards here
Posted: 15 Jul 2010, 16:13
MTG has a lot of cards, and implementing them takes a lot of discussion, so I made this forum so you can talk about new cards without clogging up the main forum.
High Quality Resources for Collectible Card Games and Home of the CCGHQ Team
https://www.slightlymagic.net/forum/
https://www.slightlymagic.net/forum/viewtopic.php?f=63&t=2891
Weird thing is that it's exactly the same as the ChooseNFromLibrary() function...whismer wrote:Object():GetPlayer():SetTargetCount( 3 )
local index = 1
while index < 4 do
Object():GetPlayer():SetTargetPrompt( index - 1, "ChooseTargetCard" )
index = index + 1
end
Object():GetPlayer():ChooseTargets()
<TRIGGERED_ABILITY tag="GRAVE_PACT_RULE_1" zone="IN_PLAY" layer="0">
<TRIGGER value="HIT_GRAVEYARD">
return ( (TriggerObject():GetCardType():Test( CARD_TYPE_CREATURE ) ~= 0) and YouControl() )
</TRIGGER>
<TARGET_DETERMINATION>
return ( SubjectType() == SUBJECT_PLAYER and Player() ~= Object():GetPlayer() )
</TARGET_DETERMINATION>
<PRE_EFFECT>
Object():GetFilter():SetPlayer( Object():GetTargetPlayer() )
Object():GetFilter():SetController( Object():GetTargetPlayer() )
Object():GetFilter():SetZone( ZONE_IN_PLAY )
Object():GetFilter():AddCardType( CARD_TYPE_CREATURE )
Object():GetTargetPlayer():ChooseTarget( "TargetCreatureNeutralBadF" )
</PRE_EFFECT>
<EFFECT>
SacrificeTargetCard()
</EFFECT>
</TRIGGERED_ABILITY>
Does it works when you remove the GuidedReveal parts ? I think you need to pass two parameters to it (where is it from and where does it go).whismer wrote: <EFFECT>
if Object():GetNthTargetCard( 0 ) ~= nil then
Object():GetNthTargetCard( 0 ):RemoveFromGame()
Object():GetNthTargetCard( 0 ):GuidedReveal( ZONE_LIBRARY )
end
if Object():GetNthTargetCard( 1 ) ~= nil then
Object():GetNthTargetCard( 1 ):RemoveFromGame()
Object():GetNthTargetCard( 1 ):GuidedReveal( ZONE_LIBRARY )
end
if Object():GetNthTargetCard( 2 ) ~= nil then
Object():GetNthTargetCard( 2 ):RemoveFromGame()
Object():GetNthTargetCard( 2 ):GuidedReveal( ZONE_LIBRARY )
end
Here's the list of zones :whismer wrote:I will try with the Zone_Graveyard for testing...
And what's the zone for EXILE?
EDIT : 3 cards in the graveyard... maybe with a Zone_EXILE
<SPELL_ABILITY tag="NATURAL_BALANCE_RULE_2" zone="InPlayAndPlayers" layer="0">
<PRE_EFFECT>
for i=0,MTG():GetNumberOfPlayers()-1 do
if MTG():GetNthPlayer( i ) ~= nil then
Object():GetFilter():Clear()
Object():GetFilter():SetPlayer( MTG():GetNthPlayer( i ) )
Object():GetFilter():SetController( MTG():GetNthPlayer( i ) )
Object():GetFilter():SetZone( ZONE_LIBRARY )
Object():GetFilter():NotTargetted()
Object():GetFilter():AddCardType( CARD_TYPE_LAND )
Object():GetFilter():AddSupertype( SUPERTYPE_BASIC )
MTG():GetNthPlayer( i ):ChooseTarget( "ChooseLand" )
end
end
</PRE_EFFECT>
<EFFECT>
</EFFECT>