Board index  Programs with AI or Rules Enforcement
 Programs with AI or Rules Enforcement Magic: The Gathering - Duels of the Planeswalkers
 Magic: The Gathering - Duels of the Planeswalkers Programming Talk
 Programming Talk
                    									
                    									                    									 Programs with AI or Rules Enforcement
 Programs with AI or Rules Enforcement Magic: The Gathering - Duels of the Planeswalkers
 Magic: The Gathering - Duels of the Planeswalkers Programming Talk
 Programming Talk
                    									URGE TO FEED
Moderator: CCGHQ Admins
			1 post
			 • Page 1 of 1
		
	
URGE TO FEED
 by Mithrarian » 07 Feb 2011, 20:27
by Mithrarian » 07 Feb 2011, 20:27 
I have experiencing problems to implement URGE_TO_FEED
I have testes with many combinations of spell_ability and triggered_ability. The stable version of the current development of the card is:
Anyone, can help me with this issue?
Thanks
			
		I have testes with many combinations of spell_ability and triggered_ability. The stable version of the current development of the card is:
- Code: Select all
- <SPELL_ABILITY tag="URGE_TO_FEED_RULE_1" simple_filter="Target" layer="7c">
 <TARGET_DETERMINATION>
 return TargetCreatureBad()
 </TARGET_DETERMINATION>
 <PLAYTIME>
 ChooseTarget( "ChooseCreatureMinusThreeMinusThree" )
 </PLAYTIME>
 <EFFECT>
 AddPowerAndToughness( -3, -3 )
 </EFFECT>
 <DURATION>
 return UntilEndOfTurn()
 </DURATION>
 </SPELL_ABILITY>
 <TRIGGERED_ABILITY layer="0" zone="any" forced_skip="1" >
 <TRIGGER value="SPELL_RESOLVED">
 return SelfTriggered()
 </TRIGGER>
 <TARGET_DETERMINATION>
 Object():GetFilter():Clear()
 Object():GetFilter():NotTargetted()
 Object():GetFilter():AddCardType( CARD_TYPE_CREATURE )
 Object():GetFilter():AddSubType( CREATURE_TYPE_VAMPIRE )
 Object():GetFilter():AddExtra( FILTER_EXTRA_CREATURE_UNTAPPED )
 Object():GetFilter():SetZone( ZONE_IN_PLAY )
 Object():GetPlayer():SetTargetCount( 15 )
 Object():GetFilter():May()
 Object():GetPlayer():SetTargetPrompt( 0, "DoYouWantToTapVampire" )
 Object():GetPlayer():SetTargetPrompt( 1, "DoYouWantToTapVampire" )
 Object():GetPlayer():SetTargetPrompt( 2, "DoYouWantToTapVampire" )
 Object():GetPlayer():SetTargetPrompt( 3, "DoYouWantToTapVampire" )
 Object():GetPlayer():SetTargetPrompt( 4, "DoYouWantToTapVampire" )
 Object():GetPlayer():SetTargetPrompt( 5, "DoYouWantToTapVampire" )
 Object():GetPlayer():SetTargetPrompt( 6, "DoYouWantToTapVampire" )
 Object():GetPlayer():SetTargetPrompt( 7, "DoYouWantToTapVampire" )
 Object():GetPlayer():SetTargetPrompt( 8, "DoYouWantToTapVampire" )
 Object():GetPlayer():SetTargetPrompt( 9, "DoYouWantToTapVampire" )
 Object():GetPlayer():SetTargetPrompt( 10, "DoYouWantToTapVampire" )
 Object():GetPlayer():SetTargetPrompt( 11, "DoYouWantToTapVampire" )
 Object():GetPlayer():SetTargetPrompt( 12, "DoYouWantToTapVampire" )
 Object():GetPlayer():SetTargetPrompt( 13, "DoYouWantToTapVampire" )
 Object():GetPlayer():SetTargetPrompt( 14, "DoYouWantToTapVampire" )
 </TARGET_DETERMINATION>
 <PLAYTIME>
 Object():GetPlayer():ChooseTargets()
 </PLAYTIME>
 <PRE_EFFECT>
 for i=0, 15 do
 if Object():GetNthTargetCard( i ) ~= nil then
 Object():GetNthTargetCard( i ):Tap()
 Object():GetNthTargetCard( i ):AddCounters( MTG():PlusOnePlusOneCounters(), 1 )
 end
 end
 </PRE_EFFECT>
 </TRIGGERED_ABILITY>
Anyone, can help me with this issue?
Thanks
- Mithrarian
- Posts: 7
- Joined: 06 Feb 2011, 10:48
- Has thanked: 0 time
- Been thanked: 0 time
			1 post
			 • Page 1 of 1
		
	
Who is online
Users browsing this forum: No registered users and 7 guests