Board index Programs with AI or Rules Enforcement Magic: The Gathering - Duels of the Planeswalkers New MTG Cards and Decks (2010, 2012, 2013, 2014, 2015, Magic Duels) 2012
Sun Mar 25, 2012 DOTP 2012 Eglin's Decks v1.01
Moderator: CCGHQ Admins
Re: Sun Mar 25, 2012 DOTP 2012 Eglin's Decks v1.01
by thefiremind » 29 Mar 2012, 23:09
I don't have time to look into it right now, but Stromkirk Noble's ability should be made similar to Aura Gnarlid.
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
Currently busy with life...
-
thefiremind - Programmer
- Posts: 3515
- Joined: 07 Nov 2011, 10:55
- Has thanked: 118 times
- Been thanked: 721 times
Re: Sun Mar 25, 2012 DOTP 2012 Eglin's Decks v1.01
by Ctar » 30 Mar 2012, 00:40
yes , but your teammates attack with any number of creatures also trigger the exalted . like them has "Exalted"sadlyblue wrote:I think i see what he means.
Eglin, you tried a 1 on 1 game, and it doesn't trigger for the opponent.
But if you play a 3 on 1, an archenemy game, your one of the 3 against the other, and you attack with one creature, but your teammates attack with any number of creatures.
your creature will trigger the exalted, but the bonus will be given to all, your teammates also:
FilteredCard():GetCardType():Test( CARD_TYPE_CREATURE ) ~= 0 and
FilteredCard():GetController() == Object():GetController() and <- your missing this to give only to your creature
FilteredCard():GetZone() == ZONE_IN_PLAY and
FilteredCard():IsAttacking() ~= 0 )
Ctar, is that you tried to say, right? At least, that' what i understood by the code also.
Re: Sun Mar 25, 2012 DOTP 2012 Eglin's Decks v1.01
by Persee » 30 Mar 2012, 07:31
No, Exalted must triggered only on creatures you control
Re: Sun Mar 25, 2012 DOTP 2012 Eglin's Decks v1.01
by Ctar » 30 Mar 2012, 09:24
sorry , I need learn English more.
<TRIGGER value="ATTACKING">
local total = 0
local filter = Object():GetFilter()
filter:Clear()
filter:AddCardType( CARD_TYPE_CREATURE )
filter:SetController( Object():GetController() )
filter:AddExtra( FILTER_EXTRA_CREATURE_ATTACKING )
total = filter:Count()
if total == 1 then
return TriggerObject():GetController() == Object():GetController() <=====!!!
else
return false
end
</TRIGGER>
<FILTER>
return (FilteredCard() ~= nil and
FilteredCard():GetCardType():Test( CARD_TYPE_CREATURE ) ~= 0 and
FilteredCard():GetController() == Object():GetController() and <=====!!!!
FilteredCard():GetZone() == ZONE_IN_PLAY and
FilteredCard():IsAttacking() ~= 0 )
</FILTER>
<TRIGGER value="ATTACKING">
local total = 0
local filter = Object():GetFilter()
filter:Clear()
filter:AddCardType( CARD_TYPE_CREATURE )
filter:SetController( Object():GetController() )
filter:AddExtra( FILTER_EXTRA_CREATURE_ATTACKING )
total = filter:Count()
if total == 1 then
return TriggerObject():GetController() == Object():GetController() <=====!!!
else
return false
end
</TRIGGER>
<FILTER>
return (FilteredCard() ~= nil and
FilteredCard():GetCardType():Test( CARD_TYPE_CREATURE ) ~= 0 and
FilteredCard():GetController() == Object():GetController() and <=====!!!!
FilteredCard():GetZone() == ZONE_IN_PLAY and
FilteredCard():IsAttacking() ~= 0 )
</FILTER>
Re: Sun Mar 25, 2012 DOTP 2012 Eglin's Decks v1.01
by Siber1an » 19 Jul 2022, 14:19
Eglin, many thanks! You rock!
Who is online
Users browsing this forum: No registered users and 6 guests