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




Volrathxp's Custom Dotp 2014 DLC (Last Update: 12/6/2014)
Moderator: CCGHQ Admins
Re: Volrathxp's Custom Dotp 2014 DLC (Last Update: 8/27/2014
by gorem2k » 27 Aug 2014, 20:33
Yes I thought about that as well, and I made sure not to do that on Constellation creatures. btw, a little off-topic, I have some doubts with Skybind; it says exile "nonenchantment permanent". can you confirm this:thefiremind wrote:Now, I can't think of a scenario where waiting before responding till the trigger of a specific instance of dethrone can be beneficial, so I guess it's okay to use STACK_EQUIVALENCE, but I wanted to note that modders should think about what possibilities they take away from the players when adding a simplification like this.
- | Open
- Code: Select all
<TARGET_DEFINITION id="0">
local filter = ClearFilter()
filter:Set_Or()
PLW_FilterNameSet(filter, "PLANESWALKERS", true)
local subFilter = filter:AddSubFilter_And()
subFilter:Add( FE_TYPE, OP_NOT, CARD_TYPE_ENCHANTMENT )
subFilter:Add( FE_TYPE, OP_IS, CARD_TYPE_LAND )
local secondSubFilter = filter:AddSubFilter_And()
secondSubFilter:Add( FE_TYPE, OP_NOT, CARD_TYPE_ENCHANTMENT )
secondSubFilter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
local thirdSubFilter = filter:AddSubFilter_And()
thirdSubFilter:Add( FE_TYPE, OP_NOT, CARD_TYPE_ENCHANTMENT )
thirdSubFilter:Add( FE_TYPE, OP_IS, CARD_TYPE_ARTIFACT )
</TARGET_DEFINITION>
This question might also help VXP for her/his Constellation cards.
Re: Volrathxp's Custom Dotp 2014 DLC (Last Update: 8/27/2014
by NeoAnderson » 27 Aug 2014, 20:40
Hi my friend i already made it and i used the follow filter :gorem2k wrote:Yes I thought about that as well, and I made sure not to do that on Constellation creatures. btw, a little off-topic, I have some doubts with Skybind; it says exile "nonenchantment permanent". can you confirm this:thefiremind wrote:Now, I can't think of a scenario where waiting before responding till the trigger of a specific instance of dethrone can be beneficial, so I guess it's okay to use STACK_EQUIVALENCE, but I wanted to note that modders should think about what possibilities they take away from the players when adding a simplification like this.is a proper way to filter ? because "Creature Enchantment" are Enchantment but when I only filter with OP_NOT Enchantment, these creature are still available for target. And I don't want them to be the case...
- | Open
- Code: Select all
<TARGET_DEFINITION id="0">
local filter = ClearFilter()
filter:Set_Or()
PLW_FilterNameSet(filter, "PLANESWALKERS", true)
local subFilter = filter:AddSubFilter_And()
subFilter:Add( FE_TYPE, OP_NOT, CARD_TYPE_ENCHANTMENT )
subFilter:Add( FE_TYPE, OP_IS, CARD_TYPE_LAND )
local secondSubFilter = filter:AddSubFilter_And()
secondSubFilter:Add( FE_TYPE, OP_NOT, CARD_TYPE_ENCHANTMENT )
secondSubFilter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
local thirdSubFilter = filter:AddSubFilter_And()
thirdSubFilter:Add( FE_TYPE, OP_NOT, CARD_TYPE_ENCHANTMENT )
thirdSubFilter:Add( FE_TYPE, OP_IS, CARD_TYPE_ARTIFACT )
</TARGET_DEFINITION>
This question might also help VXP for her/his Constellation cards.
- Code: Select all
<TARGET_DEFINITION id="0">
local filter = ClearFilter()
filter:Add( FE_TYPE, OP_NOT, CARD_TYPE_ENCHANTMENT )
local subfilter = filter:AddSubFilter_Or()
subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_ARTIFACT )
subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_LAND )
subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_PLANESWALKER )
</TARGET_DEFINITION>
- NeoAnderson
- Posts: 914
- Joined: 10 Sep 2013, 07:49
- Has thanked: 18 times
- Been thanked: 139 times
Re: Volrathxp's Custom Dotp 2014 DLC (Last Update: 8/27/2014
by gorem2k » 27 Aug 2014, 20:44
Does your "Creature Enchantment" can be targeted with this? I tried the exact same you wrote here and I could exile Agent of Erebos.NeoAnderson wrote:Hi my friend i already made it and i used the follow filter :
- Code: Select all
<TARGET_DEFINITION id="0">
local filter = ClearFilter()
filter:Add( FE_TYPE, OP_NOT, CARD_TYPE_ENCHANTMENT )
local subfilter = filter:AddSubFilter_Or()
subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_ARTIFACT )
subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_LAND )
subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_PLANESWALKER )
</TARGET_DEFINITION>
Oh wait, I had filter:Set_Or() and yours don't. Yes, well thanks it works now! I mean it's ok for Creature Enchantments but definitely not for our Planeswalkers. That's the tricky part, these are Enchantment but are not supposed to be.
Re: Volrathxp's Custom Dotp 2014 DLC (Last Update: 8/27/2014
by volrathxp » 27 Aug 2014, 21:37
I wil update Skybindto fix, I never noticed this while testing it.
volrathxp
Re: Volrathxp's Custom Dotp 2014 DLC (Last Update: 8/27/2014
by NeoAnderson » 27 Aug 2014, 21:58
Wait volrathxp i have found a solution but i'm still refining it.Give me 15 minutes to make some tests.volrathxp wrote:I wil update Skybindto fix, I never noticed this while testing it.
- NeoAnderson
- Posts: 914
- Joined: 10 Sep 2013, 07:49
- Has thanked: 18 times
- Been thanked: 139 times
Re: Volrathxp's Custom Dotp 2014 DLC (Last Update: 8/27/2014
by NeoAnderson » 27 Aug 2014, 22:16
OK I think I have resolved the issue with community planeswalkers approximation, but at this point i have to revise all "Constellation" cards!!!gorem2k wrote:Does your "Creature Enchantment" can be targeted with this? I tried the exact same you wrote here and I could exile Agent of Erebos.NeoAnderson wrote:Hi my friend i already made it and i used the follow filter :
- Old Code | Open
- Code: Select all
<TARGET_DEFINITION id="0">
local filter = ClearFilter()
filter:Add( FE_TYPE, OP_NOT, CARD_TYPE_ENCHANTMENT )
local subfilter = filter:AddSubFilter_Or()
subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_ARTIFACT )
subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_LAND )
subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_PLANESWALKER )
</TARGET_DEFINITION>
Oh wait, I had filter:Set_Or() and yours don't. Yes, well thanks it works now! I mean it's ok for Creature Enchantments but definitely not for our Planeswalkers. That's the tricky part, these are Enchantment but are not supposed to be.

Anyway to target a non-enchantment permanent (inluding planeswalkers) You have to use the follow block :
- Code: Select all
<TARGET tag="CARD_QUERY_CHOOSE_CREATURE_TO_EXILE" definition="0" compartment="0" count="1" />
<TARGET_DEFINITION id="0">
local chest = EffectDC():Make_Chest(1)
chest:Set_Int(0, 0)
local index = chest:Get_Int(0)
local filter = ClearFilter()
local subfilter = filter:AddSubFilter_Or()
if PLW_FilterNameSet ~= nil then
PLW_FilterNameSet(subfilter, "PLANESWALKERS", true)
else
subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_PLANESWALKER)
end
local filter_count = filter:EvaluateObjects()
for i=0,filter_count-1 do
local permanent = filter:GetNthEvaluatedObject(i)
if permanent ~= nil then
index = index + 1
chest:Set_CardPtr(index, permanent)
chest:Set_Int(0, index)
end
end
filter = ClearFilter()
filter:Add( FE_TYPE, OP_NOT, CARD_TYPE_ENCHANTMENT )
subfilter = filter:AddSubFilter_Or()
subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_ARTIFACT )
subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_CREATURE )
subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_LAND )
subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_PLANESWALKER )
filter_count = filter:EvaluateObjects()
for i=0,filter_count-1 do
permanent = filter:GetNthEvaluatedObject(i)
if permanent ~= nil then
index = index + 1
chest:Set_CardPtr(index, permanent)
chest:Set_Int(0, index)
end
end
filter = ClearFilter()
index = chest:Get_Int(0)
for i=1,index do
permanent = chest:Get_CardPtr(i)
if permanent ~= nil then
permanent:MarkForFilter()
end
end
filter:SetMarkedObjectsOnly()
</TARGET_DEFINITION>
- Code: Select all
<TRIGGER value="ZONECHANGE_END" simple_qualifier="objectyoucontrol" to_zone="ZONE_BATTLEFIELD" from_zone="ZONE_ANY">
if TriggerObject():GetCardType():Test( CARD_TYPE_ENCHANTMENT ) == true then
local filter = ClearFilter()
local subfilter = filter:AddSubFilter_Or()
if PLW_FilterNameSet ~= nil then
PLW_FilterNameSet(subfilter, "PLANESWALKERS", true)
else
subfilter:Add( FE_TYPE, OP_IS, CARD_TYPE_PLANESWALKER)
end
local filter_count = filter:EvaluateObjects()
for i=0,filter_count-1 do
local permanent = filter:GetNthEvaluatedObject(i)
if permanent ~= nil then
if permanent:GetCardName() == TriggerObject():GetCardName() then
return false
end
end
end
return true
end
</TRIGGER>
- NeoAnderson
- Posts: 914
- Joined: 10 Sep 2013, 07:49
- Has thanked: 18 times
- Been thanked: 139 times
Re: Volrathxp's Custom Dotp 2014 DLC (Last Update: 8/27/2014
by thefiremind » 27 Aug 2014, 23:04
I'm pretty sure there must be a shorter way... the logic behind what we want is:
(artifact or creature or land or planeswalker) and ((not enchantment) or belonging_to_planeswalker_nameset)
I think we can put this condition into a filter without the need for loops, maybe something like this?
(artifact or creature or land or planeswalker) and ((not enchantment) or belonging_to_planeswalker_nameset)
I think we can put this condition into a filter without the need for loops, maybe something like this?
- Filter for non-enchantment permanents "PLW-compatible" (untested) | Open
- Code: Select all
local filter = ClearFilter()
local subFilter1 = filter:AddSubFilter_Or()
subFilter1:Add(FE_TYPE, OP_IS, CARD_TYPE_ARTIFACT)
subFilter1:Add(FE_TYPE, OP_IS, CARD_TYPE_CREATURE)
subFilter1:Add(FE_TYPE, OP_IS, CARD_TYPE_LAND)
subFilter1:Add(FE_TYPE, OP_IS, CARD_TYPE_PLANESWALKER)
local subFilter2 = filter:AddSubFilter_Or()
subFilter2:Add(FE_TYPE, OP_NOT, CARD_TYPE_ENCHANTMENT)
if PLW_FilterNameSet ~= nil then
PLW_FilterNameSet(subFilter2, "PLANESWALKERS", true)
end
< 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: Volrathxp's Custom Dotp 2014 DLC (Last Update: 8/27/2014
by gorem2k » 27 Aug 2014, 23:10
and, this replace your trigger
PLW_IsInNameSet is there, better use it
Anyway you can also take a look inside my side project MOD I've added every Constellation (I took them from VXP) decrompressed many tdx and photoshop them, they're all compatible with planeswalkers. Although I don't have many testers for now, people are busy testing/playing recent sets and cool stuff.
- Code: Select all
<TRIGGER value="ZONECHANGE_END" simple_qualifier="objectyoucontrol" to_zone="ZONE_BATTLEFIELD" from_zone="ZONE_ANY">
return TriggerObject():GetCardType():Test( CARD_TYPE_ENCHANTMENT ) and PLW_IsInNameSet( TriggerObject(), "PLANESWALKERS" ) == false
</TRIGGER>
PLW_IsInNameSet is there, better use it

Anyway you can also take a look inside my side project MOD I've added every Constellation (I took them from VXP) decrompressed many tdx and photoshop them, they're all compatible with planeswalkers. Although I don't have many testers for now, people are busy testing/playing recent sets and cool stuff.
Last edited by gorem2k on 27 Aug 2014, 23:17, edited 1 time in total.
Re: Volrathxp's Custom Dotp 2014 DLC (Last Update: 8/27/2014
by gorem2k » 27 Aug 2014, 23:15
I gave up Enchanted Evening because it cause too many problems.thefiremind wrote:This will fail with Enchanted Evening, though, because it will still count Planeswalkers as non-enchantments.
It works, I will use it.thefiremind wrote:Filter for non-enchantment permanents "PLW-compatible" (untested)
Re: Volrathxp's Custom Dotp 2014 DLC (Last Update: 8/27/2014
by NeoAnderson » 27 Aug 2014, 23:31
Thanks my friend but i already coded all the Journey Into Nyx SET, i just uploaded it, i was not thinking about planeswalker issue because i don't use them.gorem2k wrote:and, this replace your triggernote: add a check for PLW_IsInNameSet ~= nil and an else, if you want to avoid SCRIPT_LOG file
- Code: Select all
<TRIGGER value="ZONECHANGE_END" simple_qualifier="objectyoucontrol" to_zone="ZONE_BATTLEFIELD" from_zone="ZONE_ANY">
return TriggerObject():GetCardType():Test( CARD_TYPE_ENCHANTMENT ) and PLW_IsInNameSet( TriggerObject(), "PLANESWALKERS" ) == false
</TRIGGER>
PLW_IsInNameSet is there, better use it![]()
Anyway you can also take a look inside my side project MOD I've added every Constellation (I took them from VXP) decrompressed many tdx and photoshop them, they're all compatible with planeswalkers. Although I don't have many testers for now, people are busy testing/playing recent sets and cool stuff.
I have short tested constellation cards with the trigger and target i posted above and i haven't received any script_log, but i just use 1 planeswalker to test it. (It doesn't trigger when the planeswalker enters or leave the battlefield, and it is targetable).
Anyway i will make some more test and then i decide if modify or not these cards!
Here you can find : The whole Journey into Nyx Set : http://www.slightlymagic.net/forum/viewtopic.php?f=109&t=15144
Just 4 cards are not coded :
Card i think can't be code : Oppressive Rays - Battlefield Thaumaturge - Worst Fears
Card not coded (Planeswalker) : Ajani, Mentor of Heroes
About the Artworks, i made always deep internet search to find good artworks, and if i can't find high res one i improve them with Photoshop!
- NeoAnderson
- Posts: 914
- Joined: 10 Sep 2013, 07:49
- Has thanked: 18 times
- Been thanked: 139 times
Re: Volrathxp's Custom Dotp 2014 DLC (Last Update: 8/25/2014
by RiiakShiNal » 28 Aug 2014, 00:35
You have:volrathxp wrote:I am about to update everything so I will fix this. I'm still not sure what's going on with Broodmaster.
- Code: Select all
local x = EffectSource():GetInt(1)
- Code: Select all
local x = EffectSource():Get_Int(1)
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: 2188
- Joined: 16 May 2011, 21:37
- Has thanked: 75 times
- Been thanked: 497 times
Re: Volrathxp's Custom Dotp 2014 DLC (Last Update: 8/25/2014
by volrathxp » 28 Aug 2014, 01:17
Thanks, I actually got it working earlier today while I was on my break at work. ^_^RiiakShiNal wrote:You have:volrathxp wrote:I am about to update everything so I will fix this. I'm still not sure what's going on with Broodmaster.You should have:
- Code: Select all
local x = EffectSource():GetInt(1)
- Code: Select all
local x = EffectSource():Get_Int(1)
volrathxp
Re: Volrathxp's Custom Dotp 2014 DLC (Last Update: 8/27/2014
by volrathxp » 28 Aug 2014, 01:22
So I go away for like... a few hours and my thread explodes lol.gorem2k wrote:and, this replace your triggernote: add a check for PLW_IsInNameSet ~= nil and an else, if you want to avoid SCRIPT_LOG file
- Code: Select all
<TRIGGER value="ZONECHANGE_END" simple_qualifier="objectyoucontrol" to_zone="ZONE_BATTLEFIELD" from_zone="ZONE_ANY">
return TriggerObject():GetCardType():Test( CARD_TYPE_ENCHANTMENT ) and PLW_IsInNameSet( TriggerObject(), "PLANESWALKERS" ) == false
</TRIGGER>
PLW_IsInNameSet is there, better use it![]()
Anyway you can also take a look inside my side project MOD I've added every Constellation (I took them from VXP) decrompressed many tdx and photoshop them, they're all compatible with planeswalkers. Although I don't have many testers for now, people are busy testing/playing recent sets and cool stuff.
I'm going to update all the constellation cards with the planeswalker friendly code, and then post another update. Won't take me that long.

volrathxp
Re: Volrathxp's Custom Dotp 2014 DLC (Last Update: 8/27/2014
by volrathxp » 28 Aug 2014, 01:41
Alright, so I fixed all the constellation cards. Untested, so let me know if you have problems. Blame gore if you have troubles. J/K. 
Core wad updated, Hydra Broodmaster FINALLY FIXED. NO MORE PROBLEMS WITH THAT GUY. NO MORE.

Core wad updated, Hydra Broodmaster FINALLY FIXED. NO MORE PROBLEMS WITH THAT GUY. NO MORE.

volrathxp
Re: Volrathxp's Custom Dotp 2014 DLC (Last Update: 8/28/2014
by volrathxp » 29 Aug 2014, 00:09
Just made a big update. Have fun. Read the changelog. 

volrathxp
Who is online
Users browsing this forum: No registered users and 31 guests