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)
2013




[Help] Unlocks, Deck editing, and Braids Cabal Minion
Moderator: CCGHQ Admins
5 posts
• Page 1 of 1
[Help] Unlocks, Deck editing, and Braids Cabal Minion
by Aborash » 05 Dec 2012, 15:23
Hi:
I'm just editing the awesome Soulstorm's deck "On a Pale Horse" ([Deck_504102_ST]) adding several black creatures, such as, Nekrataal, Blood Artist, Gatekeeper of Malakir, Disciple of Griselbrand, etc, and due the high amount of cards, I need to use the sideboard.
So I tried to edit TheFiremind's unlock deck as well, to get the sideboard unlocked, and I thought It was as easy as:
Also, when I check the decks I made on the game, they are name "[DECK_xxxx]" How can I do to show a normal name like "Ponza", "Stompy", etc?
On the other hand, I'm trying to code a Black Control Deck, (Thanks to the cards of Kevlahnota, TheFiremind,SoulStorm, Riiak Shi Nal, BlindWillow, Skullblakka and Pcastellazzi, and the only card I need is Braids, Cabal Minion but I know its implemented on DoTP 2010, so this is the code:
Thanks in advance
I'm just editing the awesome Soulstorm's deck "On a Pale Horse" ([Deck_504102_ST]) adding several black creatures, such as, Nekrataal, Blood Artist, Gatekeeper of Malakir, Disciple of Griselbrand, etc, and due the high amount of cards, I need to use the sideboard.
So I tried to edit TheFiremind's unlock deck as well, to get the sideboard unlocked, and I thought It was as easy as:
- Code: Select all
[DECK_IMNOTDEAD] <-- Name of my .xml file
12666005 <-- uid of my deck
97360 <-- Constant to Unlock
97361 <-- Constant to Unlock
Also, when I check the decks I made on the game, they are name "[DECK_xxxx]" How can I do to show a normal name like "Ponza", "Stompy", etc?
On the other hand, I'm trying to code a Black Control Deck, (Thanks to the cards of Kevlahnota, TheFiremind,SoulStorm, Riiak Shi Nal, BlindWillow, Skullblakka and Pcastellazzi, and the only card I need is Braids, Cabal Minion but I know its implemented on DoTP 2010, so this is the code:
- Code: Select all
<?xml version="1.0"?>
<MULTICARDS>
<CARD>
<!--
///////////////////////////////////////////////////////////////////////////////////
CARD INFORMATIONS
///////////////////////////////////////////////////////////////////////////////////
-->
<FILENAME text = "BRAIDS_CABAL_MINION" />
<ARTID value = "88880013" />
<TITLE text = "BRAIDS_CABAL_MINION_TITLE" />
<SUPERTYPE metaname = "Legendary" />
<TYPE metaname = "Creature" />
<SUB_TYPE metaname = "Human" />
<SUB_TYPE metaname = "Minion" />
<POWER value = "2" />
<TOUGHNESS value = "2" />
<CASTING_COST cost = "{2}{B}{B}" />
<COLOR value = "B" />
<FRAMECOLOUR name = "B" />
<EXPANSION metaname = "8888" />
<RARITY metaname = "Rare" />
<COLLECTIONMAX value = "0" />
<COLLECTORNUMBER value = "0" />
<CARDNUMBER value = "0" />
<ARTIST name = "Eric Peterson" />
<FLAVOURTEXT text = "BRAIDS_CABAL_MINION_FLAVOUR" />
<!--
///////////////////////////////////////////////////////////////////////////////////
START OF CARD ABILITIES
///////////////////////////////////////////////////////////////////////////////////
-->
<TRIGGERED_ABILITY tag="BRAIDS_CABAL_MINION_RULE_1" auto_skip="1" layer="0">
<TRIGGER value="BEGINNING_OF_STEP">
return ( MTG():GetStep() == STEP_UPKEEP and TriggerPlayer():MyTurn() ~= 0 )
</TRIGGER>
<PRE_EFFECT>
local PSacrificeLCA = TriggerPlayer()
Object():Register_Player_Set( 0, PSacrificeLCA )
Object():GetFilter():Clear()
Object():GetFilter():NotTargetted()
Object():GetFilter():SetPlayer( PSacrificeLCA )
Object():GetFilter():SetZone( ZONE_IN_PLAY )
Object():GetFilter():SetController( PSacrificeLCA )
Object():GetFilter():AddCardType( CARD_TYPE_LAND )
Object():GetFilter():AddCardType( CARD_TYPE_CREATURE )
Object():GetFilter():AddCardType( CARD_TYPE_ARTIFACT )
PSacrificeLCA:ChooseTarget( "CHOOSEALANDARTIFACTCREATURESAC" )
</PRE_EFFECT>
<EFFECT>
SacrificeTargetCard()
</EFFECT>
</TRIGGERED_ABILITY>
<!--
///////////////////////////////////////////////////////////////////////////////////
END OF CARD ABILITIES
///////////////////////////////////////////////////////////////////////////////////
-->
<SFX text="BLACKCLAW3_attack" />
</CARD>
</MULTICARDS>
Thanks in advance
Re: [Help] Unlocks, Deck editing, and Braids Cabal Minion
by thefiremind » 05 Dec 2012, 16:10
You did nothing wrong, the problem is that DotP2013 can keep saved information for a maximum of 18 decks, and decides by itself which decks to save. If you can keep a sideboard of only 10 cards, you can make them promo unlocks (game_mode="2" instead of "0" in the unlock XML) and if you inserted the 10 promo codes you'll have those cards unlocked forever, the only drawback is that they will be inside the deck by default so you'll have to remove the cards that you don't want to use if you want a 60-cards deck.Aborash wrote:So I tried to edit TheFiremind's unlock deck as well, to get the sideboard unlocked, and I thought It was as easy as:But it seems I'm doing something wrong, or isn't that easy.
- Code: Select all
[DECK_IMNOTDEAD] <-- Name of my .xml file
12666005 <-- uid of my deck
97360 <-- Constant to Unlock
97361 <-- Constant to Unlock
You need to define the localised text for the DECK_xxxx string in an XML file inside the TEXT_PERMANENT directory. You can find examples of how to do it inside (almost) every mod.Aborash wrote:Also, when I check the decks I made on the game, they are name "[DECK_xxxx]" How can I do to show a normal name like "Ponza", "Stompy", etc?
I understand little of DotP2010 code (I started modding from DotP2012) but it's a very easy card to make, so I can write the code without starting from an older version.Aborash wrote:On the other hand, I'm trying to code a Black Control Deck, (Thanks to the cards of Kevlahnota, TheFiremind,SoulStorm, Riiak Shi Nal, BlindWillow, Skullblakka and Pcastellazzi, and the only card I need is Braids, Cabal Minion but I know its implemented on DoTP 2010, so this is the code:

EDIT: You can find Braids -> here <-. (I like to fill all the requests in a single topic, so it's easier for everyone to browse them.)
< 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: [Help] Unlocks, Deck editing, and Braids Cabal Minion
by Aborash » 05 Dec 2012, 20:14
First at all, let me thank you for ur great and unstoppable work (also you decks, roolz, never allow people told you the opposite).
My apologizes but english isnt my primary languaje, and it seems I had explain myself wrong.
I'm already aware about the 18 deck limit (damn WoTC), I mean, that all I want is have the Extra Cards already Unlocked, for example:

Almost all cards in all my decks are unlocked by default, and thats because I'm using ur "Deck_9999_Unlocks2.wad". If I add or remove cards, and I quit, they reset to default, but the cards still unlocked, so Only takes me a few secs to leave the deck like I want.
But after edit the new deck, and the unlocks, it show:

Maybe its because I didnt named it right on the TEXT_PERMANENT? (I'm using ur 1234_test_deck as template) BTW, I'm playing with the Skidrow version, not sure if that will help...
Thank you Thefiremind
My apologizes but english isnt my primary languaje, and it seems I had explain myself wrong.
I'm already aware about the 18 deck limit (damn WoTC), I mean, that all I want is have the Extra Cards already Unlocked, for example:

Almost all cards in all my decks are unlocked by default, and thats because I'm using ur "Deck_9999_Unlocks2.wad". If I add or remove cards, and I quit, they reset to default, but the cards still unlocked, so Only takes me a few secs to leave the deck like I want.
But after edit the new deck, and the unlocks, it show:

Maybe its because I didnt named it right on the TEXT_PERMANENT? (I'm using ur 1234_test_deck as template) BTW, I'm playing with the Skidrow version, not sure if that will help...
Amazing!! I'm gonna test it right now!!thefiremind wrote:I understand little of DotP2010 code (I started modding from DotP2012) but it's a very easy card to make, so I can write the code without starting from an older version.I'll start right now.
EDIT: You can find Braids -> here <-. (I like to fill all the requests in a single topic, so it's easier for everyone to browse them.)
Thank you Thefiremind

Re: [Help] Unlocks, Deck editing, and Braids Cabal Minion
by thefiremind » 06 Dec 2012, 10:11
OK, now I understood your problem.
The only thing I can suggest you is to double-check the IDs of your copy: did you change all the IDs (in the deck, in the land_pool, in the unlocks) so that no ID is the same as the original Soulstorm's deck? (Except of course 97360 and 97361, those are always the same on purpose.)
This has no influence on unlocks, so don't worry about it.Aborash wrote:Maybe its because I didnt named it right on the TEXT_PERMANENT?
The only thing I can suggest you is to double-check the IDs of your copy: did you change all the IDs (in the deck, in the land_pool, in the unlocks) so that no ID is the same as the original Soulstorm's deck? (Except of course 97360 and 97361, those are always the same on purpose.)
< 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: [Help] Unlocks, Deck editing, and Braids Cabal Minion
by Aborash » 06 Dec 2012, 20:03
Now, I got all cover, believe me or not, It seems was the name on text_permanent, cause as soon as I changed "Deck_1234" at Text_permanent.txt, It started to work.thefiremind wrote:OK, now I understood your problem.This has no influence on unlocks, so don't worry about it.Aborash wrote:Maybe its because I didnt named it right on the TEXT_PERMANENT?
The only thing I can suggest you is to double-check the IDs of your copy: did you change all the IDs (in the deck, in the land_pool, in the unlocks) so that no ID is the same as the original Soulstorm's deck? (Except of course 97360 and 97361, those are always the same on purpose.)
I've already done several decks, and I noticed, that "deckOrderId" Its quite important on Unlocks, If you dont control it properly, It gives you a nice crash when attempt to check it at deck's editor.
Thanks for all ur kindness, Thefiremind
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 268 guests