Board index Programs with AI or Rules Enforcement Magic: The Gathering - Duels of the Planeswalkers Programming Talk
Produce two colored manas ?
Moderator: CCGHQ Admins
Produce two colored manas ?
by Persee » 17 Jul 2012, 19:06
Hello,
I try to code Remote Farm but I don't know how produce 2 colored mana in a single mana ability.
I tried 3 different codes :
<MANA_ABILITY resource_id="0" filter_zone="ZONE_IN_PLAY">
<COST type="TapSelf" />
<PRODUCES amount="{W}{W}" />
</MANA_ABILITY>
=> the land doesn't work at all.
<MANA_ABILITY resource_id="0" filter_zone="ZONE_IN_PLAY">
<COST type="TapSelf" />
<PRODUCES amount="{W}" />
<PRODUCES amount="{W}" />
</MANA_ABILITY>
=> the game crashes.
<MANA_ABILITY resource_id="0" filter_zone="ZONE_IN_PLAY">
<COST type="TapSelf" />
<PRODUCES amount="{WW}" />
</MANA_ABILITY>
=> when I play a land the Remote Farm get tapped
If someone have a idea....if it's possible to do this
Thanks
I try to code Remote Farm but I don't know how produce 2 colored mana in a single mana ability.
I tried 3 different codes :
<MANA_ABILITY resource_id="0" filter_zone="ZONE_IN_PLAY">
<COST type="TapSelf" />
<PRODUCES amount="{W}{W}" />
</MANA_ABILITY>
=> the land doesn't work at all.
<MANA_ABILITY resource_id="0" filter_zone="ZONE_IN_PLAY">
<COST type="TapSelf" />
<PRODUCES amount="{W}" />
<PRODUCES amount="{W}" />
</MANA_ABILITY>
=> the game crashes.
<MANA_ABILITY resource_id="0" filter_zone="ZONE_IN_PLAY">
<COST type="TapSelf" />
<PRODUCES amount="{WW}" />
</MANA_ABILITY>
=> when I play a land the Remote Farm get tapped
If someone have a idea....if it's possible to do this
Thanks
Last edited by Persee on 18 Jul 2012, 08:12, edited 1 time in total.
Re: Produce two colored manas ?
by RiiakShiNal » 17 Jul 2012, 20:15
Instead of granting the mana ability using a resource id, why don't you try removing the depletion counter as a result of using its mana ability like this:
- Code: Select all
<MANA_ABILITY>
<COST type="TapSelf" />
<PRODUCES amount="{W}{W}" />
</MANA_ABILITY>
<TRIGGERED_ABILITY internal="1">
<TRIGGER value="BECAME_TAPPED_FOR_MANA" simple_qualifier="self" />
<RESOLUTION_TIME_ACTION>
-- Remove the depletion counter and check to see if you need to sacrifice it.
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
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: Produce two colored manas ?
by pcastellazzi » 17 Jul 2012, 21:52
I did not thest this. But something like this should probably work.
- Code: Select all
<TRIGGERED_ABILITY internal="1">
<TRIGGER value="ZONECHANGE_END" simple_qualifier="self" to_zone="ZONE_IN_PLAY" />
<RESOLUTION_TIME_ACTION>
Object():AddCounters(MTG():GetCountersType("DEPLETION"), 2)
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
<MANA_ABILITY>
<COST type="CountersSelf" name="DEPLETION" number="-1" />
<COST type="TapSelf" />
<PRODUCES amount="{W}{W}" />
</MANA_ABILITY>
<TRIGGERED_ABILITY internal="1">
<TRIGGER value="BECAME_TAPPED_FOR_MANA" simple_qualifier="self" />
<RESOLUTION_TIME_ACTION>
if Object():CountCounters(MTG():GetCountersType("DEPLETION")) == 0 then
Object():Sacrifice()
end
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
The lights then came up and the crowd erupted in applause, because that's what the crowd does after it watches destruction on a large screen.
— Ben Kuchera, Mordern Warfare 3 review.
— Ben Kuchera, Mordern Warfare 3 review.
-
pcastellazzi - Posts: 184
- Joined: 25 Apr 2012, 00:40
- Location: Montevideo, Uruguay
- Has thanked: 11 times
- Been thanked: 30 times
Re: Produce two colored manas ?
by thefiremind » 17 Jul 2012, 22:17
I didn't test it either, but I'm afraid that the additional cost on the mana ability will be simply ignored. Mana abilities are still very limited.pcastellazzi wrote:I did not thest this. But something like this should probably work.
< 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
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 16 guests