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




TFM&G2K's Planeswalkers Pool v8g (12/Sep/2014)
Moderator: CCGHQ Admins
Re: TFM&G2K's Planeswalkers Pool v4b (12/Sep/2013)
by thefiremind » 14 Sep 2013, 21:32
The problem isn't in the triggered ability, but in the static ability, and now that I think about it more carefully, I think that the question would be asked more than once even in a FFA with more than 2 players if more than 1 player uses Planeswalkers. I just got an idea for a fix, but I'm not sure if it will work.gorem2k wrote:and define "defending" accordingly... though you might already have tried.
Last edited by thefiremind on 15 Sep 2013, 08:57, edited 1 time in total.
< 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: 722 times
Re: TFM&G2K's Planeswalkers Pool v4b (12/Sep/2013)
by NVRSRRNDR » 14 Sep 2013, 22:21
hey
first of all i really like and enjoy your work
thumbs up
then to my problem ..
Played an Free for All Match with 2 AI's for testin my deck
but somethin worked not right:
Gideon, Champion of Justice
added Loyality points till he got "16"
after that i select the third option
(-15): Exile all other permanents.
after that Card Animation all permanents was still there and Gideon has 3 Loyality points left ..
anyone got the same problem or at least some similar ?
regards
first of all i really like and enjoy your work
thumbs up
then to my problem ..
Played an Free for All Match with 2 AI's for testin my deck
but somethin worked not right:
Gideon, Champion of Justice
added Loyality points till he got "16"
after that i select the third option
(-15): Exile all other permanents.
after that Card Animation all permanents was still there and Gideon has 3 Loyality points left ..
anyone got the same problem or at least some similar ?
regards
Re: TFM&G2K's Planeswalkers Pool v4b (12/Sep/2013)
by thefiremind » 14 Sep 2013, 22:46
I can confirm the exiling problem, and I'll fix it, but the number of loyalty counters to remove is correctly set to 15 already.NVRSRRNDR wrote:Gideon, Champion of Justice
added Loyality points till he got "16"
after that i select the third option
(-15): Exile all other permanents.
after that Card Animation all permanents was still there and Gideon has 3 Loyality points left ..
< 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: 722 times
Re: TFM&G2K's Planeswalkers Pool v4b (12/Sep/2013)
by NVRSRRNDR » 14 Sep 2013, 23:08
thank u very muchthefiremind wrote:I can confirm the exiling problem, and I'll fix it, but the number of loyalty counters to remove is correctly set to 15 already.NVRSRRNDR wrote:Gideon, Champion of Justice
added Loyality points till he got "16"
after that i select the third option
(-15): Exile all other permanents.
after that Card Animation all permanents was still there and Gideon has 3 Loyality points left ..
and the Loyality points worked as it should be .. tested it again and everythin is fine
edit:
but found another thing:
but maybe im wrong
put Gideon, Champion of Justice on the battlefield and tryed to give him the ability from Ajani, Caller of the Pride (-3) Target Creature gains flying and double strike until end of turn.
but did not work ..
is that because Gideon is He's still a planeswalker even he is on the battlefield ?
(sorry for that noob question im not that familiar with Planeswalkers)
Re: TFM&G2K's Planeswalkers Pool v4b (12/Sep/2013)
by thefiremind » 14 Sep 2013, 23:47
Planeswalkers aren't creatures. Gideon can become a creature for a turn, but you need to activate his "0" ability first. Then you should be able to use Ajani's ability on him.NVRSRRNDR wrote:put Gideon, Champion of Justice on the battlefield and tryed to give him the ability from Ajani, Caller of the Pride (-3) Target Creature gains flying and double strike until end of turn.
but did not work ..
is that because Gideon is He's still a planeswalker even he is on the battlefield ?
< 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: 722 times
Re: TFM&G2K's Planeswalkers Pool v4b (12/Sep/2013)
by gorem2k » 15 Sep 2013, 00:01
So far so good.thefiremind wrote:EDIT: I have no time to make extensive tests now, but if someone else wants to test the fix before me...
made a quick video using a leyline (planeswalkers edition) in 2HG

2HG test
Re: TFM&G2K's Planeswalkers Pool v4b (12/Sep/2013)
by gorem2k » 15 Sep 2013, 00:13
I think he knew about that, I've changed Gideon to a creature and he couldn't fly with Ajani 2nd ability.thefiremind wrote:Planeswalkers aren't creatures. Gideon can become a creature for a turn, but you need to activate his "0" ability first. Then you should be able to use Ajani's ability on him.
EDIT: Ajani, Caller of the Pride 2nd ability is missing a duration.
- Code: Select all
<DURATION simple_duration="UntilEOT" />
- Code: Select all
<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Remove your hand from the game.]]></LOCALISED_TEXT>
<COST mana_cost="{0}" type="Mana" />
<RESOLUTION_TIME_ACTION>
if EffectSource() ~= nil then
EffectController():MoveLocalZone( ZONE_HAND, ZONE_CEASED_TO_EXIST )
end
</RESOLUTION_TIME_ACTION>
</ACTIVATED_ABILITY>
<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[Put all cards from outside the game in your hand.]]></LOCALISED_TEXT>
<COST mana_cost="{0}" type="Mana" />
<RESOLUTION_TIME_ACTION>
if EffectSource() ~= nil then
EffectController():MoveLocalZone( ZONE_CEASED_TO_EXIST, ZONE_HAND )
end
</RESOLUTION_TIME_ACTION>
</ACTIVATED_ABILITY>
made two invented cards Yin Goblin and Yang Goblin using this zone with filter this time, white black goblins is odd, yeah it's dumb but had a blast at making them. if you try, I suggest putting 20 Yin and 20 Yang

- Attachments
-
CARDS.zip
- yin yang invented goblins
- (2.96 KiB) Downloaded 415 times
Last edited by gorem2k on 15 Sep 2013, 06:39, edited 4 times in total.
Re: TFM&G2K's Planeswalkers Pool v4b (12/Sep/2013)
by NVRSRRNDR » 15 Sep 2013, 00:18
exactlygorem2k wrote:I think he knew about that, I've changed Gideon to a creature and he couldn't fly with Ajani 2nd ability.thefiremind wrote:Planeswalkers aren't creatures. Gideon can become a creature for a turn, but you need to activate his "0" ability first. Then you should be able to use Ajani's ability on him.
sry if i wrote that not clear enough ( its a bit early in the morning

Re: TFM&G2K's Planeswalkers Pool v4b (12/Sep/2013)
by thefiremind » 15 Sep 2013, 08:31
Good, so the problem was on Ajani. I'm on my way to fix it.gorem2k wrote:EDIT: Ajani, Caller of the Pride 2nd ability is missing a duration.
- Code: Select all
<DURATION simple_duration="UntilEOT" />

Nice, I'll add Ajani's fix and move the new version to the first post.gorem2k wrote:So far so good.
made a quick video using a leyline (planeswalkers edition) in 2HG![]()
2HG test
EDIT: Done.
gorem2k wrote:on a completely different subject, (maybe I should use another thread) I found out that ZONE_CEASED_TO_EXIST can be used somehow. though I don't know what could use it. maybe as a commander zone?

< 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: 722 times
Re: TFM&G2K's Planeswalkers Pool v4c (15/Sep/2013)
by NVRSRRNDR » 15 Sep 2013, 19:45
thanks for the update
damn the Planeswalkers are so OVP xD
damn the Planeswalkers are so OVP xD
Re: TFM&G2K's Planeswalkers Pool v5 (18/Sep/2013)
by thefiremind » 18 Sep 2013, 12:05
I updated the pool with Ashiok and Xenagos, but I haven't coded the first ability on Xenagos. I'm looking for anyone who's already comfortable with RiiakShiNal's mana functions and wants to give it a shot. I remember gorem2k asking sumomole what was the best way to ask for a combination of 2 colors over X mana, so he may have a good part of it already done.
EDIT: Oh, I was forgetting: I could also use a better art for Xenagos.
EDIT: Oh, I was forgetting: I could also use a better art for Xenagos.
< 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: 722 times
Re: TFM&G2K's Planeswalkers Pool v5 (18/Sep/2013)
by gorem2k » 18 Sep 2013, 19:13
Here's what I have done so far:
EDIT: I think AI can only produce 1 mana of red or green no matter how many creatures he has.. with the above code, "red mana" appear only once on screen.
- Xenagos mana ability | Open
- Code: Select all
<ACTIVATED_ABILITY>
<LOCALISED_TEXT LanguageCode="en-US"><![CDATA[(+1): Add X mana in any combination of {R} and/or {G} to your mana pool, where X is the number of creatures you control.]]></LOCALISED_TEXT>
<AVAILABILITY sorcery_time="1" per_turn_limit="1" />
<COST type="generic">
<PREREQUISITE>
return true
</PREREQUISITE>
<RESOLUTION_TIME_ACTION>
if EffectSource() ~= nil then
PLW_ShutDownDoublingSeason()
EffectSource():AddCounters( MTG():GetCountersType("Loyalty"), 1 )
end
</RESOLUTION_TIME_ACTION>
</COST>
<PLAY_TIME_ACTION>
RSN_MarkManaAbilityStart()
</PLAY_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local filter = ClearFilter()
filter:Add(FE_TYPE, OP_IS, CARD_TYPE_CREATURE)
filter:Add(FE_CONTROLLER, OP_IS, EffectController())
local amount = filter:Count()
EffectDC():Set_Int(99, amount)
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local player = EffectController()
local amount = EffectDC():Get_Int(99)
if player:IsAI() then
return false
else
player:BeginNewNumericalChoice()
player:AddNumericalChoiceAnswer( amount )
player:AskNumericalChoiceQuestion("{R}")
return true
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
local player = EffectController()
local amount = EffectDC():Get_Int(99)
if player:IsAI() then
return false
else
local result_R = player:GetNumericalChoiceResult()
local result_G = amount - result_R
if result_R >0 then
RSN_Produce( "{R}", result_R )
end
if result_G > 0 then
RSN_Produce( "{G}", result_G )
end
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION repeating="1">
local n = MTG():GetActionRepCount()
local parity = n % 2
local player = EffectController()
local amount = EffectDC():Get_Int(99)
if n < (amount*2) and player:IsAI() then
if parity == 0 then
player:BeginNewMultipleChoice()
player:AddMultipleChoiceAnswer( "CARD_QUERY_OPTION_MANA_R" )
player:AddMultipleChoiceAnswer( "CARD_QUERY_OPTION_MANA_G" )
player:AskMultipleChoiceQuestion( "CARD_QUERY_CHOOSE_COLOUR" )
else
local nColour = player:GetMultipleChoiceResult() + 3
if (nColour == COLOUR_RED) then
RSN_Produce( "{R}", 1 )
elseif (nColour == COLOUR_GREEN) then
RSN_Produce( "{G}", 1 )
end
end
return true
else
return false
end
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
RSN_EliminateExtraManaTokens()
</RESOLUTION_TIME_ACTION>
<RESOLUTION_TIME_ACTION>
PLW_DisplayManaPool( EffectController() )
RSN_MarkManaAbilityEnd()
</RESOLUTION_TIME_ACTION>
</ACTIVATED_ABILITY>
EDIT: I think AI can only produce 1 mana of red or green no matter how many creatures he has.. with the above code, "red mana" appear only once on screen.
- AI test | Open
- Code: Select all
<RESOLUTION_TIME_ACTION repeating="1">
local n = MTG():GetActionRepCount()
local parity = n % 2
local player = EffectController()
local amount = EffectDC():Get_Int(99)
if n < (amount*2) and player:IsAI() then
if parity == 0 then
player:BeginNewMultipleChoice()
player:AddMultipleChoiceAnswer( "CARD_QUERY_OPTION_MANA_R" )
player:AddMultipleChoiceAnswer( "CARD_QUERY_OPTION_MANA_G" )
player:AskMultipleChoiceQuestion( "CARD_QUERY_CHOOSE_COLOUR" )
else
local nColour = player:GetMultipleChoiceResult() + 3
if (nColour == COLOUR_RED) then
RSN_Produce( "{R}", 1 )
MTG():MessageAllPlayers("red mana")
elseif (nColour == COLOUR_GREEN) then
RSN_Produce( "{G}", 1 )
MTG():MessageAllPlayers("green mana")
end
end
return true
else
return false
end
</RESOLUTION_TIME_ACTION>
Re: TFM&G2K's Planeswalkers Pool v5b (22/Sep/2013)
by thefiremind » 22 Sep 2013, 18:29
I added RiiakShiNal's code to Xenagos, which should be fully working now.
< 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: 722 times
Re: TFM&G2K's Planeswalkers Pool v5b (22/Sep/2013)
by gorem2k » 24 Sep 2013, 04:17
Elspeth, Sun's Champion is not listed in your PLW_SubTypes list (D14_PLW.LOL). which is letting a player keep 2 Elspeth in play.
Re: TFM&G2K's Planeswalkers Pool v5b (22/Sep/2013)
by thefiremind » 24 Sep 2013, 08:06
She is listed on my version, and I'm sure I added her before Ashiok and Xenagos.gorem2k wrote:Elspeth, Sun's Champion is not listed in your PLW_SubTypes list (D14_PLW.LOL). which is letting a player keep 2 Elspeth in play.
< 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: 722 times
Who is online
Users browsing this forum: No registered users and 12 guests