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




Odric, Master Tactician - Possible to code?
Moderator: CCGHQ Admins
12 posts
• Page 1 of 1
Odric, Master Tactician - Possible to code?
by azq » 05 Nov 2013, 16:54
Hello all!
I was trying my hand at coding cards (thanks Firemind for the web generator!) and so far I "created" 4 cards, Woolly Thoctar, Wild Nacatl, Loam Lion and Bomber Corps. Not exactly created because their effects are pretty similar to other creatures, but I wanted a Naya Zoo and my son wanted a battalion. He also wants Odric, Master Tactician for his deck, but I do not believe it is possible to code this card, so I'm asking you guys if it is.
Anyone knows or tried?
I was trying my hand at coding cards (thanks Firemind for the web generator!) and so far I "created" 4 cards, Woolly Thoctar, Wild Nacatl, Loam Lion and Bomber Corps. Not exactly created because their effects are pretty similar to other creatures, but I wanted a Naya Zoo and my son wanted a battalion. He also wants Odric, Master Tactician for his deck, but I do not believe it is possible to code this card, so I'm asking you guys if it is.
Anyone knows or tried?
Re: Odric, Master Tactician - Possible to code?
by thefiremind » 05 Nov 2013, 17:07
GrovyleXShinyCelebi tried (here's the post), but unfortunately SetBlockController is broken in DotP2014 and doesn't allow to select any creature as a blocker. One would think that the engine allows to code more and more things while the DotP versions go on, but sometimes it takes a few steps backwards. SetBlockController is a victim of this.azq wrote:He also wants Odric, Master Tactician for his deck, but I do not believe it is possible to code this card, so I'm asking you guys if it is.
Anyone knows or tried?
< 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: Odric, Master Tactician - Possible to code?
by azq » 05 Nov 2013, 17:36
Ok, thanks Firemind. I did a forum search for Odric but got nothing back, maybe I was in the wrong section.
Thanks for the clarification.
Thanks for the clarification.
Re: Odric, Master Tactician - Possible to code?
by MC Brodie » 05 Nov 2013, 17:39
Did it ever work? I remember in 2013 multiplayer games the game would always freeze anytime someone would try to use this ability. I never tried in a single player game. Maybe they just removed it since they couldn't resolve this issue.
-----------------------------------------------------------------------
Song of the Day: 46 and 2 (cover)
Song of the Day: 46 and 2 (cover)
Re: Odric, Master Tactician - Possible to code?
by thefiremind » 05 Nov 2013, 19:05
In single player it was working just fine, I used the same function for Master Warcraft.MC Brodie wrote:Did it ever work? I remember in 2013 multiplayer games the game would always freeze anytime someone would try to use this ability. I never tried in a single player game.
< 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: Odric, Master Tactician - Possible to code?
by damienx45 » 10 Nov 2013, 00:42
hery firemind what about using the same ability from this card to try and code odric
Ulvenwald Tracker
Target creature you control fights another target creature. (Each deals damage equal to its power to the other.)
Ulvenwald Tracker
Target creature you control fights another target creature. (Each deals damage equal to its power to the other.)
Re: Odric, Master Tactician - Possible to code?
by thefiremind » 10 Nov 2013, 00:58
It wouldn't be combat damage, the creatures wouldn't be in combat, attack and block triggers wouldn't trigger...damienx45 wrote:hery firemind what about using the same ability from this card to try and code odric
Ulvenwald Tracker
Target creature you control fights another target creature. (Each deals damage equal to its power to the other.)

< 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: Odric, Master Tactician - Possible to code?
by damienx45 » 16 Nov 2013, 01:26
hey firemind why not try and take odric from dotp 2013 wad and study the code from that card, maybe there might be a way to utilize his 2013 .xml code for a 2014 version.there has to be some kind of code string in the 2013 version that can help figure out a way for you to make a 2014 version of Odric. i mean its just a thought.
Re: Odric, Master Tactician - Possible to code?
by wtb300 » 16 Nov 2013, 02:09
http://www.slightlymagic.net/forum/viewtopic.php?f=109&t=12481
Odric, Master Tactician is included in the 2013 to 2014 mod at the link above. i havnt tested it myself but its there.
Edit- Tested and not working. script log reads
[lua] [string "ODRIC_MASTER_TACTICIAN_99259670_TITLE (INTERVENING_IF)~0x0000023e"]:4:
call parameter mismatch - too many or too few a parameter count declared, method Add in class __Filter
sry bud
Odric, Master Tactician is included in the 2013 to 2014 mod at the link above. i havnt tested it myself but its there.
Edit- Tested and not working. script log reads
[lua] [string "ODRIC_MASTER_TACTICIAN_99259670_TITLE (INTERVENING_IF)~0x0000023e"]:4:
call parameter mismatch - too many or too few a parameter count declared, method Add in class __Filter
sry bud
Re: Odric, Master Tactician - Possible to code?
by thefiremind » 16 Nov 2013, 10:24
There's not much to study, in DotP2013 the SetBlockController function works and in DotP2014 it doesn't. End of the story.damienx45 wrote:hey firemind why not try and take odric from dotp 2013 wad and study the code from that card, maybe there might be a way to utilize his 2013 .xml code for a 2014 version.there has to be some kind of code string in the 2013 version that can help figure out a way for you to make a 2014 version of Odric. i mean its just a thought.
< 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: Odric, Master Tactician - Possible to code?
by damienx45 » 16 Nov 2013, 18:46
why not switch out the part thats causing the problem with a similar ability like using the ability from Prized unicorn its basically the same thing,just with odric you get to chose who you creatures block, while prized unicorn everything has no choice but to block.its the same priciple just alittle different in the wording and code.
Re: Odric, Master Tactician - Possible to code?
by thefiremind » 16 Nov 2013, 19:26
It's not the same principle at all: choosing the creatures that block and how they block means clicking on the blocker and then on the creature to block, while Prized Unicorn gives no choice to anybody.damienx45 wrote:its the same priciple just alittle different in the wording and code.
I don't want to be rude, but really, you could go on arguing about this forever and we still wouldn't make even one step ahead... we can't do everything we want just by mixing the code, and if you don't believe me, then you should learn to mod DotP and try by yourself.
< 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
12 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 21 guests