Board index Programs with AI or Rules Enforcement Magic: The Gathering - Duels of the Planeswalkers Programming Talk
Multiple targets
Moderator: CCGHQ Admins
Multiple targets
by BlindWillow » 04 Aug 2012, 02:28
When using kevlahnota's code for Grim Lavamancer I noticed the following for the target determination of the exile cost:
- Code: Select all
<TARGET_DETERMINATION>
local filter = Object():GetFilter()
filter:Clear()
filter:SetZone( ZONE_GRAVEYARD )
filter:SetPlayer( EffectController() )
filter:NotTargetted()
local total = (filter:Count())
if total > 1 then
return 1
else
return 0
end
</TARGET_DETERMINATION>
- Code: Select all
<TARGET_DEFINITION id="6">
local filter = Object():GetFilter()
filter:Clear()
filter:SetZone( ZONE_GRAVEYARD )
filter:SetPlayer( EffectController() )
filter:NotTargetted()
</TARGET_DEFINITION>
<TARGET_DETERMINATION>
return AtLeastNTargetsFromDefinition(6, 2)
</TARGET_DETERMINATION>
- BlindWillow
- Posts: 213
- Joined: 19 Jul 2012, 00:26
- Has thanked: 11 times
- Been thanked: 46 times
1 post
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 9 guests