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




Formal Request Thread
Moderator: CCGHQ Admins
Re: Formal Request Thread
by Borborigmos » 22 Jul 2015, 22:07
Ah, I see. That makes sense.RiiakShiNal wrote:Icefall Regent is not possible precisely because of that reason.
How about Lazav, Dimir Mastermind? Is his ability also impossible to code?

- Borborigmos
- Posts: 90
- Joined: 13 Apr 2015, 16:24
- Has thanked: 25 times
- Been thanked: 4 times
Re: Formal Request Thread
by RiiakShiNal » 22 Jul 2015, 22:58
Yep, Lazav, Dimir Mastermind is impossible because we can't change card names. He could become a copy of any card, but the name would show the copied card instead of Lazav, Dimir Mastermind (this would likely pose problems with the Legendary supertype).Borborigmos wrote:Ah, I see. That makes sense.
How about Lazav, Dimir Mastermind? Is his ability also impossible to code?
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: Formal Request Thread
by Xander9009 » 23 Jul 2015, 04:20
I've just considered, why not replace the getname function (a simple tool I already have will find and replace every instance of a given string with a different one, so the number of cards that need altered would be irrelevant so long as the alteration is a single string change on every relevant card) so that it calls a special function instead. That function checks if the card currently has a Lazav, Dimir Mastermind custom characteristic (which would probably show on the card as a reminder) and it doesn't, then it just calls "returns oCard:GetCardName()". A simple search replace for any cards that call GetCardName() with CW_GetCardName() instead. That should work, shouldn't it? Anything that uses a card's name would read it as Lazav, so it would function as it should.
There are 335 in the CW (ALL of those in the CW could be changed with no issue whatsoever), and three in the core game which would need added to the CW to use the new function. Probably about 10 minutes of work, tops. Thoughts? It wouldn't show in the right spot, but it could show on the card. If that wouldn't work because of layers, it could add itself to either its objectDC, a manager's objectDC, or PlayerDC or something.
There are 335 in the CW (ALL of those in the CW could be changed with no issue whatsoever), and three in the core game which would need added to the CW to use the new function. Probably about 10 minutes of work, tops. Thoughts? It wouldn't show in the right spot, but it could show on the card. If that wouldn't work because of layers, it could add itself to either its objectDC, a manager's objectDC, or PlayerDC or something.
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
-
Xander9009 - Programmer
- Posts: 2905
- Joined: 29 Jun 2013, 07:44
- Location: Indiana, United States
- Has thanked: 121 times
- Been thanked: 445 times
Re: Formal Request Thread
by RiiakShiNal » 23 Jul 2015, 11:03
That still wouldn't replace the engine's internal GetCardName() checks which are probably used with the engine's support for Legendary cards (meaning things would likely still be broken). So unless you are willing to also completely rewrite Legendary support this would not be an acceptable solution. Plus it still wouldn't allow the player to see the card's supposed name.
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: Formal Request Thread
by Xander9009 » 23 Jul 2015, 11:36
We've already rewritten it for planeswalkers. And since it would only need to be part of Lazav's code as a replacement ETB trigger, forcing you to choose one card with the custom Lazav characteristic to keep and sacrificing the rest. (And if we wanted to be more accurate, it would be a state based trigger, but I can't think of a way it could exist on the battlefield without the ETB firing, so I can't really justify the extra load of checking for a custom characteristic on every permanent you control every state based effect; but it's certainly an alternative should the ETB have problems.RiiakShiNal wrote:That still wouldn't replace the engine's internal GetCardName() checks which are probably used with the engine's support for Legendary cards (meaning things would likely still be broken). So unless you are willing to also completely rewrite Legendary support this would not be an acceptable solution.
That's what this was supposed to address: "which would probably show on the card as a reminder". It wasn't very clear, and that's my fault. I mean it would show "Lazav, Dimir Mastermind" as a granted ability.RiiakShiNal wrote:Plus it still wouldn't allow the player to see the card's supposed name.
But yes, I'd overlooked the legendary rule. I just don't think it would be very difficult since that's a pretty simple and straightforward rule.
If it does work, Sakashima the Impostor would also be possible.
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
-
Xander9009 - Programmer
- Posts: 2905
- Joined: 29 Jun 2013, 07:44
- Location: Indiana, United States
- Has thanked: 121 times
- Been thanked: 445 times
Re: Formal Request Thread
by sweetLu » 23 Jul 2015, 16:05
Yes but if you own a Talrand, Sky Summoner and have Lazav, Dimir Mastermind copy an opponents Talrand, Sky Summoner I believe you would be able to keep both and the legendary rule wouldn't kick in. I think this is Riiak's point.
Re: Formal Request Thread
by Xander9009 » 23 Jul 2015, 16:08
Yeah, the legendary rule where other cards are concerned would be much harder. You should be able to keep both but it probably wouldn't work since the game would see two legendaries with the same name... Darn.sweetLu wrote:Yes but if you own a Talrand, Sky Summoner and have Lazav, Dimir Mastermind copy an opponents Talrand, Sky Summoner I believe you would be able to keep both and the legendary rule wouldn't kick in. I think this is Riiak's point.
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
-
Xander9009 - Programmer
- Posts: 2905
- Joined: 29 Jun 2013, 07:44
- Location: Indiana, United States
- Has thanked: 121 times
- Been thanked: 445 times
Re: Formal Request Thread
by Borborigmos » 24 Jul 2015, 16:40
Hi Guys,
To add to cards that have not been coded, I have noticed that we don't have any split cards. Cards like Far // Away for example shouldn't be that hard to code right? They could work like charms or commands. Or even bestow creatures or turning a morph face up give me ideas of how to prompt for which half of the card (or both if you have the mana and the card has Fuse).
Am I missing something?
To add to cards that have not been coded, I have noticed that we don't have any split cards. Cards like Far // Away for example shouldn't be that hard to code right? They could work like charms or commands. Or even bestow creatures or turning a morph face up give me ideas of how to prompt for which half of the card (or both if you have the mana and the card has Fuse).
Am I missing something?

- Borborigmos
- Posts: 90
- Joined: 13 Apr 2015, 16:24
- Has thanked: 25 times
- Been thanked: 4 times
Re: Formal Request Thread
by Xander9009 » 24 Jul 2015, 16:53
viewtopic.php?f=109&t=11010&p=165881&hilit=split+cards#p165880Borborigmos wrote:Hi Guys,
To add to cards that have not been coded, I have noticed that we don't have any split cards. Cards like Far // Away for example shouldn't be that hard to code right? They could work like charms or commands. Or even bestow creatures or turning a morph face up give me ideas of how to prompt for which half of the card (or both if you have the mana and the card has Fuse).
Am I missing something?
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
-
Xander9009 - Programmer
- Posts: 2905
- Joined: 29 Jun 2013, 07:44
- Location: Indiana, United States
- Has thanked: 121 times
- Been thanked: 445 times
Re: Formal Request Thread
by Borborigmos » 24 Jul 2015, 19:10
Ah, i see, thanks for your reply.Xander9009 wrote:viewtopic.php?f=109&t=11010&p=165881&hilit=split+cards#p165880Borborigmos wrote:Hi Guys,
To add to cards that have not been coded, I have noticed that we don't have any split cards. Cards like Far // Away for example shouldn't be that hard to code right? They could work like charms or commands. Or even bestow creatures or turning a morph face up give me ideas of how to prompt for which half of the card (or both if you have the mana and the card has Fuse).
Am I missing something?
It's a shame though, I wonder if everyone is so attached to the rules? haha I certainly would prefer to play them anyway and have the rule bother me once in a blue moon than not have them at all...
Thanks anyway!

- Borborigmos
- Posts: 90
- Joined: 13 Apr 2015, 16:24
- Has thanked: 25 times
- Been thanked: 4 times
Re: Formal Request Thread
by loookaz » 25 Jul 2015, 16:54
Last edited by loookaz on 26 Jul 2015, 15:11, edited 1 time in total.
Najlepsze lekcje angielskiego w Warszawie:
http://www.englishwithlucas.com/
https://www.facebook.com/angielski.z.Lucasem
http://www.englishwithlucas.com/
https://www.facebook.com/angielski.z.Lucasem
- loookaz
- Posts: 131
- Joined: 01 Dec 2012, 10:56
- Location: Warsaw, Poland
- Has thanked: 22 times
- Been thanked: 2 times
Re: Formal Request Thread
by Tejahn » 25 Jul 2015, 21:57
Well, I completed Despoiler of Souls so that one is no longer required. But I'm having trouble coding Erebos's Titan.
Re: Formal Request Thread
by Xander9009 » 25 Jul 2015, 22:21
What's the trouble?Tejahn wrote:Well, I completed Despoiler of Souls so that one is no longer required. But I'm having trouble coding Erebos's Titan.
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
-
Xander9009 - Programmer
- Posts: 2905
- Joined: 29 Jun 2013, 07:44
- Location: Indiana, United States
- Has thanked: 121 times
- Been thanked: 445 times
Who is online
Users browsing this forum: No registered users and 20 guests