Board index Programs with AI or Rules Enforcement Magic: The Gathering - Duels of the Planeswalkers Programming Talk
DOTP 2014 MANA (two or more color w/o using tokens)?
Moderator: CCGHQ Admins
DOTP 2014 MANA (two or more color w/o using tokens)?
by kevlahnota » 05 Jul 2013, 03:35
Hi. I think its possible to have a variable mana producer. We just need to know the mana to spend with such card, and then I think we can make it without using token.
Here's an alternate way to have a mana producer using replacement trigger (one color only):
I think the best way we can get is determine the TotalMana you can pay and change it.
Another one is to get the ChromaCount of TriggerObject().
The least would be is granting the less predominant color.
Any Ideas ?...?
Here's an alternate way to have a mana producer using replacement trigger (one color only):
- Code: Select all
<TRIGGERED_ABILITY replacement_effect="1">
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{T}: Add {G} to your mana pool.]]></LOCALISED_TEXT>
<TRIGGER value="CONSIDERED_FOR_CAST" simple_qualifier="controller" pre_trigger="1" />
<RESOLUTION_TIME_ACTION layer="8">
local characteristics = Object():GetCurrentCharacteristics()
characteristics:GrantAbility(1)
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
<TRIGGERED_ABILITY replacement_effect="1">
<TRIGGER value="CONSIDERED_FOR_ACTIVATION" simple_qualifier="controller" pre_trigger="1" />
<RESOLUTION_TIME_ACTION layer="8">
local characteristics = Object():GetCurrentCharacteristics()
characteristics:GrantAbility(1)
</RESOLUTION_TIME_ACTION>
</TRIGGERED_ABILITY>
<MANA_ABILITY resource_id="1">
<PRODUCES amount="{G}" />
</MANA_ABILITY>
I think the best way we can get is determine the TotalMana you can pay and change it.
Another one is to get the ChromaCount of TriggerObject().
The least would be is granting the less predominant color.
Any Ideas ?...?
-
kevlahnota - Programmer
- Posts: 825
- Joined: 19 Jul 2010, 17:45
- Location: Philippines
- Has thanked: 14 times
- Been thanked: 264 times
Re: DOTP 2014 MANA (two or more color w/o using tokens)?
by thefiremind » 05 Jul 2013, 08:17
I was using ChromaCount in DotP2013 when I wanted to extract the mana cost of a card, but it gives wrong result with hybrid mana, and I think there's still no way to extract the mana cost of an ability.
< 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: DOTP 2014 MANA (two or more color w/o using tokens)?
by sumomole » 06 Jul 2013, 01:31
I've improved your code in DotP2013 and it can count all mana symbol, but I agree with your last sentence, so it seems useless.thefiremind wrote:I was using ChromaCount in DotP2013 when I wanted to extract the mana cost of a card, but it gives wrong result with hybrid mana, and I think there's still no way to extract the mana cost of an ability.
-
sumomole - Programmer
- Posts: 611
- Joined: 07 Jun 2011, 08:34
- Has thanked: 51 times
- Been thanked: 234 times
Re: DOTP 2014 MANA (two or more color w/o using tokens)?
by kevlahnota » 07 Jul 2013, 11:27
GOOD NEWS!!! Magic 2014 supports two or more mana with no workarounds !!! will update my Custom DLC with it
-
kevlahnota - Programmer
- Posts: 825
- Joined: 19 Jul 2010, 17:45
- Location: Philippines
- Has thanked: 14 times
- Been thanked: 264 times
Re: DOTP 2014 MANA (two or more color w/o using tokens)?
by thefiremind » 07 Jul 2013, 11:35
I'll download it as soon as it's ready so I can see how.kevlahnota wrote:GOOD NEWS!!! Magic 2014 supports two or more mana with no workarounds !!! will update my Custom DLC with it
< 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: DOTP 2014 MANA (two or more color w/o using tokens)?
by RiiakShiNal » 07 Jul 2013, 13:21
How?kevlahnota wrote:GOOD NEWS!!! Magic 2014 supports two or more mana with no workarounds !!! will update my Custom DLC with it
- I tried creating dual land using a single mana ability with hybrid mana.
- Failed to produce any mana.
- I tried with a single mana ability with two PRODUCES tags with a single colour in each.
- It produced two mana instead of just one allowing me to cast Tidehollow Strix with a single Darkslick Shores (did tap though).
- I tried with two separate mana abilities each with a PRODUCES tag using a single colour each.
- Allowed me to cast a Tidehollow Strix and 2 Baleful Strix with a single Darkslick Shores for FREE (did not tap, but did produce two mana for each cast).
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: DOTP 2014 MANA (two or more color w/o using tokens)?
by Persee » 10 Jul 2013, 08:51
Is this precisely this code you are talking about ?kevlahnota wrote:GOOD NEWS!!! Magic 2014 supports two or more mana with no workarounds !!! will update my Custom DLC with it
- Code: Select all
<ACTIVATED_ABILITY forced_skip="1" linked_ability_group="1">
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[|(|{T}|: Add| {B} |or| {R} |to your mana pool.)|]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="it-IT"><![CDATA[|(|{T}|: Aggiungi| {B} |o| {R} |alla tua riserva di mana.)|]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="de-DE"><![CDATA[|(|{T}|: Erhöhe deinen Manavorrat um| {B} |oder| {R}|.)|]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="fr-FR"><![CDATA[|(|{T}| : Ajoutez| {B} |ou| {R} |à votre réserve.)|]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="es-ES"><![CDATA[|(|{T}|: Agrega| {B} |o| {R} |a tu reserva de maná.)|]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="jp-JA"><![CDATA[({T}:あなたのマナ・プールに{B}か{R}を加える。)]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ko-KR"><![CDATA[({T}: {B} 또는 {R}를 당신의 마나풀에 담는다.)]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="ru-RU"><![CDATA[|(|{T}|: добавьте| {B} |или| {R} |в ваше хранилище маны.)|]]></LOCALISED_TEXT>
<LOCALISED_TEXT LanguageCode="pt-BR"><![CDATA[|(|{T}|: Add| {B} |or| {R} |to your mana pool.)|]]></LOCALISED_TEXT>
<AVAILABILITY>
return Object():IsTapped() == false
</AVAILABILITY>
<MODE_SELECT tag="CARD_QUERY_MC_CHOOSE_MODE">
<MODE tag="MANA_BLACK" index="1" />
<MODE tag="MANA_RED" index="2" />
</MODE_SELECT>
<RESOLUTION_TIME_ACTION mode="1">
LinkedDC():Set_Int(0, 2 )
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION mode="2">
LinkedDC():Set_Int(0, 3 )
</RESOLUTION_TIME_ACTION>
<SFX text="null_activated_ability" />
</ACTIVATED_ABILITY>
Re: DOTP 2014 MANA (two or more color w/o using tokens)?
by thefiremind » 10 Jul 2013, 09:10
No, he was talking about PRODUCES amount="{WUBRG}" (or whatever combination you want), but that actually produces only the last color before }.
< 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
8 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 21 guests