It is currently 26 Apr 2024, 15:38
   
Text Size

Akromas Memorial help (all creatures protection black/red)

Moderator: CCGHQ Admins

Akromas Memorial help (all creatures protection black/red)

Postby 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 ?

| 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>
Thank you.
Lirave
 
Posts: 14
Joined: 13 Nov 2012, 18:17
Has thanked: 0 time
Been thanked: 2 times

Re: Akromas Memorial help (all creatures protection black/re

Postby thefiremind » 14 Nov 2012, 09:29

Here you can find Akroma's Memorial already coded by me. :wink:
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
User avatar
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

Postby Lirave » 14 Nov 2012, 09:50

Thank you thefiremind,
i thought i searched the forum for "akroma" but didn't found your post.
Lirave
 
Posts: 14
Joined: 13 Nov 2012, 18:17
Has thanked: 0 time
Been thanked: 2 times


Return to Programming Talk

Who is online

Users browsing this forum: No registered users and 41 guests


Who is online

In total there are 41 users online :: 0 registered, 0 hidden and 41 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 41 guests

Login Form