Board index Programs with AI or Rules Enforcement Magic: The Gathering - Duels of the Planeswalkers Programming Talk
Akromas Memorial help (all creatures protection black/red)
Moderator: CCGHQ Admins
Akromas Memorial help (all creatures protection black/red)
by Lirave » 13 Nov 2012, 23:22
hi, i want to know how i can add protection from black and red for all my creatures. I cant find the right keywords for it.
Can you please look at it ?
Can you please look at it ?
- | Open
- Code: Select all
<?xml version='1.0'?>
<CARD_V2>
<FILENAME text="AKROMAS_MEMORIAL_279712" />
<CARDNAME text="AKROMAS_MEMORIAL" />
... too spamy for a new user ...
<STATIC_ABILITY filter_zone="ZONE_IN_PLAY">
... too spamy for a new user ...
<FILTER>
return (FilteredCard() ~= nil and
FilteredCard():GetCardType():Test( CARD_TYPE_CREATURE ) ~= 0 and
FilteredCard():GetZone() == ZONE_IN_PLAY and
FilteredCard():GetPlayer() == Object():GetPlayer())
</FILTER>
<CONTINUOUS_ACTION layer="7C">
if FilteredCard() ~= nil then
local characteristics = FilteredCard():GetCurrentCharacteristics()
if characteristics ~= nil then
characteristics:Characteristic_Set( CHARACTERISTIC_FLYING, 1 )
characteristics:Characteristic_Set( CHARACTERISTIC_FIRST_STRIKE, 1 )
characteristics:Characteristic_Set( CHARACTERISTIC_VIGILANCE, 1 )
characteristics:Characteristic_Set( CHARACTERISTIC_TRAMPLE, 1 )
characteristics:Characteristic_Set( CHARACTERISTIC_HASTE, 1 )
end
end
</CONTINUOUS_ACTION>
</STATIC_ABILITY>
<AI_BASE_SCORE score="600" zone="ZONE_IN_PLAY" />
</CARD_V2>
Re: Akromas Memorial help (all creatures protection black/re
by thefiremind » 14 Nov 2012, 09:29
Here you can find Akroma's Memorial already coded by me.
< 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: Akromas Memorial help (all creatures protection black/re
by Lirave » 14 Nov 2012, 09:50
Thank you thefiremind,
i thought i searched the forum for "akroma" but didn't found your post.
i thought i searched the forum for "akroma" but didn't found your post.
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 40 guests