Page 2 of 2

Re: Expansion Sneak Peek packs!

PostPosted: 05 Sep 2013, 08:34
by thefiremind
GrovyleXShinyCelebi wrote:EDIT: I just realized that I made a huge mistake on the Bushido and Takeno's ability, and none of the Bushido effects work!
Bushido is very easy to make in DotP2014 thanks to the new "integer characteristic". So you need 2 parts for Bushido, a static ability that grants the bushido points:
Code: Select all
  <STATIC_ABILITY>
    <CONTINUOUS_ACTION layer="6">
    if EffectSource() ~= nil then
       EffectSource():GetCurrentCharacteristics():Int_Add( INT_CHARACTERISTIC_BUSHIDO, 2 ) -- this is for Bushido 2
    end
    </CONTINUOUS_ACTION>
  </STATIC_ABILITY>
and a triggered ability that actually grants the bonus. You could read the bushido points from the characteristic, but this would interfere with Sensei Golden-Tail (multiple instances of bushido should trigger independently), so it's better if you hard-code the bushido points there as well:
Code: Select all
  <TRIGGERED_ABILITY badge="BADGE_BUSHIDO">
    <TRIGGER value="BLOCKING" simple_qualifier="self" />
    <TRIGGER value="WAS_BLOCKED" simple_qualifier="self" />
    <CONTINUOUS_ACTION layer="7C">
    if EffectSource() ~= nil then
       local bushido = 2 -- this is for Bushido 2
       local characteristics = EffectSource():GetCurrentCharacteristics()
       characteristics:Power_Add( bushido )
       characteristics:Toughness_Add( bushido )
    end
    </CONTINUOUS_ACTION>
    <DURATION simple_duration="UntilEOT" />
  </TRIGGERED_ABILITY>
Now Takeno will just read the INT_CHARACTERISTIC_BUSHIDO in order to grant his bonus (you need to use Int_Get because Get_Int isn't defined for the characteristics), while Sensei Golden-Tail will grant both those abilities (with Bushido 1, of course). Put the ability text in any one of the 2 abilities, there's no difference.

GrovyleXShinyCelebi wrote:-I couldn't find any high-quality art for Hand of Honor, so the deckbox image is Kitsune Blademaster. If anyone can get some some good medium-large sized (about the size of in-game art images should do) Hand of Honor art by tomorrow, I'll make that the deckbox in the patch.
If I search for Hand of Honor in my web generator and follow the MagicVille link, I find a good art for it. :wink:

Re: Expansion Sneak Peek packs!

PostPosted: 05 Sep 2013, 21:52
by GrovyleXShinyCelebi
thefiremind wrote:
GrovyleXShinyCelebi wrote:EDIT: I just realized that I made a huge mistake on the Bushido and Takeno's ability, and none of the Bushido effects work!
Bushido is very easy to make in DotP2014 thanks to the new "integer characteristic". So you need 2 parts for Bushido, a static ability that grants the bushido points:
Code: Select all
  <STATIC_ABILITY>
    <CONTINUOUS_ACTION layer="6">
    if EffectSource() ~= nil then
       EffectSource():GetCurrentCharacteristics():Int_Add( INT_CHARACTERISTIC_BUSHIDO, 2 ) -- this is for Bushido 2
    end
    </CONTINUOUS_ACTION>
  </STATIC_ABILITY>
and a triggered ability that actually grants the bonus. You could read the bushido points from the characteristic, but this would interfere with Sensei Golden-Tail (multiple instances of bushido should trigger independently), so it's better if you hard-code the bushido points there as well:
Code: Select all
  <TRIGGERED_ABILITY badge="BADGE_BUSHIDO">
    <TRIGGER value="BLOCKING" simple_qualifier="self" />
    <TRIGGER value="WAS_BLOCKED" simple_qualifier="self" />
    <CONTINUOUS_ACTION layer="7C">
    if EffectSource() ~= nil then
       local bushido = 2 -- this is for Bushido 2
       local characteristics = EffectSource():GetCurrentCharacteristics()
       characteristics:Power_Add( bushido )
       characteristics:Toughness_Add( bushido )
    end
    </CONTINUOUS_ACTION>
    <DURATION simple_duration="UntilEOT" />
  </TRIGGERED_ABILITY>
Now Takeno will just read the INT_CHARACTERISTIC_BUSHIDO in order to grant his bonus (you need to use Int_Get because Get_Int isn't defined for the characteristics), while Sensei Golden-Tail will grant both those abilities (with Bushido 1, of course). Put the ability text in any one of the 2 abilities, there's no difference.

GrovyleXShinyCelebi wrote:-I couldn't find any high-quality art for Hand of Honor, so the deckbox image is Kitsune Blademaster. If anyone can get some some good medium-large sized (about the size of in-game art images should do) Hand of Honor art by tomorrow, I'll make that the deckbox in the patch.
If I search for Hand of Honor in my web generator and follow the MagicVille link, I find a good art for it. :wink:
I hard-coded in Bushido, and it worked, but the issue was that then Takeno, Samurai General wouldn't be able to read the Bushido, so I, in my rush, searched for pre-coded Takeno, accidently stumbled upon a version from 2013, and from there I just made a mess.

Today I actually wanted to use Riiak Shi Nal's ObjectDC function to store a Bushido value for each card with it and then have Takeno retrieve it. Again, huge thanks for pointing the bushido points code out and saving me, as always! :D

Re: Expansion Sneak Peek packs!

PostPosted: 05 Sep 2013, 23:49
by GrovyleXShinyCelebi
Alright, after a TON of work on this deck, Swords of the Samurai is up. Ugh, on top of Takeno, Yosei, the Morning Star and Ronin Warclub also gave me some moar headaches.

Also, does the deck still crash occasionally when you start it up? I thought Yosei and Warclub might have caused it, so I, again, remade the cards. Tell me if there's any other issues.

Next up, Sylvan Might.

Re: Expansion Sneak Peek packs!

PostPosted: 06 Sep 2013, 22:19
by GrovyleXShinyCelebi
Alright, it turns out the crashing issue still happened, so I made one last check on my mod and fixed a few things, then tested it immensely. My reupload of Swords of the Samurai should have zero crashes.

Now, I can finally code in Spire Tracer (and see if "CHARACTERISTIC_CANT_BE_BLOCKED_EXCEPT_BY_CREATURES_WITH_FLYING_OR_REACH" works or not)

Re: Expansion Sneak Peek packs!

PostPosted: 06 Sep 2013, 22:51
by Shinneh
Thank you so much, I really wanted to try the samurai deck.

Re: Expansion Sneak Peek packs!

PostPosted: 06 Sep 2013, 23:51
by GrovyleXShinyCelebi
Did it work? Are there any crashing or freezing or anything like that? This is my third attempt, and I really want to get it right this time.

Re: Expansion Sneak Peek packs!

PostPosted: 07 Sep 2013, 15:47
by GrovyleXShinyCelebi
Alright, presenting the newest edition to Duels 2014's mono-color, tribal aggro god-tier, Sylvan Might!

Just a little heads-up, Wizards is remodeling their community site on Monday, September 9, and not only will the site be down but all posts made after August 26 will be erased, including the spoiled decklists. Therefore, I will post the decklists here just so you have access to them during the downtime.

Also, reuploaded Swords of the Samurai to fix a bug with Ronin Warclub.

Re: Expansion Sneak Peek packs!

PostPosted: 10 Sep 2013, 23:37
by GrovyleXShinyCelebi
Dodge and Burn is up! Presenting Dack Fayden's Izzet burn deck (with a disappointing lack of a certain Firemind ;)).

Well, I just have one deck left to code, so I'm putting Lords of Darkness' decklist on here.

Re: Expansion Sneak Peek packs!

PostPosted: 12 Sep 2013, 22:32
by GrovyleXShinyCelebi
ANNNNNNNNNNND finally, the last deck in the expansion, the very spaventoso mono-black demon deck, Lords of Darkness, is finally up! Don't hurt yourself with it (literally)!

Anyways, enjoy the decks and don't forget to catch the expansion on Wednesday, September 18! If you have any opinions/comments about the decks or want to report any bugs (highly unlikely as I did an extremely extensive round of debugging), feel free to talk about them here.

Image