Board index
Programs with AI or Rules Enforcement
Magic: The Gathering - Duels of the Planeswalkers
New MTG Cards and Decks
2014




Community Wad
Moderators: Xander9009, CCGHQ Admins
Re: Community Wad
by Nick26 » 13 Feb 2021, 11:55
Hi guys, does anyone know how to code emergent ultimatum ? I tried starting from brilliant ultimatum but I failed 

Re: Community Wad
by RiiakShiNal » 16 Feb 2021, 02:31
The easiest way (though probably not the best experience for the user) to code it would probably be to do it in steps like this (in a single ability):Nick26 wrote:Hi guys, does anyone know how to code Emergent Ultimatum ? I tried starting from Brilliant Ultimatum but I failed
- Set up a filter to search for cards with only a single color and allow select up to 1 card.
- If a card was selected, store it in a card pointer. If no card selected then we can skip the steps up until we exile Emergent Ultimatum.
- Set up a filter to search for cards with only a single color excluding cards that match the card name of the card stored in the card pointer set up in step 2 and select up to 1 card.
- If a card was selected, store it in another card pointer. If no card selected then we can skip to shuffling the card selected in step 2 into the library then exiling Emergent Ultimatum.
- Set up a filter to search for cards with only a single color excluding cards that match the name of the card stored in the card pointer set up in step 2 or match the name of the card stored in the card pointer set up in step 4 and select up to 1 card.
- If a card was selected, store it in a third card pointer.
- Technically, we should exile the cards chosen up to now, but due to engine limitations it is easier to simply put them into a DC and present them to an opponent to choose one to be shuffled in (easy to select opponent if a normal duel otherwise properly selecting an opponent could be tricky in Two-Headed Giant or Free-For-All).
- Now protect the two card pointers that are not to be shuffled in and then exile the cards.
- Now we need to shuffle the Library (the one card chosen to be shuffled is still in the library so don't need to do anything more with it).
- Now we would take the remaining two cards and present them to the caster to choose which one to cast (or none if they choose).
- If a card was chosen then cast it for free. If no card chosen then skip to exiling Emergent Ultimatum.
- Now present the last card to the caster and ask if they want to cast it (they can choose not to cast it).
- If the card was chosen then cast it for free.
- Exile Emergent Ultimatum.
Granted, I did not get into the nitty-gritty of how to code each step and there are other ways to code it, but they could get more complicated.
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: 2154
- Joined: 16 May 2011, 21:37
- Has thanked: 74 times
- Been thanked: 480 times
Re: Community Wad
by Nick26 » 16 Feb 2021, 08:13
Thanks, I am gonna try that! If it works I'll post the code
Re: Community Wad
by thumpalump » 22 Feb 2021, 01:39
I just wanted to let you guys know you're doing God's work over here. I played DotP 2014 when it released (even DotP 2012) and downloaded the WAD for 2014 a little over a year ago. It's almost the perfect mix for Magic. It has a good looking UI to play the game in, a simple AI to play against, 2HG mode and no need to dump money in to collect the cards. I thought the project had gone dark after the tragedy of what happened to the OG of this place. But I was stoked to find out people are still adding cards to the database. I've been thinking of dabbling in making cards myself and hopefully contributing to the library. Is there any info you guys can give about how to get started creating mods/cards for the WAD?
- thumpalump
- Posts: 4
- Joined: 15 Aug 2013, 02:36
- Has thanked: 0 time
- Been thanked: 0 time
Re: Community Wad
by Nick26 » 28 Feb 2021, 19:30
I am not really good at modding, I know very little about it, so when I want to code a card I look for similar ones and I do some kind of copy/past and rearrange. For example, for Dream Trawler: I started from prognostic sphinx that has the same activated ability, then for the triggered ability I just took a creature with an attacking trigger and then I changed the "resolution time action" part.thumpalump wrote:I just wanted to let you guys know you're doing God's work over here. I played DotP 2014 when it released (even DotP 2012) and downloaded the WAD for 2014 a little over a year ago. It's almost the perfect mix for Magic. It has a good looking UI to play the game in, a simple AI to play against, 2HG mode and no need to dump money in to collect the cards. I thought the project had gone dark after the tragedy of what happened to the OG of this place. But I was stoked to find out people are still adding cards to the database. I've been thinking of dabbling in making cards myself and hopefully contributing to the library. Is there any info you guys can give about how to get started creating mods/cards for the WAD?
I know it's not much but it's definitely better than starting from scratch

Re: Community Wad
by thumpalump » 05 Mar 2021, 03:27
That makes a lot of sense. I taught myself how to mod Torchlight 2 by doing the exact same thing. How do you open up the files in the first place to modify them? Is it done through a simple text program? Or is something more complex like IntelliJ with a coding language? Can you share how to open up the files in order to modify them?
- thumpalump
- Posts: 4
- Joined: 15 Aug 2013, 02:36
- Has thanked: 0 time
- Been thanked: 0 time
Re: Community Wad
by RiiakShiNal » 15 Mar 2021, 10:47
In addition to this forum there is also a Wiki which contains a fair amount of information in a bit more digestible form.
The wiki even has a Modding Tutorial specifically for DotP 2014.
A primer on Coding Cards.
Using Filters and Interrogations.
Information on Cleaning Code and making code somewhat error resistant.
Some Best Practices.
Frequent Modding Mistakes.
And even a tutorial on making Animated Card Images.
The wiki even has a Modding Tutorial specifically for DotP 2014.
A primer on Coding Cards.
Using Filters and Interrogations.
Information on Cleaning Code and making code somewhat error resistant.
Some Best Practices.
Frequent Modding Mistakes.
And even a tutorial on making Animated Card Images.
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: 2154
- Joined: 16 May 2011, 21:37
- Has thanked: 74 times
- Been thanked: 480 times
Who is online
Users browsing this forum: No registered users and 8 guests