Board index
Programs with AI or Rules Enforcement
Magic: The Gathering - Duels of the Planeswalkers
New MTG Cards and Decks (2010, 2012, 2013, 2014, 2015, Magic Duels)
2014




【25/09/14】DotP2014 DLC v9.5
Moderator: CCGHQ Admins
Re: 【29/8/13】DotP2014 custom mod released【v6.3 42 decks】
by gorem2k » 05 Sep 2013, 19:14
- Kessig Wolf Run | Open
- Code: Select all
<STATIC_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[{T}: Add {1} to your mana pool.]]></LOCALISED_TEXT>
<CONTINUOUS_ACTION layer="6">
if EffectSource() ~= nil then
local colour = S_NotHaveColourInGame(0, 0)
EffectSource():GetCurrentCharacteristics():GrantAbility(colour)
end
</CONTINUOUS_ACTION>
</STATIC_ABILITY>

I'm not sure if I have the latest update.
Re: 【29/8/13】DotP2014 custom mod released【v6.3 42 decks】
by sumomole » 05 Sep 2013, 20:14
Please tell me the details of "while it should be colorlessgorem2k wrote:I think your Kessig Wolf Run adds colored mana while it should be colorless.

-
sumomole - Programmer
- Posts: 611
- Joined: 07 Jun 2011, 08:34
- Has thanked: 51 times
- Been thanked: 234 times
Re: 【29/8/13】DotP2014 custom mod released【v6.3 42 decks】
by gorem2k » 05 Sep 2013, 20:47
sorry, it was my mistake.
I was looking at your Manamorphose to find a way coding multiple mana in different combination. I see you used 2 same spell ability, since you are one of the most experienced mana user, I'd like to ask what you would do if a card let you choose more than 2 mana combination?
I've done this:
the code is incomplete I should save first result before asking for the second color.
EDIT2: I've worked another method. sorry I don't want to bother you, just wanted your opinion on how you would approach this if you don't mind.

I was looking at your Manamorphose to find a way coding multiple mana in different combination. I see you used 2 same spell ability, since you are one of the most experienced mana user, I'd like to ask what you would do if a card let you choose more than 2 mana combination?
I've done this:
- Code: Select all
<SPELL_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Add 10 mana in any combination of {B} and/or {R} to your mana pool.]]></LOCALISED_TEXT>
<PLAY_TIME_ACTION>
local player = EffectController()
local totalBmana = 10
player:BeginNewNumericalChoice()
player:AddNumericalChoiceAnswer(totalBmana)
player:AskNumericalChoiceQuestion("{B}")
</PLAY_TIME_ACTION>
<PLAY_TIME_ACTION>
local player = EffectController()
local totalRmana = 10 - player:GetMultipleChoiceResult()
player:BeginNewNumericalChoice()
player:AddNumericalChoiceAnswer(totalRmana)
player:AskNumericalChoiceQuestion("{R}")
</PLAY_TIME_ACTION>
...
the code is incomplete I should save first result before asking for the second color.
EDIT2: I've worked another method. sorry I don't want to bother you, just wanted your opinion on how you would approach this if you don't mind.
- combine mana #2 | Open
- Code: Select all
<SPELL_ABILITY linked_ability_group="1">
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Add 10 mana in any combination of {B} and/or {R} to your mana pool.]]></LOCALISED_TEXT>
<PLAY_TIME_ACTION>
LinkedDC():Set_Int(99, 10)
</PLAY_TIME_ACTION>
<PLAY_TIME_ACTION repeating="1">
local n = MTG():GetActionRepCount()
local player = EffectController()
local repcount = LinkedDC():Get_Int(99)
if n < repcount then
player:BeginNewMultipleChoice()
player:AddMultipleChoiceAnswer( "CARD_QUERY_OPTION_MANA_B" )
player:AddMultipleChoiceAnswer( "CARD_QUERY_OPTION_MANA_R" )
player:AskMultipleChoiceQuestion( "CARD_QUERY_CHOOSE_COLOUR", "REMAINING MANA: "..10-n )
LinkedDC():Set_Int( n, EffectController():GetMultipleChoiceResult() )
return true
else
return false
end
</PLAY_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local repcount = LinkedDC():Get_Int(99)
local msg = ""
for i = 0, repcount do
msg = msg .. LinkedDC():Get_Int(i)
end
EffectController():DisplayMessage( "results "..msg )
</RESOLUTION_TIME_ACTION>
</SPELL_ABILITY>
Re: 【29/8/13】DotP2014 custom mod released【v6.3 42 decks】
by sumomole » 06 Sep 2013, 06:54
People like the first, which is simple, but AI maybe like the second, produce mana token one by one is easier way to determine the next.gorem2k wrote:I'd like to ask what you would do if a card let you choose more than 2 mana combination?
- | Open
- Code: Select all
<SPELL_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Add 10 mana in any combination of {B} and/or {R} to your mana pool.]]></LOCALISED_TEXT>
<RESOLUTION_TIME_ACTION repeating="1">
local n = MTG():GetActionRepCount()
local parity = n % 3
local player = EffectController()
if player:IsAI() then
return false
end
if parity == 0 then
player:BeginNewNumericalChoice()
player:AddNumericalChoiceAnswer(10)
player:AskNumericalChoiceQuestion("{B}")
return true
elseif parity == 1 then
local result_B = player:GetNumericalChoiceResult()
RSN_Produce( "{B}", result_B )
return true
elseif parity == 2 then
local result_R = 10 - player:GetNumericalChoiceResult()
RSN_Produce( "{R}", result_R )
return false
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION repeating="1">
local n = MTG():GetActionRepCount()
local parity = n % 2
local player = EffectController()
if n < 20 and player:IsAI() then
if parity == 0 then
player:BeginNewMultipleChoice()
player:AddMultipleChoiceAnswer( "CARD_QUERY_OPTION_MANA_B" )
player:AddMultipleChoiceAnswer( "CARD_QUERY_OPTION_MANA_R" )
player:AskMultipleChoiceQuestion( "CARD_QUERY_CHOOSE_COLOUR", "REMAINING MANA: "..10-n )
else
local nColour = player:GetMultipleChoiceResult() + 3
if (nColour == COLOUR_BLACK) then
RSN_Produce( "{B}", 1 )
elseif (nColour == COLOUR_RED) then
RSN_Produce( "{R}", 1 )
end
end
return true
else
return false
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
RSN_EliminateExtraManaTokens()
</RESOLUTION_TIME_ACTION>
</SPELL_ABILITY>
-
sumomole - Programmer
- Posts: 611
- Joined: 07 Jun 2011, 08:34
- Has thanked: 51 times
- Been thanked: 234 times
Re: 【29/8/13】DotP2014 custom mod released【v6.3 42 decks】
by gorem2k » 06 Sep 2013, 08:59
Great, I will use this. thanks for your help.sumomole wrote:People like the first, which is simple, but AI maybe like the second, produce mana token one by one is easier way to determine the next.

Re: 【29/8/13】DotP2014 custom mod released【v6.3 42 decks】
by bQttger » 08 Sep 2013, 18:00
Your decks are awesome and give hours of entertainment. I really appreciate it.
Have you thought about making an evolve deck?
Have you thought about making an evolve deck?
Re: 【29/8/13】DotP2014 custom mod released【v6.3 42 decks】
by Shiva » 09 Sep 2013, 08:32
Great work, thank you! Awesome decks. Are those decks working on the iPad? I putted in but they don't work. Should i convert them? How? Is there a way to play multiplayer with the ipad and those decks? Sorry for all this noob question 

Re: 【29/8/13】DotP2014 custom mod released【v6.3 42 decks】
by sumomole » 09 Sep 2013, 09:14
There is only v5 mod for ipad, it includes only 30 decks.Shiva wrote:Great work, thank you! Awesome decks. Are those decks working on the iPad? I putted in but they don't work. Should i convert them? How? Is there a way to play multiplayer with the ipad and those decks? Sorry for all this noob question
v4 download
v5 patch
If you want to learn how to convert, you can send massage to j6m6w6 and shijer who have done convert work.
You can only play online game with your friends that use the exact same mods.
-
sumomole - Programmer
- Posts: 611
- Joined: 07 Jun 2011, 08:34
- Has thanked: 51 times
- Been thanked: 234 times
Re: 【29/8/13】DotP2014 custom mod released【v6.3 42 decks】
by Shiva » 09 Sep 2013, 15:37
Thanks for the reply.
The links are in chinese (i believe) and i can't download it.
The links are in chinese (i believe) and i can't download it.
Re: 【29/8/13】DotP2014 custom mod released【v6.3 42 decks】
by Shiva » 10 Sep 2013, 08:25
Ok, i downloaded them and add to the iPad! Thanks...
Many decks are fine, but the app crash when i try to open some decks. Any idea?
Many decks are fine, but the app crash when i try to open some decks. Any idea?
Re: 【29/8/13】DotP2014 custom mod released【v6.3 42 decks】
by sumomole » 10 Sep 2013, 08:50
Sorry, I don't play games on ipad.Shiva wrote:Ok, i downloaded them and add to the iPad! Thanks...
Many decks are fine, but the app crash when i try to open some decks. Any idea?
-
sumomole - Programmer
- Posts: 611
- Joined: 07 Jun 2011, 08:34
- Has thanked: 51 times
- Been thanked: 234 times
Re: 【15/9/13】DotP2014 custom mod v7
by gorem2k » 27 Sep 2013, 23:48
Sumo, the filename TRAUMATIZE_628593.xml refer to Spelltwine. MIRRAN_CRUSADER_627271 to Squadron Hawk.
Re: 【15/9/13】DotP2014 custom mod v7
by o0JuZaM0o » 17 Oct 2013, 19:45
Any plan for updating the Karn avatar for all decks?
Re: 【15/9/13】DotP2014 custom mod v7
by sumomole » 20 Oct 2013, 02:13
fixed.gorem2k wrote:Sumo, the filename TRAUMATIZE_628593.xml refer to Spelltwine. MIRRAN_CRUSADER_627271 to Squadron Hawk.

no.o0JuZaM0o wrote:Any plan for updating the Karn avatar for all decks?

-
sumomole - Programmer
- Posts: 611
- Joined: 07 Jun 2011, 08:34
- Has thanked: 51 times
- Been thanked: 234 times
Re: 【20/10/13】DotP2014 DLC - Theros v8
by Exxington » 20 Oct 2013, 14:17
Mono blue devotion keeps crashing
- Exxington
- Posts: 15
- Joined: 27 Apr 2013, 13:21
- Has thanked: 0 time
- Been thanked: 0 time
Who is online
Users browsing this forum: No registered users and 9 guests