Board index Programs with AI or Rules Enforcement Magic: The Gathering - Duels of the Planeswalkers Programming Talk
Enchanted Evening Help
Moderator: CCGHQ Admins
Enchanted Evening Help
by 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.
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" />
Re: Enchanted Evening Help
by RiiakShiNal » 19 Apr 2014, 15:55
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.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?
Just getting started: Xander9009's DotP 2014 Community Wad
Need a deck builder: DotP 2014 Deck Builder
Problems Modding: DotP 2014 Frequent Modding Mistakes
Need a deck builder: DotP 2014 Deck Builder
Problems Modding: DotP 2014 Frequent Modding Mistakes
- RiiakShiNal
- Programmer
- Posts: 2185
- Joined: 16 May 2011, 21:37
- Has thanked: 75 times
- Been thanked: 497 times
Re: Enchanted Evening Help
by 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.
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 18 guests