It is currently 20 Apr 2024, 13:43
   
Text Size

Enchanted Evening Help

Moderator: CCGHQ Admins

Enchanted Evening Help

Postby Luchian » 19 Apr 2014, 15:38

Hello,

I just coded Enchanted Evening. It works just fine, but moves all the lands into the Enchantment/Artifact zone on the board cluttering things up something fierce. Is there any way to make it so that the lands stay where the lands normally are?
Here is the code I have for EE.
Code: Select all
  <STATIC_ABILITY>
      <FILTER filter_id="0">
    local filter = ClearFilter()
    filter:Add( FE_IS_PERMANENT )
    </FILTER>
      <CONTINUOUS_ACTION layer="4" filter_id="0">
    if FilteredCard() ~= nil then
       local cardtype = FilteredCard():GetCurrentCharacteristics():CardType_GetWritable()
       cardtype:Add( CARD_TYPE_ENCHANTMENT )
    end      
    </CONTINUOUS_ACTION>
   </STATIC_ABILITY>
   <AI_BASE_SCORE score="1200" zone="ZONE_BATTLEFIELD" />
Luchian
 
Posts: 20
Joined: 21 Mar 2014, 20:50
Has thanked: 10 times
Been thanked: 2 times

Re: Enchanted Evening Help

Postby RiiakShiNal » 19 Apr 2014, 15:55

Luchian wrote:I just coded Enchanted Evening. It works just fine, but moves all the lands into the Enchantment/Artifact zone on the board cluttering things up something fierce. Is there any way to make it so that the lands stay where the lands normally are?
No, there isn't, the engine forces cards that are not solely basic lands into that area of the board. Non-basic lands also show up there.
RiiakShiNal
Programmer
 
Posts: 2185
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 497 times

Re: Enchanted Evening Help

Postby Luchian » 19 Apr 2014, 16:56

That's kind of what I figured. But I hoped there was some way to trick it into keeping them in the right place. Oh well. Thanks for your help.
Luchian
 
Posts: 20
Joined: 21 Mar 2014, 20:50
Has thanked: 10 times
Been thanked: 2 times


Return to Programming Talk

Who is online

Users browsing this forum: No registered users and 8 guests


Who is online

In total there are 8 users online :: 0 registered, 0 hidden and 8 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 8 guests

Login Form