Board index
Programs with AI or Rules Enforcement
Magic: The Gathering - Duels of the Planeswalkers
New MTG Cards and Decks
2012
Programs with AI or Rules Enforcement
Magic: The Gathering - Duels of the Planeswalkers
New MTG Cards and Decks
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.
< DotP2013 (and formerly 2012) modder >
WADs unrecognized by the game? Look here.
Need a basic modding tutorial? Try this.
Want to start coding cards? Try my web generator.
WADs unrecognized by the game? Look here.
Need a basic modding tutorial? Try this.
Want to start coding cards? Try my web generator.
-

thefiremind - Programmer
- Posts: 1819
- Joined: 07 Nov 2011, 10:55
- Has thanked: 63 times
- Been thanked: 401 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 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>
Who is online
Users browsing this forum: No registered users and 0 guests


