Page 1 of 1

Odric, Master Tactician - Possible to code?

PostPosted: 05 Nov 2013, 16:54
by azq
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?

Re: Odric, Master Tactician - Possible to code?

PostPosted: 05 Nov 2013, 17:07
by thefiremind
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?
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.

Re: Odric, Master Tactician - Possible to code?

PostPosted: 05 Nov 2013, 17:36
by azq
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.

Re: Odric, Master Tactician - Possible to code?

PostPosted: 05 Nov 2013, 17:39
by MC Brodie
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.

Re: Odric, Master Tactician - Possible to code?

PostPosted: 05 Nov 2013, 19:05
by thefiremind
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.
In single player it was working just fine, I used the same function for Master Warcraft.

Re: Odric, Master Tactician - Possible to code?

PostPosted: 10 Nov 2013, 00:42
by damienx45
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.)

Re: Odric, Master Tactician - Possible to code?

PostPosted: 10 Nov 2013, 00:58
by thefiremind
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.)
It wouldn't be combat damage, the creatures wouldn't be in combat, attack and block triggers wouldn't trigger... :roll:

Re: Odric, Master Tactician - Possible to code?

PostPosted: 16 Nov 2013, 01:26
by damienx45
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?

PostPosted: 16 Nov 2013, 02:09
by wtb300
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

Re: Odric, Master Tactician - Possible to code?

PostPosted: 16 Nov 2013, 10:24
by thefiremind
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.
There's not much to study, in DotP2013 the SetBlockController function works and in DotP2014 it doesn't. End of the story.

Re: Odric, Master Tactician - Possible to code?

PostPosted: 16 Nov 2013, 18:46
by damienx45
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?

PostPosted: 16 Nov 2013, 19:26
by thefiremind
damienx45 wrote:its the same priciple just alittle different in the wording and code.
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.
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.